海口龙华志愿者后端管理页面
zhouxiantao
8 days ago 4def10e6567cf651ae333a2a65c497e717c06403
1
2
3
/*! For license information please see main.0f96de7a.js.LICENSE.txt */
(()=>{var e={122:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},199:function(e){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var a=e.name?e:e.$locale(),l=o(a[t]),s=o(a[n]),c=l||s.map(function(e){return e.slice(0,r)});if(!i)return c;var u=a.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},l=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},s=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},219:(e,t,n)=>{"use strict";var r=n(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),g=s(n),m=0;m<a.length;++m){var v=a[m];if(!i[v]&&(!r||!r[v])&&(!g||!g[v])&&(!l||!l[v])){var y=p(n,v);try{c(t,v,y)}catch(b){}}}}return t}},446:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",i="minute",a="hour",l="day",s="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:s,d:l,D:p,h:a,m:i,s:o,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=m;var w="$isDayjsObject",S=function(e){return e instanceof M||!(!e||!e[w])},C=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();x[i]&&(o=i),n&&(x[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(b=o),o||!r&&b},_=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},k=y;k.l=C,k.i=S,k.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function m(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return _(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<_(e)},v.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!k.u(t)||t,u=k.p(e),f=function(e,t){var o=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,m):f(0,m+1);case s:var b=this.$locale().weekStart||0,x=(g<b?g+7:g)-b;return f(r?v-x:v+(6-x),m);case l:case p:return h(y+"Hours",0);case a:return h(y+"Minutes",1);case i:return h(y+"Seconds",2);case o:return h(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,s=k.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[l]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[i]=u+"Minutes",n[o]=u+"Seconds",n[r]=u+"Milliseconds",n)[s],h=s===l?this.$D+(t-this.$W):t;if(s===c||s===d){var g=this.clone().set(p,1);g.$d[f](h),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[k.p(e)]()},v.add=function(r,u){var p,f=this;r=Number(r);var h=k.p(u),g=function(e){var t=_(f);return k.w(t.date(t.date()+Math.round(e*r)),f)};if(h===c)return this.set(c,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return g(1);if(h===s)return g(7);var m=(p={},p[i]=t,p[a]=n,p[o]=e,p)[h]||1,v=this.$d.getTime()+r*m;return k.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,l=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return k.s(i%12||12,e,"0")},h=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return l+1;case"MM":return k.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,c,3);case"MMMM":return d(c,l);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(i,a,!0);case"A":return h(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,f){var h,g=this,m=k.p(p),v=_(r),y=(v.utcOffset()-this.utcOffset())*t,b=this-v,x=function(){return k.m(g,v)};switch(m){case d:h=x()/12;break;case c:h=x();break;case u:h=x()/3;break;case s:h=(b-y)/6048e5;break;case l:h=(b-y)/864e5;break;case a:h=b/n;break;case i:h=b/t;break;case o:h=b/e;break;default:h=b}return f?h:k.a(h)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return k.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),I=M.prototype;return _.prototype=I,[["$ms",r],["$s",o],["$m",i],["$H",a],["$W",l],["$M",c],["$y",d],["$D",p]].forEach(function(e){I[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,M,_),e.$i=!0),_},_.locale=C,_.isDayjs=S,_.unix=function(e){return _(1e3*e)},_.en=x[b],_.Ls=x,_.p={},_}()},477:()=>{},548:function(e,t,n){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}(n(4488),n(2238))},579:(e,t,n)=>{"use strict";e.exports=n(1153)},850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,o=n(2956),i=(r=n(4327))&&r.__esModule?r:{default:r};t.createSensor=function(e,t){var n=void 0,r=[],a=(0,i.default)(function(){r.forEach(function(t){t(e)})}),l=function(){n.disconnect(),r=[],n=void 0,e.removeAttribute(o.SizeSensorId),t&&t()};return{element:e,bind:function(t){n||(n=function(){var t=new ResizeObserver(a);return t.observe(e),a(),t}()),-1===r.indexOf(t)&&r.push(t)},destroy:l,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&l()}}}},1112:function(e,t,n){e.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o,r),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);n.call(this,e,t,o,r),this._prevBlock=i}}),t}(),e.mode.CFB}(n(4488),n(2238))},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},1543:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(6866));t.default=o.default},1641:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.algo,o=r.SHA256,i=r.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(i),t.HmacSHA224=o._createHmacHelper(i)}(),e.SHA224}(n(4488),n(6368))},1659:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],l=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)s.call(this);for(o=0;o<8;o++)r[o]^=n[o+4&7];if(t){var i=t.words,a=i[0],l=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=p,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=p,o=0;o<4;o++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,l=r>>>16,s=((o*o>>>17)+o*l>>>15)+l*l,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=s^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(l)}(),e.RabbitLegacy}(n(4488),n(8523),n(4199),n(8211),n(2238))},1884:function(e,t,n){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(n(4488),n(2238))},1929:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2897)),i=n(3290),a=(0,o.default)((0,o.default)({},i.commonLocale),{},{locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",week:"\u5468",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa",yearFormat:"YYYY\u5e74",cellDateFormat:"D",monthBeforeYear:!1});t.default=a},2002:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=[],l=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],l=n[3],s=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+s+a[c];d+=c<20?1518500249+(o&i|~o&l):c<40?1859775393+(o^i^l):c<60?(o&i|o&l|i&l)-1894007588:(o^i^l)-899497514,s=l,l=i,i=o<<30|o>>>2,o=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+l|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(l),t.HmacSHA1=o._createHmacHelper(l)}(),e.SHA1}(n(4488))},2086:(e,t,n)=>{"use strict";e.exports=n(5082)},2238:function(e,t,n){e.exports=function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,l=n.enc,s=(l.Utf8,l.Base64),c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),p=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=p.extend();function n(e,n,r){var o,i=this._iv;i?(o=i,this._iv=t):o=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize;n.call(this,e,t,o),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=e.slice(t,t+o);r.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=i}}),e}(),h=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],l=0;l<r;l+=4)a.push(o);var s=i.create(a,r);e.concat(s)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},g=(r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(s)},parse:function(e){var t,n=s.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},v=r.SerializableCipher=o.extend({cfg:o.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return g.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,o){if(r||(r=i.random(8)),o)a=c.create({keySize:t+n,hasher:o}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var l=i.create(a.words.slice(t),4*n);return a.sigBytes=4*t,g.create({key:a,iv:l,salt:r})}},b=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var o=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=o.iv;var i=v.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=o.iv,v.decrypt.call(this,e,t,o.key,r)}})}()}(n(4488),n(8211))},2330:(e,t,n)=>{"use strict";var r=n(5043);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return l(function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})},[e,n,t]),a(function(){return c(o)&&u({inst:o}),e(function(){c(o)&&u({inst:o})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){m[e]=new g(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){m[e]=new g(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){m[e]=new g(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){m[e]=new g(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){m[e]=new g(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)}),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),I=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function A(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var R,j=Object.assign;function L(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var z=!1;function B(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function H(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case S:return"Portal";case k:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case $:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return F(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){Z(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach(function(e){he.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var ve=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,_e=null;function ke(e){if(e=xo(e)){if("function"!==typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Me(e){Ce?_e?_e.push(e):_e=[e]:Ce=e}function Ie(){if(Ce){var e=Ce,t=_e;if(_e=Ce=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ee(e,t){return e(t)}function Oe(){}var $e=!1;function Te(e,t,n){if($e)return e(t,n);$e=!0;try{return Ee(e,t,n)}finally{$e=!1,(null!==Ce||null!==_e)&&(Oe(),Ie())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var De=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){De=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){De=!1}function Ae(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Re=!1,je=null,Le=!1,ze=null,Be={onError:function(e){Re=!0,je=e}};function He(e,t,n,r,o,i,a,l,s){Re=!1,je=null,Ae.apply(Be,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(Fe(e)!==e)throw Error(i(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return We(o),e;if(a===r)return We(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ye=o.unstable_scheduleCallback,qe=o.unstable_cancelCallback,Xe=o.unstable_shouldYield,Ke=o.unstable_requestPaint,Ze=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,Ct,_t,kt,Mt=!1,It=[],Et=null,Ot=null,$t=null,Tt=new Map,Pt=new Map,Dt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function At(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=bo(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void kt(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function zt(e,t,n){Lt(e)&&n.delete(t)}function Bt(){Mt=!1,null!==Et&&Lt(Et)&&(Et=null),null!==Ot&&Lt(Ot)&&(Ot=null),null!==$t&&Lt($t)&&($t=null),Tt.forEach(zt),Pt.forEach(zt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Mt||(Mt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Ft(e){function t(t){return Ht(t,e)}if(0<It.length){Ht(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Ht(Et,e),null!==Ot&&Ht(Ot,e),null!==$t&&Ht($t,e),Tt.forEach(t),Pt.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)jt(n),null===n.blockedOn&&Dt.shift()}var Vt=x.ReactCurrentBatchConfig,Wt=!0;function Gt(e,t,n,r){var o=bt,i=Vt.transition;Vt.transition=null;try{bt=1,Yt(e,t,n,r)}finally{bt=o,Vt.transition=i}}function Ut(e,t,n,r){var o=bt,i=Vt.transition;Vt.transition=null;try{bt=4,Yt(e,t,n,r)}finally{bt=o,Vt.transition=i}}function Yt(e,t,n,r){if(Wt){var o=Xt(e,t,n,r);if(null===o)Wr(e,t,r,qt,n),At(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=Rt(Et,e,t,n,r,o),!0;case"dragenter":return Ot=Rt(Ot,e,t,n,r,o),!0;case"mouseover":return $t=Rt($t,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,Rt(Tt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Pt.set(i,Rt(Pt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(At(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Xt(e,t,n,r))&&Wr(e,t,r,qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var qt=null;function Xt(e,t,n,r){if(qt=null,null!==(e=bo(e=we(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Zt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=j({},cn,{view:0,detail:0}),pn=on(dn),fn=j({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(fn),gn=on(j({},fn,{dataTransfer:0})),mn=on(j({},dn,{relatedTarget:0})),vn=on(j({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=j({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(j({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function kn(){return _n}var Mn=j({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=on(Mn),En=on(j({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=on(j({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),$n=on(j({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=j({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=on(Tn),Dn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,An=null;u&&"documentMode"in document&&(An=document.documentMode);var Rn=u&&"TextEvent"in window&&!An,jn=u&&(!Nn||An&&8<An&&11>=An),Ln=String.fromCharCode(32),zn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Gn(e,t,n,r){Me(r),0<(t=Ur(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,Yn=null;function qn(e){Lr(e,0)}function Xn(e){if(Y(wo(e)))return e}function Kn(e,t){if("change"===e)return t}var Zn=!1;if(u){var Qn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Qn=Jn}else Qn=!1;Zn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),Yn=Un=null)}function nr(e){if("value"===e.propertyName&&Xn(Yn)){var t=[];Gn(t,Yn,e,we(e)),Te(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Yn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Yn)}function ir(e,t){if("click"===e)return Xn(t)}function ar(e,t){if("input"===e||"change"===e)return Xn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==q(r)||("selectionStart"in(r=mr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=Ur(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},_r={};function kr(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Cr[e]=n[t];return e}u&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Mr=kr("animationend"),Ir=kr("animationiteration"),Er=kr("animationstart"),Or=kr("transitionend"),$r=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pr(e,t){$r.set(e,t),s(t,[e])}for(var Dr=0;Dr<Tr.length;Dr++){var Nr=Tr[Dr];Pr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Pr(Mr,"onAnimationEnd"),Pr(Ir,"onAnimationIteration"),Pr(Er,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Or,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function jr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,s,c){if(He.apply(this,arguments),Re){if(!Re)throw Error(i(198));var u=je;Re=!1,je=null,Le||(Le=!0,ze=u)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;jr(o,l,c),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,c=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;jr(o,l,c),i=s}}}if(Le)throw e=ze,Le=!1,ze=null,e}function zr(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Fr(e){if(!e[Hr]){e[Hr]=!0,a.forEach(function(t){"selectionchange"!==t&&(Rr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Br("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Kt(t)){case 1:var o=Gt;break;case 4:o=Ut;break;default:o=Yt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}Te(function(){var r=i,o=we(n),a=[];e:{var l=$r.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=In;break;case"focusin":c="focus",s=mn;break;case"focusout":c="blur",s=mn;break;case"beforeblur":case"afterblur":s=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=On;break;case Mr:case Ir:case Er:s=vn;break;case Or:s=$n;break;case"scroll":s=pn;break;case"wheel":s=Pn;break;case"copy":case"cut":case"paste":s=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=En}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var g=(f=h).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==p&&(null!=(g=Pe(h,p))&&u.push(Gr(h,g,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),a.push({event:l,listeners:u}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[go])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Fe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=hn,g="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=En,g="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:wo(s),f=null==c?l:wo(c),(l=new u(g,h+"leave",s,n,o)).target=d,l.relatedTarget=f,g=null,bo(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,g=u),d=g,s&&c)e:{for(p=c,h=0,f=u=s;f;f=Yr(f))h++;for(f=0,g=p;g;g=Yr(g))f++;for(;0<h-f;)u=Yr(u),h--;for(;0<f-h;)p=Yr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Yr(u),p=Yr(p)}u=null}else u=null;null!==s&&qr(a,l,s,u,!1),null!==c&&null!==d&&qr(a,d,c,u,!0)}if("select"===(s=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Kn;else if(Wn(l))if(Zn)m=ar;else{m=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=ir);switch(m&&(m=m(e,r))?Gn(a,m,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?wo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Fn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(jn&&"ko"!==n.locale&&(Fn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Fn&&(y=en()):(Qt="value"in(Zt=o)?Zt.value:Zt.textContent,Fn=!0)),0<(v=Ur(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(zn=!0,Ln);case"textInput":return(e=t.data)===Ln&&zn?null:e;default:return null}}(e,n):function(e,t){if(Fn)return"compositionend"===e||!Nn&&Bn(e,t)?(e=en(),Jt=Qt=Zt=null,Fn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ur(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Lr(a,t)})}function Gr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ur(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Pe(e,n))&&r.unshift(Gr(e,i,o)),null!=(i=Pe(e,t))&&r.push(Gr(e,i,o))),e=e.return}return r}function Yr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Pe(n,i))&&a.unshift(Gr(n,s,l)):o||null!=(s=Pe(n,i))&&a.push(Gr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Xr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Zr(e){return("string"===typeof e?e:""+e).replace(Xr,"\n").replace(Kr,"")}function Qr(e,t,n){if(t=Zr(t),Zr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout(function(){throw e})}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ft(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ft(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,go="__reactContainer$"+po,mo="__reactEvents$"+po,vo="__reactListeners$"+po,yo="__reactHandles$"+po;function bo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var Co=[],_o=-1;function ko(e){return{current:e}}function Mo(e){0>_o||(e.current=Co[_o],Co[_o]=null,_o--)}function Io(e,t){_o++,Co[_o]=e.current,e.current=t}var Eo={},Oo=ko(Eo),$o=ko(!1),To=Eo;function Po(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function No(){Mo($o),Mo(Oo)}function Ao(e,t,n){if(Oo.current!==Eo)throw Error(i(168));Io(Oo,t),Io($o,n)}function Ro(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,V(e)||"Unknown",o));return j({},n,r)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,To=Oo.current,Io(Oo,e),Io($o,$o.current),!0}function Lo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ro(e,t,To),r.__reactInternalMemoizedMergedChildContext=e,Mo($o),Mo(Oo),Io(Oo,e)):Mo($o),Io($o,n)}var zo=null,Bo=!1,Ho=!1;function Fo(e){null===zo?zo=[e]:zo.push(e)}function Vo(){if(!Ho&&null!==zo){Ho=!0;var e=0,t=bt;try{var n=zo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}zo=null,Bo=!1}catch(o){throw null!==zo&&(zo=zo.slice(e+1)),Ye(Je,Vo),o}finally{bt=t,Ho=!1}}return null}var Wo=[],Go=0,Uo=null,Yo=0,qo=[],Xo=0,Ko=null,Zo=1,Qo="";function Jo(e,t){Wo[Go++]=Yo,Wo[Go++]=Uo,Uo=e,Yo=t}function ei(e,t,n){qo[Xo++]=Zo,qo[Xo++]=Qo,qo[Xo++]=Ko,Ko=e;var r=Zo;e=Qo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Zo=1<<32-at(t)+o|n<<o|r,Qo=i+e}else Zo=1<<i|n<<o|r,Qo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Uo;)Uo=Wo[--Go],Wo[Go]=null,Yo=Wo[--Go],Wo[Go]=null;for(;e===Ko;)Ko=qo[--Xo],qo[Xo]=null,Qo=qo[--Xo],qo[Xo]=null,Zo=qo[--Xo],qo[Xo]=null}var ri=null,oi=null,ii=!1,ai=null;function li(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ko?{id:Zo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!si(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&si(e,t)?li(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw fi(),Error(i(418));for(;t;)li(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=oi;e;)e=co(e.nextSibling)}function hi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=x.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=jc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===P&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ac(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=jc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case S:return(t=Lc(t,e.mode,n)).return=e,t;case P:return p(e,(0,t._init)(t._payload),n)}if(te(t)||A(t))return(t=Ac(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null;case P:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||A(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case P:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||A(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,l,s){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<l.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=f(o,d,l[g],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===l.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<l.length;g++)null!==(d=p(o,l[g],s))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<l.length;g++)null!==(m=h(d,o,g,l[g],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach(function(e){return t(o,e)}),ii&&Jo(o,g),c}function m(o,l,s,c){var u=A(s);if("function"!==typeof u)throw Error(i(150));if(null==(s=u.call(s)))throw Error(i(151));for(var d=u=null,g=l,m=l=0,v=null,y=s.next();null!==g&&!y.done;m++,y=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),l=a(b,l,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=p(o,y.value,c))&&(l=a(y,l,m),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=s.next())null!==(y=h(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=a(y,l,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach(function(e){return t(o,e)}),ii&&Jo(o,m),u}return function e(r,i,a,s){if("object"===typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===P&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=Ac(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Nc(a.type,a.key,a.props,null,r.mode,s)).ref=vi(r,i,a),s.return=r,r=s)}return l(r);case S:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Lc(a,r.mode,s)).return=r,r=i}return l(r);case P:return e(r,i,(u=a._init)(a._payload),s)}if(te(a))return g(r,i,a,s);if(A(a))return m(r,i,a,s);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=jc(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var wi=xi(!0),Si=xi(!1),Ci=ko(null),_i=null,ki=null,Mi=null;function Ii(){Mi=ki=_i=null}function Ei(e){var t=Ci.current;Mo(Ci),e._currentValue=t}function Oi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function $i(e,t){_i=e,Mi=ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bl=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(Mi!==e)if(e={context:e,memoizedValue:t,next:null},null===ki){if(null===_i)throw Error(i(308));ki=e,_i.dependencies={lanes:0,firstContext:e}}else ki=ki.next=e;return t}var Pi=null;function Di(e){null===Pi?Pi=[e]:Pi.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Di(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ri=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Es)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Di(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vi(e,t,n,r){var o=e.updateQueue;Ri=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===a?i=c:a.next=c,a=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,u=c=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,g=l;switch(p=t,f=n,g.tag){case 1:if("function"===typeof(h=g.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(p="function"===typeof(h=g.payload)?h.call(f,d,p):h)||void 0===p)break e;d=j({},d,p);break e;case 2:Ri=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Rs|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Gi={},Ui=ko(Gi),Yi=ko(Gi),qi=ko(Gi);function Xi(e){if(e===Gi)throw Error(i(174));return e}function Ki(e,t){switch(Io(qi,t),Io(Yi,e),Io(Ui,Gi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Mo(Ui),Io(Ui,t)}function Zi(){Mo(Ui),Mo(Yi),Mo(qi)}function Qi(e){Xi(qi.current);var t=Xi(Ui.current),n=se(t,e.type);t!==n&&(Io(Yi,e),Io(Ui,n))}function Ji(e){Yi.current===e&&(Mo(Ui),Mo(Yi))}var ea=ko(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,la=null,sa=null,ca=null,ua=!1,da=!1,pa=0,fa=0;function ha(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=n(r,o),da){a=0;do{if(da=!1,pa=0,25<=a)throw Error(i(301));a+=1,ca=sa=null,t.updateQueue=null,oa.current=tl,e=n(r,o)}while(da)}if(oa.current=Qa,t=null!==sa&&null!==sa.next,aa=0,ca=sa=la=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==pa;return pa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===sa){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=sa.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,sa=e;else{if(null===e)throw Error(i(310));e={memoizedState:(sa=e).memoizedState,baseState:sa.baseState,baseQueue:sa.baseQueue,queue:sa.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function xa(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=sa,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var s=l=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=p,l=r):c=c.next=p,la.lanes|=d,Rs|=d}u=u.next}while(null!==u&&u!==a);null===c?l=r:c.next=s,lr(r,t.memoizedState)||(bl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Rs|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);lr(a,t.memoizedState)||(bl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ca(){}function _a(e,t){var n=la,r=ba(),o=t(),a=!lr(r.memoizedState,o);if(a&&(r.memoizedState=o,bl=!0),r=r.queue,Ra(Ia.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ta(9,Ma.bind(null,n,r,o,t),void 0,null),null===Os)throw Error(i(349));0!==(30&aa)||ka(n,t,o)}return o}function ka(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ma(e,t,n,r){t.value=n,t.getSnapshot=r,Ea(t)&&Oa(e)}function Ia(e,t,n){return n(function(){Ea(t)&&Oa(e)})}function Ea(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Oa(e){var t=Ai(e,1);null!==t&&nc(t,e,1,-1)}function $a(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=qa.bind(null,la,e),[t.memoizedState,e]}function Ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Pa(){return ba().memoizedState}function Da(e,t,n,r){var o=ya();la.flags|=e,o.memoizedState=Ta(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==sa){var a=sa.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Ta(t,n,i,r))}la.flags|=e,o.memoizedState=Ta(1|t,n,i,r)}function Aa(e,t){return Da(8390656,8,e,t)}function Ra(e,t){return Na(2048,8,e,t)}function ja(e,t){return Na(4,2,e,t)}function La(e,t){return Na(4,4,e,t)}function za(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ba(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4,4,za.bind(null,t,e),n)}function Ha(){}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n):(lr(n,t)||(n=gt(),la.lanes|=n,Rs|=n,e.baseState=!0),t)}function Ga(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ua(){return ba().memoizedState}function Ya(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(e))Ka(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Za(n,t,r)}}function qa(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Ka(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,Di(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Za(n,t,r))}}function Xa(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ka(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Qa={readContext:Ti,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ti,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Da(4194308,4,za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ya.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:$a,useDebugValue:Ha,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=$a(!1),t=e[0];return e=Ga.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Os)throw Error(i(349));0!==(30&aa)||ka(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Aa(Ia.bind(null,r,a,e),[e]),r.flags|=2048,Ta(9,Ma.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Os.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Zo&~(1<<32-at(Zo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ti,useCallback:Fa,useContext:Ti,useEffect:Ra,useImperativeHandle:Ba,useInsertionEffect:ja,useLayoutEffect:La,useMemo:Va,useReducer:wa,useRef:Pa,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Wa(ba(),sa.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:Ca,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1},tl={readContext:Ti,useCallback:Fa,useContext:Ti,useEffect:Ra,useImperativeHandle:Ba,useInsertionEffect:ja,useLayoutEffect:La,useMemo:Va,useReducer:Sa,useRef:Pa,useState:function(){return Sa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ba();return null===sa?t.memoizedState=e:Wa(t,sa.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ba().memoizedState]},useMutableSource:Ca,useSyncExternalStore:_a,useId:Ua,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=j({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:j({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=zi(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=zi(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nc(t,e,o,r),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=zi(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nc(t,e,r,n),Hi(t,e,r))}};function il(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,i))}function al(e,t,n){var r=!1,o=Eo,i=t.contextType;return"object"===typeof i&&null!==i?i=Ti(i):(o=Do(t)?To:Oo.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Po(e,o):Eo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},ji(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ti(i):(i=Do(t)?To:Oo.current,o.context=Po(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rl(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Vi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pl="function"===typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=zi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Gs=r),dl(0,t)},n}function hl(e,t,n){(n=zi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===Us?Us=new Set([this]):Us.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=zi(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=x.ReactCurrentOwner,bl=!1;function xl(e,t,n,r){t.child=null===e?Si(t,null,n,r):wi(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var i=t.ref;return $i(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||bl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Sl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cl(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function Cl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);0!==(131072&e.flags)&&(bl=!0)}}return Ml(e,t,n,r,o)}function _l(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Io(Ds,Ps),Ps|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Io(Ds,Ps),Ps|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Io(Ds,Ps),Ps|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Io(Ds,Ps),Ps|=r;return xl(e,t,o,n),t.child}function kl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ml(e,t,n,r,o){var i=Do(n)?To:Oo.current;return i=Po(t,i),$i(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||bl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Il(e,t,n,r,o){if(Do(n)){var i=!0;jo(t)}else i=!1;if($i(t,o),null===t.stateNode)Vl(e,t),al(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ti(c):c=Po(t,c=Do(n)?To:Oo.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==r||s!==c)&&ll(t,a,r,c),Ri=!1;var p=t.memoizedState;a.state=p,Vi(t,r,a,o),s=t.memoizedState,l!==r||p!==s||$o.current||Ri?("function"===typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=Ri||il(t,n,l,r,p,s,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Li(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),a.props=c,d=t.pendingProps,p=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=Ti(s):s=Po(t,s=Do(n)?To:Oo.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==d||p!==s)&&ll(t,a,r,s),Ri=!1,p=t.memoizedState,a.state=p,Vi(t,r,a,o);var h=t.memoizedState;l!==d||p!==h||$o.current||Ri?("function"===typeof f&&(rl(t,n,f,r),h=t.memoizedState),(c=Ri||il(t,n,c,r,p,h,s)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return El(e,t,n,r,i,o)}function El(e,t,n,r,o,i){kl(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Lo(t,n,!1),Wl(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function Ol(e){var t=e.stateNode;t.pendingContext?Ao(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ao(0,t.context,!1),Ki(e,t.containerInfo)}function $l(e,t,n,r,o){return hi(),gi(o),t.flags|=256,xl(e,t,n,r),t.child}var Tl,Pl,Dl,Nl,Al={dehydrated:null,treeContext:null,retryLane:0};function Rl(e){return{baseLanes:e,cachePool:null,transitions:null}}function jl(e,t,n){var r,o=t.pendingProps,a=ea.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Io(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Rc(s,o,0,null),e=Ac(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rl(n),t.memoizedState=Al,e):Ll(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=ul(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Rc({mode:"visible",children:r.children},o,0,null),(a=Ac(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&wi(t,e.child,null,l),t.child.memoizedState=Rl(l),t.memoizedState=Al,a);if(0===(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zl(e,t,l,r=ul(a=Error(i(419)),r,void 0))}if(s=0!==(l&e.childLanes),bl||s){if(null!==(r=Os)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),nc(r,e,o,-1))}return gc(),zl(e,t,l,r=ul(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ic.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(qo[Xo++]=Zo,qo[Xo++]=Qo,qo[Xo++]=Ko,Zo=e.id,Qo=e.overflow,Ko=t),t=Ll(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Dc(r,l):(l=Ac(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Rl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Al,o}return e=(l=e.child).sibling,o=Dc(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ll(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&gi(r),wi(t,e.child,null,n),(e=Ll(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Oi(e.return,t,n)}function Hl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Fl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bl(e,n,t);else if(19===e.tag)Bl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Io(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Hl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ul(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ul(t),null;case 1:case 17:return Do(t.type)&&No(),Ul(t),null;case 3:return r=t.stateNode,Zi(),Mo($o),Mo(Oo),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Pl(e,t),Ul(t),null;case 5:Ji(t);var o=Xi(qi.current);if(n=t.type,null!==e&&null!=t.stateNode)Dl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ul(t),null}if(e=Xi(Ui.current),pi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fo]=t,r[ho]=a,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(o=0;o<Ar.length;o++)zr(Ar[o],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":K(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":oe(r,a),zr("invalid",r)}for(var s in ye(n,a),o=null,a)if(a.hasOwnProperty(s)){var c=a[s];"children"===s?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&zr("scroll",r)}switch(n){case"input":U(r),J(r,a,!0);break;case"textarea":U(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fo]=t,e[ho]=r,Tl(e,t,!1,!1),t.stateNode=e;e:{switch(s=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),o=r;break;case"iframe":case"object":case"embed":zr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ar.length;o++)zr(Ar[o],e);o=r;break;case"source":zr("error",e),o=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),o=r;break;case"details":zr("toggle",e),o=r;break;case"input":K(e,r),o=X(e,r),zr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=j({},r,{value:void 0}),zr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),zr("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=u&&"onScroll"===a&&zr("scroll",e):null!=u&&b(e,a,u,s))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ul(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Xi(qi.current),Xi(Ui.current),pi(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Ul(t),null;case 13:if(Mo(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))fi(),hi(),t.flags|=98560,a=!1;else if(a=pi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[fo]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ul(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Ns&&(Ns=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ul(t),null);case 4:return Zi(),Pl(e,t),null===e&&Fr(t.stateNode.containerInfo),Ul(t),null;case 10:return Ei(t.type._context),Ul(t),null;case 19:if(Mo(ea),null===(a=t.memoizedState))return Ul(t),null;if(r=0!==(128&t.flags),null===(s=a.rendering))if(r)Gl(a,!1);else{if(0!==Ns||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ta(e))){for(t.flags|=128,Gl(a,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(s=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,e=s.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Io(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Fs&&(t.flags|=128,r=!0,Gl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return Ul(t),null}else 2*Ze()-a.renderingStartTime>Fs&&1073741824!==n&&(t.flags|=128,r=!0,Gl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,n=ea.current,Io(ea,r?1&n|2:1&n),t):(Ul(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ps)&&(Ul(t),6&t.subtreeFlags&&(t.flags|=8192)):Ul(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function ql(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zi(),Mo($o),Mo(Oo),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Mo(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Mo(ea),null;case 4:return Zi(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Tl=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pl=function(){},Dl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Xi(Ui.current);var i,a=null;switch(n){case"input":o=X(e,o),r=X(e,r),a=[];break;case"select":o=j({},o,{value:void 0}),r=j({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&zr("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xl=!1,Kl=!1,Zl="function"===typeof WeakSet?WeakSet:Set,Ql=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){_c(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){_c(e,t,r)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&es(t,n,i)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function is(e){var t=e.alternate;null!==t&&(e.alternate=null,is(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[mo],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function as(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||as(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:Kl||Jl(n,t);case 6:var r=us,o=ds;us=null,ps(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ft(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,ps(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Kl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&es(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Kl&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){_c(n,t,l)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Kl=(r=Kl)||null!==n.memoizedState,ps(e,t,n),Kl=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zl),t.forEach(function(t){var r=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gs(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(i(160));fs(a,l,o),us=null,ds=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){_c(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ms(t,e),t=t.sibling}function ms(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gs(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(m){_c(e,e.return,m)}try{ns(5,e,e.return)}catch(m){_c(e,e.return,m)}}break;case 1:gs(t,e),vs(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(gs(t,e),vs(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(m){_c(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===a.type&&null!=a.name&&Z(o,a),be(s,l);var u=be(s,a);for(l=0;l<c.length;l+=2){var d=c[l],p=c[l+1];"style"===d?me(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):b(o,d,p,u)}switch(s){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):f!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(m){_c(e,e.return,m)}}break;case 6:if(gs(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){_c(e,e.return,m)}}break;case 3:if(gs(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ft(t.containerInfo)}catch(m){_c(e,e.return,m)}break;case 4:default:gs(t,e),vs(e);break;case 13:gs(t,e),vs(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Hs=Ze())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Kl=(u=Kl)||d,gs(t,e),Kl=u):gs(t,e),vs(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Ql=e,d=e.child;null!==d;){for(p=Ql=d;null!==Ql;){switch(h=(f=Ql).child,f.tag){case 0:case 11:case 14:case 15:ns(4,f,f.return);break;case 1:Jl(f,f.return);var g=f.stateNode;if("function"===typeof g.componentWillUnmount){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){_c(r,n,m)}}break;case 5:Jl(f,f.return);break;case 22:if(null!==f.memoizedState){ws(p);continue}}null!==h?(h.return=f,Ql=h):ws(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=p.stateNode,l=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,s.style.display=ge("display",l))}catch(m){_c(e,e.return,m)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(m){_c(e,e.return,m)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:gs(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(as(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),cs(e,ls(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ss(e,ls(e),a);break;default:throw Error(i(161))}}catch(l){_c(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function ys(e,t,n){Ql=e,bs(e,t,n)}function bs(e,t,n){for(var r=0!==(1&e.mode);null!==Ql;){var o=Ql,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xl;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Kl;l=Xl;var c=Kl;if(Xl=a,(Kl=s)&&!c)for(Ql=o;null!==Ql;)s=(a=Ql).child,22===a.tag&&null!==a.memoizedState?Ss(o):null!==s?(s.return=a,Ql=s):Ss(o);for(;null!==i;)Ql=i,bs(i,t,n),i=i.sibling;Ql=o,Xl=l,Kl=c}xs(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ql=i):xs(e)}}function xs(e){for(;null!==Ql;){var t=Ql;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Kl||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Kl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ft(p)}}}break;default:throw Error(i(163))}Kl||512&t.flags&&os(t)}catch(f){_c(t,t.return,f)}}if(t===e){Ql=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ql=n;break}Ql=t.return}}function ws(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function Ss(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(s){_c(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){_c(t,o,s)}}var i=t.return;try{os(t)}catch(s){_c(t,i,s)}break;case 5:var a=t.return;try{os(t)}catch(s){_c(t,a,s)}}}catch(s){_c(t,t.return,s)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Cs,_s=Math.ceil,ks=x.ReactCurrentDispatcher,Ms=x.ReactCurrentOwner,Is=x.ReactCurrentBatchConfig,Es=0,Os=null,$s=null,Ts=0,Ps=0,Ds=ko(0),Ns=0,As=null,Rs=0,js=0,Ls=0,zs=null,Bs=null,Hs=0,Fs=1/0,Vs=null,Ws=!1,Gs=null,Us=null,Ys=!1,qs=null,Xs=0,Ks=0,Zs=null,Qs=-1,Js=0;function ec(){return 0!==(6&Es)?Ze():-1!==Qs?Qs:Qs=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Es)&&0!==Ts?Ts&-Ts:null!==mi.transition?(0===Js&&(Js=gt()),Js):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function nc(e,t,n,r){if(50<Ks)throw Ks=0,Zs=null,Error(i(185));vt(e,n,r),0!==(2&Es)&&e===Os||(e===Os&&(0===(2&Es)&&(js|=n),4===Ns&&lc(e,Ts)),rc(e,r),1===n&&0===Es&&0===(1&t.mode)&&(Fs=Ze()+500,Bo&&Vo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,s=o[a];-1===s?0!==(l&n)&&0===(l&r)||(o[a]=ft(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=pt(e,e===Os?Ts:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Bo=!0,Fo(e)}(sc.bind(null,e)):Fo(sc.bind(null,e)),ao(function(){0===(6&Es)&&Vo()}),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Oc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Qs=-1,Js=0,0!==(6&Es))throw Error(i(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var r=pt(e,e===Os?Ts:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=Es;Es|=2;var a=hc();for(Os===e&&Ts===t||(Vs=null,Fs=Ze()+500,pc(e,t));;)try{yc();break}catch(s){fc(e,s)}Ii(),ks.current=a,Es=o,null!==$s?t=0:(Os=null,Ts=0,t=Ns)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=ic(e,o))),1===t)throw n=As,pc(e,0),lc(e,r),rc(e,Ze()),n;if(6===t)lc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ic(e,a))),1===t))throw n=As,pc(e,0),lc(e,r),rc(e,Ze()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:wc(e,Bs,Vs);break;case 3:if(lc(e,r),(130023424&r)===r&&10<(t=Hs+500-Ze())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wc.bind(null,e,Bs,Vs),t);break}wc(e,Bs,Vs);break;case 4:if(lc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ze()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_s(r/1960))-r)){e.timeoutHandle=ro(wc.bind(null,e,Bs,Vs),r);break}wc(e,Bs,Vs);break;default:throw Error(i(329))}}}return rc(e,Ze()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=zs;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Bs,Bs=n,null!==t&&ac(t)),e}function ac(e){null===Bs?Bs=e:Bs.push.apply(Bs,e)}function lc(e,t){for(t&=~Ls,t&=~js,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!==(6&Es))throw Error(i(327));Sc();var t=pt(e,0);if(0===(1&t))return rc(e,Ze()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=As,pc(e,0),lc(e,t),rc(e,Ze()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Bs,Vs),rc(e,Ze()),null}function cc(e,t){var n=Es;Es|=1;try{return e(t)}finally{0===(Es=n)&&(Fs=Ze()+500,Bo&&Vo())}}function uc(e){null!==qs&&0===qs.tag&&0===(6&Es)&&Sc();var t=Es;Es|=1;var n=Is.transition,r=bt;try{if(Is.transition=null,bt=1,e)return e()}finally{bt=r,Is.transition=n,0===(6&(Es=t))&&Vo()}}function dc(){Ps=Ds.current,Mo(Ds)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==$s)for(n=$s.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&No();break;case 3:Zi(),Mo($o),Mo(Oo),ra();break;case 5:Ji(r);break;case 4:Zi();break;case 13:case 19:Mo(ea);break;case 10:Ei(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Os=e,$s=e=Dc(e.current,null),Ts=Ps=t,Ns=0,As=null,Ls=js=Rs=0,Bs=zs=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function fc(e,t){for(;;){var n=$s;try{if(Ii(),oa.current=Qa,ua){for(var r=la.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=sa=la=null,da=!1,pa=0,Ms.current=null,null===n||null===n.return){Ns=1,As=t,$s=null;break}e:{var a=e,l=n.return,s=n,c=t;if(t=Ts,s.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=s,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&gl(a,u,t),c=u;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gl(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&s.mode){var v=ml(l);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vl(v,l,s,0,t),gi(cl(c,s));break e}}a=c=cl(c,s),4!==Ns&&(Ns=2),null===zs?zs=[a]:zs.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,fl(0,c,t));break e;case 1:s=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Us||!Us.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Fi(a,hl(a,s,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(x){t=x,$s===n&&null!==n&&($s=n=n.return);continue}break}}function hc(){var e=ks.current;return ks.current=Qa,null===e?Qa:e}function gc(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===Os||0===(268435455&Rs)&&0===(268435455&js)||lc(Os,Ts)}function mc(e,t){var n=Es;Es|=2;var r=hc();for(Os===e&&Ts===t||(Vs=null,pc(e,t));;)try{vc();break}catch(o){fc(e,o)}if(Ii(),Es=n,ks.current=r,null!==$s)throw Error(i(261));return Os=null,Ts=0,Ns}function vc(){for(;null!==$s;)bc($s)}function yc(){for(;null!==$s&&!Xe();)bc($s)}function bc(e){var t=Cs(e.alternate,e,Ps);e.memoizedProps=e.pendingProps,null===t?xc(e):$s=t,Ms.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Yl(n,t,Ps)))return void($s=n)}else{if(null!==(n=ql(n,t)))return n.flags&=32767,void($s=n);if(null===e)return Ns=6,void($s=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void($s=t);$s=t=e}while(null!==t);0===Ns&&(Ns=5)}function wc(e,t,n){var r=bt,o=Is.transition;try{Is.transition=null,bt=1,function(e,t,n,r){do{Sc()}while(null!==qs);if(0!==(6&Es))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Os&&($s=Os=null,Ts=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ys||(Ys=!0,Oc(tt,function(){return Sc(),null})),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Is.transition,Is.transition=null;var l=bt;bt=1;var s=Es;Es|=4,Ms.current=null,function(e,t){if(eo=Wt,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(s=l+o),p!==a||0!==r&&3!==p.nodeType||(c=l+r),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++u===o&&(s=l),f===a&&++d===r&&(c=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===s||-1===c?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:nl(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(w){_c(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}g=ts,ts=!1}(e,n),ms(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,ys(n,e,o),Ke(),Es=s,bt=l,Is.transition=a}else e.current=n;if(Ys&&(Ys=!1,qs=e,Xs=o),a=e.pendingLanes,0===a&&(Us=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ze()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ws)throw Ws=!1,e=Gs,Gs=null,e;0!==(1&Xs)&&0!==e.tag&&Sc(),a=e.pendingLanes,0!==(1&a)?e===Zs?Ks++:(Ks=0,Zs=e):Ks=0,Vo()}(e,t,n,r)}finally{Is.transition=o,bt=r}return null}function Sc(){if(null!==qs){var e=xt(Xs),t=Is.transition,n=bt;try{if(Is.transition=null,bt=16>e?16:e,null===qs)var r=!1;else{if(e=qs,qs=null,Xs=0,0!==(6&Es))throw Error(i(331));var o=Es;for(Es|=4,Ql=e.current;null!==Ql;){var a=Ql,l=a.child;if(0!==(16&Ql.flags)){var s=a.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Ql=u;null!==Ql;){var d=Ql;switch(d.tag){case 0:case 11:case 15:ns(8,d,a)}var p=d.child;if(null!==p)p.return=d,Ql=p;else for(;null!==Ql;){var f=(d=Ql).sibling,h=d.return;if(is(d),d===u){Ql=null;break}if(null!==f){f.return=h,Ql=f;break}Ql=h}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Ql=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Ql=l;else e:for(;null!==Ql;){if(0!==(2048&(a=Ql).flags))switch(a.tag){case 0:case 11:case 15:ns(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Ql=y;break e}Ql=a.return}}var b=e.current;for(Ql=b;null!==Ql;){var x=(l=Ql).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=b;null!==Ql;){if(0!==(2048&(s=Ql).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(S){_c(s,s.return,S)}if(s===l){Ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Ql=w;break e}Ql=s.return}}if(Es=o,Vo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(S){}r=!0}return r}finally{bt=n,Is.transition=t}}return!1}function Cc(e,t,n){e=Bi(e,t=fl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function _c(e,t,n){if(3===e.tag)Cc(e,e,n);else for(;null!==t;){if(3===t.tag){Cc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Us||!Us.has(r))){t=Bi(t,e=hl(t,e=cl(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Os===e&&(Ts&n)===n&&(4===Ns||3===Ns&&(130023424&Ts)===Ts&&500>Ze()-Hs?pc(e,0):Ls|=n),rc(e,t)}function Mc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ai(e,t))&&(vt(e,t,n),rc(e,n))}function Ic(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Mc(e,n)}function Ec(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Mc(e,n)}function Oc(e,t){return Ye(e,t)}function $c(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,n,r){return new $c(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,a){var l=2;if(r=e,"function"===typeof e)Pc(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case C:return Ac(n.children,o,a,t);case _:l=8,o|=8;break;case k:return(e=Tc(12,n,t,2|o)).elementType=k,e.lanes=a,e;case O:return(e=Tc(13,n,t,o)).elementType=O,e.lanes=a,e;case $:return(e=Tc(19,n,t,o)).elementType=$,e.lanes=a,e;case D:return Rc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case M:l=10;break e;case I:l=9;break e;case E:l=11;break e;case T:l=14;break e;case P:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Tc(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ac(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Rc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function jc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function Lc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,a,l,s){return e=new zc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Tc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function Hc(e){if(!e)return Eo;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return Ro(e,n,t)}return t}function Fc(e,t,n,r,o,i,a,l,s){return(e=Bc(n,r,!0,e,0,i,0,l,s)).context=Hc(null),n=e.current,(i=zi(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Vc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=zi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nc(e,o,a,i),Hi(e,o,a)),a}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}Cs=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||$o.current)bl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:Ol(t),hi();break;case 5:Qi(t);break;case 1:Do(t.type)&&jo(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Io(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Io(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?jl(e,t,n):(Io(ea,1&ea.current),null!==(e=Wl(e,t,n))?e.sibling:null);Io(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Fl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Io(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,_l(e,t,n)}return Wl(e,t,n)}(e,t,n);bl=0!==(131072&e.flags)}else bl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var o=Po(t,Oo.current);$i(t,n),o=ma(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ji(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=El(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Pc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===E)return 11;if(e===T)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Ml(null,t,r,e,n);break e;case 1:t=Il(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=Sl(null,t,r,nl(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ml(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Il(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Ol(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Li(e,t),Vi(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=$l(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=$l(e,t,r,n,o=cl(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),r===o){t=Wl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Qi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==a&&no(r,a)&&(t.flags|=32),kl(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ui(t),null;case 13:return jl(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Io(Ci,r._currentValue),r._currentValue=l,null!==a)if(lr(a.value,l)){if(a.children===o.children&&!$o.current){t=Wl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){l=a.child;for(var c=s.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=zi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Oi(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Oi(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,$i(t,n),r=r(o=Ti(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Sl(e,t,r,o=nl(r.type,o),n);case 15:return Cl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Vl(e,t),t.tag=1,Do(r)?(e=!0,jo(t)):e=!1,$i(t,n),al(t,r,o),sl(t,r,o,n),El(null,t,r,!0,e,n);case 19:return Fl(e,t,n);case 22:return _l(e,t,n)}throw Error(i(156,t.tag))};var Yc="function"===typeof reportError?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Wc(a);l.call(e)}}Vc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Wc(a);i.call(e)}}var a=Fc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[go]=a.current,Fr(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Wc(s);l.call(e)}}var s=Bc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=s,e[go]=s.current,Fr(8===e.nodeType?e.parentNode:e),uc(function(){Vc(t,s,n,r)}),s}(n,t,e,o,r);return Wc(a)}Xc.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Vc(e,t,null,null)},Xc.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){Vc(null,e,null,null)}),t[go]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&jt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),0===(6&Es)&&(Fs=Ze()+500,Vo()))}break;case 13:uc(function(){var t=Ai(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),Uc(e,1)}},St=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)nc(t,e,134217728,ec());Uc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tc(e),n=Ai(e,t);if(null!==n)nc(n,e,t,ec());Uc(e,t)}},_t=function(){return bt},kt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));Y(r),Q(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=cc,Oe=uc;var eu={usingClientEntryPoint:!1,Events:[xo,wo,So,Me,Ie,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(i(299));var n=!1,r="",o=Yc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Bc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Fr(8===e.nodeType?e.parentNode:e),new qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",l=Yc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Fc(t,null,e,1,null!=n?n:null,o,0,a,l),e[go]=t.current,Fr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc(function(){Jc(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},2897:(e,t,n)=>{var r=n(3693);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e},e.exports.__esModule=!0,e.exports.default=e.exports},2956:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeSensorId=t.SensorTabIndex=t.SensorClassName=void 0;t.SizeSensorId="size-sensor-id";t.SensorClassName="size-sensor-object";t.SensorTabIndex="-1"},3290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commonLocale=void 0;t.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}},3362:(e,t,n)=>{"use strict";t.IU=t.oI=void 0;var r=n(8128);t.oI=function(e,t){var n=(0,r.getSensor)(e);return n.bind(t),function(){n.unbind(t)}};t.IU=function(e){var t=(0,r.getSensor)(e);(0,r.removeSensor)(t)}},3693:(e,t,n)=>{var r=n(7736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},3930:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.SHA256,l=i.HMAC,s=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=l.create(n.hasher,e),i=o.create(),a=o.create([1]),s=i.words,c=a.words,u=n.keySize,d=n.iterations;s.length<u;){var p=r.update(t).finalize(a);r.reset();for(var f=p.words,h=f.length,g=p,m=1;m<d;m++){g=r.finalize(g),r.reset();for(var v=g.words,y=0;y<h;y++)f[y]^=v[y]}i.concat(p),c[0]++}return i.sigBytes=4*u,i}});t.PBKDF2=function(e,t,n){return s.create(n).compute(e,t)}}(),e.PBKDF2}(n(4488),n(6368),n(4220))},4087:function(e,t,n){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(n(4488),n(2238))},4199:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,l=[];!function(){for(var e=0;e<64;e++)l[e]=4294967296*t.abs(t.sin(e+1))|0}();var s=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=e[t+0],s=e[t+1],f=e[t+2],h=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],x=e[t+9],w=e[t+10],S=e[t+11],C=e[t+12],_=e[t+13],k=e[t+14],M=e[t+15],I=i[0],E=i[1],O=i[2],$=i[3];I=c(I,E,O,$,a,7,l[0]),$=c($,I,E,O,s,12,l[1]),O=c(O,$,I,E,f,17,l[2]),E=c(E,O,$,I,h,22,l[3]),I=c(I,E,O,$,g,7,l[4]),$=c($,I,E,O,m,12,l[5]),O=c(O,$,I,E,v,17,l[6]),E=c(E,O,$,I,y,22,l[7]),I=c(I,E,O,$,b,7,l[8]),$=c($,I,E,O,x,12,l[9]),O=c(O,$,I,E,w,17,l[10]),E=c(E,O,$,I,S,22,l[11]),I=c(I,E,O,$,C,7,l[12]),$=c($,I,E,O,_,12,l[13]),O=c(O,$,I,E,k,17,l[14]),I=u(I,E=c(E,O,$,I,M,22,l[15]),O,$,s,5,l[16]),$=u($,I,E,O,v,9,l[17]),O=u(O,$,I,E,S,14,l[18]),E=u(E,O,$,I,a,20,l[19]),I=u(I,E,O,$,m,5,l[20]),$=u($,I,E,O,w,9,l[21]),O=u(O,$,I,E,M,14,l[22]),E=u(E,O,$,I,g,20,l[23]),I=u(I,E,O,$,x,5,l[24]),$=u($,I,E,O,k,9,l[25]),O=u(O,$,I,E,h,14,l[26]),E=u(E,O,$,I,b,20,l[27]),I=u(I,E,O,$,_,5,l[28]),$=u($,I,E,O,f,9,l[29]),O=u(O,$,I,E,y,14,l[30]),I=d(I,E=u(E,O,$,I,C,20,l[31]),O,$,m,4,l[32]),$=d($,I,E,O,b,11,l[33]),O=d(O,$,I,E,S,16,l[34]),E=d(E,O,$,I,k,23,l[35]),I=d(I,E,O,$,s,4,l[36]),$=d($,I,E,O,g,11,l[37]),O=d(O,$,I,E,y,16,l[38]),E=d(E,O,$,I,w,23,l[39]),I=d(I,E,O,$,_,4,l[40]),$=d($,I,E,O,a,11,l[41]),O=d(O,$,I,E,h,16,l[42]),E=d(E,O,$,I,v,23,l[43]),I=d(I,E,O,$,x,4,l[44]),$=d($,I,E,O,C,11,l[45]),O=d(O,$,I,E,M,16,l[46]),I=p(I,E=d(E,O,$,I,f,23,l[47]),O,$,a,6,l[48]),$=p($,I,E,O,y,10,l[49]),O=p(O,$,I,E,k,15,l[50]),E=p(E,O,$,I,m,21,l[51]),I=p(I,E,O,$,C,6,l[52]),$=p($,I,E,O,h,10,l[53]),O=p(O,$,I,E,w,15,l[54]),E=p(E,O,$,I,s,21,l[55]),I=p(I,E,O,$,b,6,l[56]),$=p($,I,E,O,M,10,l[57]),O=p(O,$,I,E,v,15,l[58]),E=p(E,O,$,I,_,21,l[59]),I=p(I,E,O,$,g,6,l[60]),$=p($,I,E,O,S,10,l[61]),O=p(O,$,I,E,f,15,l[62]),E=p(E,O,$,I,x,21,l[63]),i[0]=i[0]+I|0,i[1]=i[1]+E|0,i[2]=i[2]+O|0,i[3]=i[3]+$|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var l=this._hash,s=l.words,c=0;c<4;c++){var u=s[c];s[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return l},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,o,i,a){var l=e+(t&n|~t&r)+o+a;return(l<<i|l>>>32-i)+t}function u(e,t,n,r,o,i,a){var l=e+(t&r|n&~r)+o+a;return(l<<i|l>>>32-i)+t}function d(e,t,n,r,o,i,a){var l=e+(t^n^r)+o+a;return(l<<i|l>>>32-i)+t}function p(e,t,n,r,o,i,a){var l=e+(n^(t|~r))+o+a;return(l<<i|l>>>32-i)+t}n.MD5=i._createHelper(s),n.HmacMD5=i._createHmacHelper(s)}(Math),e.MD5}(n(4488))},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:n,type:e,key:a,ref:l,props:i,_owner:C.current}}function M(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var I=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function O(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return a=a(s=e),e=""===i?"."+E(s,0):i,w(a)?(o="",null!=e&&(o=e.replace(I,"$&/")+"/"),O(a,t,o,"",function(e){return e})):null!=a&&(M(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),t.push(a)),1;if(s=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var u=i+E(l=e[c],c);s+=O(l,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(l=e.next()).done;)s+=O(l=l.value,t,o,u=i+E(l,c++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function $(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",function(e){return t.call(n,e,o++)}),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},D={transition:null},N={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:D,ReactCurrentOwner:C};function A(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:$,forEach:function(e,t,n){$(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $(e,function(){t++}),t},toArray:function(e){return $(e,function(e){return e})||[]},only:function(e){if(!M(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=A,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=C.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)S.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=M,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=A,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},4220:function(e,t,n){e.exports=function(e){!function(){var t=e,n=t.lib.Base,r=t.enc.Utf8;t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,o=4*n;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),l=i.words,s=a.words,c=0;c<n;c++)l[c]^=1549556828,s[c]^=909522486;i.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()}(n(4488))},4327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}},4391:(e,t,n)=>{"use strict";var r=n(7950);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4423:function(e,t,n){e.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(n(4488),n(2238))},4488:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(477)}catch(m){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},l=a.lib={},s=l.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var l=0;l<o;l+=4)t[r+l>>>2]=n[l>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},h=l.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,l=i/(4*a),s=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,u=e.min(4*s,i);if(s){for(var d=0;d<s;d+=a)this._doProcessBlock(o,d);n=o.splice(0,s),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(l.Hasher=h.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math);return e}()},4503:function(e,t,n){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],o=0;o<t;o++)r[o>>>2]|=e[o]<<24-o%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray}(n(4488))},4646:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var l=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=l<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var l=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<r;s++)i.push(o.charAt(l>>>6*(3-s)&63));var c=o.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,o=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<o.length;a++)i[o.charCodeAt(a)]=a}var l=o.charAt(64);if(l){var s=e.indexOf(l);-1!==s&&(n=s)}return r(e,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(n(4488))},4708:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex}(n(4488),n(2238))},4720:(e,t,n)=>{"use strict";var r=n(4994).default;t.A=void 0;var o=r(n(4867)),i=r(n(1543)),a=r(n(6866)),l=r(n(6871));const s="${label}\u4e0d\u662f\u4e00\u4e2a\u6709\u6548\u7684${type}",c={locale:"zh-cn",Pagination:o.default,DatePicker:a.default,TimePicker:l.default,Calendar:i.default,global:{placeholder:"\u8bf7\u9009\u62e9",close:"\u5173\u95ed"},Table:{filterTitle:"\u7b5b\u9009",filterConfirm:"\u786e\u5b9a",filterReset:"\u91cd\u7f6e",filterEmptyText:"\u65e0\u7b5b\u9009\u9879",filterCheckAll:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7b5b\u9009\u9879\u4e2d\u641c\u7d22",emptyText:"\u6682\u65e0\u6570\u636e",selectAll:"\u5168\u9009\u5f53\u9875",selectInvert:"\u53cd\u9009\u5f53\u9875",selectNone:"\u6e05\u7a7a\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5e8f",expand:"\u5c55\u5f00\u884c",collapse:"\u5173\u95ed\u884c",triggerDesc:"\u70b9\u51fb\u964d\u5e8f",triggerAsc:"\u70b9\u51fb\u5347\u5e8f",cancelSort:"\u53d6\u6d88\u6392\u5e8f"},Modal:{okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",justOkText:"\u77e5\u9053\u4e86"},Tour:{Next:"\u4e0b\u4e00\u6b65",Previous:"\u4e0a\u4e00\u6b65",Finish:"\u7ed3\u675f\u5bfc\u89c8"},Popconfirm:{cancelText:"\u53d6\u6d88",okText:"\u786e\u5b9a"},Transfer:{titles:["",""],searchPlaceholder:"\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5f53\u9875",removeCurrent:"\u5220\u9664\u5f53\u9875",selectAll:"\u5168\u9009\u6240\u6709",deselectAll:"\u53d6\u6d88\u5168\u9009",removeAll:"\u5220\u9664\u5168\u90e8",selectInvert:"\u53cd\u9009\u5f53\u9875"},Upload:{uploading:"\u6587\u4ef6\u4e0a\u4f20\u4e2d",removeFile:"\u5220\u9664\u6587\u4ef6",uploadError:"\u4e0a\u4f20\u9519\u8bef",previewFile:"\u9884\u89c8\u6587\u4ef6",downloadFile:"\u4e0b\u8f7d\u6587\u4ef6"},Empty:{description:"\u6682\u65e0\u6570\u636e"},Icon:{icon:"\u56fe\u6807"},Text:{edit:"\u7f16\u8f91",copy:"\u590d\u5236",copied:"\u590d\u5236\u6210\u529f",expand:"\u5c55\u5f00",collapse:"\u6536\u8d77"},Form:{optional:"\uff08\u53ef\u9009\uff09",defaultValidateMessages:{default:"\u5b57\u6bb5\u9a8c\u8bc1\u9519\u8bef${label}",required:"\u8bf7\u8f93\u5165${label}",enum:"${label}\u5fc5\u987b\u662f\u5176\u4e2d\u4e00\u4e2a[${enum}]",whitespace:"${label}\u4e0d\u80fd\u4e3a\u7a7a\u5b57\u7b26",date:{format:"${label}\u65e5\u671f\u683c\u5f0f\u65e0\u6548",parse:"${label}\u4e0d\u80fd\u8f6c\u6362\u4e3a\u65e5\u671f",invalid:"${label}\u662f\u4e00\u4e2a\u65e0\u6548\u65e5\u671f"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label}\u987b\u4e3a${len}\u4e2a\u5b57\u7b26",min:"${label}\u6700\u5c11${min}\u4e2a\u5b57\u7b26",max:"${label}\u6700\u591a${max}\u4e2a\u5b57\u7b26",range:"${label}\u987b\u5728${min}-${max}\u5b57\u7b26\u4e4b\u95f4"},number:{len:"${label}\u5fc5\u987b\u7b49\u4e8e${len}",min:"${label}\u6700\u5c0f\u503c\u4e3a${min}",max:"${label}\u6700\u5927\u503c\u4e3a${max}",range:"${label}\u987b\u5728${min}-${max}\u4e4b\u95f4"},array:{len:"\u987b\u4e3a${len}\u4e2a${label}",min:"\u6700\u5c11${min}\u4e2a${label}",max:"\u6700\u591a${max}\u4e2a${label}",range:"${label}\u6570\u91cf\u987b\u5728${min}-${max}\u4e4b\u95f4"},pattern:{mismatch:"${label}\u4e0e\u6a21\u5f0f\u4e0d\u5339\u914d${pattern}"}}},Image:{preview:"\u9884\u89c8"},QRCode:{expired:"\u4e8c\u7ef4\u7801\u8fc7\u671f",refresh:"\u70b9\u51fb\u5237\u65b0",scanned:"\u5df2\u626b\u63cf"},ColorPicker:{presetEmpty:"\u6682\u65e0",transparent:"\u65e0\u8272",singleColor:"\u5355\u8272",gradientColor:"\u6e10\u53d8\u8272"}};t.A=c},4867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"}},4983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case g:case s:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||w(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===l||e===a||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},5082:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isMemo=function(e){return v(e)===h}},6111:function(e,t,n){e.exports=function(e){return e}(n(4488),n(9749),n(4503),n(8168),n(8523),n(4646),n(4199),n(2002),n(6368),n(1641),n(7061),n(9092),n(6600),n(7423),n(4220),n(3930),n(8211),n(2238),n(1112),n(7962),n(8049),n(6380),n(8099),n(1884),n(9132),n(4423),n(548),n(4087),n(4708),n(7780),n(9475),n(9638),n(8875),n(1659),n(6501))},6368:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,l=[],s=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)e(r)&&(o<8&&(l[o]=n(t.pow(r,.5))),s[o]=n(t.pow(r,1/3)),o++),r++}();var c=[],u=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(l.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],u=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var h=c[f-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,m=c[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=g+c[f-7]+v+c[f-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=p+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&d)+s[f]+c[f];p=d,d=u,u=l,l=a+x|0,a=i,i=o,o=r,r=x+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(u),n.HmacSHA256=i._createHmacHelper(u)}(Math),e.SHA256}(n(4488))},6380:function(e,t,n){e.exports=function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}});return t.Decryptor=n,t}(),e.mode.OFB}(n(4488),n(2238))},6484:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return"W"===t?e+"\u5468":e+"\u65e5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},meridiem:function(e,t){var n=100*e+t;return n<600?"\u51cc\u6668":n<900?"\u65e9\u4e0a":n<1100?"\u4e0a\u5348":n<1300?"\u4e2d\u5348":n<1800?"\u4e0b\u5348":"\u665a\u4e0a"}};return n.default.locale(r,null,!0),r}(n(446))},6501:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const o=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var l={pbox:[],sbox:[]};function s(e,t){let n=t>>24&255,r=t>>16&255,o=t>>8&255,i=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][o],a+=e.sbox[3][i],a}function c(e,t,n){let r,i=t,a=n;for(let l=0;l<o;++l)i^=e.pbox[l],a=s(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[o],i^=e.pbox[o+1],{left:i,right:a}}function u(e,t,n){let r,i=t,a=n;for(let l=o+1;l>1;--l)i^=e.pbox[l],a=s(e,i)^a,r=i,i=a,a=r;return r=i,i=a,a=r,a^=e.pbox[1],i^=e.pbox[0],{left:i,right:a}}function d(e,t,n){for(let o=0;o<4;o++){e.sbox[o]=[];for(let t=0;t<256;t++)e.sbox[o][t]=a[o][t]}let r=0;for(let a=0;a<o+2;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let l=0,s=0,u=0;for(let i=0;i<o+2;i+=2)u=c(e,l,s),l=u.left,s=u.right,e.pbox[i]=l,e.pbox[i+1]=s;for(let o=0;o<4;o++)for(let t=0;t<256;t+=2)u=c(e,l,s),l=u.left,s=u.right,e.sbox[o][t]=l,e.sbox[o][t+1]=s;return!0}var p=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(l,t,n)}},encryptBlock:function(e,t){var n=c(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(l,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(p)}(),e.Blowfish}(n(4488),n(8523),n(4199),n(8211),n(2238))},6556:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},6600:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64.Word,l=n.algo,s=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){s[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,i=0;i<24;i++){for(var l=0,d=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?d^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}u[i]=a.create(l,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var p=l.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=n[o]).high^=a,E.low^=i}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,h=0,g=0;g<5;g++)f^=(E=n[p+5*g]).high,h^=E.low;var m=d[p];m.high=f,m.low=h}for(p=0;p<5;p++){var v=d[(p+4)%5],y=d[(p+1)%5],b=y.high,x=y.low;for(f=v.high^(b<<1|x>>>31),h=v.low^(x<<1|b>>>31),g=0;g<5;g++)(E=n[p+5*g]).high^=f,E.low^=h}for(var w=1;w<25;w++){var S=(E=n[w]).high,C=E.low,_=s[w];_<32?(f=S<<_|C>>>32-_,h=C<<_|S>>>32-_):(f=C<<_-32|S>>>64-_,h=S<<_-32|C>>>64-_);var k=d[c[w]];k.high=f,k.low=h}var M=d[0],I=n[0];for(M.high=I.high,M.low=I.low,p=0;p<5;p++)for(g=0;g<5;g++){var E=n[w=p+5*g],O=d[w],$=d[(p+1)%5+5*g],T=d[(p+2)%5+5*g];E.high=O.high^~$.high&T.high,E.low=O.low^~$.low&T.low}E=n[0];var P=u[l];E.high^=P.high,E.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,l=this.cfg.outputLength/8,s=l/8,c=[],u=0;u<s;u++){var d=a[u],p=d.high,f=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(p)}return new o.init(c,l)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(p),n.HmacSHA3=i._createHmacHelper(p)}(Math),e.SHA3}(n(4488),n(9749))},6865:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var i=r.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=o(this).startOf(t).add(1,t).date(r),a=o(this).endOf(e);if(i.isBefore(a))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),s=this.diff(l,e,!0);return s<0?o(this).startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},6866:(e,t,n)=>{"use strict";var r=n(4994).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1929)),i=r(n(6871));const a={lang:Object.assign({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeQuarterPlaceholder:["\u5f00\u59cb\u5b63\u5ea6","\u7ed3\u675f\u5b63\u5ea6"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"]},o.default),timePickerLocale:Object.assign({},i.default)};a.lang.ok="\u786e\u5b9a";t.default=a},6871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]}},7019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,o=(r=n(4327))&&r.__esModule?r:{default:r},i=n(2956);t.createSensor=function(e,t){var n=void 0,r=[],a=(0,o.default)(function(){r.forEach(function(t){t(e)})}),l=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",a),n.parentNode.removeChild(n),e.removeAttribute(i.SizeSensorId),n=void 0,r=[],t&&t())};return{element:e,bind:function(t){n||(n=function(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",a),a()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",i.SensorClassName),t.setAttribute("tabindex",i.SensorTabIndex),t.type="text/html",e.appendChild(t),t.data="about:blank",t}()),-1===r.indexOf(t)&&r.push(t)},destroy:l,unbind:function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1),0===r.length&&n&&l()}}}},7061:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.Hasher,r=t.x64,o=r.Word,i=r.WordArray,a=t.algo;function l(){return o.create.apply(o,arguments)}var s=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=l()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],u=n[5],d=n[6],p=n[7],f=r.high,h=r.low,g=o.high,m=o.low,v=i.high,y=i.low,b=a.high,x=a.low,w=l.high,S=l.low,C=u.high,_=u.low,k=d.high,M=d.low,I=p.high,E=p.low,O=f,$=h,T=g,P=m,D=v,N=y,A=b,R=x,j=w,L=S,z=C,B=_,H=k,F=M,V=I,W=E,G=0;G<80;G++){var U,Y,q=c[G];if(G<16)Y=q.high=0|e[t+2*G],U=q.low=0|e[t+2*G+1];else{var X=c[G-15],K=X.high,Z=X.low,Q=(K>>>1|Z<<31)^(K>>>8|Z<<24)^K>>>7,J=(Z>>>1|K<<31)^(Z>>>8|K<<24)^(Z>>>7|K<<25),ee=c[G-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[G-7],ae=ie.high,le=ie.low,se=c[G-16],ce=se.high,ue=se.low;Y=(Y=(Y=Q+ae+((U=J+le)>>>0<J>>>0?1:0))+re+((U+=oe)>>>0<oe>>>0?1:0))+ce+((U+=ue)>>>0<ue>>>0?1:0),q.high=Y,q.low=U}var de,pe=j&z^~j&H,fe=L&B^~L&F,he=O&T^O&D^T&D,ge=$&P^$&N^P&N,me=(O>>>28|$<<4)^(O<<30|$>>>2)^(O<<25|$>>>7),ve=($>>>28|O<<4)^($<<30|O>>>2)^($<<25|O>>>7),ye=(j>>>14|L<<18)^(j>>>18|L<<14)^(j<<23|L>>>9),be=(L>>>14|j<<18)^(L>>>18|j<<14)^(L<<23|j>>>9),xe=s[G],we=xe.high,Se=xe.low,Ce=V+ye+((de=W+be)>>>0<W>>>0?1:0),_e=ve+ge;V=H,W=F,H=z,F=B,z=j,B=L,j=A+(Ce=(Ce=(Ce=Ce+pe+((de+=fe)>>>0<fe>>>0?1:0))+we+((de+=Se)>>>0<Se>>>0?1:0))+Y+((de+=U)>>>0<U>>>0?1:0))+((L=R+de|0)>>>0<R>>>0?1:0)|0,A=D,R=N,D=T,N=P,T=O,P=$,O=Ce+(me+he+(_e>>>0<ve>>>0?1:0))+(($=de+_e|0)>>>0<de>>>0?1:0)|0}h=r.low=h+$,r.high=f+O+(h>>>0<$>>>0?1:0),m=o.low=m+P,o.high=g+T+(m>>>0<P>>>0?1:0),y=i.low=y+N,i.high=v+D+(y>>>0<N>>>0?1:0),x=a.low=x+R,a.high=b+A+(x>>>0<R>>>0?1:0),S=l.low=S+L,l.high=w+j+(S>>>0<L>>>0?1:0),_=u.low=_+B,u.high=C+z+(_>>>0<B>>>0?1:0),M=d.low=M+F,d.high=k+H+(M>>>0<F>>>0?1:0),E=p.low=E+W,p.high=I+V+(E>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512}(n(4488),n(9749))},7076:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(i)}}}()},7110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=n(7019),o=n(850),i="undefined"!==typeof ResizeObserver?o.createSensor:r.createSensor;t.createSensor=i},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>i(s,n))c<o&&0>i(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,p=null,f=3,h=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,x(e),!g)if(null!==r(c))g=!0,D(S);else{var t=r(u);null!==t&&N(w,t.startTime-e)}}function S(e,n){g=!1,m&&(m=!1,y(M),M=-1),h=!0;var i=f;try{for(x(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!O());){var a=p.callback;if("function"===typeof a){p.callback=null,f=p.priorityLevel;var l=a(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?p.callback=l:p===r(c)&&o(c),x(n)}else o(c);p=r(c)}if(null!==p)var s=!0;else{var d=r(u);null!==d&&N(w,d.startTime-n),s=!1}return s}finally{p=null,f=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,_=!1,k=null,M=-1,I=5,E=-1;function O(){return!(t.unstable_now()-E<I)}function $(){if(null!==k){var e=t.unstable_now();E=e;var n=!0;try{n=k(!0,e)}finally{n?C():(_=!1,k=null)}}else _=!1}if("function"===typeof b)C=function(){b($)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,P=T.port2;T.port1.onmessage=$,C=function(){P.postMessage(null)}}else C=function(){v($,0)};function D(e){k=e,_||(_=!0,C())}function N(e,n){M=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,D(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(y(M),M=-1):m=!0,N(w,i-a))):(e.sortIndex=l,n(c,e),g||h||(g=!0,D(S))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},7423:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),s=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=i.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,o=e[r];e[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,p,b,x,w,S,C,_,k,M,I,E=this._hash.words,O=u.words,$=d.words,T=a.words,P=l.words,D=s.words,N=c.words;for(S=i=E[0],C=p=E[1],_=b=E[2],k=x=E[3],M=w=E[4],n=0;n<80;n+=1)I=i+e[t+T[n]]|0,I+=n<16?f(p,b,x)+O[0]:n<32?h(p,b,x)+O[1]:n<48?g(p,b,x)+O[2]:n<64?m(p,b,x)+O[3]:v(p,b,x)+O[4],I=(I=y(I|=0,D[n]))+w|0,i=w,w=x,x=y(b,10),b=p,p=I,I=S+e[t+P[n]]|0,I+=n<16?v(C,_,k)+$[0]:n<32?m(C,_,k)+$[1]:n<48?g(C,_,k)+$[2]:n<64?h(C,_,k)+$[3]:f(C,_,k)+$[4],I=(I=y(I|=0,N[n]))+M|0,S=M,M=k,k=y(_,10),_=C,C=I;I=E[1]+b+k|0,E[1]=E[2]+x+M|0,E[2]=E[3]+w+S|0,E[3]=E[4]+i+C|0,E[4]=E[0]+p+_|0,E[0]=I},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var l=i[a];i[a]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return o},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(Math),e.RIPEMD160}(n(4488))},7736:(e,t,n)=>{var r=n(3738).default,o=n(9045);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},7780:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo,o=[],i=[],a=[],l=[],s=[],c=[],u=[],d=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,o[n]=h,i[h]=n;var g=e[n],m=e[g],v=e[m],y=257*e[h]^16843008*h;a[n]=y<<24|y>>>8,l[n]=y<<16|y>>>16,s[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*m^257*g^16843008*n,u[h]=y<<24|y>>>8,d[h]=y<<16|y>>>16,p[h]=y<<8|y>>>24,f[h]=y,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a<r;a++)a<n?i[a]=t[a]:(c=i[a-1],a%n?n>6&&a%n==4&&(c=o[c>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c]):(c=o[(c=c<<8|c>>>24)>>>24]<<24|o[c>>>16&255]<<16|o[c>>>8&255]<<8|o[255&c],c^=h[a/n|0]<<24),i[a]=i[a-n]^c);for(var l=this._invKeySchedule=[],s=0;s<r;s++){if(a=r-s,s%4)var c=i[a];else c=i[a-4];l[s]=s<4||a<=4?c:u[o[c>>>24]]^d[o[c>>>16&255]]^p[o[c>>>8&255]]^f[o[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,l,s,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,p,f,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,l){for(var s=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],f=4,h=1;h<s;h++){var g=r[c>>>24]^o[u>>>16&255]^i[d>>>8&255]^a[255&p]^n[f++],m=r[u>>>24]^o[d>>>16&255]^i[p>>>8&255]^a[255&c]^n[f++],v=r[d>>>24]^o[p>>>16&255]^i[c>>>8&255]^a[255&u]^n[f++],y=r[p>>>24]^o[c>>>16&255]^i[u>>>8&255]^a[255&d]^n[f++];c=g,u=m,d=v,p=y}g=(l[c>>>24]<<24|l[u>>>16&255]<<16|l[d>>>8&255]<<8|l[255&p])^n[f++],m=(l[u>>>24]<<24|l[d>>>16&255]<<16|l[p>>>8&255]<<8|l[255&c])^n[f++],v=(l[d>>>24]<<24|l[p>>>16&255]<<16|l[c>>>8&255]<<8|l[255&u])^n[f++],y=(l[p>>>24]<<24|l[c>>>16&255]<<16|l[u>>>8&255]<<8|l[255&d])^n[f++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=n._createHelper(g)}(),e.AES}(n(4488),n(8523),n(4199),n(8211),n(2238))},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},7962:function(e,t,n){e.exports=function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var l=0;l<r;l++)e[t+l]^=a[l]}});return t.Decryptor=n,t}(),e.mode.CTR}(n(4488),n(2238))},8049:function(e,t,n){e.exports=function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var o=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,o=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),r(a);var l=a.slice(0);n.encryptBlock(l,0);for(var s=0;s<o;s++)e[t+s]^=l[s]}});return t.Decryptor=o,t}(),e.mode.CTRGladman}(n(4488),n(2238))},8097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=1;t.default=function(){return"".concat(n++)}},8099:function(e,t,n){e.exports=function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}(n(4488),n(2238))},8128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSensor=t.getSensor=t.Sensors=void 0;var r,o=(r=n(8097))&&r.__esModule?r:{default:r},i=n(7110),a=n(2956);var l={};function s(e){e&&l[e]&&delete l[e]}t.Sensors=l;t.getSensor=function(e){var t=e.getAttribute(a.SizeSensorId);if(t&&l[t])return l[t];var n=(0,o.default)();e.setAttribute(a.SizeSensorId,n);var r=(0,i.createSensor)(e,function(){return s(n)});return l[n]=r,r};t.removeSensor=function(e){var t=e.element.getAttribute(a.SizeSensorId);e.destroy(),s(t)}},8139:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8168:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.enc;function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=e.charCodeAt(o)<<16-o%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16}(n(4488))},8211:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.MD5,l=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),a=o.create(),l=a.words,s=r.keySize,c=r.iterations;l.length<s;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();a.concat(n)}return a.sigBytes=4*s,a}});t.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)}}(),e.EvpKDF}(n(4488),n(2002),n(4220))},8443:(e,t,n)=>{"use strict";e.exports=n(9717)},8523:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var o=[],i=0,a=0;a<t;a++)if(a%4){var l=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=l<<24-i%4*8,i++}return n.create(o,i)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,l=0;l<4&&i+.75*l<n;l++)o.push(r.charAt(a>>>6*(3-l)&63));var s=r.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<n.length;i++)o[n.charCodeAt(i)]=i}var a=n.charAt(64);if(a){var l=e.indexOf(a);-1!==l&&(t=l)}return r(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(n(4488))},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},8875:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=[],i=[],a=[],l=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)s.call(this);for(n=0;n<8;n++)o[n]^=r[n+4&7];if(t){var i=t.words,a=i[0],l=i[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),d=c>>>16|4294901760&u,p=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=p,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=p,n=0;n<4;n++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)o[r]=16711935&(o[r]<<8|o[r]>>>24)|4278255360&(o[r]<<24|o[r]>>>8),e[t+r]^=o[r]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,l=r>>>16,s=((o*o>>>17)+o*l>>>15)+l*l,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=s^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(l)}(),e.Rabbit}(n(4488),n(8523),n(4199),n(8211),n(2238))},8988:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[r,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,s("week")],ww:[r,s("week")],M:[o,s("month")],MM:[r,s("month")],MMM:[i,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function f(n){var r,o;r=n,o=a&&a.formats;for(var i=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=i.length,s=0;s<l;s+=1){var c=i[s],u=p[c],d=u&&u[0],f=u&&u[1];i[s]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=i[n];if("string"==typeof o)r+=o.length;else{var a=o.regex,s=o.parser,c=e.slice(r),u=a.exec(c)[0];s.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,i=e.args;this.$u=r;var l=i[1];if("string"==typeof l){var s=!0===i[2],c=!0===i[3],u=s||c,d=i[2];c&&(d=i[2]),a=this.$locale(),!s&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),i=o.year,a=o.month,l=o.day,s=o.hours,c=o.minutes,u=o.seconds,d=o.milliseconds,p=o.zone,h=o.week,g=new Date,m=l||(i||a?1:g.getDate()),v=i||g.getFullYear(),y=0;i&&!a||(y=a>0?a-1:g.getMonth());var b,x=s||0,w=c||0,S=u||0,C=d||0;return p?new Date(Date.UTC(v,y,m,x,w,S,C+60*p.offset*1e3)):n?new Date(Date.UTC(v,y,m,x,w,S,C)):(b=new Date(v,y,m,x,w,S,C),h&&(b=r(b).week(h).toDate()),b)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){i[1]=l[h-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},9045:(e,t,n)=>{var r=n(3738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},9092:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,i=t.algo,a=i.SHA512,l=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(l),t.HmacSHA384=a._createHmacHelper(l)}(),e.SHA384}(n(4488),n(9749),n(7061))},9132:function(e,t,n){e.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(n(4488),n(2238))},9223:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}}()},9461:(e,t,n)=>{"use strict";e.exports=n(2330)},9475:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.BlockCipher,i=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],i=0;i<16;i++){var c=o[i]=[],u=s[i];for(n=0;n<24;n++)c[n/6|0]|=t[(l[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(l[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var o=n[r],i=this._lBlock,a=this._rBlock,l=0,s=0;s<8;s++)l|=c[s][((a^o[s])&u[s])>>>0];this._lBlock=a,this._rBlock=i^l}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=o._createHelper(d);var h=i.TripleDES=o.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=o._createHelper(h)}(),e.TripleDES}(n(4488),n(8523),n(4199),n(8211),n(2238))},9638:function(e,t,n){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,o=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;o=0;for(var i=0;o<256;o++){var a=o%n,l=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+l)%256;var s=r[o];r[o]=r[i],r[i]=s}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}t.RC4=n._createHelper(o);var a=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4}(n(4488),n(8523),n(4199),n(8211),n(2238))},9717:(e,t,n)=>{"use strict";var r=n(5043),o=n(9461);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,l=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c(function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,l=n)}var a,l,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,o]);var f=a(e,d[0],d[1]);return s(function(){p.hasValue=!0,p.value=f},[f]),u(f),f}},9749:function(e,t,n){e.exports=function(e){return function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e}(n(4488))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;("object"==typeof l||"function"==typeof l)&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>jM,hasStandardBrowserEnv:()=>zM,hasStandardBrowserWebWorkerEnv:()=>BM,navigator:()=>LM,origin:()=>HM});var t={};n.r(t),n.d(t,{HashMap:()=>zj,RADIAN_TO_DEGREE:()=>Uj,assert:()=>Pj,bind:()=>pj,clone:()=>KR,concatArray:()=>Hj,createCanvas:()=>tj,createHashMap:()=>Bj,createObject:()=>Fj,curry:()=>fj,defaults:()=>ej,disableUserSelect:()=>Vj,each:()=>aj,eqNaN:()=>Mj,extend:()=>JR,filter:()=>cj,find:()=>uj,guid:()=>qR,hasOwn:()=>Wj,indexOf:()=>nj,inherits:()=>rj,isArray:()=>hj,isArrayLike:()=>ij,isBuiltInObject:()=>xj,isDom:()=>Sj,isFunction:()=>gj,isGradientObject:()=>Cj,isImagePatternObject:()=>_j,isNumber:()=>yj,isObject:()=>bj,isPrimitive:()=>Rj,isRegExp:()=>kj,isString:()=>mj,isStringSafe:()=>vj,isTypedArray:()=>wj,keys:()=>dj,logError:()=>XR,map:()=>lj,merge:()=>ZR,mergeAll:()=>QR,mixin:()=>oj,noop:()=>Gj,normalizeCssArray:()=>Tj,reduce:()=>sj,retrieve:()=>Ij,retrieve2:()=>Ej,retrieve3:()=>Oj,setAsPrimitive:()=>Aj,slice:()=>$j,trim:()=>Dj});var r={};n.r(r),n.d(r,{add:()=>Zj,applyTransform:()=>gL,clone:()=>Xj,copy:()=>qj,create:()=>Yj,dist:()=>uL,distSquare:()=>pL,distance:()=>cL,distanceSquare:()=>dL,div:()=>iL,dot:()=>aL,len:()=>eL,lenSquare:()=>nL,length:()=>tL,lengthSquare:()=>rL,lerp:()=>hL,max:()=>vL,min:()=>mL,mul:()=>oL,negate:()=>fL,normalize:()=>sL,scale:()=>lL,scaleAndAdd:()=>Qj,set:()=>Kj,sub:()=>Jj});var o={};n.r(o),n.d(o,{clone:()=>tz,copy:()=>XL,create:()=>YL,identity:()=>qL,invert:()=>ez,mul:()=>KL,rotate:()=>QL,scale:()=>JL,translate:()=>ZL});var i={};n.r(i),n.d(i,{fastLerp:()=>NB,fastMapToColor:()=>AB,lerp:()=>RB,lift:()=>PB,liftColor:()=>WB,lum:()=>HB,mapToColor:()=>jB,modifyAlpha:()=>zB,modifyHSL:()=>LB,parse:()=>$B,random:()=>FB,stringify:()=>BB,toHex:()=>DB});var a={};n.r(a),n.d(a,{dispose:()=>$F,disposeAll:()=>TF,getElementSSRData:()=>NF,getInstance:()=>PF,init:()=>OF,registerPainter:()=>DF,registerSSRDataGetter:()=>AF,version:()=>RF});var l={};n.r(l),n.d(l,{Arc:()=>iJ,BezierCurve:()=>nJ,BoundingRect:()=>fz,Circle:()=>yQ,CompoundPath:()=>lJ,Ellipse:()=>wQ,Group:()=>_F,Image:()=>OG,IncrementalDisplayable:()=>SJ,Line:()=>ZQ,LinearGradient:()=>dJ,OrientedBoundingRect:()=>bJ,Path:()=>SG,Point:()=>rz,Polygon:()=>WQ,Polyline:()=>YQ,RadialGradient:()=>fJ,Rect:()=>jG,Ring:()=>BQ,Sector:()=>jQ,Text:()=>JG,applyTransform:()=>BJ,clipPointsByRect:()=>WJ,clipRectByRect:()=>GJ,createIcon:()=>UJ,extendPath:()=>EJ,extendShape:()=>MJ,getShapeClass:()=>$J,getTransform:()=>zJ,groupTransition:()=>VJ,initProps:()=>rY,isElementRemoved:()=>oY,lineLineIntersect:()=>qJ,linePolygonIntersect:()=>YJ,makeImage:()=>PJ,makePath:()=>TJ,mergePath:()=>NJ,registerShape:()=>OJ,removeElement:()=>iY,removeElementWithFadeOut:()=>lY,resizePath:()=>AJ,setTooltipConfig:()=>KJ,subPixelOptimize:()=>LJ,subPixelOptimizeLine:()=>RJ,subPixelOptimizeRect:()=>jJ,transformDirection:()=>HJ,traverseElements:()=>QJ,updateProps:()=>nY});var s={};n.r(s),n.d(s,{createDimensions:()=>n3,createList:()=>k5,createScale:()=>I5,createSymbol:()=>m1,createTextStyle:()=>O5,dataStack:()=>M5,enableHoverEmphasis:()=>VU,getECData:()=>eU,getLayoutRect:()=>Hq,mixinAxisModelCommonMethods:()=>E5});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:()=>XF,asc:()=>FF,getPercentWithPrecision:()=>UF,getPixelPrecision:()=>GF,getPrecision:()=>VF,getPrecisionSafe:()=>WF,isNumeric:()=>aV,isRadianAroundZero:()=>ZF,linearMap:()=>zF,nice:()=>nV,numericToNumber:()=>iV,parseDate:()=>JF,quantile:()=>rV,quantity:()=>eV,quantityExponent:()=>tV,reformIntervals:()=>oV,remRadian:()=>KF,round:()=>HF});var u={};n.r(u),n.d(u,{format:()=>lq,parse:()=>JF});var d={};n.r(d),n.d(d,{Arc:()=>iJ,BezierCurve:()=>nJ,BoundingRect:()=>fz,Circle:()=>yQ,CompoundPath:()=>lJ,Ellipse:()=>wQ,Group:()=>_F,Image:()=>OG,IncrementalDisplayable:()=>SJ,Line:()=>ZQ,LinearGradient:()=>dJ,Polygon:()=>WQ,Polyline:()=>YQ,RadialGradient:()=>fJ,Rect:()=>jG,Ring:()=>BQ,Sector:()=>jQ,Text:()=>JG,clipPointsByRect:()=>WJ,clipRectByRect:()=>GJ,createIcon:()=>UJ,extendPath:()=>EJ,extendShape:()=>MJ,getShapeClass:()=>$J,getTransform:()=>zJ,initProps:()=>rY,makeImage:()=>PJ,makePath:()=>TJ,mergePath:()=>NJ,registerShape:()=>OJ,resizePath:()=>AJ,updateProps:()=>nY});var p={};n.r(p),n.d(p,{addCommas:()=>_q,capitalFirst:()=>Dq,encodeHTML:()=>PL,formatTime:()=>Pq,formatTpl:()=>$q,getTextRect:()=>V5,getTooltipMarker:()=>Tq,normalizeCssArray:()=>Mq,toCamelCase:()=>kq,truncateText:()=>JV});var f={};n.r(f),n.d(f,{bind:()=>pj,clone:()=>KR,curry:()=>fj,defaults:()=>ej,each:()=>aj,extend:()=>JR,filter:()=>cj,indexOf:()=>nj,inherits:()=>rj,isArray:()=>hj,isFunction:()=>gj,isObject:()=>bj,isString:()=>mj,map:()=>lj,merge:()=>ZR,reduce:()=>sj});var h={};n.r(h),n.d(h,{Axis:()=>r6,ChartView:()=>l0,ComponentModel:()=>Xq,ComponentView:()=>qZ,List:()=>t3,Model:()=>RY,PRIORITY:()=>l2,SeriesModel:()=>UZ,color:()=>i,connect:()=>J2,dataTool:()=>C4,dependencies:()=>t2,disConnect:()=>t4,disconnect:()=>e4,dispose:()=>n4,env:()=>$R,extendChartView:()=>l6,extendComponentModel:()=>o6,extendComponentView:()=>i6,extendSeriesModel:()=>a6,format:()=>p,getCoordinateSystemDimensions:()=>f4,getInstanceByDom:()=>r4,getInstanceById:()=>o4,getMap:()=>w4,graphic:()=>d,helper:()=>s,init:()=>Q2,innerDrawElementOnCanvas:()=>F1,matrix:()=>o,number:()=>c,parseGeoJSON:()=>F5,parseGeoJson:()=>F5,registerAction:()=>d4,registerCoordinateSystem:()=>p4,registerLayout:()=>h4,registerLoading:()=>y4,registerLocale:()=>UY,registerMap:()=>x4,registerPostInit:()=>s4,registerPostUpdate:()=>c4,registerPreprocessor:()=>a4,registerProcessor:()=>l4,registerTheme:()=>i4,registerTransform:()=>S4,registerUpdateLifecycle:()=>u4,registerVisual:()=>g4,setCanvasCreator:()=>b4,setPlatformAPI:()=>AR,throttle:()=>d0,time:()=>u,use:()=>M4,util:()=>f,vector:()=>r,version:()=>e2,zrUtil:()=>t,zrender:()=>a});var g=n(5043),m=n.t(g,2),v=n(4391),y=n(9461),b=n(8443),x=n(7950),w=n.t(x,2);let S=function(e){e()};const C=()=>S,_=Symbol.for("react-redux-context"),k="undefined"!==typeof globalThis?globalThis:{};function M(){var e;if(!g.createContext)return{};const t=null!=(e=k[_])?e:k[_]=new Map;let n=t.get(g.createContext);return n||(n=g.createContext(null),t.set(g.createContext,n)),n}const I=M();function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;return function(){return(0,g.useContext)(e)}}const O=E();let $=()=>{throw new Error("uSES not initialized!")};const T=(e,t)=>e===t;function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;const t=e===I?O:E(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=T,stabilityCheck:o,noopCheck:i}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:l,getServerState:s,stabilityCheck:c,noopCheck:u}=t(),d=((0,g.useRef)(!0),(0,g.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,o])),p=$(l.addNestedSub,a.getState,s||a.getState,d,r);return(0,g.useDebugValue)(p),p}}const D=P();n(219);var N=n(2086);const A={notify(){},get:()=>[]};function R(e,t){let n,r=A,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=C();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=A)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return c}const j=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?g.useLayoutEffect:g.useEffect;let L=null;const z=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:i="once",noopCheck:a="once"}=e;const l=g.useMemo(()=>{const e=R(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:i,noopCheck:a}},[t,o,i,a]),s=g.useMemo(()=>t.getState(),[t]);j(()=>{const{subscription:e}=l;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[l,s]);const c=n||I;return g.createElement(c.Provider,{value:l},r)};function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;const t=e===I?O:E(e);return function(){const{store:e}=t();return e}}const H=B();function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I;const t=e===I?H:B(e);return function(){return t().dispatch}}const V=F();var W;function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function U(e){var t=function(e,t){if("object"!=G(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=G(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==G(t)?t:t+""}function Y(e,t,n){return(t=U(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){if(Array.isArray(e))return e}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){if(e){if("string"==typeof e)return X(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)?X(e,t):void 0}}function Z(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Q(e,t){return q(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||K(e,t)||Z()}function J(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ee(e){return function(e){if(Array.isArray(e))return X(e)}(e)||J(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}(e=>{$=e})(b.useSyncExternalStoreWithSelector),(e=>{L=e})(y.useSyncExternalStore),W=x.unstable_batchedUpdates,S=W;const re=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function oe(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function ie(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var ae="data-rc-order",le="data-rc-priority",se=new Map;function ce(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function ue(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function de(e){return Array.from((se.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!oe())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(ae,a),l&&i&&s.setAttribute(le,"".concat(i)),null!==n&&void 0!==n&&n.nonce&&(s.nonce=null===n||void 0===n?void 0:n.nonce),s.innerHTML=e;var c=ue(t),u=c.firstChild;if(r){if(l){var d=(t.styles||de(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(ae)))return!1;var t=Number(e.getAttribute(le)||0);return i>=t});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ue(t);return(t.styles||de(n)).find(function(n){return n.getAttribute(ce(t))===e})}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=fe(e,t);n&&ue(t).removeChild(n)}function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ue(n),o=de(r),i=ne(ne({},n),{},{styles:o});!function(e,t){var n=se.get(e);if(!n||!ie(document,n)){var r=pe("",t),o=r.parentNode;se.set(e,o),e.removeChild(r)}}(r,i);var a=fe(t,i);if(a){var l,s,c;if(null!==(l=i.csp)&&void 0!==l&&l.nonce&&a.nonce!==(null===(s=i.csp)||void 0===s?void 0:s.nonce))a.nonce=null===(c=i.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==e&&(a.innerHTML=e),a}var u=pe(e,i);return u.setAttribute(ce(i),t),u}function me(e,t,n){var r=g.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}var ve={},ye=[];function be(e,t){}function xe(e,t){}function we(e,t,n){t||ve[n]||(e(!1,n),ve[n]=!0)}function Se(e,t){we(be,e,t)}Se.preMessage=function(e){ye.push(e)},Se.resetWarned=function(){ve={}},Se.noteOnce=function(e,t){we(xe,e,t)};const Ce=Se;const _e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(Ce(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===G(t)&&"object"===G(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,U(r.key),r)}}function Ie(e,t,n){return t&&Me(e.prototype,t),n&&Me(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ee(e){return e.join("%")}var Oe=function(){function e(t){ke(this,e),Y(this,"instanceId",void 0),Y(this,"cache",new Map),Y(this,"extracted",new Set),this.instanceId=t}return Ie(e,[{key:"get",value:function(e){return this.opGet(Ee(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Ee(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const $e=Oe;var Te="data-token-hash",Pe="data-css-hash",De="__cssinjs_instance__";function Ne(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Pe,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[De]=t[De]||e,t[De]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Pe,"]"))).forEach(function(t){var n,o=t.getAttribute(Pe);r[o]?t[De]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new $e(e)}var Ae=g.createContext({hashPriority:"low",cache:Ne(),defaultCache:!0});const Re=Ae;var je="CALC_UNIT";new RegExp(je,"g");var Le=function(){function e(){ke(this,e),Y(this,"cache",void 0),Y(this,"keys",void 0),Y(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Ie(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=Q(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=Q(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();Y(Le,"MAX_CACHE_SIZE",20),Y(Le,"MAX_CACHE_OFFSET",5);var ze=0,Be=function(){function e(t){ke(this,e),Y(this,"derivatives",void 0),Y(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=ze,0===t.length&&t.length,ze+=1}return Ie(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),He=new Le;function Fe(e){var t=Array.isArray(e)?e:[e];return He.has(t)||He.set(t,new Be(t)),He.get(t)}var Ve=new WeakMap,We={};var Ge=new WeakMap;function Ue(e){var t=Ge.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Be?t+=r.id:r&&"object"===G(r)?t+=Ue(r):t+=r}),t=re(t),Ge.set(e,t)),t}function Ye(e,t){return re("".concat(t,"_").concat(Ue(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var qe=oe();function Xe(e){return"number"===typeof e?"".concat(e,"px"):e}function Ke(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=ne(ne({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},Y(Y({},Te,t),Pe,n)),o=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Qe=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=Q(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Je=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=Q(e,2),l=a[0],s=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=s;else if(("string"===typeof s||"number"===typeof s)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var c,u=Ze(l,null===n||void 0===n?void 0:n.prefix);r[u]="number"!==typeof s||null!==n&&void 0!==n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),o[l]="var(".concat(u,")")}}),[o,Qe(r,t,{scope:null===n||void 0===n?void 0:n.scope})]},et=oe()?g.useLayoutEffect:g.useEffect,tt=function(e,t){var n=g.useRef(!0);et(function(){return e(n.current)},t),et(function(){return n.current=!1,function(){n.current=!0}},[])},nt=function(e,t){tt(function(t){if(!t)return e()},t)};const rt=tt;var ot=ne({},m).useInsertionEffect;const it=ot?function(e,t,n){return ot(function(){return e(),t()},n)}:function(e,t,n){g.useMemo(e,n),rt(function(){return t(!0)},n)};var at="undefined"!==typeof ne({},m).useInsertionEffect?function(e){var t=[],n=!1;return g.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const lt=at;const st=function(){return!1};function ct(e,t,n,r,o){var i=g.useContext(Re).cache,a=Ee([e].concat(ee(t))),l=lt([a]),s=(st(),function(e){i.opUpdate(a,function(t){var r=Q(t||[void 0,void 0],2),o=r[0];var i=[void 0===o?0:o,r[1]||n()];return e?e(i):i})});g.useMemo(function(){s()},[a]);var c=i.opGet(a)[1];return it(function(){null===o||void 0===o||o(c)},function(e){return s(function(t){var n=Q(t,2),r=n[0],i=n[1];return e&&0===r&&(null===o||void 0===o||o(c)),[r+1,i]}),function(){i.opUpdate(a,function(t){var n=Q(t||[],2),o=n[0],s=void 0===o?0:o,c=n[1];return 0===s-1?(l(function(){!e&&i.opGet(a)||null===r||void 0===r||r(c,!1)}),null):[s-1,c]})}},[a]),c}var ut={},dt=new Map;function pt(e,t){dt.set(e,(dt.get(e)||0)-1);var n=new Set;dt.forEach(function(e,t){e<=0&&n.add(t)}),dt.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(Te,'="').concat(e,'"]')).forEach(function(e){var n;e[De]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),dt.delete(e)})}var ft="token";function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,g.useContext)(Re),o=r.cache.instanceId,i=r.container,a=n.salt,l=void 0===a?"":a,s=n.override,c=void 0===s?ut:s,u=n.formatToken,d=n.getComputedToken,p=n.cssVar,f=function(e,t){for(var n=Ve,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(We)||n.set(We,e()),n.get(We)}(function(){return Object.assign.apply(Object,[{}].concat(ee(t)))},t),h=Ue(f),m=Ue(c),v=p?Ue(p):"",y=ct(ft,[l,e.id,h,m,v],function(){var t,n=d?d(f,c,e):function(e,t,n,r){var o=ne(ne({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(f,c,e,u),r=ne({},n),o="";if(p){var i=Q(Je(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Ye(n,l);n._tokenKey=a,r._tokenKey=Ye(r,l);var s=null!==(t=null===p||void 0===p?void 0:p.key)&&void 0!==t?t:a;n._themeKey=s,function(e){dt.set(e,(dt.get(e)||0)+1)}(s);var h="".concat("css","-").concat(re(a));return n._hashId=h,[n,h,r,o,(null===p||void 0===p?void 0:p.key)||""]},function(e){pt(e[0]._themeKey,o)},function(e){var t=Q(e,4),n=t[0],r=t[3];if(p&&r){var a=ge(r,re("css-variables-".concat(n._themeKey)),{mark:Pe,prepend:"queue",attachTo:i,priority:-999});a[De]=o,a.setAttribute(Te,n._themeKey)}});return y}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(null,arguments)}const mt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var vt="comm",yt="rule",bt="decl",xt=Math.abs,wt=String.fromCharCode;Object.assign;function St(e){return e.trim()}function Ct(e,t,n){return e.replace(t,n)}function _t(e,t,n){return e.indexOf(t,n)}function kt(e,t){return 0|e.charCodeAt(t)}function Mt(e,t,n){return e.slice(t,n)}function It(e){return e.length}function Et(e,t){return t.push(e),e}function Ot(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function $t(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case bt:return e.return=e.return||e.value;case vt:return"";case"@keyframes":return e.return=e.value+"{"+Ot(e.children,r)+"}";case yt:if(!It(e.value=e.props.join(",")))return""}return It(n=Ot(e.children,r))?e.return=e.value+"{"+n+"}":""}var Tt=1,Pt=1,Dt=0,Nt=0,At=0,Rt="";function jt(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Tt,column:Pt,length:a,return:"",siblings:l}}function Lt(){return At=Nt>0?kt(Rt,--Nt):0,Pt--,10===At&&(Pt=1,Tt--),At}function zt(){return At=Nt<Dt?kt(Rt,Nt++):0,Pt++,10===At&&(Pt=1,Tt++),At}function Bt(){return kt(Rt,Nt)}function Ht(){return Nt}function Ft(e,t){return Mt(Rt,e,t)}function Vt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wt(e){return Tt=Pt=1,Dt=It(Rt=e),Nt=0,[]}function Gt(e){return Rt="",e}function Ut(e){return St(Ft(Nt-1,Xt(91===e?e+2:40===e?e+1:e)))}function Yt(e){for(;(At=Bt())&&At<33;)zt();return Vt(e)>2||Vt(At)>3?"":" "}function qt(e,t){for(;--t&&zt()&&!(At<48||At>102||At>57&&At<65||At>70&&At<97););return Ft(e,Ht()+(t<6&&32==Bt()&&32==zt()))}function Xt(e){for(;zt();)switch(At){case e:return Nt;case 34:case 39:34!==e&&39!==e&&Xt(At);break;case 40:41===e&&Xt(e);break;case 92:zt()}return Nt}function Kt(e,t){for(;zt()&&e+At!==57&&(e+At!==84||47!==Bt()););return"/*"+Ft(t,Nt-1)+"*"+wt(47===e?e:zt())}function Zt(e){for(;!Vt(Bt());)zt();return Ft(e,Nt)}function Qt(e){return Gt(Jt("",null,null,null,[""],e=Wt(e),0,[0],e))}function Jt(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,m=1,v=1,y=0,b="",x=o,w=i,S=r,C=b;m;)switch(h=y,y=zt()){case 40:if(108!=h&&58==kt(C,d-1)){-1!=_t(C+=Ct(Ut(y),"&","&\f"),"&\f",xt(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Ut(y);break;case 9:case 10:case 13:case 32:C+=Yt(h);break;case 92:C+=qt(Ht()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Et(tn(Kt(zt(),Ht()),t,n,s),s),5!=Vt(h||1)&&5!=Vt(Bt()||1)||!It(C)||" "===Mt(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*g:l[c++]=It(C)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==v&&(C=Ct(C,/\f/g,"")),f>0&&(It(C)-d||0===g&&47===h)&&Et(f>32?nn(C+";",r,n,d-1,s):nn(Ct(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Et(S=en(C,t,n,c,u,o,l,b,x=[],w=[],d,i),i),123===y)if(0===u)Jt(C,t,S,S,x,i,d,l,w);else{switch(p){case 99:if(110===kt(C,3))break;case 108:if(97===kt(C,2))break;default:u=0;case 100:case 109:case 115:}u?Jt(e,S,S,r&&Et(en(e,S,S,0,0,o,l,b,o,x=[],d,w),w),o,w,d,l,r?x:w):Jt(C,S,S,S,[""],w,0,l,w)}}c=u=f=0,g=v=1,b=C="",d=a;break;case 58:d=1+It(C),f=h;default:if(g<1)if(123==y)--g;else if(125==y&&0==g++&&125==Lt())continue;switch(C+=wt(y),y*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(It(C)-1)*v,v=1;break;case 64:45===Bt()&&(C+=Ut(zt())),p=Bt(),u=d=It(b=C+=Zt(Ht())),y++;break;case 45:45===h&&2==It(C)&&(g=0)}}return i}function en(e,t,n,r,o,i,a,l,s,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),g=0,m=0,v=0;g<r;++g)for(var y=0,b=Mt(e,p+1,p=xt(m=a[g])),x=e;y<h;++y)(x=St(m>0?f[y]+" "+b:Ct(b,/&\f/g,f[y])))&&(s[v++]=x);return jt(e,t,n,0===o?yt:l,s,c,u,d)}function tn(e,t,n,r){return jt(e,t,n,vt,wt(At),Mt(e,2,-2),0,r)}function nn(e,t,n,r,o){return jt(e,t,n,bt,Mt(e,0,r),Mt(e,r+1,-1),r,o)}var rn,on="data-ant-cssinjs-cache-path",an="_FILE_STYLE__";var ln=!0;function sn(e){return function(){if(!rn&&(rn={},oe())){var e=document.createElement("div");e.className=on,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=Q(e.split(":"),2),n=t[0],r=t[1];rn[n]=r});var n,r=document.querySelector("style[".concat(on,"]"));r&&(ln=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!rn[e]}var cn="_multi_value_";function un(e){return Ot(Qt(e),$t).replace(/\{%%%\:[^;];}/g,";")}function dn(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r,i=e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ee(n.slice(1))).join(" ")});return i.join(",")}var pn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,p=(n.linters,""),f={};function h(t){var r=t.getName(l);if(!f[r]){var o=Q(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];f[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return g.forEach(function(t){var r="string"!==typeof t||o?t:{};if("string"===typeof r)p+="".concat(r,"\n");else if(r._keyframe)h(r);else{var s=d.reduce(function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(s).forEach(function(t){var r=s[t];if("object"!==G(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===G(e)&&e&&("_skip_check_"in e||cn in e)}(r)){var u;function w(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;mt[e]||"number"!==typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(h(t),r=t.getName(l)),p+="".concat(n,":").concat(r,";")}var d=null!==(u=null===r||void 0===r?void 0:r.value)&&void 0!==u?u:r;"object"===G(r)&&null!==r&&void 0!==r&&r[cn]&&Array.isArray(d)?d.forEach(function(e){w(t,e)}):w(t,d)}else{var g=!1,m=t.trim(),v=!1;(o||i)&&l?m.startsWith("@")?g=!0:m=dn("&"===m?"":t,l,c):!o||l||"&"!==m&&""!==m||(m="",v=!0);var y=Q(e(r,n,{root:v,injectHash:g,parentSelectors:[].concat(ee(a),[m])}),2),b=y[0],x=y[1];f=ne(ne({},f),x),p+="".concat(m).concat(b)}})}}),o?s&&(p&&(p="@layer ".concat(s.name," {").concat(p,"}")),s.dependencies&&(f["@layer ".concat(s.name)]=s.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(s.name,";")}).join("\n"))):p="{".concat(p,"}"),[p,f]};function fn(e,t){return re("".concat(e.join("%")).concat(t))}function hn(){return null}var gn="style";function mn(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=void 0===s?0:s,u=g.useContext(Re),d=u.autoClear,p=(u.mock,u.defaultCache),f=u.hashPriority,h=u.container,m=u.ssrInline,v=u.transformers,y=u.linters,b=u.cache,x=u.layer,w=n._tokenKey,S=[w];x&&S.push("layer"),S.push.apply(S,ee(r));var C=qe;var _=ct(gn,S,function(){var e=S.join("|");if(sn(e)){var n=function(e){var t=rn[e],n=null;if(t&&oe())if(ln)n=an;else{var r=document.querySelector("style[".concat(Pe,'="').concat(rn[e],'"]'));r?n=r.innerHTML:delete rn[e]}return[n,t]}(e),a=Q(n,2),s=a[0],u=a[1];if(s)return[s,w,u,{},l,c]}var d=t(),p=Q(pn(d,{hashId:o,hashPriority:f,layer:x?i:void 0,path:r.join("-"),transformers:v,linters:y}),2),h=p[0],g=p[1],m=un(h),b=fn(S,m);return[m,w,b,g,l,c]},function(e,t){var n=Q(e,3)[2];(t||d)&&qe&&he(n,{mark:Pe,attachTo:h})},function(e){var t=Q(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(C&&n!==an){var i={mark:Pe,prepend:!x&&"queue",attachTo:h,priority:c},l="function"===typeof a?a():a;l&&(i.csp={nonce:l});var s=[],u=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?s.push(e):u.push(e)}),s.forEach(function(e){ge(un(o[e]),"_layer-".concat(e),ne(ne({},i),{},{prepend:!0}))});var d=ge(n,r,i);d[De]=b.instanceId,d.setAttribute(Te,w),u.forEach(function(e){ge(un(o[e]),"_effect-".concat(e),i)})}}),k=Q(_,3),M=k[0],I=k[1],E=k[2];return function(e){var t;return t=m&&!C&&p?g.createElement("style",gt({},Y(Y({},Te,I),Pe,E),{dangerouslySetInnerHTML:{__html:M}})):g.createElement(hn,null),g.createElement(g.Fragment,null,t,e)}}var vn="cssVar";const yn=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,i=e.ignore,a=e.token,l=e.scope,s=void 0===l?"":l,c=(0,g.useContext)(Re),u=c.cache.instanceId,d=c.container,p=a._tokenKey,f=[].concat(ee(e.path),[n,s,p]),h=ct(vn,f,function(){var e=t(),a=Q(Je(e,n,{prefix:r,unitless:o,ignore:i,scope:s}),2),l=a[0],c=a[1];return[l,c,fn(f,c),n]},function(e){var t=Q(e,3)[2];qe&&he(t,{mark:Pe,attachTo:d})},function(e){var t=Q(e,3),r=t[1],o=t[2];if(r){var i=ge(r,o,{mark:Pe,prepend:"queue",attachTo:d,priority:-999});i[De]=u,i.setAttribute(Te,n)}});return h};Y(Y(Y({},gn,function(e,t,n){var r=Q(e,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=(n||{}).plain;if(s)return null;var d=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Ke(o,i,a,p,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=Ke(un(l[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}}),[c,a,d]}),ft,function(e,t,n){var r=Q(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,Ke(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),vn,function(e,t,n){var r=Q(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;if(!o)return null;return[-999,i,Ke(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]});var bn=function(){function e(t,n){ke(this,e),Y(this,"name",void 0),Y(this,"style",void 0),Y(this,"_keyframe",!0),this.name=t,this.style=n}return Ie(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const xn=bn;function wn(e){return e.notSplit=!0,e}wn(["borderTop","borderBottom"]),wn(["borderTop"]),wn(["borderBottom"]),wn(["borderLeft","borderRight"]),wn(["borderLeft"]),wn(["borderRight"]);const Sn=(0,g.createContext)({});function Cn(e){return q(e)||J(e)||K(e)||Z()}function _n(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function kn(e,t,n,r){if(!t.length)return n;var o,i=Cn(t),a=i[0],l=i.slice(1);return o=e||"number"!==typeof a?Array.isArray(e)?ee(e):ne({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=kn(o[a],l,n,r),o}function Mn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!_n(e,t.slice(0,-1))?e:kn(e,t,n,r)}function In(e){return Array.isArray(e)?[]:{}}var En="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function On(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=In(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),l=_n(e,n),s=Array.isArray(l);if(s||"object"===G(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=_n(r,n);s?r=Mn(r,n,[]):c&&"object"===G(c)||(r=Mn(r,n,In(l))),En(l).forEach(function(e){t([].concat(ee(n),[e]),a)})}}else r=Mn(r,n,l)}([])}),r}function $n(){}const Tn=g.createContext({}),Pn=()=>{const e=()=>{};return e.deprecated=$n,e},Dn=(0,g.createContext)(void 0);const Nn={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var An={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};const Rn=ne(ne({},An),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),jn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ln={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Rn),timePickerLocale:Object.assign({},jn)},zn="${label} is not a valid ${type}",Bn={locale:"en",Pagination:Nn,DatePicker:Ln,TimePicker:jn,Calendar:Ln,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:zn,method:zn,array:zn,object:zn,number:zn,date:zn,boolean:zn,integer:zn,float:zn,regexp:zn,email:zn,url:zn,hex:zn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Hn=Object.assign({},Bn.Modal),Fn=[];const Vn=()=>Fn.reduce((e,t)=>Object.assign(Object.assign({},e),t),Bn.Modal);function Wn(){return Hn}const Gn=(0,g.createContext)(void 0);const Un=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;g.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return Fn.push(t),Hn=Vn(),()=>{Fn=Fn.filter(e=>e!==t),Hn=Vn()}}Hn=Object.assign({},Bn.Modal)}(null===t||void 0===t?void 0:t.Modal);return e},[t]);const o=g.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return g.createElement(Gn.Provider,{value:o},n)},Yn=Math.round;function qn(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Xn=(e,t,n)=>0===n?e:e/100;function Kn(e,t){const n=t||255;return e>n?n:e<0?0:e}class Zn{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(Y(this,"isValid",!0),Y(this,"r",0),Y(this,"g",0),Y(this,"b",0),Y(this,"a",1),Y(this,"_h",void 0),Y(this,"_s",void 0),Y(this,"_l",void 0),Y(this,"_v",void 0),Y(this,"_max",void 0),Y(this,"_min",void 0),Y(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Zn)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Kn(e.r),this.g=Kn(e.g),this.b=Kn(e.b),this.a="number"===typeof e.a?Kn(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:Yn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:Yn(o("r")),g:Yn(o("g")),b:Yn(o("b")),a:Yn(100*o("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>Yn((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=Yn(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=Yn(100*this.getSaturation()),n=Yn(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Kn(t,n),r}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:o}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"===typeof o?o:1,n<=0){const e=Yn(255*r);this.r=e,this.g=e,this.b=e}let i=0,a=0,l=0;const s=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=u):s>=1&&s<2?(i=u,a=c):s>=2&&s<3?(a=c,l=u):s>=3&&s<4?(a=u,l=c):s>=4&&s<5?(i=u,l=c):s>=5&&s<6&&(i=c,l=u);const d=r-c/2;this.r=Yn(255*(i+d)),this.g=Yn(255*(a+d)),this.b=Yn(255*(l+d))}fromHsv(e){let{h:t,s:n,v:r,a:o}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"===typeof o?o:1;const i=Yn(255*r);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),s=a-l,c=Yn(r*(1-n)*255),u=Yn(r*(1-n*s)*255),d=Yn(r*(1-n*(1-s))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=qn(e,Xn);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=qn(e,Xn);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=qn(e,(e,t)=>t.includes("%")?Yn(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Qn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Jn(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function er(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function tr(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function nr(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Zn(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new Zn({h:Jn(o,i,!0),s:er(o,i,!0),v:tr(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=4;l+=1){var s=new Zn({h:Jn(o,l),s:er(o,l),v:tr(o,l)});n.push(s)}return"dark"===t.theme?Qn.map(function(e){var r=e.index,o=e.amount;return new Zn(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var rr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},or=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];or.primary=or[5];var ir=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ir.primary=ir[5];var ar=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ar.primary=ar[5];var lr=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lr.primary=lr[5];var sr=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];sr.primary=sr[5];var cr=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];cr.primary=cr[5];var ur=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ur.primary=ur[5];var dr=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];dr.primary=dr[5];var pr=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];pr.primary=pr[5];var fr=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];fr.primary=fr[5];var hr=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];hr.primary=hr[5];var gr=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];gr.primary=gr[5];var mr=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];mr.primary=mr[5];var vr={red:or,volcano:ir,orange:ar,gold:lr,yellow:sr,lime:cr,green:ur,cyan:dr,blue:pr,geekblue:fr,purple:hr,magenta:gr,grey:mr},yr=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];yr.primary=yr[5];var br=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];br.primary=br[5];var xr=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];xr.primary=xr[5];var wr=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];wr.primary=wr[5];var Sr=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Sr.primary=Sr[5];var Cr=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Cr.primary=Cr[5];var _r=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];_r.primary=_r[5];var kr=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];kr.primary=kr[5];var Mr=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Mr.primary=Mr[5];var Ir=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Ir.primary=Ir[5];var Er=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Er.primary=Er[5];var Or=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Or.primary=Or[5];var $r=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];$r.primary=$r[5];const Tr={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Pr=Object.assign(Object.assign({},Tr),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const Dr=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const Nr=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function Ar(e){return(e+8)/e}const Rr=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:Ar(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const jr=(e,t)=>new Zn(e).setA(t).toRgbString(),Lr=(e,t)=>new Zn(e).darken(t).toHexString(),zr=e=>{const t=nr(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Br=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:jr(r,.88),colorTextSecondary:jr(r,.65),colorTextTertiary:jr(r,.45),colorTextQuaternary:jr(r,.25),colorFill:jr(r,.15),colorFillSecondary:jr(r,.06),colorFillTertiary:jr(r,.04),colorFillQuaternary:jr(r,.02),colorBgSolid:jr(r,1),colorBgSolidHover:jr(r,.75),colorBgSolidActive:jr(r,.95),colorBgLayout:Lr(n,4),colorBgContainer:Lr(n,0),colorBgElevated:Lr(n,0),colorBgSpotlight:jr(r,.85),colorBgBlur:"transparent",colorBorder:Lr(n,15),colorBorderSecondary:Lr(n,6)}};const Hr=Fe(function(e){rr.pink=rr.magenta,vr.pink=vr.magenta;const t=Object.keys(Tr).map(t=>{const n=e[t]===rr[t]?vr[t]:nr(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),p=n(o),f=n(i),h=n(a),g=n(l),m=r(c,u),v=n(e.colorLink||e.colorInfo),y=new Zn(h[1]).mix(new Zn(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:y,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Zn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:zr,generateNeutralColorPalettes:Br})),Rr(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),Nr(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},Dr(r))}(e))}),Fr=Hr,Vr={token:Pr,override:{override:Pr},hashed:!0},Wr=g.createContext(Vr),Gr="ant",Ur="anticon",Yr=["outlined","borderless","filled","underlined"],qr=g.createContext({getPrefixCls:(e,t)=>t||(e?`${Gr}-${e}`:Gr),iconPrefixCls:Ur}),{Consumer:Xr}=qr,Kr={};function Zr(e){const t=g.useContext(qr),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Kr,styles:Kr},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const Qr=`-ant-${Date.now()}-${Math.random()}`;function Jr(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Zn(e),i=nr(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Zn(t.primaryColor),i=nr(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new Zn(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n  :root {\n    ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n  }\n  `.trim()}(e,t);oe()&&ge(n,`${Qr}-dynamic-theme`)}const eo=g.createContext(!1),to=e=>{let{children:t,disabled:n}=e;const r=g.useContext(eo);return g.createElement(eo.Provider,{value:null!==n&&void 0!==n?n:r},t)},no=eo,ro=g.createContext(void 0),oo=e=>{let{children:t,size:n}=e;const r=g.useContext(ro);return g.createElement(ro.Provider,{value:n||r},t)},io=ro;const ao=function(){return{componentDisabled:(0,g.useContext)(no),componentSize:(0,g.useContext)(io)}},lo=Object.assign({},m),{useId:so}=lo,co="undefined"===typeof so?()=>"":so;var uo=n(8139),po=n.n(uo);function fo(e){return e instanceof HTMLElement||e instanceof SVGElement}function ho(e){return e&&"object"===G(e)&&fo(e.nativeElement)?e.nativeElement:fo(e)?e:null}function go(e){var t,n=ho(e);return n||(e instanceof g.Component?null===(t=x.findDOMNode)||void 0===t?void 0:t.call(x,e):null)}var mo=Symbol.for("react.element"),vo=Symbol.for("react.transitional.element"),yo=Symbol.for("react.fragment");function bo(e){return e&&"object"===G(e)&&(e.$$typeof===mo||e.$$typeof===vo)&&e.type===yo}var xo=Number(g.version.split(".")[0]),wo=function(e,t){"function"===typeof e?e(t):"object"===G(e)&&e&&"current"in e&&(e.current=t)},So=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){wo(t,e)})}},Co=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return me(function(){return So.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},_o=function(e){var t,n;if(!e)return!1;if(ko(e)&&xo>=19)return!0;var r=(0,N.isMemo)(e)?e.type.type:e.type;return!!("function"!==typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===N.ForwardRef)&&!!("function"!==typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===N.ForwardRef)};function ko(e){return(0,g.isValidElement)(e)&&!bo(e)}var Mo=function(e){if(e&&ko(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function Io(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Eo=["children"],Oo=g.createContext({});function $o(e){var t=e.children,n=Io(e,Eo);return g.createElement(Oo.Provider,{value:n},t)}function To(e,t){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},To(e,t)}function Po(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&To(e,t)}function Do(e){return Do=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Do(e)}function No(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(No=function(){return!!e})()}function Ao(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ro(e){var t=No();return function(){var n,r=Do(e);if(t){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==G(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ao(e)}(this,n)}}const jo=function(e){Po(n,e);var t=Ro(n);function n(){return ke(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component);function Lo(e){var t=g.useRef();t.current=e;var n=g.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return n}function zo(e){var t=g.useRef(!1),n=Q(g.useState(e),2),r=n[0],o=n[1];return g.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[r,function(e,n){n&&t.current||o(e)}]}function Bo(e){return void 0!==e}function Ho(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=Q(zo(function(){return Bo(o)?o:Bo(r)?"function"===typeof r?r():r:"function"===typeof e?e():e}),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,p=Lo(i),f=Q(zo([u]),2),h=f[0],g=f[1];return nt(function(){var e=h[0];s!==e&&p(s,e)},[h]),nt(function(){Bo(o)||c(o)},[o]),[d,Lo(function(e,t){c(e,t),g([u],t)})]}var Fo="none",Vo="appear",Wo="enter",Go="leave",Uo="none",Yo="prepare",qo="start",Xo="active",Ko="end",Zo="prepared";function Qo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Jo=function(e,t){var n={animationend:Qo("Animation","AnimationEnd"),transitionend:Qo("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(oe(),"undefined"!==typeof window?window:{}),ei={};if(oe()){var ti=document.createElement("div");ei=ti.style}var ni={};function ri(e){if(ni[e])return ni[e];var t=Jo[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ei)return ni[e]=t[i],ni[e]}return""}var oi=ri("animationend"),ii=ri("transitionend"),ai=!(!oi||!ii),li=oi||"animationend",si=ii||"transitionend";function ci(e,t){if(!e)return null;if("object"===G(e)){var n=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const ui=oe()?g.useLayoutEffect:g.useEffect;var di=function(e){return+setTimeout(e,16)},pi=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(di=function(e){return window.requestAnimationFrame(e)},pi=function(e){return window.cancelAnimationFrame(e)});var fi=0,hi=new Map;function gi(e){hi.delete(e)}var mi=function(e){var t=fi+=1;return function n(r){if(0===r)gi(t),e();else{var o=di(function(){n(r-1)});hi.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};mi.cancel=function(e){var t=hi.get(e);return gi(e),pi(t)};const vi=mi;var yi=[Yo,qo,Xo,Ko],bi=[Yo,Zo],xi=!1;function wi(e){return e===Xo||e===Ko}const Si=function(e,t,n){var r=Q(zo(Uo),2),o=r[0],i=r[1],a=function(){var e=g.useRef(null);function t(){vi.cancel(e.current)}return g.useEffect(function(){return function(){t()}},[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=vi(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]}(),l=Q(a,2),s=l[0],c=l[1];var u=t?bi:yi;return ui(function(){if(o!==Uo&&o!==Ko){var e=u.indexOf(o),t=u[e+1],r=n(o);r===xi?i(t,!0):t&&s(function(e){function n(){e.isCanceled()||i(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,o]),g.useEffect(function(){return function(){c()}},[]),[function(){i(Yo,!0)},o]};function Ci(e,t,n,r){var o=r.motionEnter,i=void 0===o||o,a=r.motionAppear,l=void 0===a||a,s=r.motionLeave,c=void 0===s||s,u=r.motionDeadline,d=r.motionLeaveImmediately,p=r.onAppearPrepare,f=r.onEnterPrepare,h=r.onLeavePrepare,m=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,b=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,S=r.onAppearEnd,C=r.onEnterEnd,_=r.onLeaveEnd,k=r.onVisibleChanged,M=Q(zo(),2),I=M[0],E=M[1],O=function(e){var t=g.useReducer(function(e){return e+1},0),n=Q(t,2)[1],r=g.useRef(e);return[Lo(function(){return r.current}),Lo(function(e){r.current="function"===typeof e?e(r.current):e,n()})]}(Fo),$=Q(O,2),T=$[0],P=$[1],D=Q(zo(null),2),N=D[0],A=D[1],R=T(),j=(0,g.useRef)(!1),L=(0,g.useRef)(null);function z(){return n()}var B=(0,g.useRef)(!1);function H(){P(Fo),A(null,!0)}var F=Lo(function(e){var t=T();if(t!==Fo){var n=z();if(!e||e.deadline||e.target===n){var r,o=B.current;t===Vo&&o?r=null===S||void 0===S?void 0:S(n,e):t===Wo&&o?r=null===C||void 0===C?void 0:C(n,e):t===Go&&o&&(r=null===_||void 0===_?void 0:_(n,e)),o&&!1!==r&&H()}}}),V=function(e){var t=(0,g.useRef)();function n(t){t&&(t.removeEventListener(si,e),t.removeEventListener(li,e))}return g.useEffect(function(){return function(){n(t.current)}},[]),[function(r){t.current&&t.current!==r&&n(t.current),r&&r!==t.current&&(r.addEventListener(si,e),r.addEventListener(li,e),t.current=r)},n]}(F),W=Q(V,1)[0],G=function(e){switch(e){case Vo:return Y(Y(Y({},Yo,p),qo,m),Xo,b);case Wo:return Y(Y(Y({},Yo,f),qo,v),Xo,x);case Go:return Y(Y(Y({},Yo,h),qo,y),Xo,w);default:return{}}},U=g.useMemo(function(){return G(R)},[R]),q=Q(Si(R,!e,function(e){if(e===Yo){var t=U[Yo];return t?t(z()):xi}var n;K in U&&A((null===(n=U[K])||void 0===n?void 0:n.call(U,z(),null))||null);return K===Xo&&R!==Fo&&(W(z()),u>0&&(clearTimeout(L.current),L.current=setTimeout(function(){F({deadline:!0})},u))),K===Zo&&H(),true}),2),X=q[0],K=q[1],Z=wi(K);B.current=Z;var J=(0,g.useRef)(null);ui(function(){if(!j.current||J.current!==t){E(t);var n,r=j.current;j.current=!0,!r&&t&&l&&(n=Vo),r&&t&&i&&(n=Wo),(r&&!t&&c||!r&&d&&!t&&c)&&(n=Go);var o=G(n);n&&(e||o[Yo])?(P(n),X()):P(Fo),J.current=t}},[t]),(0,g.useEffect)(function(){(R===Vo&&!l||R===Wo&&!i||R===Go&&!c)&&P(Fo)},[l,i,c]),(0,g.useEffect)(function(){return function(){j.current=!1,clearTimeout(L.current)}},[]);var ee=g.useRef(!1);(0,g.useEffect)(function(){I&&(ee.current=!0),void 0!==I&&R===Fo&&((ee.current||I)&&(null===k||void 0===k||k(I)),ee.current=!0)},[I,R]);var te=N;return U[Yo]&&K===qo&&(te=ne({transition:"none"},te)),[R,K,te,null!==I&&void 0!==I?I:t]}const _i=function(e){var t=e;"object"===G(e)&&(t=e.transitionSupport);var n=g.forwardRef(function(e,n){var r=e.visible,o=void 0===r||r,i=e.removeOnLeave,a=void 0===i||i,l=e.forceRender,s=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,p=function(e,n){return!(!e.motionName||!t||!1===n)}(e,g.useContext(Oo).motion),f=(0,g.useRef)(),h=(0,g.useRef)();var m=Q(Ci(p,o,function(){try{return f.current instanceof HTMLElement?f.current:go(h.current)}catch(e){return null}},e),4),v=m[0],y=m[1],b=m[2],x=m[3],w=g.useRef(x);x&&(w.current=!0);var S,C=g.useCallback(function(e){f.current=e,wo(n,e)},[n]),_=ne(ne({},d),{},{visible:o});if(s)if(v===Fo)S=x?s(ne({},_),C):!a&&w.current&&u?s(ne(ne({},_),{},{className:u}),C):l||!a&&!u?s(ne(ne({},_),{},{style:{display:"none"}}),C):null;else{var k;y===Yo?k="prepare":wi(y)?k="active":y===qo&&(k="start");var M=ci(c,"".concat(v,"-").concat(k));S=s(ne(ne({},_),{},{className:po()(ci(c,v),Y(Y({},M,M&&k),c,"string"===typeof c)),style:b}),C)}else S=null;g.isValidElement(S)&&_o(S)&&(Mo(S)||(S=g.cloneElement(S,{ref:C})));return g.createElement(jo,{ref:h},S)});return n.displayName="CSSMotion",n}(ai);var ki="add",Mi="keep",Ii="remove",Ei="removed";function Oi(e){var t;return ne(ne({},t=e&&"object"===G(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function $i(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Oi)}var Ti=["component","children","onVisibleChanged","onAllRemoved"],Pi=["status"],Di=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Ni=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_i,t=function(t){Po(r,t);var n=Ro(r);function r(){var e;ke(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return Y(Ao(e=n.call.apply(n,[this].concat(o))),"state",{keyEntities:[]}),Y(Ao(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:ne(ne({},e),{},{status:Ei})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==Ei}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return Ie(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,o=r.component,i=r.children,a=r.onVisibleChanged,l=(r.onAllRemoved,Io(r,Ti)),s=o||g.Fragment,c={};return Di.forEach(function(e){c[e]=l[e],delete l[e]}),delete l.keys,g.createElement(s,l,n.map(function(n,r){var o=n.status,l=Io(n,Pi),s=o===ki||o===Mi;return g.createElement(e,gt({},c,{key:l.key,visible:s,eventProps:l,onVisibleChanged:function(e){null===a||void 0===a||a(e,{key:l.key}),e||t.removeKey(l.key)}}),function(e,t){return i(ne(ne({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=$i(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=$i(e),a=$i(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return ne(ne({},e),{},{status:ki})})),r=i),n.push(ne(ne({},l),{},{status:Mi})),r+=1,t=!0;break}}t||n.push(ne(ne({},e),{},{status:Ii}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return ne(ne({},e),{},{status:ki})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==Ii})).forEach(function(t){t.key===e&&(t.status=Mi)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==Ei||e.status!==Ii})}}}]),r}(g.Component);return Y(t,"defaultProps",{component:"div"}),t}(ai),Ai=_i;function Ri(e){return e>=0&&e<=255}const ji=function(e,t){const{r:n,g:r,b:o,a:i}=new Zn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Zn(t).toRgb();for(let c=.01;c<=1;c+=.01){const e=Math.round((n-a*(1-c))/c),t=Math.round((r-l*(1-c))/c),i=Math.round((o-s*(1-c))/c);if(Ri(e)&&Ri(t)&&Ri(i))return new Zn({r:e,g:t,b:i,a:Math.round(100*c)/100}).toRgbString()}return new Zn({r:n,g:r,b:o,a:1}).toRgbString()};var Li=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function zi(e){const{override:t}=e,n=Li(e,["override"]),r=Object.assign({},t);Object.keys(Pr).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ji(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ji(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ji(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ji(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n      0 1px 2px -2px ${new Zn("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new Zn("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new Zn("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Bi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Hi={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Fi={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Vi={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Wi=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Bi(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=zi(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e;const{theme:r}=n,o=Bi(n,["theme"]);let i=o;r&&(i=Wi(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i}),a};function Gi(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=g.useContext(Wr),i=`5.26.6-${t||""}`,a=n||Fr,[l,s,c]=ht(a,[Pr,e],{salt:i,override:r,getComputedToken:Wi,formatToken:zi,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Hi,ignore:Fi,preserve:Vi}});return[a,c,t?s:"",l,o]}const Ui=g.createContext(!0);function Yi(e){const t=g.useContext(Ui),{children:n}=e,[,r]=Gi(),{motion:o}=r,i=g.useRef(!1);return i.current||(i.current=t!==o),i.current?g.createElement(Ui.Provider,{value:o},g.createElement($o,{motion:o},n)):n}const qi=()=>null,Xi={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ki=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Zi=(e,t)=>({outline:`${Xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!==t&&void 0!==t?t:1,transition:"outline-offset 0s, outline 0s"}),Qi=(e,t)=>({"&:focus-visible":Object.assign({},Zi(e,t))}),Ji=e=>({[`.${e}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),ea=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Qi(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ta=(e,t)=>{const[n,r]=Gi();return mn({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},()=>[Ji(e)])};var na=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ra=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let oa,ia,aa,la;function sa(){return oa||Gr}function ca(){return ia||Ur}const ua=()=>({getPrefixCls:(e,t)=>t||(e?`${sa()}-${e}`:sa()),getIconPrefixCls:ca,getRootPrefixCls:()=>oa||sa(),getTheme:()=>aa,holderRender:la}),da=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,splitter:d,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:x,componentDisabled:w,segmented:S,statistic:C,spin:_,calendar:k,carousel:M,cascader:I,collapse:E,typography:O,checkbox:$,descriptions:T,divider:P,drawer:D,skeleton:N,steps:A,image:R,layout:j,list:L,mentions:z,modal:B,progress:H,result:F,slider:V,breadcrumb:W,menu:G,pagination:U,input:Y,textArea:q,empty:X,badge:K,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:se,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:he,flex:ge,wave:ve,dropdown:ye,warning:be,tour:xe,tooltip:we,popover:Se,popconfirm:Ce,floatButtonGroup:ke,variant:Me,inputNumber:Ie,treeSelect:Ee}=e,Oe=g.useCallback((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||y.getPrefixCls("");return t?`${o}-${t}`:o},[y.getPrefixCls,e.prefixCls]),$e=b||y.iconPrefixCls||Ur,Te=n||y.csp;ta($e,Te);const Pe=function(e,t,n){var r;Pn("ConfigProvider");const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},Vr),{hashed:null!==(r=null===t||void 0===t?void 0:t.hashed)&&void 0!==r?r:Vr.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),a=co();return me(()=>{var r,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])});const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof i.cssVar?i.cssVar:{}),"object"===typeof o.cssVar?o.cssVar:{}),{key:"object"===typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>{const r=t[n];return!_e(e,r,!0)}))}(x,y.theme,{prefixCls:Oe("")});const De={csp:Te,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:c,space:u,splitter:d,virtual:p,popupMatchSelectWidth:null!==h&&void 0!==h?h:f,popupOverflow:m,getPrefixCls:Oe,iconPrefixCls:$e,theme:Pe,segmented:S,statistic:C,spin:_,calendar:k,carousel:M,cascader:I,collapse:E,typography:O,checkbox:$,descriptions:T,divider:P,drawer:D,skeleton:N,steps:A,image:R,input:Y,textArea:q,layout:j,list:L,mentions:z,modal:B,progress:H,result:F,slider:V,breadcrumb:W,menu:G,pagination:U,empty:X,badge:K,radio:Z,rate:Q,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ie,tabs:ae,timeline:le,timePicker:se,upload:ce,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:he,flex:ge,wave:ve,dropdown:ye,warning:be,tour:xe,tooltip:we,popover:Se,popconfirm:Ce,floatButtonGroup:ke,variant:Me,inputNumber:Ie,treeSelect:Ee};const Ne=Object.assign({},y);Object.keys(De).forEach(e=>{void 0!==De[e]&&(Ne[e]=De[e])}),ra.forEach(t=>{const n=e[t];n&&(Ne[t]=n)}),"undefined"!==typeof r&&(Ne.button=Object.assign({autoInsertSpace:r},Ne.button));const Ae=me(()=>Ne,Ne,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:je}=g.useContext(Re),Le=g.useMemo(()=>({prefixCls:$e,csp:Te,layer:je?"antd":void 0}),[$e,Te,je]);let ze=g.createElement(g.Fragment,null,g.createElement(qi,{dropdownMatchSelectWidth:f}),t);const Be=g.useMemo(()=>{var e,t,n,r;return On((null===(e=Bn.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Ae.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Ae.form)||void 0===r?void 0:r.validateMessages)||{},(null===a||void 0===a?void 0:a.validateMessages)||{})},[Ae,null===a||void 0===a?void 0:a.validateMessages]);Object.keys(Be).length>0&&(ze=g.createElement(Dn.Provider,{value:Be},ze)),l&&(ze=g.createElement(Un,{locale:l,_ANT_MARK__:"internalMark"},ze)),($e||Te)&&(ze=g.createElement(Sn.Provider,{value:Le},ze)),s&&(ze=g.createElement(oo,{size:s},ze)),ze=g.createElement(Yi,null,ze);const He=g.useMemo(()=>{const e=Pe||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=na(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Fe(t):Fr,l={};Object.entries(r||{}).forEach(e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"===typeof r.algorithm)&&(r.theme=Fe(r.algorithm)),delete r.algorithm),l[t]=r});const s=Object.assign(Object.assign({},Pr),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[Pe]);return x&&(ze=g.createElement(Wr.Provider,{value:He},ze)),Ae.warning&&(ze=g.createElement(Tn.Provider,{value:Ae.warning},ze)),void 0!==w&&(ze=g.createElement(to,{disabled:w},ze)),g.createElement(qr.Provider,{value:Ae},ze)},pa=e=>{const t=g.useContext(qr),n=g.useContext(Gn);return g.createElement(da,Object.assign({parentContext:t,legacyLocale:n},e))};pa.ConfigContext=qr,pa.SizeContext=io,pa.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(oa=t),void 0!==n&&(ia=n),"holderRender"in e&&(la=o),r&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?aa=r:Jr(sa(),r))},pa.useConfig=ao,Object.defineProperty(pa,"SizeContext",{get:()=>io});const fa=pa;var ha=n(4720);function ga(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(e){return"'"+e+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ma(e){return!!e&&!!e[il]}function va(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===al}(e)||Array.isArray(e)||!!e[ol]||!!(null===(t=e.constructor)||void 0===t?void 0:t[ol])||_a(e)||ka(e))}function ya(e,t,n){void 0===n&&(n=!1),0===ba(e)?(n?Object.keys:ll)(e).forEach(function(r){n&&"symbol"==typeof r||t(r,e[r],e)}):e.forEach(function(n,r){return t(r,n,e)})}function ba(e){var t=e[il];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:_a(e)?2:ka(e)?3:0}function xa(e,t){return 2===ba(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wa(e,t){return 2===ba(e)?e.get(t):e[t]}function Sa(e,t,n){var r=ba(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Ca(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function _a(e){return el&&e instanceof Map}function ka(e){return tl&&e instanceof Set}function Ma(e){return e.o||e.t}function Ia(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sl(e);delete t[il];for(var n=ll(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ea(e,t){return void 0===t&&(t=!1),$a(e)||ma(e)||!va(e)||(ba(e)>1&&(e.set=e.add=e.clear=e.delete=Oa),Object.freeze(e),t&&ya(e,function(e,t){return Ea(t,!0)},!0)),e}function Oa(){ga(2)}function $a(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Ta(e){var t=cl[e];return t||ga(18,e),t}function Pa(e,t){cl[e]||(cl[e]=t)}function Da(){return Qa}function Na(e,t){t&&(Ta("Patches"),e.u=[],e.s=[],e.v=t)}function Aa(e){Ra(e),e.p.forEach(La),e.p=null}function Ra(e){e===Qa&&(Qa=e.l)}function ja(e){return Qa={p:[],l:Qa,h:e,m:!0,_:0}}function La(e){var t=e[il];0===t.i||1===t.i?t.j():t.g=!0}function za(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Ta("ES5").S(t,e,r),r?(n[il].P&&(Aa(t),ga(4)),va(e)&&(e=Ba(t,e),t.l||Fa(t,e)),t.u&&Ta("Patches").M(n[il].t,e,t.u,t.s)):e=Ba(t,n,[]),Aa(t),t.u&&t.v(t.u,t.s),e!==rl?e:void 0}function Ba(e,t,n){if($a(t))return t;var r=t[il];if(!r)return ya(t,function(o,i){return Ha(e,r,t,o,i,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Fa(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ia(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),ya(i,function(t,i){return Ha(e,r,o,t,i,n,a)}),Fa(e,o,!1),n&&e.u&&Ta("Patches").N(r,n,e.u,e.s)}return r.o}function Ha(e,t,n,r,o,i,a){if(ma(o)){var l=Ba(e,o,i&&t&&3!==t.i&&!xa(t.R,r)?i.concat(r):void 0);if(Sa(n,r,l),!ma(l))return;e.m=!1}else a&&n.add(o);if(va(o)&&!$a(o)){if(!e.h.D&&e._<1)return;Ba(e,o),t&&t.A.l||Fa(e,o)}}function Fa(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Ea(t,n)}function Va(e,t){var n=e[il];return(n?Ma(n):e)[t]}function Wa(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ga(e){e.P||(e.P=!0,e.l&&Ga(e.l))}function Ua(e){e.o||(e.o=Ia(e.t))}function Ya(e,t,n){var r=_a(t)?Ta("MapSet").F(t,n):ka(t)?Ta("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Da(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=ul;n&&(o=[r],i=dl);var a=Proxy.revocable(o,i),l=a.revoke,s=a.proxy;return r.k=s,r.j=l,s}(t,n):Ta("ES5").J(t,n);return(n?n.A:Da()).p.push(r),r}function qa(e){return ma(e)||ga(22,e),function e(t){if(!va(t))return t;var n,r=t[il],o=ba(t);if(r){if(!r.P&&(r.i<4||!Ta("ES5").K(r)))return r.t;r.I=!0,n=Xa(t,o),r.I=!1}else n=Xa(t,o);return ya(n,function(t,o){r&&wa(r.t,t)===o||Sa(n,t,e(o))}),3===o?new Set(n):n}(e)}function Xa(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ia(e)}function Ka(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[il];return ul.get(t,e)},set:function(t){var n=this[il];ul.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][il];if(!o.P)switch(o.i){case 5:r(o)&&Ga(o);break;case 4:n(o)&&Ga(o)}}}function n(e){for(var t=e.t,n=e.k,r=ll(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==il){var a=t[i];if(void 0===a&&!xa(t,i))return!0;var l=n[i],s=l&&l[il];if(s?s.t!==a:!Ca(l,a))return!0}}var c=!!t[il];return r.length!==ll(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};Pa("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=sl(n);delete i[il];for(var a=ll(i),l=0;l<a.length;l++){var s=a[l];i[s]=e(s,t||!!i[s].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:Da(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,il,{value:i,writable:!0}),o},S:function(e,n,o){o?ma(n)&&n[il].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[il];if(n){var o=n.t,i=n.k,a=n.R,l=n.i;if(4===l)ya(i,function(t){t!==il&&(void 0!==o[t]||xa(o,t)?a[t]||e(i[t]):(a[t]=!0,Ga(n)))}),ya(o,function(e){void 0!==i[e]||xa(i,e)||(a[e]=!1,Ga(n))});else if(5===l){if(r(n)&&(Ga(n),a.length=!0),i.length<o.length)for(var s=i.length;s<o.length;s++)a[s]=!1;else for(var c=o.length;c<i.length;c++)a[c]=!0;for(var u=Math.min(i.length,o.length),d=0;d<u;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}var Za,Qa,Ja="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),el="undefined"!=typeof Map,tl="undefined"!=typeof Set,nl="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,rl=Ja?Symbol.for("immer-nothing"):((Za={})["immer-nothing"]=!0,Za),ol=Ja?Symbol.for("immer-draftable"):"__$immer_draftable",il=Ja?Symbol.for("immer-state"):"__$immer_state",al=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),ll="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,sl=Object.getOwnPropertyDescriptors||function(e){var t={};return ll(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},cl={},ul={get:function(e,t){if(t===il)return e;var n=Ma(e);if(!xa(n,t))return function(e,t,n){var r,o=Wa(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!va(r)?r:r===Va(e.t,t)?(Ua(e),e.o[t]=Ya(e.A.h,r,e)):r},has:function(e,t){return t in Ma(e)},ownKeys:function(e){return Reflect.ownKeys(Ma(e))},set:function(e,t,n){var r=Wa(Ma(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Va(Ma(e),t),i=null==o?void 0:o[il];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Ca(n,o)&&(void 0!==n||xa(e.t,t)))return!0;Ua(e),Ga(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Va(e.t,t)||t in e.t?(e.R[t]=!1,Ua(e),Ga(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ma(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){ga(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ga(12)}},dl={};ya(ul,function(e,t){dl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),dl.deleteProperty=function(e,t){return dl.set.call(this,e,t,void 0)},dl.set=function(e,t,n){return ul.set.call(this,e[0],t,n,e[0])};var pl=function(){function e(e){var t=this;this.O=nl,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return i.produce(e,function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))})}}var a;if("function"!=typeof n&&ga(6),void 0!==r&&"function"!=typeof r&&ga(7),va(e)){var l=ja(t),s=Ya(t,e,void 0),c=!0;try{a=n(s),c=!1}finally{c?Aa(l):Ra(l)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then(function(e){return Na(l,r),za(e,l)},function(e){throw Aa(l),e}):(Na(l,r),za(a,l))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===rl&&(a=void 0),t.D&&Ea(a,!0),r){var u=[],d=[];Ta("Patches").M(e,a,u,d),r(u,d)}return a}ga(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,function(t){return e.apply(void 0,[t].concat(o))})};var r,o,i=t.produce(e,n,function(e,t){r=e,o=t});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(function(e){return[e,r,o]}):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){va(e)||ga(8),ma(e)&&(e=qa(e));var t=ja(this),n=Ya(this,e,void 0);return n[il].C=!0,Ra(t),n},t.finishDraft=function(e,t){var n=(e&&e[il]).A;return Na(n,t),za(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!nl&&ga(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Ta("Patches").$;return ma(e)?o(e,t):this.produce(e,function(e){return o(e,t)})},e}(),fl=new pl,hl=fl.produce;fl.produceWithPatches.bind(fl),fl.setAutoFreeze.bind(fl),fl.setUseProxies.bind(fl),fl.applyPatches.bind(fl),fl.createDraft.bind(fl),fl.finishDraft.bind(fl);const gl=hl;function ml(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var vl="function"===typeof Symbol&&Symbol.observable||"@@observable",yl=function(){return Math.random().toString(36).substring(7).split("").join(".")},bl={INIT:"@@redux/INIT"+yl(),REPLACE:"@@redux/REPLACE"+yl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+yl()}};function xl(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function wl(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(ml(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(ml(1));return n(wl)(e,t)}if("function"!==typeof e)throw new Error(ml(2));var o=e,i=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function u(){if(s)throw new Error(ml(3));return i}function d(e){if("function"!==typeof e)throw new Error(ml(4));if(s)throw new Error(ml(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(ml(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function p(e){if(!xl(e))throw new Error(ml(7));if("undefined"===typeof e.type)throw new Error(ml(8));if(s)throw new Error(ml(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:bl.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(ml(10));o=e,p({type:bl.REPLACE})}})[vl]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(ml(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[vl]=function(){return this},e},r}function Sl(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:bl.INIT}))throw new Error(ml(12));if("undefined"===typeof n(void 0,{type:bl.PROBE_UNKNOWN_ACTION()}))throw new Error(ml(13))})}(n)}catch(l){i=l}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},l=0;l<a.length;l++){var s=a[l],c=n[s],u=e[s],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(ml(14))}o[s]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}function Cl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function _l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(ml(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return r=Cl.apply(void 0,i)(n.dispatch),ne(ne({},n),{},{dispatch:r})}}}function kl(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var Ml=kl();Ml.withExtraArgument=kl;const Il=Ml;var El=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ol=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(l){i=[6,l],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},$l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Tl=Object.defineProperty,Pl=Object.defineProperties,Dl=Object.getOwnPropertyDescriptors,Nl=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,jl=function(e,t,n){return t in e?Tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ll=function(e,t){for(var n in t||(t={}))Al.call(t,n)&&jl(e,n,t[n]);if(Nl)for(var r=0,o=Nl(t);r<o.length;r++){n=o[r];Rl.call(t,n)&&jl(e,n,t[n])}return e},zl=function(e,t){return Pl(e,Dl(t))},Bl=function(e,t,n){return new Promise(function(r,o){var i=function(e){try{l(n.next(e))}catch(t){o(t)}},a=function(e){try{l(n.throw(e))}catch(t){o(t)}},l=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};l((n=n.apply(e,t)).next())})},Hl="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?Cl:Cl.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Fl(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function Vl(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return Ll(Ll({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}var Wl=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return El(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,$l([void 0],e[0].concat(this)))):new(t.bind.apply(t,$l([void 0],e.concat(this))))},t}(Array),Gl=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return El(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,$l([void 0],e[0].concat(this)))):new(t.bind.apply(t,$l([void 0],e.concat(this))))},t}(Array);function Ul(e){return va(e)?gl(e,function(){}):e}function Yl(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Wl);n&&(!function(e){return"boolean"===typeof e}(n)?r.push(Il.withExtraArgument(n.extraArgument)):r.push(Il));0;return r}(e)}}function ql(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(!r)throw new Error("`builder.addCase` cannot be called with an empty action type");if(r in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function Xl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:Ul(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},l={},s={};function c(){var t="function"===typeof e.extraReducers?ql(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,s=t[2],c=void 0===s?void 0:s,u=Ll(Ll({},o),l);return function(e,t,n,r){void 0===n&&(n=[]);var o,i="function"===typeof t?ql(t):[t,n,r],a=i[0],l=i[1],s=i[2];if(function(e){return"function"===typeof e}(e))o=function(){return Ul(e())};else{var c=Ul(e);o=function(){return c}}function u(e,t){void 0===e&&(e=o());var n=$l([a[t.type]],l.filter(function(e){return(0,e.matcher)(t)}).map(function(e){return e.reducer}));return 0===n.filter(function(e){return!!e}).length&&(n=[s]),n.reduce(function(e,n){if(n){var r;if(ma(e))return void 0===(r=n(e,t))?e:r;if(va(e))return gl(e,function(e){return n(e,t)});if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e},e)}return u.getInitialState=o,u}(r,function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}c&&e.addDefaultCase(c)})}return i.forEach(function(e){var n,r,i=o[e],c=function(e,t){return e+"/"+t}(t,e);"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,l[c]=n,s[e]=r?Vl(c,r):Vl(c)}),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:s,caseReducers:a,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var Kl=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Zl=["name","message","stack","code"],Ql=function(e,t){this.payload=e,this.meta=t},Jl=function(e,t){this.payload=e,this.meta=t},es=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=Zl;n<r.length;n++){var o=r[n];"string"===typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Vl(e+"/fulfilled",function(e,t,n,r){return{payload:e,meta:zl(Ll({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}}),o=Vl(e+"/pending",function(e,t,n){return{payload:void 0,meta:zl(Ll({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}}),i=Vl(e+"/rejected",function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||es)(e||"Rejected"),meta:zl(Ll({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}}),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign(function(e){return function(l,s,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Kl(),p=new a;function f(e){u=e,p.abort()}var h=function(){return Bl(this,null,function(){var a,h,g,m,v,y;return Ol(this,function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),m=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:s,extra:c}),null===(x=m)||"object"!==typeof x||"function"!==typeof x.then?[3,2]:[4,m];case 1:m=b.sent(),b.label=2;case 2:if(!1===m||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise(function(e,t){return p.signal.addEventListener("abort",function(){return t({name:"AbortError",message:u||"Aborted"})})}),l(o(d,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:d,arg:e},{getState:s,extra:c}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:l,getState:s,extra:c,requestId:d,signal:p.signal,abort:f,rejectWithValue:function(e,t){return new Ql(e,t)},fulfillWithValue:function(e,t){return new Jl(e,t)}})).then(function(t){if(t instanceof Ql)throw t;return t instanceof Jl?r(t.payload,d,e,t.meta):r(t,d,e)})])];case 3:return g=b.sent(),[3,5];case 4:return y=b.sent(),g=y instanceof Ql?i(null,d,e,y.payload,y.meta):i(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(g)&&g.meta.condition||l(g),[2,g]}var x})})}();return Object.assign(h,{abort:f,requestId:d,arg:e,unwrap:function(){return h.then(ts)}})}},{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function ts(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var ns="listenerMiddleware";Vl(ns+"/add"),Vl(ns+"/removeAll"),Vl(ns+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:globalThis);var rs,os=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:os(10);Ka();const is=Xl({name:"auth",initialState:{user:null,isAuthenticated:!1,loading:!1,error:null},reducers:{loginStart:e=>{e.loading=!0,e.error=null},loginSuccess:(e,t)=>{e.loading=!1,e.isAuthenticated=!0,e.user=t.payload,e.error=null},loginFailure:(e,t)=>{e.loading=!1,e.error=t.payload},logout:e=>{e.user=null,e.isAuthenticated=!1,e.error=null}}}),{loginStart:as,loginSuccess:ls,loginFailure:ss,logout:cs}=is.actions,us=is.reducer,ds=Xl({name:"points",initialState:{pointTypes:[],pointProjects:[],declarationRules:[],loading:!1,error:null},reducers:{setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload,e.loading=!1},setPointTypes:(e,t)=>{e.pointTypes=t.payload,e.loading=!1},setPointProjects:(e,t)=>{e.pointProjects=t.payload,e.loading=!1},setDeclarationRules:(e,t)=>{e.declarationRules=t.payload,e.loading=!1},addPointType:(e,t)=>{e.pointTypes.push(t.payload)},updatePointType:(e,t)=>{const n=e.pointTypes.findIndex(e=>e.id===t.payload.id);-1!==n&&(e.pointTypes[n]=t.payload)},deletePointType:(e,t)=>{e.pointTypes=e.pointTypes.filter(e=>e.id!==t.payload)}}}),{setLoading:ps,setError:fs,setPointTypes:hs,setPointProjects:gs,setDeclarationRules:ms,addPointType:vs,updatePointType:ys,deletePointType:bs}=ds.actions,xs=ds.reducer,ws=Xl({name:"activity",initialState:{activities:[],currentActivity:null,registrations:[],loading:!1,error:null},reducers:{setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload,e.loading=!1},setActivities:(e,t)=>{e.activities=t.payload,e.loading=!1},setCurrentActivity:(e,t)=>{e.currentActivity=t.payload},setRegistrations:(e,t)=>{e.registrations=t.payload,e.loading=!1},addActivity:(e,t)=>{e.activities.unshift(t.payload)},updateActivity:(e,t)=>{const n=e.activities.findIndex(e=>e.id===t.payload.id);-1!==n&&(e.activities[n]=t.payload)},deleteActivity:(e,t)=>{e.activities=e.activities.filter(e=>e.id!==t.payload)},updateRegistrationStatus:(e,t)=>{const{registrationId:n,status:r}=t.payload,o=e.registrations.find(e=>e.id===n);o&&(o.status=r)}}}),{setLoading:Ss,setError:Cs,setActivities:_s,setCurrentActivity:ks,setRegistrations:Ms,addActivity:Is,updateActivity:Es,deleteActivity:Os,updateRegistrationStatus:$s}=ws.actions,Ts=ws.reducer,Ps=Xl({name:"volunteer",initialState:{volunteers:[],currentVolunteer:null,volunteerPoints:[],loading:!1,error:null},reducers:{setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload,e.loading=!1},setVolunteers:(e,t)=>{e.volunteers=t.payload,e.loading=!1},setCurrentVolunteer:(e,t)=>{e.currentVolunteer=t.payload},setVolunteerPoints:(e,t)=>{e.volunteerPoints=t.payload,e.loading=!1},addVolunteer:(e,t)=>{e.volunteers.unshift(t.payload)},updateVolunteer:(e,t)=>{const n=e.volunteers.findIndex(e=>e.id===t.payload.id);-1!==n&&(e.volunteers[n]=t.payload)},deleteVolunteer:(e,t)=>{e.volunteers=e.volunteers.filter(e=>e.id!==t.payload)},updateVolunteerPoints:(e,t)=>{const{volunteerId:n,points:r}=t.payload,o=e.volunteers.find(e=>e.id===n);o&&(o.totalPoints=r)}}}),{setLoading:Ds,setError:Ns,setVolunteers:As,setCurrentVolunteer:Rs,setVolunteerPoints:js,addVolunteer:Ls,updateVolunteer:zs,deleteVolunteer:Bs,updateVolunteerPoints:Hs}=Ps.actions,Fs=Ps.reducer,Vs=Xl({name:"statistics",initialState:{overview:{totalVolunteers:0,totalPoints:0,totalActivities:0,totalRegistrations:0,pointsTimeList:[],volTimeList:[],typeList:[],distributionList:[]},trends:{pointsTrend:[],activityTrend:[],registrationTrend:[]},reports:[],loading:!1,error:null},reducers:{setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload,e.loading=!1},setOverview:(e,t)=>{e.overview=t.payload,e.loading=!1},setTrends:(e,t)=>{e.trends=t.payload,e.loading=!1},setReports:(e,t)=>{e.reports=t.payload,e.loading=!1},updateOverview:(e,t)=>{e.overview={...e.overview,...t.payload}}}}),{setLoading:Ws,setError:Gs,setOverview:Us,setTrends:Ys,setReports:qs,updateOverview:Xs}=Vs.actions,Ks=function(e){var t,n=Yl(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,l=void 0===a?n():a,s=r.devTools,c=void 0===s||s,u=r.preloadedState,d=void 0===u?void 0:u,p=r.enhancers,f=void 0===p?void 0:p;if("function"===typeof i)t=i;else{if(!Fl(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Sl(i)}var h=l;"function"===typeof h&&(h=h(n));var g=_l.apply(void 0,h),m=Cl;c&&(m=Hl(Ll({trace:!1},"object"===typeof c&&c)));var v=new Gl(g),y=v;return Array.isArray(f)?y=$l([g],f):"function"===typeof f&&(y=f(v)),wl(t,d,m.apply(void 0,y))}({reducer:{auth:us,points:xs,activity:Ts,volunteer:Fs,statistics:Vs.reducer},middleware:e=>e({serializableCheck:!1})}),Zs=Ks;function Qs(){return Qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qs.apply(this,arguments)}var Js;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Js||(Js={}));const ec="popstate";function tc(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function nc(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function rc(e,t){return{usr:e.state,key:e.key,idx:t}}function oc(e,t,n,r){return void 0===n&&(n=null),Qs({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?ac(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function ic(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function ac(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function lc(e,t,n,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=Js.Pop,s=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){l=Js.Pop;let e=u(),t=null==e?null:e-c;c=e,s&&s({action:l,location:f.location,delta:t})}function p(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,n="string"===typeof e?e:ic(e);return n=n.replace(/ $/,"%20"),tc(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,a.replaceState(Qs({},a.state,{idx:c}),""));let f={get action(){return l},get location(){return e(o,a)},listen(e){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(ec,d),s=e,()=>{o.removeEventListener(ec,d),s=null}},createHref:e=>t(o,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=Js.Push;let r=oc(f.location,e,t);n&&n(r,e),c=u()+1;let d=rc(r,c),p=f.createHref(r);try{a.pushState(d,"",p)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;o.location.assign(p)}i&&s&&s({action:l,location:f.location,delta:1})},replace:function(e,t){l=Js.Replace;let r=oc(f.location,e,t);n&&n(r,e),c=u();let o=rc(r,c),d=f.createHref(r);a.replaceState(o,"",d),i&&s&&s({action:l,location:f.location,delta:0})},go:e=>a.go(e)};return f}var sc;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(sc||(sc={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function cc(e,t,n){return void 0===n&&(n="/"),uc(e,t,n,!1)}function uc(e,t,n,r){let o=_c(("string"===typeof t?ac(t):t).pathname||"/",n);if(null==o)return null;let i=dc(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let l=0;null==a&&l<i.length;++l){let e=Cc(o);a=wc(i[l],e,r)}return a}function dc(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(tc(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let l=Oc([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(tc(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),dc(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:xc(l,e.index),routesMeta:s})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of pc(e.path))o(e,t,r);else o(e,t)}),t}function pc(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=pc(r.join("/")),l=[];return l.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...a),l.map(t=>e.startsWith("/")&&""===t?"/":t)}const fc=/^:[\w-]+$/,hc=3,gc=2,mc=1,vc=10,yc=-2,bc=e=>"*"===e;function xc(e,t){let n=e.split("/"),r=n.length;return n.some(bc)&&(r+=yc),t&&(r+=gc),n.filter(e=>!bc(e)).reduce((e,t)=>e+(fc.test(t)?hc:""===t?mc:vc),r)}function wc(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let e=r[l],s=l===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u=Sc({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},c),d=e.route;if(!u&&s&&n&&!r[r.length-1].route.index&&(u=Sc({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:Oc([i,u.pathname]),pathnameBase:$c(Oc([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=Oc([i,u.pathnameBase]))}return a}function Sc(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);nc("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1),s=r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=l[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[n];return e[r]=o&&!s?void 0:(s||"").replace(/%2F/g,"/"),e},{});return{params:s,pathname:i,pathnameBase:a,pattern:e}}function Cc(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return nc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function _c(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function kc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Mc(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function Ic(e,t){let n=Mc(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Ec(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=ac(e):(o=Qs({},e),tc(!o.pathname||!o.pathname.includes("?"),kc("?","pathname","search",o)),tc(!o.pathname||!o.pathname.includes("#"),kc("#","pathname","hash",o)),tc(!o.search||!o.search.includes("#"),kc("#","search","hash",o)));let i,a=""===e||""===o.pathname,l=a?"/":o.pathname;if(null==l)i=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?ac(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:Tc(r),hash:Pc(o)}}(o,i),c=l&&"/"!==l&&l.endsWith("/"),u=(a||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!c&&!u||(s.pathname+="/"),s}const Oc=e=>e.join("/").replace(/\/\/+/g,"/"),$c=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Tc=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Pc=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function Dc(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Nc=["post","put","patch","delete"],Ac=(new Set(Nc),["get",...Nc]);new Set(Ac),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Rc(){return Rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rc.apply(this,arguments)}const jc=g.createContext(null);const Lc=g.createContext(null);const zc=g.createContext(null);const Bc=g.createContext(null);const Hc=g.createContext({outlet:null,matches:[],isDataRoute:!1});const Fc=g.createContext(null);function Vc(){return null!=g.useContext(Bc)}function Wc(){return Vc()||tc(!1),g.useContext(Bc).location}function Gc(e){g.useContext(zc).static||g.useLayoutEffect(e)}function Uc(){let{isDataRoute:e}=g.useContext(Hc);return e?function(){let{router:e}=nu(eu.UseNavigateStable),t=ou(tu.UseNavigateStable),n=g.useRef(!1);return Gc(()=>{n.current=!0}),g.useCallback(function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,Rc({fromRouteId:t},o)))},[e,t])}():function(){Vc()||tc(!1);let e=g.useContext(jc),{basename:t,future:n,navigator:r}=g.useContext(zc),{matches:o}=g.useContext(Hc),{pathname:i}=Wc(),a=JSON.stringify(Ic(o,n.v7_relativeSplatPath)),l=g.useRef(!1);Gc(()=>{l.current=!0});let s=g.useCallback(function(n,o){if(void 0===o&&(o={}),!l.current)return;if("number"===typeof n)return void r.go(n);let s=Ec(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:Oc([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state,o)},[t,r,a,i,e]);return s}()}function Yc(){let{matches:e}=g.useContext(Hc),t=e[e.length-1];return t?t.params:{}}function qc(e,t,n,r){Vc()||tc(!1);let{navigator:o}=g.useContext(zc),{matches:i}=g.useContext(Hc),a=i[i.length-1],l=a?a.params:{},s=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,u=Wc();if(t){var d;let e="string"===typeof t?ac(t):t;"/"===s||(null==(d=e.pathname)?void 0:d.startsWith(s))||tc(!1),c=e}else c=u;let p=c.pathname||"/",f=p;if("/"!==s){let e=s.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=cc(e,{pathname:f});let m=Jc(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Oc([s,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?s:Oc([s,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,n,r);return t&&m?g.createElement(Bc.Provider,{value:{location:Rc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Js.Pop}},m):m}function Xc(){let e=function(){var e;let t=g.useContext(Fc),n=ru(tu.UseRouteError),r=ou(tu.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Dc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,null)}const Kc=g.createElement(Xc,null);class Zc extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?g.createElement(Hc.Provider,{value:this.props.routeContext},g.createElement(Fc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Qc(e){let{routeContext:t,match:n,children:r}=e,o=g.useContext(jc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(Hc.Provider,{value:t},r)}function Jc(e,t,n,r){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,l=null==(o=n)?void 0:o.errors;if(null!=l){let e=a.findIndex(e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id]));e>=0||tc(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let e=a[u];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=u),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,o)=>{let i,u=!1,d=null,p=null;var f;n&&(i=l&&r.route.id?l[r.route.id]:void 0,d=r.route.errorElement||Kc,s&&(c<0&&0===o?(f="route-fallback",!1||iu[f]||(iu[f]=!0),u=!0,p=null):c===o&&(u=!0,p=r.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,o+1)),m=()=>{let t;return t=i?d:u?p:r.route.Component?g.createElement(r.route.Component,null):r.route.element?r.route.element:e,g.createElement(Qc,{match:r,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?g.createElement(Zc,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var eu=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(eu||{}),tu=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(tu||{});function nu(e){let t=g.useContext(jc);return t||tc(!1),t}function ru(e){let t=g.useContext(Lc);return t||tc(!1),t}function ou(e){let t=function(){let e=g.useContext(Hc);return e||tc(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||tc(!1),n.route.id}const iu={};function au(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}m.startTransition;function lu(e){let{to:t,replace:n,state:r,relative:o}=e;Vc()||tc(!1);let{future:i,static:a}=g.useContext(zc),{matches:l}=g.useContext(Hc),{pathname:s}=Wc(),c=Uc(),u=Ec(t,Ic(l,i.v7_relativeSplatPath),s,"path"===o),d=JSON.stringify(u);return g.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:o}),[c,d,o,n,r]),null}function su(e){tc(!1)}function cu(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Js.Pop,navigator:i,static:a=!1,future:l}=e;Vc()&&tc(!1);let s=t.replace(/^\/*/,"/"),c=g.useMemo(()=>({basename:s,navigator:i,static:a,future:Rc({v7_relativeSplatPath:!1},l)}),[s,l,i,a]);"string"===typeof r&&(r=ac(r));let{pathname:u="/",search:d="",hash:p="",state:f=null,key:h="default"}=r,m=g.useMemo(()=>{let e=_c(u,s);return null==e?null:{location:{pathname:e,search:d,hash:p,state:f,key:h},navigationType:o}},[s,u,d,p,f,h,o]);return null==m?null:g.createElement(zc.Provider,{value:c},g.createElement(Bc.Provider,{children:n,value:m}))}function uu(e){let{children:t,location:n}=e;return qc(du(t),n)}new Promise(()=>{});g.Component;function du(e,t){void 0===t&&(t=[]);let n=[];return g.Children.forEach(e,(e,r)=>{if(!g.isValidElement(e))return;let o=[...t,r];if(e.type===g.Fragment)return void n.push.apply(n,du(e.props.children,o));e.type!==su&&tc(!1),e.props.index&&e.props.children&&tc(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=du(e.props.children,o)),n.push(i)}),n}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(vDe){}new Map;const pu=m.startTransition;w.flushSync,m.useId;function fu(e){let{basename:t,children:n,future:r,window:o}=e,i=g.useRef();var a;null==i.current&&(i.current=(void 0===(a={window:o,v5Compat:!0})&&(a={}),lc(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=ac(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),oc("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:ic(t))},function(e,t){nc("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},a)));let l=i.current,[s,c]=g.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},d=g.useCallback(e=>{u&&pu?pu(()=>c(e)):c(e)},[c,u]);return g.useLayoutEffect(()=>l.listen(d),[l,d]),g.useEffect(()=>au(r),[r]),g.createElement(cu,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;var hu,gu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(hu||(hu={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(gu||(gu={}));const mu=g.createContext({});function vu(e,t){this.v=e,this.k=t}function yu(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yu=function(e,t,n,r){if(t)o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var i=function(t,n){yu(e,t,function(e){return this._invoke(t,n,e)})};i("next",0),i("throw",1),i("return",2)}},yu(e,t,n,r)}function bu(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return yu(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,s=e,p.n=n,a}};function f(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(l=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),l=u,s=h;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=p.n<0)?s:n.call(r,p))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(yu(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yu(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,yu(d,"constructor",c),yu(c,"constructor",s),s.displayName="GeneratorFunction",yu(c,o,"GeneratorFunction"),yu(d),yu(d,o,"Generator"),yu(d,r,function(){return this}),yu(d,"toString",function(){return"[object Generator]"}),(bu=function(){return{w:i,m:p}})()}function xu(e,t){function n(r,o,i,a){try{var l=e[r](o),s=l.value;return s instanceof vu?t.resolve(s.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(yu(xu.prototype),yu(xu.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),yu(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function wu(e,t,n,r,o){return new xu(bu().w(e,t,n,r),o||Promise)}function Su(e,t,n,r,o){var i=wu(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Cu(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function _u(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(G(e)+" is not iterable")}function ku(){var e=bu(),t=e.m(ku),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,_u(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(ku=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new vu(e,t)},AsyncIterator:xu,async:function(e,t,n,o,a){return(r(t)?wu:Su)(i(e),t,n,o,a)},keys:Cu,values:_u}})()}function Mu(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Iu(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Mu(i,r,o,a,l,"next",e)}function l(e){Mu(i,r,o,a,l,"throw",e)}a(void 0)})}}var Eu,Ou=ne({},w),$u=Ou.version,Tu=Ou.render,Pu=Ou.unmountComponentAtNode;try{Number(($u||"").split(".")[0])>=18&&(Eu=Ou.createRoot)}catch(vDe){}function Du(e){var t=Ou.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===G(t)&&(t.usingClientEntryPoint=e)}var Nu="__rc_react_root__";function Au(e,t){Eu?function(e,t){Du(!0);var n=t[Nu]||Eu(t);Du(!1),n.render(e),t[Nu]=n}(e,t):function(e,t){null===Tu||void 0===Tu||Tu(e,t)}(e,t)}function Ru(e){return ju.apply(this,arguments)}function ju(){return(ju=Iu(ku().mark(function e(t){return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[Nu])||void 0===e||e.unmount(),delete t[Nu]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Lu(e){Pu(e)}function zu(){return(zu=Iu(ku().mark(function e(t){return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Eu){e.next=2;break}return e.abrupt("return",Ru(t));case 2:Lu(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let Bu=(e,t)=>(Au(e,t),()=>function(e){return zu.apply(this,arguments)}(t));function Hu(e){return e&&(Bu=e),Bu}const Fu={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Vu(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Wu(e){return function(e){return Vu(e)instanceof ShadowRoot}(e)?Vu(e):null}function Gu(e){return"object"===G(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===G(e.icon)||"function"===typeof e.icon)}function Uu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else delete t[n],t[function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}(n)]=r;return t},{})}function Yu(e,t,n){return n?g.createElement(e.tag,ne(ne({key:t},Uu(e.attrs)),n),(e.children||[]).map(function(n,r){return Yu(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):g.createElement(e.tag,ne({key:t},Uu(e.attrs)),(e.children||[]).map(function(n,r){return Yu(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function qu(e){return nr(e)[0]}function Xu(e){return e?Array.isArray(e)?e:[e]:[]}var Ku=["icon","className","onClick","style","primaryColor","secondaryColor"],Zu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Qu=function(e){var t=e.icon,n=e.className,r=e.onClick,o=e.style,i=e.primaryColor,a=e.secondaryColor,l=Io(e,Ku),s=g.useRef(),c=Zu;if(i&&(c={primaryColor:i,secondaryColor:a||qu(i)}),function(e){var t=(0,g.useContext)(Sn),n=t.csp,r=t.prefixCls,o=t.layer,i="\n.anticon {\n  display: inline-flex;\n  align-items: center;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";r&&(i=i.replace(/anticon/g,r)),o&&(i="@layer ".concat(o," {\n").concat(i,"\n}")),(0,g.useEffect)(function(){var t=Wu(e.current);ge(i,"@ant-design-icons",{prepend:!o,csp:n,attachTo:t})},[])}(s),function(e,t){Ce(e,"[@ant-design/icons] ".concat(t))}(Gu(t),"icon should be icon definiton, but got ".concat(t)),!Gu(t))return null;var u=t;return u&&"function"===typeof u.icon&&(u=ne(ne({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Yu(u.icon,"svg-".concat(u.name),ne(ne({className:n,onClick:r,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:s}))};Qu.displayName="IconReact",Qu.getTwoToneColors=function(){return ne({},Zu)},Qu.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Zu.primaryColor=t,Zu.secondaryColor=n||qu(t),Zu.calculated=!!n};const Ju=Qu;function ed(e){var t=Q(Xu(e),2),n=t[0],r=t[1];return Ju.setTwoToneColors({primaryColor:n,secondaryColor:r})}var td=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ed(pr.primary);var nd=g.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=Io(e,td),u=g.useContext(Sn),d=u.prefixCls,p=void 0===d?"anticon":d,f=u.rootClassName,h=po()(f,p,Y(Y({},"".concat(p,"-").concat(r.name),!!r.name),"".concat(p,"-spin"),!!o||"loading"===r.name),n),m=a;void 0===m&&l&&(m=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=Q(Xu(s),2),b=y[0],x=y[1];return g.createElement("span",gt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:l,className:h}),g.createElement(Ju,{icon:r,primaryColor:b,secondaryColor:x,style:v}))});nd.displayName="AntdIcon",nd.getTwoToneColor=function(){var e=Ju.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},nd.setTwoToneColor=ed;const rd=nd;var od=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:Fu}))};const id=g.forwardRef(od);const ad={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var ld=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:ad}))};const sd=g.forwardRef(ld);const cd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var ud=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:cd}))};const dd=g.forwardRef(ud);const pd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var fd=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:pd}))};const hd=g.forwardRef(fd);const gd={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var md=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:gd}))};const vd=g.forwardRef(md);var yd={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=yd.F1&&t<=yd.F12)return!1;switch(t){case yd.ALT:case yd.CAPS_LOCK:case yd.CONTEXT_MENU:case yd.CTRL:case yd.DOWN:case yd.END:case yd.ESC:case yd.HOME:case yd.INSERT:case yd.LEFT:case yd.MAC_FF_META:case yd.META:case yd.NUMLOCK:case yd.NUM_CENTER:case yd.PAGE_DOWN:case yd.PAGE_UP:case yd.PAUSE:case yd.PRINT_SCREEN:case yd.RIGHT:case yd.SHIFT:case yd.UP:case yd.WIN_KEY:case yd.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=yd.ZERO&&e<=yd.NINE)return!0;if(e>=yd.NUM_ZERO&&e<=yd.NUM_MULTIPLY)return!0;if(e>=yd.A&&e<=yd.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case yd.SPACE:case yd.QUESTION_MARK:case yd.NUM_PLUS:case yd.NUM_MINUS:case yd.NUM_PERIOD:case yd.NUM_DIVISION:case yd.SEMICOLON:case yd.DASH:case yd.EQUALS:case yd.COMMA:case yd.PERIOD:case yd.SLASH:case yd.APOSTROPHE:case yd.SINGLE_QUOTE:case yd.OPEN_SQUARE_BRACKET:case yd.BACKSLASH:case yd.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const bd=yd;var xd="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function wd(e,t){return 0===e.indexOf(t)}function Sd(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:ne({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||wd(n,"aria-"))||t.data&&wd(n,"data-")||t.attr&&xd.includes(n))&&(r[n]=e[n])}),r}var Cd=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=void 0===i?4.5:i,l=e.showProgress,s=e.pauseOnHover,c=void 0===s||s,u=e.eventKey,d=e.content,p=e.closable,f=e.closeIcon,h=void 0===f?"x":f,m=e.props,v=e.onClick,y=e.onNoticeClose,b=e.times,x=e.hovering,w=Q(g.useState(!1),2),S=w[0],C=w[1],_=Q(g.useState(0),2),k=_[0],M=_[1],I=Q(g.useState(0),2),E=I[0],O=I[1],$=x||S,T=a>0&&l,P=function(){y(u)};g.useEffect(function(){if(!$&&a>0){var e=Date.now()-E,t=setTimeout(function(){P()},1e3*a-E);return function(){c&&clearTimeout(t),O(Date.now()-e)}}},[a,$,b]),g.useEffect(function(){if(!$&&T&&(c||0===E)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+E-t,o=Math.min(r/(1e3*a),1);M(100*o),o<1&&n()})}(),function(){c&&cancelAnimationFrame(e)}}},[a,E,$,T,b]);var D=g.useMemo(function(){return"object"===G(p)&&null!==p?p:p?{closeIcon:h}:{}},[p,h]),N=Sd(D,!0),A=100-(!k||k<0?0:k>100?100:k),R="".concat(n,"-notice");return g.createElement("div",gt({},m,{ref:t,className:po()(R,o,Y({},"".concat(R,"-closable"),p)),style:r,onMouseEnter:function(e){var t;C(!0),null===m||void 0===m||null===(t=m.onMouseEnter)||void 0===t||t.call(m,e)},onMouseLeave:function(e){var t;C(!1),null===m||void 0===m||null===(t=m.onMouseLeave)||void 0===t||t.call(m,e)},onClick:v}),g.createElement("div",{className:"".concat(R,"-content")},d),p&&g.createElement("a",gt({tabIndex:0,className:"".concat(R,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==bd.ENTER||P()},"aria-label":"Close"},N,{onClick:function(e){e.preventDefault(),e.stopPropagation(),P()}}),D.closeIcon),T&&g.createElement("progress",{className:"".concat(R,"-progress"),max:"100",value:A},A+"%"))});const _d=Cd;var kd=g.createContext({});const Md=function(e){var t=e.children,n=e.classNames;return g.createElement(kd.Provider,{value:{classNames:n}},t)};const Id=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===G(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]};var Ed=["className","style","classNames","styles"];const Od=function(e){var t=e.configList,n=e.placement,r=e.prefixCls,o=e.className,i=e.style,a=e.motion,l=e.onAllNoticeRemoved,s=e.onNoticeClose,c=e.stack,u=(0,g.useContext)(kd).classNames,d=(0,g.useRef)({}),p=Q((0,g.useState)(null),2),f=p[0],h=p[1],m=Q((0,g.useState)([]),2),v=m[0],y=m[1],b=t.map(function(e){return{config:e,key:String(e.key)}}),x=Q(Id(c),2),w=x[0],S=x[1],C=S.offset,_=S.threshold,k=S.gap,M=w&&(v.length>0||b.length<=_),I="function"===typeof a?a(n):a;return(0,g.useEffect)(function(){w&&v.length>1&&y(function(e){return e.filter(function(e){return b.some(function(t){var n=t.key;return e===n})})})},[v,b,w]),(0,g.useEffect)(function(){var e,t;w&&d.current[null===(e=b[b.length-1])||void 0===e?void 0:e.key]&&h(d.current[null===(t=b[b.length-1])||void 0===t?void 0:t.key])},[b,w]),g.createElement(Ni,gt({key:n,className:po()(r,"".concat(r,"-").concat(n),null===u||void 0===u?void 0:u.list,o,Y(Y({},"".concat(r,"-stack"),!!w),"".concat(r,"-stack-expanded"),M)),style:i,keys:b,motionAppear:!0},I,{onAllRemoved:function(){l(n)}}),function(e,t){var o=e.config,i=e.className,a=e.style,l=e.index,c=o,p=c.key,h=c.times,m=String(p),x=o,S=x.className,_=x.style,I=x.classNames,E=x.styles,O=Io(x,Ed),$=b.findIndex(function(e){return e.key===m}),T={};if(w){var P=b.length-1-($>-1?$:l-1),D="top"===n||"bottom"===n?"-50%":"0";if(P>0){var N,A,R;T.height=M?null===(N=d.current[m])||void 0===N?void 0:N.offsetHeight:null===f||void 0===f?void 0:f.offsetHeight;for(var j=0,L=0;L<P;L++){var z;j+=(null===(z=d.current[b[b.length-1-L].key])||void 0===z?void 0:z.offsetHeight)+k}var B=(M?j:P*C)*(n.startsWith("top")?1:-1),H=!M&&null!==f&&void 0!==f&&f.offsetWidth&&null!==(A=d.current[m])&&void 0!==A&&A.offsetWidth?((null===f||void 0===f?void 0:f.offsetWidth)-2*C*(P<3?P:3))/(null===(R=d.current[m])||void 0===R?void 0:R.offsetWidth):1;T.transform="translate3d(".concat(D,", ").concat(B,"px, 0) scaleX(").concat(H,")")}else T.transform="translate3d(".concat(D,", 0, 0)")}return g.createElement("div",{ref:t,className:po()("".concat(r,"-notice-wrapper"),i,null===I||void 0===I?void 0:I.wrapper),style:ne(ne(ne({},a),T),null===E||void 0===E?void 0:E.wrapper),onMouseEnter:function(){return y(function(e){return e.includes(m)?e:[].concat(ee(e),[m])})},onMouseLeave:function(){return y(function(e){return e.filter(function(e){return e!==m})})}},g.createElement(_d,gt({},O,{ref:function(e){$>-1?d.current[m]=e:delete d.current[m]},prefixCls:r,classNames:I,styles:E,className:po()(S,null===u||void 0===u?void 0:u.notice),style:_,times:h,key:p,eventKey:p,onNoticeClose:s,hovering:w&&v.length>0})))})};var $d=g.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,p=Q(g.useState([]),2),f=p[0],h=p[1],m=function(e){var t,n=f.find(function(t){return t.key===e});null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),h(function(t){return t.filter(function(t){return t.key!==e})})};g.useImperativeHandle(t,function(){return{open:function(e){h(function(t){var n,r=ee(t),o=r.findIndex(function(t){return t.key===e.key}),i=ne({},e);o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i));return a>0&&r.length>a&&(r=r.slice(-a)),r})},close:function(e){m(e)},destroy:function(){h([])}}});var v=Q(g.useState({}),2),y=v[0],b=v[1];g.useEffect(function(){var e={};f.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(y).forEach(function(t){e[t]=e[t]||[]}),b(e)},[f]);var w=function(e){b(function(t){var n=ne({},t);return(n[e]||[]).length||delete n[e],n})},S=g.useRef(!1);if(g.useEffect(function(){Object.keys(y).length>0?S.current=!0:S.current&&(null===c||void 0===c||c(),S.current=!1)},[y]),!o)return null;var C=Object.keys(y);return(0,x.createPortal)(g.createElement(g.Fragment,null,C.map(function(e){var t=y[e],n=g.createElement(Od,{key:e,configList:t,placement:e,prefixCls:r,className:null===l||void 0===l?void 0:l(e),style:null===s||void 0===s?void 0:s(e),motion:i,onNoticeClose:m,onAllNoticeRemoved:w,stack:u});return d?d(n,{prefixCls:r,key:e}):n})),o)});const Td=$d;var Pd=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Dd=function(){return document.body},Nd=0;function Ad(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?Dd:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=Io(e,Pd),p=Q(g.useState(),2),f=p[0],h=p[1],m=g.useRef(),v=g.createElement(Td,{container:f,ref:m,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),y=Q(g.useState([]),2),b=y[0],x=y[1],w=Lo(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(d,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(Nd),Nd+=1),x(function(e){return[].concat(ee(e),[{type:"open",config:t}])})}),S=g.useMemo(function(){return{open:w,close:function(e){x(function(t){return[].concat(ee(t),[{type:"close",key:e}])})},destroy:function(){x(function(e){return[].concat(ee(e),[{type:"destroy"}])})}}},[]);return g.useEffect(function(){h(n())}),g.useEffect(function(){var e,t;m.current&&b.length&&(b.forEach(function(e){switch(e.type){case"open":m.current.open(e.config);break;case"close":m.current.close(e.key);break;case"destroy":m.current.destroy()}}),x(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!b.includes(e)})),t}))},[b]),[S,v]}const Rd=e=>{const[,,,,t]=Gi();return t?`${e}-css-var`:""};const jd=g.createContext(void 0),Ld=100,zd=1e3,Bd={Modal:Ld,Drawer:Ld,Popover:Ld,Popconfirm:Ld,Tooltip:Ld,Tour:Ld,FloatButton:Ld},Hd={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const Fd=(e,t)=>{const[,n]=Gi(),r=g.useContext(jd),o=function(e){return e in Bd}(e);let i;if(void 0!==t)i=[t,t];else{let a=null!==r&&void 0!==r?r:0;a+=o?(r?0:n.zIndexPopupBase)+Bd[e]:Hd[e],i=[void 0===r?t:a,a]}return i};const Vd=Ie(function e(){ke(this,e)});var Wd="CALC_UNIT",Gd=new RegExp(Wd,"g");function Ud(e){return"number"===typeof e?"".concat(e).concat(Wd):e}var Yd=function(e){Po(n,e);var t=Ro(n);function n(e,r){var o;ke(this,n),Y(Ao(o=t.call(this)),"result",""),Y(Ao(o),"unitlessCssVar",void 0),Y(Ao(o),"lowPriority",void 0);var i=G(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=Ud(e):"string"===i&&(o.result=e),o}return Ie(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(Ud(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(Ud(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"===typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(Gd,r?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(Vd);const qd=function(e){Po(n,e);var t=Ro(n);function n(e){var r;return ke(this,n),Y(Ao(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"===typeof e&&(r.result=e),r}return Ie(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(Vd);const Xd=function(e,t){var n="css"===e?Yd:qd;return function(e){return new n(e,t)}};const Kd=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};const Zd=function(e,t,n,r){var o=ne({},t[e]);null!==r&&void 0!==r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=Q(e,2),r=n[0],i=n[1];(null!==o&&void 0!==o&&o[r]||null!==o&&void 0!==o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null===o||void 0===o?void 0:o[r]))});var i=ne(ne({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var Qd="undefined"!==typeof CSSINJS_STATISTIC,Jd=!0;function ep(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Qd)return Object.assign.apply(Object,[{}].concat(t));Jd=!1;var r={};return t.forEach(function(e){"object"===G(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Jd=!0,r}var tp={};function np(){}const rp=function(e){var t,n=e,r=np;return Qd&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;Jd&&(null===(r=t)||void 0===r||r.add(n));return e[n]}}),r=function(e,n){var r;tp[e]={global:Array.from(t),component:ne(ne({},null===(r=tp[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}};const op=function(e,t,n){var r;return"function"===typeof n?n(ep(t,null!==(r=t[e])&&void 0!==r?r:{})):null!==n&&void 0!==n?n:{}};const ip=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return Xe(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return Xe(e)}).join(","),")")}}};var ap=function(){function e(){ke(this,e),Y(this,"map",new Map),Y(this,"objectIDMap",new WeakMap),Y(this,"nextID",0),Y(this,"lastAccessBeat",new Map),Y(this,"accessBeat",0)}return Ie(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===G(e)?"obj_".concat(t.getObjectID(e)):"".concat(G(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),lp=new ap;const sp=function(e,t){return g.useMemo(function(){var n=lp.get(t);if(n)return n;var r=e();return lp.set(t,r),r},t)};const cp=function(){return{}};const up=function(e){var t=e.useCSP,n=void 0===t?cp:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(t,l,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],d=Q(u,1)[0],p=u.join("-"),f=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=r(),h=u.theme,g=u.realToken,m=u.hashId,v=u.token,y=u.cssVar,b=o(),x=b.rootPrefixCls,w=b.iconPrefixCls,S=n(),C=y?"css":"js",_=sp(function(){var e=new Set;return y&&Object.keys(c.unitless||{}).forEach(function(t){e.add(Ze(t,y.prefix)),e.add(Ze(t,Kd(d,y.prefix)))}),Xd(C,e)},[C,d,null===y||void 0===y?void 0:y.prefix]),k=ip(C),M=k.max,I=k.min,E={theme:h,token:v,hashId:m,nonce:function(){return S.nonce},clientOnly:c.clientOnly,layer:f,order:c.order||-999};return"function"===typeof i&&mn(ne(ne({},E),{},{clientOnly:!1,path:["Shared",x]}),function(){return i(v,{prefix:{rootPrefixCls:x,iconPrefixCls:w},csp:S})}),[mn(ne(ne({},E),{},{path:[p,e,w]}),function(){if(!1===c.injectStyle)return[];var n=rp(v),r=n.token,o=n.flush,i=op(d,g,s),u=".".concat(e),p=Zd(d,g,i,{deprecatedTokens:c.deprecatedTokens});y&&i&&"object"===G(i)&&Object.keys(i).forEach(function(e){i[e]="var(".concat(Ze(e,Kd(d,y.prefix)),")")});var f=ep(r,{componentCls:u,prefixCls:e,iconCls:".".concat(w),antCls:".".concat(x),calc:_,max:M,min:I},y?i:p),h=l(f,{hashId:m,prefixCls:e,rootPrefixCls:x,iconPrefixCls:w});o(d,p);var b="function"===typeof a?a(f,e,t,c.resetFont):null;return[!1===c.resetStyle?null:b,h]}),m]}}return{genStyleHooks:function(e,t,n,o){var i=Array.isArray(e)?e[0]:e;function a(e){return"".concat(String(i)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var c=(null===o||void 0===o?void 0:o.unitless)||{},u=ne(ne({},"function"===typeof l?l(e):{}),{},Y({},a("zIndexPopup"),!0));Object.keys(c).forEach(function(e){u[a(e)]=c[e]});var d=ne(ne({},o),{},{unitless:u,prefixToken:a}),p=s(e,t,n,d),f=function(e,t,n){var o=n.unitless,i=n.injectStyle,a=void 0===i||i,l=n.prefixToken,s=n.ignore,c=function(i){var a=i.rootCls,c=i.cssVar,u=void 0===c?{}:c,d=r().realToken;return yn({path:[e],prefix:u.prefix,key:u.key,unitless:o,ignore:s,token:d,scope:a},function(){var r=op(e,d,t),o=Zd(e,d,r,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(r).forEach(function(e){o[l(e)]=o[e],delete o[e]}),o}),null},u=function(t){var n=r().cssVar;return[function(r){return a&&n?g.createElement(g.Fragment,null,g.createElement(c,{rootCls:t,cssVar:n,component:e}),r):r},null===n||void 0===n?void 0:n.key]};return u}(i,n,d);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=Q(p(e,t),2)[1],r=Q(f(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=s(e,t,n,ne({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}},{genStyleHooks:dp,genComponentStyleHook:pp,genSubStyleComponent:fp}=up({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,g.useContext)(qr);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Gi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=(0,g.useContext)(qr);return null!==e&&void 0!==e?e:{}},getResetStyles:(e,t)=>{var n;const r=(e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[r,{"&":r},Ji(null!==(n=null===t||void 0===t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:Ur)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>Hi}),hp=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:v}=e,y=`${t}-notice`,b=new xn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),x=new xn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:v,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n      ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},Ki(e)),{color:o,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n        ${t}-move-up-appear,\n        ${t}-move-up-enter\n      `]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n        ${t}-move-up-appear${t}-move-up-appear-active,\n        ${t}-move-up-enter${t}-move-up-enter-active\n      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},gp=dp("Message",e=>{const t=ep(e,{height:150});return[hp(t)]},e=>({zIndexPopup:e.zIndexPopupBase+zd+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var mp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vp={info:g.createElement(hd,null),success:g.createElement(id,null),error:g.createElement(sd,null),warning:g.createElement(dd,null),loading:g.createElement(vd,null)},yp=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return g.createElement("div",{className:po()(`${t}-custom-content`,`${t}-${n}`)},r||vp[n],g.createElement("span",null,o))},bp=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=mp(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=g.useContext(qr),s=t||l("message"),c=Rd(s),[u,d,p]=gp(s,c);return u(g.createElement(_d,Object.assign({},a,{prefixCls:s,className:po()(n,d,`${s}-notice-pure-panel`,p,c),eventKey:"pure",duration:null,content:g.createElement(yp,{prefixCls:s,type:r,icon:o},i)})))};const xp={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var wp=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:xp}))};const Sp=g.forwardRef(wp);function Cp(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null===t||void 0===t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var _p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kp=3,Mp=e=>{let{children:t,prefixCls:n}=e;const r=Rd(n),[o,i,a]=gp(n,r);return o(g.createElement(Md,{classNames:{list:po()(i,a,r)}},t))},Ip=(e,t)=>{let{prefixCls:n,key:r}=t;return g.createElement(Mp,{prefixCls:n,key:r},e)},Ep=g.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=kp,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:p,direction:f}=g.useContext(qr),h=r||u("message"),m=g.createElement("span",{className:`${h}-close-x`},g.createElement(Sp,{className:`${h}-close-icon`})),[v,y]=Ad({prefixCls:h,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!==n&&void 0!==n?n:8}),className:()=>po()({[`${h}-rtl`]:null!==l&&void 0!==l?l:"rtl"===f}),motion:()=>function(e,t){return{motionName:null!==t&&void 0!==t?t:`${e}-move-up`}}(h,s),closable:!1,closeIcon:m,duration:a,getContainer:()=>(null===o||void 0===o?void 0:o())||(null===d||void 0===d?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:Ip});return g.useImperativeHandle(t,()=>Object.assign(Object.assign({},v),{prefixCls:h,message:p})),y});let Op=0;function $p(e){const t=g.useRef(null),n=(Pn("Message"),g.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:o,message:i}=t.current,a=`${o}-notice`,{content:l,icon:s,type:c,key:u,className:d,style:p,onClose:f}=n,h=_p(n,["content","icon","type","key","className","style","onClose"]);let m=u;return void 0!==m&&null!==m||(Op+=1,m=`antd-message-${Op}`),Cp(t=>(r(Object.assign(Object.assign({},h),{key:m,content:g.createElement(yp,{prefixCls:o,type:c,icon:s},l),placement:"top",className:po()(c&&`${a}-${c}`,d,null===i||void 0===i?void 0:i.className),style:Object.assign(Object.assign({},null===i||void 0===i?void 0:i.style),p),onClose:()=>{null===f||void 0===f||f(),t()}})),()=>{e(m)}))},r={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,r,o)=>{let i,a,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof r?l=r:(a=r,l=o);const s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}}),r},[]));return[n,g.createElement(Ep,Object.assign({key:"message-holder"},e,{ref:t}))]}let Tp=null,Pp=e=>e(),Dp=[],Np={};function Ap(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Np,i=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const Rp=g.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=(0,g.useContext)(qr),i=Np.prefixCls||o("message"),a=(0,g.useContext)(mu),[l,s]=$p(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return g.useImperativeHandle(t,()=>{const e=Object.assign({},l);return Object.keys(e).forEach(t=>{e[t]=function(){r();for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return l[t].apply(l,n)}}),{instance:e,sync:r}}),s}),jp=g.forwardRef((e,t)=>{const[n,r]=g.useState(Ap),o=()=>{r(Ap)};g.useEffect(o,[]);const i=ua(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=g.createElement(Rp,{ref:t,sync:o,messageConfig:n});return g.createElement(fa,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function Lp(){if(!Tp){const e=document.createDocumentFragment(),t={fragment:e};return Tp=t,void Pp(()=>{Hu()(g.createElement(jp,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Lp())})}}),e)})}Tp.instance&&(Dp.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":Pp(()=>{const t=Tp.instance.open(Object.assign(Object.assign({},Np),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":Pp(()=>{null===Tp||void 0===Tp||Tp.instance.destroy(e.key)});break;default:Pp(()=>{var n;const r=(n=Tp.instance)[t].apply(n,ee(e.args));null===r||void 0===r||r.then(e.resolve),e.setCloseFn(r)})}}),Dp=[])}const zp={open:function(e){const t=Cp(t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return Dp.push(r),()=>{n?Pp(()=>{n()}):r.skipped=!0}});return Lp(),t},destroy:e=>{Dp.push({type:"destroy",key:e}),Lp()},config:function(e){Np=Object.assign(Object.assign({},Np),e),Pp(()=>{var e;null===(e=null===Tp||void 0===Tp?void 0:Tp.sync)||void 0===e||e.call(Tp)})},useMessage:function(e){return $p(e)},_InternalPanelDoNotUseOrYouWillBeFired:bp},Bp=zp;["success","info","warning","error","loading"].forEach(e=>{Bp[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e,t){ua();const n=Cp(n=>{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return Dp.push(o),()=>{r?Pp(()=>{r()}):o.skipped=!0}});return Lp(),n}(e,n)}});const Hp=Bp;function Fp(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const Vp=e=>{const t=g.useContext(io);return g.useMemo(()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:"function"===typeof e?e(t):t:t,[e,t])},Wp=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=po()({[`${t}-lg`]:"large"===o,[`${t}-sm`]:"small"===o}),l=po()({[`${t}-circle`]:"circle"===i,[`${t}-square`]:"square"===i,[`${t}-round`]:"round"===i}),s=g.useMemo(()=>"number"===typeof o?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return g.createElement("span",{className:po()(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},Gp=new xn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Up=e=>({height:e,lineHeight:Xe(e)}),Yp=e=>Object.assign({width:e},Up(e)),qp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Gp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Xp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Up(e)),Kp=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Yp(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Yp(o)),[`${t}${t}-sm`]:Object.assign({},Yp(i))}},Zp=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Xp(t,l)),[`${r}-lg`]:Object.assign({},Xp(o,l)),[`${r}-sm`]:Object.assign({},Xp(i,l))}},Qp=e=>Object.assign({width:e},Up(e)),Jp=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Qp(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Qp(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ef=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},tf=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Up(e)),nf=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},tf(r,l))},ef(e,r,n)),{[`${n}-lg`]:Object.assign({},tf(o,l))}),ef(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},tf(i,l))}),ef(e,i,`${n}-sm`))},rf=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:h,titleHeight:g,blockRadius:m,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Yp(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Yp(c)),[`${n}-sm`]:Object.assign({},Yp(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:m,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:m,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${o}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},nf(e)),Kp(e)),Zp(e)),Jp(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${r},\n        ${o} > li,\n        ${n},\n        ${i},\n        ${a},\n        ${l}\n      `]:Object.assign({},qp(e))}}},of=dp("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=ep(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[rf(r)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),af=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=g.useContext(qr),s=l("skeleton",t),[c,u,d]=of(s),p=Fp(e,["prefixCls","className"]),f=po()(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,d);return c(g.createElement("div",{className:f},g.createElement(Wp,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},p))))},lf=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=g.useContext(qr),s=l("skeleton",t),[c,u,d]=of(s),p=Fp(e,["prefixCls"]),f=po()(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,d);return c(g.createElement("div",{className:f},g.createElement(Wp,Object.assign({prefixCls:`${s}-button`,size:a},p))))},sf=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=g.useContext(qr),l=a("skeleton",t),[s,c,u]=of(l),d=po()(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,u);return s(g.createElement("div",{className:d},g.createElement("div",{className:po()(`${l}-image`,n),style:o},g.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},g.createElement("title",null,"Image placeholder"),g.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${l}-image-path`})))))},cf=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=g.useContext(qr),s=l("skeleton",t),[c,u,d]=of(s),p=Fp(e,["prefixCls"]),f=po()(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,d);return c(g.createElement("div",{className:f},g.createElement(Wp,Object.assign({prefixCls:`${s}-input`,size:a},p))))},uf=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=g.useContext(qr),s=l("skeleton",t),[c,u,d]=of(s),p=po()(s,`${s}-element`,{[`${s}-active`]:i},u,n,r,d);return c(g.createElement("div",{className:p},g.createElement("div",{className:po()(`${s}-image`,n),style:o},a)))},df=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},pf=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((t,n)=>g.createElement("li",{key:n,style:{width:df(n,e)}}));return g.createElement("ul",{className:po()(t,n),style:r},i)},ff=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return g.createElement("h3",{className:po()(t,n),style:Object.assign({width:r},o)})};function hf(e){return e&&"object"===typeof e?e:{}}const gf=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:p,direction:f,className:h,style:m}=Zr("skeleton"),v=p("skeleton",t),[y,b,x]=of(v);if(n||!("loading"in e)){const e=!!l,t=!!s,n=!!c;let a,p;if(e){const e=Object.assign(Object.assign({prefixCls:`${v}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),hf(l));a=g.createElement("div",{className:`${v}-header`},g.createElement(Wp,Object.assign({},e)))}if(t||n){let r,o;if(t){const t=Object.assign(Object.assign({prefixCls:`${v}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),hf(s));r=g.createElement(ff,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),hf(c));o=g.createElement(pf,Object.assign({},n))}p=g.createElement("div",{className:`${v}-content`},r,o)}const w=po()(v,{[`${v}-with-avatar`]:e,[`${v}-active`]:u,[`${v}-rtl`]:"rtl"===f,[`${v}-round`]:d},h,r,o,b,x);return y(g.createElement("div",{className:w,style:Object.assign(Object.assign({},m),i)},a,p))}return null!==a&&void 0!==a?a:null};gf.Button=lf,gf.Avatar=af,gf.Input=cf,gf.Image=sf,gf.Node=uf;const mf=gf;const vf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var yf=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:vf}))};const bf=g.forwardRef(yf);const xf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var wf=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:xf}))};const Sf=g.forwardRef(wf),Cf=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))},_f=(0,g.createContext)(null);function kf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return g.Children.forEach(e,function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(kf(e)):bo(e)&&e.props?n=n.concat(kf(e.props.children,t)):n.push(e))}),n}var Mf=g.createContext(null);var If=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__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Ef="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,Of="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),$f="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(Of):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var Tf=["top","right","bottom","left","width","height","size","weight"],Pf="undefined"!==typeof MutationObserver,Df=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){$f(i)}function l(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Ef&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Pf?(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(){Ef&&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;Tf.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Nf=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},Af=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Of},Rf=Ff(0,0,0,0);function jf(e){return parseFloat(e)||0}function Lf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+jf(e["border-"+n+"-width"])},0)}function zf(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Rf;var r=Af(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=jf(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=jf(r.width),s=jf(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=Lf(r,"left","right")+i),Math.round(s+a)!==n&&(s-=Lf(r,"top","bottom")+a)),!function(e){return e===Af(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return Ff(o.left,o.top,l,s)}var Bf="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof Af(e).SVGGraphicsElement}:function(e){return e instanceof Af(e).SVGElement&&"function"===typeof e.getBBox};function Hf(e){return Ef?Bf(e)?function(e){var t=e.getBBox();return Ff(0,0,t.width,t.height)}(e):zf(e):Rf}function Ff(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Vf=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ff(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Hf(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Wf=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Nf(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);Nf(this,{target:e,contentRect:n})},Gf=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new If,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Af(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Vf(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof Af(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new Wf(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Uf="undefined"!==typeof WeakMap?new WeakMap:new If,Yf=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=Df.getInstance(),r=new Gf(t,n,this);Uf.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){Yf.prototype[e]=function(){var t;return(t=Uf.get(this))[e].apply(t,arguments)}});const qf="undefined"!==typeof Of.ResizeObserver?Of.ResizeObserver:Yf;var Xf=new Map;var Kf=new qf(function(e){e.forEach(function(e){var t,n=e.target;null===(t=Xf.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});var Zf=function(e){Po(n,e);var t=Ro(n);function n(){return ke(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component);function Qf(e,t){var n=e.children,r=e.disabled,o=g.useRef(null),i=g.useRef(null),a=g.useContext(Mf),l="function"===typeof n,s=l?n(o):n,c=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&g.isValidElement(s)&&_o(s),d=u?Mo(s):null,p=Co(d,o),f=function(){var e;return go(o.current)||(o.current&&"object"===G(o.current)?go(null===(e=o.current)||void 0===e?void 0:e.nativeElement):null)||go(i.current)};g.useImperativeHandle(t,function(){return f()});var h=g.useRef(e);h.current=e;var m=g.useCallback(function(e){var t=h.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,u=e.offsetHeight,d=Math.floor(i),p=Math.floor(l);if(c.current.width!==d||c.current.height!==p||c.current.offsetWidth!==s||c.current.offsetHeight!==u){var f={width:d,height:p,offsetWidth:s,offsetHeight:u};c.current=f;var g=s===Math.round(i)?i:s,m=u===Math.round(l)?l:u,v=ne(ne({},f),{},{offsetWidth:g,offsetHeight:m});null===a||void 0===a||a(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return g.useEffect(function(){var e,t,n=f();return n&&!r&&(e=n,t=m,Xf.has(e)||(Xf.set(e,new Set),Kf.observe(e)),Xf.get(e).add(t)),function(){return function(e,t){Xf.has(e)&&(Xf.get(e).delete(t),Xf.get(e).size||(Kf.unobserve(e),Xf.delete(e)))}(n,m)}},[o.current,r]),g.createElement(Zf,{ref:i},u?g.cloneElement(s,{ref:p}):s)}const Jf=g.forwardRef(Qf);function eh(e,t){var n=e.children;return("function"===typeof n?[n]:kf(n)).map(function(n,r){var o=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return g.createElement(Jf,gt({},e,{key:o,ref:0===r?t:void 0}),n)})}var th=g.forwardRef(eh);th.Collection=function(e){var t=e.children,n=e.onBatchResize,r=g.useRef(0),o=g.useRef([]),i=g.useContext(Mf),a=g.useCallback(function(e,t,a){r.current+=1;var l=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then(function(){l===r.current&&(null===n||void 0===n||n(o.current),o.current=[])}),null===i||void 0===i||i(e,t,a)},[n,i]);return g.createElement(Mf.Provider,{value:a},t)};const nh=th;const rh=function(e){var t=e.activeTabOffset,n=e.horizontal,r=e.rtl,o=e.indicator,i=void 0===o?{}:o,a=i.size,l=i.align,s=void 0===l?"center":l,c=Q((0,g.useState)(),2),u=c[0],d=c[1],p=(0,g.useRef)(),f=g.useCallback(function(e){return"function"===typeof a?a(e):"number"===typeof a?a:e},[a]);function h(){vi.cancel(p.current)}return(0,g.useEffect)(function(){var e={};if(t)if(n){e.width=f(t.width);var o=r?"right":"left";"start"===s&&(e[o]=t[o]),"center"===s&&(e[o]=t[o]+t.width/2,e.transform=r?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=f(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),p.current=vi(function(){var t=u&&e&&Object.keys(e).every(function(t){var n=e[t],r=u[t];return"number"===typeof n&&"number"===typeof r?Math.round(n)===Math.round(r):n===r});t||d(e)}),h},[JSON.stringify(t),n,r,s,f]),{style:u}};var oh={width:0,height:0,left:0,top:0};function ih(e,t){var n=g.useRef(e),r=Q(g.useState({}),2)[1];return[n.current,function(e){var o="function"===typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var ah=Math.pow(.995,20);function lh(e){var t=Q((0,g.useState)(0),2),n=t[0],r=t[1],o=(0,g.useRef)(0),i=(0,g.useRef)();return i.current=e,nt(function(){var e;null===(e=i.current)||void 0===e||e.call(i)},[n]),function(){o.current===n&&(o.current+=1,r(o.current))}}var sh={width:0,height:0,left:0,top:0,right:0};function ch(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function uh(e){return String(e).replace(/"/g,"TABS_DQ")}function dh(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var ph=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?g.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null===o||void 0===o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null});const fh=ph;var hh=g.forwardRef(function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var a={};return"object"!==G(i)||g.isValidElement(i)?a.right=i:a=i,"right"===r&&(n=a.right),"left"===r&&(n=a.left),n?g.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null});const gh=hh;const mh=g.createContext(null);var vh,yh=[];function bh(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";ge("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(vDe){console.error(vDe),r=s,o=c}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,f=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),he(t),{width:p,height:f}}function xh(e){return"undefined"===typeof document?0:((e||void 0===vh)&&(vh=bh()),vh.width)}function wh(e){return"undefined"!==typeof document&&e&&e instanceof Element?bh(e):{width:0,height:0}}var Sh="rc-util-locker-".concat(Date.now()),Ch=0;function _h(e){var t=!!e,n=Q(g.useState(function(){return Ch+=1,"".concat(Sh,"_").concat(Ch)}),1)[0];rt(function(){if(t){var e=wh(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;ge("\nhtml body {\n  overflow-y: hidden;\n  ".concat(r?"width: calc(100% - ".concat(e,"px);"):"","\n}"),n)}else he(n);return function(){he(n)}},[t,n])}var kh=!1;var Mh=function(e){return!1!==e&&(oe()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},Ih=g.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=(e.debug,e.autoDestroy),a=void 0===i||i,l=e.children,s=Q(g.useState(n),2),c=s[0],u=s[1],d=c||n;g.useEffect(function(){(a||n)&&u(n)},[n,a]);var p=Q(g.useState(function(){return Mh(o)}),2),f=p[0],h=p[1];g.useEffect(function(){var e=Mh(o);h(null!==e&&void 0!==e?e:null)});var m=function(e){var t=Q(g.useState(function(){return oe()?document.createElement("div"):null}),1)[0],n=g.useRef(!1),r=g.useContext(mh),o=Q(g.useState(yh),2),i=o[0],a=o[1],l=r||(n.current?void 0:function(e){a(function(t){return[e].concat(ee(t))})});function s(){t.parentElement||document.body.appendChild(t),n.current=!0}function c(){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t),n.current=!1}return rt(function(){return e?r?r(s):s():c(),c},[e]),rt(function(){i.length&&(i.forEach(function(e){return e()}),a(yh))},[i]),[t,l]}(d&&!f),v=Q(m,2),y=v[0],b=v[1],w=null!==f&&void 0!==f?f:y;_h(r&&n&&oe()&&(w===y||w===document.body));var S=null;l&&_o(l)&&t&&(S=l.ref);var C=Co(S,t);if(!d||!oe()||void 0===f)return null;var _,k=!1===w||("boolean"===typeof _&&(kh=_),kh),M=l;return t&&(M=g.cloneElement(l,{ref:C})),g.createElement(mh.Provider,{value:b},k?M:(0,x.createPortal)(M,w))});const Eh=Ih;var Oh=0;var $h=ne({},m).useId;const Th=$h?function(e){var t=$h();return e||t}:function(e){var t=Q(g.useState("ssr-id"),2),n=t[0],r=t[1];return g.useEffect(function(){var e=Oh;Oh+=1,r("rc_unique_".concat(e))},[]),e||n};function Ph(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=void 0===s?0:s,u=o.y,d=void 0===u?0:u,p=g.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],m=n.points[1],v=h[0],y=h[1],b=m[0],x=m[1];v!==b&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=d,y!==x&&["l","r"].includes(y)?"l"===y?f.left=0:f.right=0:f.left=c}return g.createElement("div",{ref:p,className:po()("".concat(t,"-arrow"),a),style:f},l)}function Dh(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?g.createElement(Ai,gt({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return g.createElement("div",{style:{zIndex:r},className:po()("".concat(t,"-mask"),n)})}):null}var Nh=g.memo(function(e){return e.children},function(e,t){return t.cache});const Ah=Nh;var Rh=g.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,p=e.mask,f=e.arrow,h=e.arrowPos,m=e.align,v=e.motion,y=e.maskMotion,b=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,S=e.portal,C=e.zIndex,_=e.onMouseEnter,k=e.onMouseLeave,M=e.onPointerEnter,I=e.onPointerDownCapture,E=e.ready,O=e.offsetX,$=e.offsetY,T=e.offsetR,P=e.offsetB,D=e.onAlign,N=e.onPrepare,A=e.stretch,R=e.targetWidth,j=e.targetHeight,L="function"===typeof n?n():n,z=s||c,B=(null===x||void 0===x?void 0:x.length)>0,H=Q(g.useState(!x||!B),2),F=H[0],V=H[1];if(rt(function(){!F&&B&&a&&V(!0)},[F,B,a]),!F)return null;var W="auto",G={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(E||!s){var U,Y=m.points,q=m.dynamicInset||(null===(U=m._experimental)||void 0===U?void 0:U.dynamicInset),X=q&&"r"===Y[0][1],K=q&&"b"===Y[0][0];X?(G.right=T,G.left=W):(G.left=O,G.right=W),K?(G.bottom=P,G.top=W):(G.top=$,G.bottom=W)}var Z={};return A&&(A.includes("height")&&j?Z.height=j:A.includes("minHeight")&&j&&(Z.minHeight=j),A.includes("width")&&R?Z.width=R:A.includes("minWidth")&&R&&(Z.minWidth=R)),s||(Z.pointerEvents="none"),g.createElement(S,{open:b||z,getContainer:x&&function(){return x(a)},autoDestroy:w},g.createElement(Dh,{prefixCls:o,open:s,zIndex:C,mask:p,motion:y}),g.createElement(nh,{onResize:D,disabled:!s},function(e){return g.createElement(Ai,gt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:N,onEnterPrepare:N,visible:s,onVisibleChanged:function(e){var t;null===v||void 0===v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),l(e)}}),function(n,a){var l=n.className,c=n.style,p=po()(o,l,r);return g.createElement("div",{ref:So(e,t,a),className:p,style:ne(ne(ne(ne({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},G),Z),c),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:_,onMouseLeave:k,onPointerEnter:M,onClick:d,onPointerDownCapture:I},f&&g.createElement(Ph,{prefixCls:o,arrow:f,arrowPos:h,align:m}),g.createElement(Ah,{cache:!s&&!u},L))})}))});const jh=Rh;var Lh=g.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=_o(n),i=g.useCallback(function(e){wo(t,r?r(e):e)},[r]),a=Co(i,Mo(n));return o?g.cloneElement(n,{ref:a}):n});const zh=Lh;const Bh=g.createContext(null);function Hh(e){return e?Array.isArray(e)?e:[e]:[]}const Fh=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Vh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Wh(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Gh(e){return e.ownerDocument.defaultView}function Uh(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Gh(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function Yh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function qh(e){return Yh(parseFloat(e),0)}function Xh(e,t){var n=ne({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Gh(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,h=qh(i),g=qh(a),m=qh(l),v=qh(s),y=Yh(Math.round(c.width/p*1e3)/1e3),b=Yh(Math.round(c.height/u*1e3)/1e3),x=(p-f-m-v)*y,w=(u-d-h-g)*b,S=h*b,C=g*b,_=m*y,k=v*y,M=0,I=0;if("clip"===r){var E=qh(o);M=E*y,I=E*b}var O=c.x+_-M,$=c.y+S-I,T=O+c.width+2*M-_-k-x,P=$+c.height+2*I-S-C-w;n.left=Math.max(n.left,O),n.top=Math.max(n.top,$),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,P)}}),n}function Kh(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Zh(e,t){var n=Q(t||[],2),r=n[0],o=n[1];return[Kh(e.width,r),Kh(e.height,o)]}function Qh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function Jh(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function eg(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var tg=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const ng=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Eh,t=g.forwardRef(function(t,n){var r=t.prefixCls,o=void 0===r?"rc-trigger-popup":r,i=t.children,a=t.action,l=void 0===a?"hover":a,s=t.showAction,c=t.hideAction,u=t.popupVisible,d=t.defaultPopupVisible,p=t.onPopupVisibleChange,f=t.afterPopupVisibleChange,h=t.mouseEnterDelay,m=t.mouseLeaveDelay,v=void 0===m?.1:m,y=t.focusDelay,b=t.blurDelay,x=t.mask,w=t.maskClosable,S=void 0===w||w,C=t.getPopupContainer,_=t.forceRender,k=t.autoDestroy,M=t.destroyPopupOnHide,I=t.popup,E=t.popupClassName,O=t.popupStyle,$=t.popupPlacement,T=t.builtinPlacements,P=void 0===T?{}:T,D=t.popupAlign,N=t.zIndex,A=t.stretch,R=t.getPopupClassNameFromAlign,j=t.fresh,L=t.alignPoint,z=t.onPopupClick,B=t.onPopupAlign,H=t.arrow,F=t.popupMotion,V=t.maskMotion,W=t.popupTransitionName,G=t.popupAnimation,U=t.maskTransitionName,Y=t.maskAnimation,q=t.className,X=t.getTriggerDOMNode,K=Io(t,tg),Z=k||M||!1,J=Q(g.useState(!1),2),te=J[0],re=J[1];rt(function(){re(Cf())},[]);var oe=g.useRef({}),ie=g.useContext(Bh),ae=g.useMemo(function(){return{registerSubPopup:function(e,t){oe.current[e]=t,null===ie||void 0===ie||ie.registerSubPopup(e,t)}}},[ie]),le=Th(),se=Q(g.useState(null),2),ce=se[0],ue=se[1],de=g.useRef(null),pe=Lo(function(e){de.current=e,fo(e)&&ce!==e&&ue(e),null===ie||void 0===ie||ie.registerSubPopup(le,e)}),fe=Q(g.useState(null),2),he=fe[0],ge=fe[1],me=g.useRef(null),ve=Lo(function(e){fo(e)&&he!==e&&(ge(e),me.current=e)}),ye=g.Children.only(i),be=(null===ye||void 0===ye?void 0:ye.props)||{},xe={},we=Lo(function(e){var t,n,r=he;return(null===r||void 0===r?void 0:r.contains(e))||(null===(t=Wu(r))||void 0===t?void 0:t.host)===e||e===r||(null===ce||void 0===ce?void 0:ce.contains(e))||(null===(n=Wu(ce))||void 0===n?void 0:n.host)===e||e===ce||Object.values(oe.current).some(function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t})}),Se=Wh(o,F,G,W),Ce=Wh(o,V,Y,U),_e=Q(g.useState(d||!1),2),ke=_e[0],Me=_e[1],Ie=null!==u&&void 0!==u?u:ke,Ee=Lo(function(e){void 0===u&&Me(e)});rt(function(){Me(u||!1)},[u]);var Oe=g.useRef(Ie);Oe.current=Ie;var $e=g.useRef([]);$e.current=[];var Te=Lo(function(e){var t;Ee(e),(null!==(t=$e.current[$e.current.length-1])&&void 0!==t?t:Ie)!==e&&($e.current.push(e),null===p||void 0===p||p(e))}),Pe=g.useRef(),De=function(){clearTimeout(Pe.current)},Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;De(),0===t?Te(e):Pe.current=setTimeout(function(){Te(e)},1e3*t)};g.useEffect(function(){return De},[]);var Ae=Q(g.useState(!1),2),Re=Ae[0],je=Ae[1];rt(function(e){e&&!Ie||je(!0)},[Ie]);var Le=Q(g.useState(null),2),ze=Le[0],Be=Le[1],He=Q(g.useState(null),2),Fe=He[0],Ve=He[1],We=function(e){Ve([e.clientX,e.clientY])},Ge=function(e,t,n,r,o,i,a){var l=Q(g.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),2),s=l[0],c=l[1],u=g.useRef(0),d=g.useMemo(function(){return t?Uh(t):[]},[t]),p=g.useRef({});e||(p.current={});var f=Lo(function(){if(t&&n&&e){var l,s,u,f,h,g=t,m=g.ownerDocument,v=Gh(g),y=v.getComputedStyle(g).position,b=g.style.left,x=g.style.top,w=g.style.right,S=g.style.bottom,C=g.style.overflow,_=ne(ne({},o[r]),i),k=m.createElement("div");if(null===(l=g.parentElement)||void 0===l||l.appendChild(k),k.style.left="".concat(g.offsetLeft,"px"),k.style.top="".concat(g.offsetTop,"px"),k.style.position=y,k.style.height="".concat(g.offsetHeight,"px"),k.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(n))h={x:n[0],y:n[1],width:0,height:0};else{var M,I,E=n.getBoundingClientRect();E.x=null!==(M=E.x)&&void 0!==M?M:E.left,E.y=null!==(I=E.y)&&void 0!==I?I:E.top,h={x:E.x,y:E.y,width:E.width,height:E.height}}var O=g.getBoundingClientRect(),$=v.getComputedStyle(g),T=$.height,P=$.width;O.x=null!==(s=O.x)&&void 0!==s?s:O.left,O.y=null!==(u=O.y)&&void 0!==u?u:O.top;var D=m.documentElement,N=D.clientWidth,A=D.clientHeight,R=D.scrollWidth,j=D.scrollHeight,L=D.scrollTop,z=D.scrollLeft,B=O.height,H=O.width,F=h.height,V=h.width,W={left:0,top:0,right:N,bottom:A},G={left:-z,top:-L,right:R-z,bottom:j-L},U=_.htmlRegion,Y="visible",q="visibleFirst";"scroll"!==U&&U!==q&&(U=Y);var X=U===q,K=Xh(G,d),Z=Xh(W,d),J=U===Y?Z:K,ee=X?Z:J;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var te=g.getBoundingClientRect();g.style.left=b,g.style.top=x,g.style.right=w,g.style.bottom=S,g.style.overflow=C,null===(f=g.parentElement)||void 0===f||f.removeChild(k);var re=Yh(Math.round(H/parseFloat(P)*1e3)/1e3),oe=Yh(Math.round(B/parseFloat(T)*1e3)/1e3);if(0===re||0===oe||fo(n)&&!Fh(n))return;var ie=_.offset,ae=_.targetOffset,le=Q(Zh(O,ie),2),se=le[0],ce=le[1],ue=Q(Zh(h,ae),2),de=ue[0],pe=ue[1];h.x-=de,h.y-=pe;var fe=Q(_.points||[],2),he=fe[0],ge=Qh(fe[1]),me=Qh(he),ve=Jh(h,ge),ye=Jh(O,me),be=ne({},_),xe=ve.x-ye.x+se,we=ve.y-ye.y+ce;function ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,r=O.x+e,o=O.y+t,i=r+H,a=o+B,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}var Se,Ce,_e,ke,Me=ht(xe,we),Ie=ht(xe,we,Z),Ee=Jh(h,["t","l"]),Oe=Jh(O,["t","l"]),$e=Jh(h,["b","r"]),Te=Jh(O,["b","r"]),Pe=_.overflow||{},De=Pe.adjustX,Ne=Pe.adjustY,Ae=Pe.shiftX,Re=Pe.shiftY,je=function(e){return"boolean"===typeof e?e:e>=0};function gt(){Se=O.y+we,Ce=Se+B,_e=O.x+xe,ke=_e+H}gt();var Le=je(Ne),ze=me[0]===ge[0];if(Le&&"t"===me[0]&&(Ce>ee.bottom||p.current.bt)){var Be=we;ze?Be-=B-F:Be=Ee.y-Te.y-ce;var He=ht(xe,Be),Fe=ht(xe,Be,Z);He>Me||He===Me&&(!X||Fe>=Ie)?(p.current.bt=!0,we=Be,ce=-ce,be.points=[eg(me,0),eg(ge,0)]):p.current.bt=!1}if(Le&&"b"===me[0]&&(Se<ee.top||p.current.tb)){var Ve=we;ze?Ve+=B-F:Ve=$e.y-Oe.y-ce;var We=ht(xe,Ve),Ge=ht(xe,Ve,Z);We>Me||We===Me&&(!X||Ge>=Ie)?(p.current.tb=!0,we=Ve,ce=-ce,be.points=[eg(me,0),eg(ge,0)]):p.current.tb=!1}var Ue=je(De),Ye=me[1]===ge[1];if(Ue&&"l"===me[1]&&(ke>ee.right||p.current.rl)){var qe=xe;Ye?qe-=H-V:qe=Ee.x-Te.x-se;var Xe=ht(qe,we),Ke=ht(qe,we,Z);Xe>Me||Xe===Me&&(!X||Ke>=Ie)?(p.current.rl=!0,xe=qe,se=-se,be.points=[eg(me,1),eg(ge,1)]):p.current.rl=!1}if(Ue&&"r"===me[1]&&(_e<ee.left||p.current.lr)){var Ze=xe;Ye?Ze+=H-V:Ze=$e.x-Oe.x-se;var Qe=ht(Ze,we),Je=ht(Ze,we,Z);Qe>Me||Qe===Me&&(!X||Je>=Ie)?(p.current.lr=!0,xe=Ze,se=-se,be.points=[eg(me,1),eg(ge,1)]):p.current.lr=!1}gt();var et=!0===Ae?0:Ae;"number"===typeof et&&(_e<Z.left&&(xe-=_e-Z.left-se,h.x+V<Z.left+et&&(xe+=h.x-Z.left+V-et)),ke>Z.right&&(xe-=ke-Z.right-se,h.x>Z.right-et&&(xe+=h.x-Z.right+et)));var tt=!0===Re?0:Re;"number"===typeof tt&&(Se<Z.top&&(we-=Se-Z.top-ce,h.y+F<Z.top+tt&&(we+=h.y-Z.top+F-tt)),Ce>Z.bottom&&(we-=Ce-Z.bottom-ce,h.y>Z.bottom-tt&&(we+=h.y-Z.bottom+tt)));var nt=O.x+xe,rt=nt+H,ot=O.y+we,it=ot+B,at=h.x,lt=at+V,st=h.y,ct=st+F,ut=(Math.max(nt,at)+Math.min(rt,lt))/2-nt,dt=(Math.max(ot,st)+Math.min(it,ct))/2-ot;null===a||void 0===a||a(t,be);var pt=te.right-O.x-(xe+O.width),ft=te.bottom-O.y-(we+O.height);1===re&&(xe=Math.round(xe),pt=Math.round(pt)),1===oe&&(we=Math.round(we),ft=Math.round(ft)),c({ready:!0,offsetX:xe/re,offsetY:we/oe,offsetR:pt/re,offsetB:ft/oe,arrowX:ut/re,arrowY:dt/oe,scaleX:re,scaleY:oe,align:be})}}),h=function(){c(function(e){return ne(ne({},e),{},{ready:!1})})};return rt(h,[r]),rt(function(){e||h()},[e]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){u.current+=1;var e=u.current;Promise.resolve().then(function(){u.current===e&&f()})}]}(Ie,ce,L&&null!==Fe?Fe:he,$,P,D,B),Ue=Q(Ge,11),Ye=Ue[0],qe=Ue[1],Xe=Ue[2],Ke=Ue[3],Ze=Ue[4],Qe=Ue[5],Je=Ue[6],et=Ue[7],tt=Ue[8],nt=Ue[9],ot=Ue[10],it=function(e,t,n,r){return g.useMemo(function(){var o=Hh(null!==n&&void 0!==n?n:t),i=Hh(null!==r&&void 0!==r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}(te,l,s,c),at=Q(it,2),lt=at[0],st=at[1],ct=lt.has("click"),ut=st.has("click")||st.has("contextMenu"),dt=Lo(function(){Re||ot()});!function(e,t,n,r,o){rt(function(){if(e&&t&&n){var i=n,a=Uh(t),l=Uh(i),s=Gh(i),c=new Set([s].concat(ee(a),ee(l)));function u(){r(),o()}return c.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),s.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach(function(e){e.removeEventListener("scroll",u),s.removeEventListener("resize",u)})}}},[e,t,n])}(Ie,he,ce,dt,function(){Oe.current&&L&&ut&&Ne(!1)}),rt(function(){dt()},[Fe,$]),rt(function(){!Ie||null!==P&&void 0!==P&&P[$]||dt()},[JSON.stringify(D)]);var pt=g.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(Vh(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(P,o,nt,L);return po()(e,null===R||void 0===R?void 0:R(nt))},[nt,R,P,o,L]);g.useImperativeHandle(n,function(){return{nativeElement:me.current,popupElement:de.current,forceAlign:dt}});var ft=Q(g.useState(0),2),ht=ft[0],gt=ft[1],mt=Q(g.useState(0),2),vt=mt[0],yt=mt[1],bt=function(){if(A&&he){var e=he.getBoundingClientRect();gt(e.width),yt(e.height)}};function xt(e,t,n,r){xe[e]=function(o){var i;null===r||void 0===r||r(o),Ne(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=be[e])||void 0===i||i.call.apply(i,[be,o].concat(l))}}rt(function(){ze&&(ot(),ze(),Be(null))},[ze]),(ct||ut)&&(xe.onClick=function(e){var t;Oe.current&&ut?Ne(!1):!Oe.current&&ct&&(We(e),Ne(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=be.onClick)||void 0===t||t.call.apply(t,[be,e].concat(r))});var wt,St,Ct=function(e,t,n,r,o,i,a,l){var s=g.useRef(e);s.current=e;var c=g.useRef(!1);return g.useEffect(function(){if(t&&r&&(!o||i)){var e=function(){c.current=!1},u=function(e){var t;!s.current||a((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||c.current||l(!1)},d=Gh(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",u,!0),d.addEventListener("contextmenu",u,!0);var p=Wu(n);return p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",u,!0),d.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}},[t,n,r,o,i]),function(){c.current=!0}}(Ie,ut,he,ce,x,S,we,Ne),_t=lt.has("hover"),kt=st.has("hover");_t&&(xt("onMouseEnter",!0,h,function(e){We(e)}),xt("onPointerEnter",!0,h,function(e){We(e)}),wt=function(e){(Ie||Re)&&null!==ce&&void 0!==ce&&ce.contains(e.target)&&Ne(!0,h)},L&&(xe.onMouseMove=function(e){var t;null===(t=be.onMouseMove)||void 0===t||t.call(be,e)})),kt&&(xt("onMouseLeave",!1,v),xt("onPointerLeave",!1,v),St=function(){Ne(!1,v)}),lt.has("focus")&&xt("onFocus",!0,y),st.has("focus")&&xt("onBlur",!1,b),lt.has("contextMenu")&&(xe.onContextMenu=function(e){var t;Oe.current&&st.has("contextMenu")?Ne(!1):(We(e),Ne(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=be.onContextMenu)||void 0===t||t.call.apply(t,[be,e].concat(r))}),q&&(xe.className=po()(be.className,q));var Mt=g.useRef(!1);Mt.current||(Mt.current=_||Ie||Re);var It=ne(ne({},be),xe),Et={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){K[e]&&(Et[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=It[e])||void 0===t||t.call.apply(t,[It].concat(r)),K[e].apply(K,r)})});var Ot=g.cloneElement(ye,ne(ne({},It),Et)),$t={x:Qe,y:Je},Tt=H?ne({},!0!==H?H:{}):null;return g.createElement(g.Fragment,null,g.createElement(nh,{disabled:!Ie,ref:ve,onResize:function(){bt(),dt()}},g.createElement(zh,{getTriggerDOMNode:X},Ot)),Mt.current&&g.createElement(Bh.Provider,{value:ae},g.createElement(jh,{portal:e,ref:pe,prefixCls:o,popup:I,className:po()(E,pt),style:O,target:he,onMouseEnter:wt,onMouseLeave:St,onPointerEnter:wt,zIndex:N,open:Ie,keepDom:Re,fresh:j,onClick:z,onPointerDownCapture:Ct,mask:x,motion:Se,maskMotion:Ce,onVisibleChanged:function(e){je(!1),ot(),null===f||void 0===f||f(e)},onPrepare:function(){return new Promise(function(e){bt(),Be(function(){return e})})},forceRender:_,autoDestroy:Z,getPopupContainer:C,align:nt,arrow:Tt,arrowPos:$t,ready:Ye,offsetX:qe,offsetY:Xe,offsetR:Ke,offsetB:Ze,onAlign:dt,stretch:A,targetWidth:ht/et,targetHeight:vt/tt})))});return t}(Eh);var rg=bd.ESC,og=bd.TAB;const ig=(0,g.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,g.useMemo)(function(){return"function"===typeof n?n():n},[n]),a=So(t,Mo(i));return g.createElement(g.Fragment,null,r&&g.createElement("div",{className:"".concat(o,"-arrow")}),g.cloneElement(i,{ref:_o(i)?a:void 0}))});var ag={adjustX:1,adjustY:1},lg=[0,0];const sg={topLeft:{points:["bl","tl"],overflow:ag,offset:[0,-4],targetOffset:lg},top:{points:["bc","tc"],overflow:ag,offset:[0,-4],targetOffset:lg},topRight:{points:["br","tr"],overflow:ag,offset:[0,-4],targetOffset:lg},bottomLeft:{points:["tl","bl"],overflow:ag,offset:[0,4],targetOffset:lg},bottom:{points:["tc","bc"],overflow:ag,offset:[0,4],targetOffset:lg},bottomRight:{points:["tr","br"],overflow:ag,offset:[0,4],targetOffset:lg}};var cg=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ug(e,t){var n,r=e.arrow,o=void 0!==r&&r,i=e.prefixCls,a=void 0===i?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,d=void 0===u?"bottomLeft":u,p=e.placements,f=void 0===p?sg:p,h=e.getPopupContainer,m=e.showAction,v=e.hideAction,y=e.overlayClassName,b=e.overlayStyle,x=e.visible,w=e.trigger,S=void 0===w?["hover"]:w,C=e.autoFocus,_=e.overlay,k=e.children,M=e.onVisibleChange,I=Io(e,cg),E=Q(g.useState(),2),O=E[0],$=E[1],T="visible"in e?x:O,P=g.useRef(null),D=g.useRef(null),N=g.useRef(null);g.useImperativeHandle(t,function(){return P.current});var A=function(e){$(e),null===M||void 0===M||M(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=g.useRef(!1),l=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null===r||void 0===r||r(!1))},s=function(){var e;return!(null===(e=i.current)||void 0===e||!e.focus)&&(i.current.focus(),a.current=!0,!0)},c=function(e){switch(e.keyCode){case rg:l();break;case og:var t=!1;a.current||(t=s()),t?e.preventDefault():l()}};g.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&vi(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}({visible:T,triggerRef:N,onVisibleChange:A,autoFocus:C,overlayRef:D});var R=function(){return g.createElement(ig,{ref:D,overlay:_,prefixCls:a,arrow:o})},j=g.cloneElement(k,{className:po()(null===(n=k.props)||void 0===n?void 0:n.className,T&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(a,"-open")}()),ref:_o(k)?So(N,Mo(k)):void 0}),L=v;return L||-1===S.indexOf("contextMenu")||(L=["click"]),g.createElement(ng,gt({builtinPlacements:f},I,{prefixCls:a,ref:P,popupClassName:po()(y,Y({},"".concat(a,"-show-arrow"),o)),popupStyle:b,action:S,showAction:m,hideAction:L,popupPlacement:d,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:T,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof _?R:R(),onPopupVisibleChange:A,onPopupClick:function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},getPopupContainer:h}),j)}const dg=g.forwardRef(ug);var pg=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],fg=void 0;function hg(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,d=e.style,p=e.children,f=e.display,h=e.order,m=e.component,v=void 0===m?"div":m,y=Io(e,pg),b=a&&!f;function x(e){s(c,e)}g.useEffect(function(){return function(){x(null)}},[]);var w,S=i&&o!==fg?i(o,{index:h}):p;r||(w={opacity:b?0:1,height:b?0:fg,overflowY:b?"hidden":fg,order:a?h:fg,pointerEvents:b?"none":fg,position:b?"absolute":fg});var C={};b&&(C["aria-hidden"]=!0);var _=g.createElement(v,gt({className:po()(!r&&n,u),style:ne(ne({},w),d)},C,y,{ref:t}),S);return a&&(_=g.createElement(nh,{onResize:function(e){x(e.offsetWidth)},disabled:l},_)),_}var gg=g.forwardRef(hg);gg.displayName="Item";const mg=gg;function vg(){var e=g.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)vi(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,x.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function yg(e,t){var n=Q(g.useState(t),2),r=n[0],o=n[1];return[r,Lo(function(t){e(function(){o(t)})})]}var bg=g.createContext(null),xg=["component"],wg=["className"],Sg=["className"],Cg=function(e,t){var n=g.useContext(bg);if(!n){var r=e.component,o=void 0===r?"div":r,i=Io(e,xg);return g.createElement(o,gt({},i,{ref:t}))}var a=n.className,l=Io(n,wg),s=e.className,c=Io(e,Sg);return g.createElement(bg.Provider,{value:null},g.createElement(mg,gt({ref:t,className:po()(a,s)},l,c)))},_g=g.forwardRef(Cg);_g.displayName="RawItem";const kg=_g;var Mg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ig="responsive",Eg="invalidate";function Og(e){return"+ ".concat(e.length," ...")}function $g(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,o=e.data,i=void 0===o?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=void 0===c?10:c,d=e.ssr,p=e.style,f=e.className,h=e.maxCount,m=e.renderRest,v=e.renderRawRest,y=e.suffix,b=e.component,x=void 0===b?"div":b,w=e.itemComponent,S=e.onVisibleChange,C=Io(e,Mg),_="full"===d,k=vg(),M=Q(yg(k,null),2),I=M[0],E=M[1],O=I||0,$=Q(yg(k,new Map),2),T=$[0],P=$[1],D=Q(yg(k,0),2),N=D[0],A=D[1],R=Q(yg(k,0),2),j=R[0],L=R[1],z=Q(yg(k,0),2),B=z[0],H=z[1],F=Q((0,g.useState)(null),2),V=F[0],W=F[1],G=Q((0,g.useState)(null),2),U=G[0],Y=G[1],q=g.useMemo(function(){return null===U&&_?Number.MAX_SAFE_INTEGER:U||0},[U,I]),X=Q((0,g.useState)(!1),2),K=X[0],Z=X[1],J="".concat(r,"-item"),ee=Math.max(N,j),te=h===Ig,re=i.length&&te,oe=h===Eg,ie=re||"number"===typeof h&&i.length>h,ae=(0,g.useMemo)(function(){var e=i;return re?e=null===I&&_?i:i.slice(0,Math.min(i.length,O/u)):"number"===typeof h&&(e=i.slice(0,h)),e},[i,u,I,h,re]),le=(0,g.useMemo)(function(){return re?i.slice(q+1):i.slice(ae.length)},[i,ae,re,q]),se=(0,g.useCallback)(function(e,t){var n;return"function"===typeof s?s(e):null!==(n=s&&(null===e||void 0===e?void 0:e[s]))&&void 0!==n?n:t},[s]),ce=(0,g.useCallback)(a||function(e){return e},[a]);function ue(e,t,n){(U!==e||void 0!==t&&t!==V)&&(Y(e),n||(Z(e<i.length-1),null===S||void 0===S||S(e)),void 0!==t&&W(t))}function de(e,t){P(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function pe(e){return T.get(se(ae[e],e))}rt(function(){if(O&&"number"===typeof ee&&ae){var e=B,t=ae.length,n=t-1;if(!t)return void ue(0,null);for(var r=0;r<t;r+=1){var o=pe(r);if(_&&(o=o||0),void 0===o){ue(r-1,void 0,!0);break}if(e+=o,0===n&&e<=O||r===n-1&&e+pe(n)<=O){ue(n,null);break}if(e+ee>O){ue(r-1,e-o-B+j);break}}y&&pe(0)+B>O&&W(null)}},[O,T,j,B,se,ae]);var fe=K&&!!le.length,he={};null!==V&&re&&(he={position:"absolute",left:V,top:0});var ge={prefixCls:J,responsive:re,component:w,invalidate:oe},me=l?function(e,t){var n=se(e,t);return g.createElement(bg.Provider,{key:n,value:ne(ne({},ge),{},{order:t,item:e,itemKey:n,registerSize:de,display:t<=q})},l(e,t))}:function(e,t){var n=se(e,t);return g.createElement(mg,gt({},ge,{order:t,key:n,item:e,renderItem:ce,itemKey:n,registerSize:de,display:t<=q}))},ve={order:fe?q:Number.MAX_SAFE_INTEGER,className:"".concat(J,"-rest"),registerSize:function(e,t){L(t),A(j)},display:fe},ye=m||Og,be=v?g.createElement(bg.Provider,{value:ne(ne({},ge),ve)},v(le)):g.createElement(mg,gt({},ge,ve),"function"===typeof ye?ye(le):ye),xe=g.createElement(x,gt({className:po()(!oe&&r,f),style:p,ref:t},C),ae.map(me),ie?be:null,y&&g.createElement(mg,gt({},ge,{responsive:te,responsiveDisabled:!re,order:q,className:"".concat(J,"-suffix"),registerSize:function(e,t){H(t)},display:!0,style:he}),y));return te?g.createElement(nh,{onResize:function(e,t){E(t.clientWidth)},disabled:!re},xe):xe}var Tg=g.forwardRef($g);Tg.displayName="Overflow",Tg.Item=kg,Tg.RESPONSIVE=Ig,Tg.INVALIDATE=Eg;const Pg=Tg;var Dg=g.createContext(null);function Ng(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ag(e){return Ng(g.useContext(Dg),e)}var Rg=["children","locked"],jg=g.createContext(null);function Lg(e){var t=e.children,n=e.locked,r=Io(e,Rg),o=g.useContext(jg),i=me(function(){return function(e,t){var n=ne({},e);return Object.keys(t).forEach(function(e){var r=t[e];void 0!==r&&(n[e]=r)}),n}(o,r)},[o,r],function(e,t){return!n&&(e[0]!==t[0]||!_e(e[1],t[1],!0))});return g.createElement(jg.Provider,{value:i},t)}var zg=[],Bg=g.createContext(null);function Hg(){return g.useContext(Bg)}var Fg=g.createContext(zg);function Vg(e){var t=g.useContext(Fg);return g.useMemo(function(){return void 0!==e?[].concat(ee(t),[e]):t},[t,e])}var Wg=g.createContext(null);const Gg=g.createContext({});function Ug(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Fh(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function Yg(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee(e.querySelectorAll("*")).filter(function(e){return Ug(e,t)});return Ug(e,t)&&n.unshift(e),n}var qg=bd.LEFT,Xg=bd.RIGHT,Kg=bd.UP,Zg=bd.DOWN,Qg=bd.ENTER,Jg=bd.ESC,em=bd.HOME,tm=bd.END,nm=[Kg,Zg,qg,Xg];function rm(e,t){return Yg(e,!0).filter(function(e){return t.has(e)})}function om(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=rm(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var im=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(Ng(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};function am(e,t,n,r,o,i,a,l,s,c){var u=g.useRef(),d=g.useRef();d.current=t;var p=function(){vi.cancel(u.current)};return g.useEffect(function(){return function(){p()}},[]),function(f){var h=f.which;if([].concat(nm,[Qg,Jg,em,tm]).includes(h)){var g=i(),m=im(g,r),v=m,y=v.elements,b=v.key2element,x=v.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(b.get(t),y),S=x.get(w),C=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===Qg)return{inlineTrigger:!0};var c=Y(Y({},Kg,i),Zg,a),u=Y(Y(Y(Y({},qg,n?a:i),Xg,n?i:a),Zg,l),Qg,l),d=Y(Y(Y(Y(Y(Y({},Kg,i),Zg,a),Qg,l),Jg,s),qg,n?l:s),Xg,n?s:l);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===a(S,!0).length,n,h);if(!C&&h!==em&&h!==tm)return;(nm.includes(h)||[em,tm].includes(h))&&f.preventDefault();var _=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var r=x.get(e);l(r),p(),u.current=vi(function(){d.current===r&&t.focus()})}};if([em,tm].includes(h)||C.sibling||!w){var k,M,I=rm(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):o.current,y);M=h===em?I[0]:h===tm?I[I.length-1]:om(k,y,w,C.offset),_(M)}else if(C.inlineTrigger)s(S);else if(C.offset>0)s(S,!0),p(),u.current=vi(function(){m=im(g,r);var e=w.getAttribute("aria-controls"),t=om(document.getElementById(e),m.elements);_(t)},5);else if(C.offset<0){var E=a(S,!0),O=E[E.length-2],$=b.get(O);s(O,!1),_($)}}null===c||void 0===c||c(f)}}var lm="__RC_UTIL_PATH_SPLIT__",sm=function(e){return e.join(lm)},cm="rc-menu-more";function um(){var e=Q(g.useState({}),2)[1],t=(0,g.useRef)(new Map),n=(0,g.useRef)(new Map),r=Q(g.useState([]),2),o=r[0],i=r[1],a=(0,g.useRef)(0),l=(0,g.useRef)(!1),s=(0,g.useCallback)(function(r,o){var i=sm(o);n.current.set(i,r),t.current.set(r,i),a.current+=1;var s,c=a.current;s=function(){c===a.current&&(l.current||e({}))},Promise.resolve().then(s)},[]),c=(0,g.useCallback)(function(e,r){var o=sm(r);n.current.delete(o),t.current.delete(e)},[]),u=(0,g.useCallback)(function(e){i(e)},[]),d=(0,g.useCallback)(function(e,n){var r=t.current.get(e)||"",i=r.split(lm);return n&&o.includes(i[0])&&i.unshift(cm),i},[o]),p=(0,g.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return d(e,!0).includes(t)})},[d]),f=(0,g.useCallback)(function(e){var r="".concat(t.current.get(e)).concat(lm),o=new Set;return ee(n.current.keys()).forEach(function(e){e.startsWith(r)&&o.add(n.current.get(e))}),o},[]);return g.useEffect(function(){return function(){l.current=!0}},[]),{registerPath:s,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:d,getKeys:function(){var e=ee(t.current.keys());return o.length&&e.push(cm),e},getSubPathKeys:f}}function dm(e){var t=g.useRef(e);t.current=e;var n=g.useCallback(function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))},[]);return e?n:void 0}var pm=Math.random().toFixed(5).toString().slice(2),fm=0;function hm(e,t,n,r){var o=g.useContext(jg),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),l(e)}),s}function gm(e){var t=g.useContext(jg),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}function mm(e){var t,n=e.icon,r=e.props,o=e.children;return null===n||!1===n?null:("function"===typeof n?t=g.createElement(n,ne({},r)):"boolean"!==typeof n&&(t=n),t||o||null)}var vm=["item"];function ym(e){var t=e.item,n=Io(e,vm);return Object.defineProperty(n,"item",{get:function(){return Ce(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var bm=["title","attribute","elementRef"],xm=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],wm=["active"],Sm=function(e){Po(n,e);var t=Ro(n);function n(){return ke(this,n),t.apply(this,arguments)}return Ie(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,o=Fp(Io(e,bm),["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ce(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),g.createElement(Pg.Item,gt({},n,{title:"string"===typeof t?t:void 0},o,{ref:r}))}}]),n}(g.Component),Cm=g.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey,i=(e.warnKey,e.disabled),a=e.itemIcon,l=e.children,s=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,p=e.onKeyDown,f=e.onFocus,h=Io(e,xm),m=Ag(o),v=g.useContext(jg),y=v.prefixCls,b=v.onItemClick,x=v.disabled,w=v.overflowDisabled,S=v.itemIcon,C=v.selectedKeys,_=v.onActive,k=g.useContext(Gg)._internalRenderMenuItem,M="".concat(y,"-item"),I=g.useRef(),E=g.useRef(),O=x||i,$=Co(t,E),T=Vg(o);var P=function(e){return{key:o,keyPath:ee(T).reverse(),item:I.current,domEvent:e}},D=a||S,N=hm(o,O,c,u),A=N.active,R=Io(N,wm),j=C.includes(o),L=gm(T.length),z={};"option"===e.role&&(z["aria-selected"]=j);var B=g.createElement(Sm,gt({ref:I,elementRef:$,role:null===s?"none":s||"menuitem",tabIndex:i?null:-1,"data-menu-id":w&&m?null:m},Fp(h,["extra"]),R,z,{component:"li","aria-disabled":i,style:ne(ne({},L),n),className:po()(M,Y(Y(Y({},"".concat(M,"-active"),A),"".concat(M,"-selected"),j),"".concat(M,"-disabled"),O),r),onClick:function(e){if(!O){var t=P(e);null===d||void 0===d||d(ym(t)),b(t)}},onKeyDown:function(e){if(null===p||void 0===p||p(e),e.which===bd.ENTER){var t=P(e);null===d||void 0===d||d(ym(t)),b(t)}},onFocus:function(e){_(o),null===f||void 0===f||f(e)}}),l,g.createElement(mm,{props:ne(ne({},e),{},{isSelected:j}),icon:D}));return k&&(B=k(B,e,{selected:j})),B});function _m(e,t){var n=e.eventKey,r=Hg(),o=Vg(n);return g.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:g.createElement(Cm,gt({},e,{ref:t}))}const km=g.forwardRef(_m);var Mm=["className","children"],Im=function(e,t){var n=e.className,r=e.children,o=Io(e,Mm),i=g.useContext(jg),a=i.prefixCls,l=i.mode,s=i.rtl;return g.createElement("ul",gt({className:po()(a,s&&"".concat(a,"-rtl"),"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===l?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:t}),r)},Em=g.forwardRef(Im);Em.displayName="SubMenuList";const Om=Em;function $m(e,t){return kf(e).map(function(e,n){if(g.isValidElement(e)){var r,o,i=e.key,a=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;(null===a||void 0===a)&&(a="tmp_key-".concat([].concat(ee(t),[n]).join("-")));var l={key:a,eventKey:a};return g.cloneElement(e,l)}return e})}var Tm={adjustX:1,adjustY:1},Pm={topLeft:{points:["bl","tl"],overflow:Tm},topRight:{points:["br","tr"],overflow:Tm},bottomLeft:{points:["tl","bl"],overflow:Tm},bottomRight:{points:["tr","br"],overflow:Tm},leftTop:{points:["tr","tl"],overflow:Tm},leftBottom:{points:["br","bl"],overflow:Tm},rightTop:{points:["tl","tr"],overflow:Tm},rightBottom:{points:["bl","br"],overflow:Tm}},Dm={topLeft:{points:["bl","tl"],overflow:Tm},topRight:{points:["br","tr"],overflow:Tm},bottomLeft:{points:["tl","bl"],overflow:Tm},bottomRight:{points:["tr","br"],overflow:Tm},rightTop:{points:["tr","tl"],overflow:Tm},rightBottom:{points:["br","bl"],overflow:Tm},leftTop:{points:["tl","tr"],overflow:Tm},leftBottom:{points:["bl","br"],overflow:Tm}};function Nm(e,t,n){return t||(n?n[e]||n.other:void 0)}var Am={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Rm(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,d=g.useContext(jg),p=d.getPopupContainer,f=d.rtl,h=d.subMenuOpenDelay,m=d.subMenuCloseDelay,v=d.builtinPlacements,y=d.triggerSubMenuAction,b=d.forceSubMenuRender,x=d.rootClassName,w=d.motion,S=d.defaultMotions,C=Q(g.useState(!1),2),_=C[0],k=C[1],M=ne(ne({},f?Dm:Pm),v),I=Am[c],E=Nm(c,w,S),O=g.useRef(E);"inline"!==c&&(O.current=E);var $=ne(ne({},O.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=g.useRef();return g.useEffect(function(){return T.current=vi(function(){k(n)}),function(){vi.cancel(T.current)}},[n]),g.createElement(ng,{prefixCls:t,popupClassName:po()("".concat(t,"-popup"),Y({},"".concat(t,"-rtl"),f),a,x),stretch:"horizontal"===c?"minWidth":null,getPopupContainer:p,builtinPlacements:M,popupPlacement:I,popupVisible:_,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[y],mouseEnterDelay:h,mouseLeaveDelay:m,onPopupVisibleChange:u,forceRender:b,popupMotion:$,fresh:!0},r)}function jm(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=g.useContext(jg),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,p=g.useRef(!1);p.current=d===i;var f=Q(g.useState(!p.current),2),h=f[0],m=f[1],v=!!p.current&&n;g.useEffect(function(){p.current&&m(!1)},[d]);var y=ne({},Nm(i,c,u));r.length>1&&(y.motionAppear=!1);var b=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||m(!0),null===b||void 0===b?void 0:b(e)},h?null:g.createElement(Lg,{mode:i,locked:!p.current},g.createElement(Ai,gt({visible:v},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(e){var n=e.className,r=e.style;return g.createElement(Om,{id:t,className:n,style:r},o)}))}var Lm=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],zm=["active"],Bm=g.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey,a=(e.warnKey,e.disabled),l=e.internalPopupClose,s=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,p=e.popupOffset,f=e.popupStyle,h=e.onClick,m=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,b=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=Io(e,Lm),S=Ag(i),C=g.useContext(jg),_=C.prefixCls,k=C.mode,M=C.openKeys,I=C.disabled,E=C.overflowDisabled,O=C.activeKey,$=C.selectedKeys,T=C.itemIcon,P=C.expandIcon,D=C.onItemClick,N=C.onOpenChange,A=C.onActive,R=g.useContext(Gg)._internalRenderSubMenuItem,j=g.useContext(Wg).isSubPathKey,L=Vg(),z="".concat(_,"-submenu"),B=I||a,H=g.useRef(),F=g.useRef();var V=null!==c&&void 0!==c?c:T,W=null!==u&&void 0!==u?u:P,G=M.includes(i),U=!E&&G,q=j($,i),X=hm(i,B,b,x),K=X.active,Z=Io(X,zm),J=Q(g.useState(!1),2),ee=J[0],te=J[1],re=function(e){B||te(e)},oe=g.useMemo(function(){return K||"inline"!==k&&(ee||j([O],i))},[k,K,O,ee,i,j]),ie=gm(L.length),ae=dm(function(e){null===h||void 0===h||h(ym(e)),D(e)}),le=S&&"".concat(S,"-popup"),se=g.useMemo(function(){return g.createElement(mm,{icon:"horizontal"!==k?W:void 0,props:ne(ne({},e),{},{isOpen:U,isSubMenu:!0})},g.createElement("i",{className:"".concat(z,"-arrow")}))},[k,W,e,U,z]),ce=g.createElement("div",gt({role:"menuitem",style:ie,className:"".concat(z,"-title"),tabIndex:B?null:-1,ref:H,title:"string"===typeof o?o:null,"data-menu-id":E&&S?null:S,"aria-expanded":U,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":B,onClick:function(e){B||(null===y||void 0===y||y({key:i,domEvent:e}),"inline"===k&&N(i,!G))},onFocus:function(){A(i)}},Z),o,se),ue=g.useRef(k);if("inline"!==k&&L.length>1?ue.current="vertical":ue.current=k,!E){var de=ue.current;ce=g.createElement(Rm,{mode:de,prefixCls:z,visible:!l&&U&&"inline"!==k,popupClassName:d,popupOffset:p,popupStyle:f,popup:g.createElement(Lg,{mode:"horizontal"===de?"vertical":de},g.createElement(Om,{id:le,ref:F},s)),disabled:B,onVisibleChange:function(e){"inline"!==k&&N(i,e)}},ce)}var pe=g.createElement(Pg.Item,gt({ref:t,role:"none"},w,{component:"li",style:n,className:po()(z,"".concat(z,"-").concat(k),r,Y(Y(Y(Y({},"".concat(z,"-open"),U),"".concat(z,"-active"),oe),"".concat(z,"-selected"),q),"".concat(z,"-disabled"),B)),onMouseEnter:function(e){re(!0),null===m||void 0===m||m({key:i,domEvent:e})},onMouseLeave:function(e){re(!1),null===v||void 0===v||v({key:i,domEvent:e})}}),ce,!E&&g.createElement(jm,{id:le,open:U,keyPath:L},s));return R&&(pe=R(pe,e,{selected:q,active:oe,open:U,disabled:B})),g.createElement(Lg,{onItemClick:ae,mode:"horizontal"===k?"vertical":k,itemIcon:V,expandIcon:W},pe)}),Hm=g.forwardRef(function(e,t){var n,r=e.eventKey,o=e.children,i=Vg(r),a=$m(o,i),l=Hg();return g.useEffect(function(){if(l)return l.registerPath(r,i),function(){l.unregisterPath(r,i)}},[i]),n=l?a:g.createElement(Bm,gt({ref:t},e),a),g.createElement(Fg.Provider,{value:i},n)});const Fm=Hm;function Vm(e){var t=e.className,n=e.style,r=g.useContext(jg).prefixCls;return Hg()?null:g.createElement("li",{role:"separator",className:po()("".concat(r,"-item-divider"),t),style:n})}var Wm=["className","title","eventKey","children"],Gm=g.forwardRef(function(e,t){var n=e.className,r=e.title,o=(e.eventKey,e.children),i=Io(e,Wm),a=g.useContext(jg).prefixCls,l="".concat(a,"-item-group");return g.createElement("li",gt({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:po()(l,n)}),g.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"===typeof r?r:void 0},r),g.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))});const Um=g.forwardRef(function(e,t){var n=e.eventKey,r=$m(e.children,Vg(n));return Hg()?r:g.createElement(Gm,gt({ref:t},Fp(e,["warnKey"])),r)});var Ym=["label","children","key","type","extra"];function qm(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(e,l){if(e&&"object"===G(e)){var s=e,c=s.label,u=s.children,d=s.key,p=s.type,f=s.extra,h=Io(s,Ym),m=null!==d&&void 0!==d?d:"tmp-".concat(l);return u||"group"===p?"group"===p?g.createElement(o,gt({key:m},h,{title:c}),qm(u,t,n)):g.createElement(i,gt({key:m},h,{title:c}),qm(u,t,n)):"divider"===p?g.createElement(a,gt({key:m},h)):g.createElement(r,gt({key:m},h,{extra:f}),c,(!!f||0===f)&&g.createElement("span",{className:"".concat(n,"-item-extra")},f))}return null}).filter(function(e){return e})}function Xm(e,t,n,r,o){var i=e,a=ne({divider:Vm,item:km,group:Um,submenu:Fm},r);return t&&(i=qm(t,a,o)),$m(i,n)}var Km=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Zm=[],Qm=g.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=void 0===o?"rc-menu":o,a=r.rootClassName,l=r.style,s=r.className,c=r.tabIndex,u=void 0===c?0:c,d=r.items,p=r.children,f=r.direction,h=r.id,m=r.mode,v=void 0===m?"vertical":m,y=r.inlineCollapsed,b=r.disabled,w=r.disabledOverflow,S=r.subMenuOpenDelay,C=void 0===S?.1:S,_=r.subMenuCloseDelay,k=void 0===_?.1:_,M=r.forceSubMenuRender,I=r.defaultOpenKeys,E=r.openKeys,O=r.activeKey,$=r.defaultActiveFirst,T=r.selectable,P=void 0===T||T,D=r.multiple,N=void 0!==D&&D,A=r.defaultSelectedKeys,R=r.selectedKeys,j=r.onSelect,L=r.onDeselect,z=r.inlineIndent,B=void 0===z?24:z,H=r.motion,F=r.defaultMotions,V=r.triggerSubMenuAction,W=void 0===V?"hover":V,G=r.builtinPlacements,U=r.itemIcon,q=r.expandIcon,X=r.overflowedIndicator,K=void 0===X?"...":X,Z=r.overflowedIndicatorPopupClassName,J=r.getPopupContainer,te=r.onClick,re=r.onOpenChange,oe=r.onKeyDown,ie=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ae=r._internalRenderSubMenuItem,le=r._internalComponents,se=Io(r,Km),ce=Q(g.useMemo(function(){return[Xm(p,d,Zm,le,i),Xm(p,d,Zm,{},i)]},[p,d,le]),2),ue=ce[0],de=ce[1],pe=Q(g.useState(!1),2),fe=pe[0],he=pe[1],ge=g.useRef(),me=function(e){var t=Q(Ho(e,{value:e}),2),n=t[0],r=t[1];return g.useEffect(function(){fm+=1;var e="".concat(pm,"-").concat(fm);r("rc-menu-uuid-".concat(e))},[]),n}(h),ve="rtl"===f;var ye=Ho(I,{value:E,postState:function(e){return e||Zm}}),be=Q(ye,2),xe=be[0],we=be[1],Se=function(e){function t(){we(e),null===re||void 0===re||re(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,x.flushSync)(t):t()},Ce=Q(g.useState(xe),2),ke=Ce[0],Me=Ce[1],Ie=g.useRef(!1),Ee=Q(g.useMemo(function(){return"inline"!==v&&"vertical"!==v||!y?[v,!1]:["vertical",y]},[v,y]),2),Oe=Ee[0],$e=Ee[1],Te="inline"===Oe,Pe=Q(g.useState(Oe),2),De=Pe[0],Ne=Pe[1],Ae=Q(g.useState($e),2),Re=Ae[0],je=Ae[1];g.useEffect(function(){Ne(Oe),je($e),Ie.current&&(Te?we(ke):Se(Zm))},[Oe,$e]);var Le=Q(g.useState(0),2),ze=Le[0],Be=Le[1],He=ze>=ue.length-1||"horizontal"!==De||w;g.useEffect(function(){Te&&Me(xe)},[xe]),g.useEffect(function(){return Ie.current=!0,function(){Ie.current=!1}},[]);var Fe=um(),Ve=Fe.registerPath,We=Fe.unregisterPath,Ge=Fe.refreshOverflowKeys,Ue=Fe.isSubPathKey,Ye=Fe.getKeyPath,qe=Fe.getKeys,Xe=Fe.getSubPathKeys,Ke=g.useMemo(function(){return{registerPath:Ve,unregisterPath:We}},[Ve,We]),Ze=g.useMemo(function(){return{isSubPathKey:Ue}},[Ue]);g.useEffect(function(){Ge(He?Zm:ue.slice(ze+1).map(function(e){return e.key}))},[ze,He]);var Qe=Q(Ho(O||$&&(null===(n=ue[0])||void 0===n?void 0:n.key),{value:O}),2),Je=Qe[0],et=Qe[1],tt=dm(function(e){et(e)}),nt=dm(function(){et(void 0)});(0,g.useImperativeHandle)(t,function(){return{list:ge.current,focus:function(e){var t,n,r=qe(),o=im(r,me),i=o.elements,a=o.key2element,l=o.element2key,s=rm(ge.current,i),c=null!==Je&&void 0!==Je?Je:s[0]?l.get(s[0]):null===(t=ue.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var rt=Ho(A||[],{value:R,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Zm:[e]}}),ot=Q(rt,2),it=ot[0],at=ot[1],lt=dm(function(e){null===te||void 0===te||te(ym(e)),function(e){if(P){var t,n=e.key,r=it.includes(n);t=N?r?it.filter(function(e){return e!==n}):[].concat(ee(it),[n]):[n],at(t);var o=ne(ne({},e),{},{selectedKeys:t});r?null===L||void 0===L||L(o):null===j||void 0===j||j(o)}!N&&xe.length&&"inline"!==De&&Se(Zm)}(e)}),st=dm(function(e,t){var n=xe.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==De){var r=Xe(e);n=n.filter(function(e){return!r.has(e)})}_e(xe,n,!0)||Se(n,!0)}),ct=am(De,Je,ve,me,ge,qe,Ye,et,function(e,t){var n=null!==t&&void 0!==t?t:!xe.includes(e);st(e,n)},oe);g.useEffect(function(){he(!0)},[]);var ut=g.useMemo(function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ae}},[ie,ae]),dt="horizontal"!==De||w?ue:ue.map(function(e,t){return g.createElement(Lg,{key:e.key,overflowDisabled:t>ze},e)}),pt=g.createElement(Pg,gt({id:h,ref:ge,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:km,className:po()(i,"".concat(i,"-root"),"".concat(i,"-").concat(De),s,Y(Y({},"".concat(i,"-inline-collapsed"),Re),"".concat(i,"-rtl"),ve),a),dir:f,style:l,role:"menu",tabIndex:u,data:dt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?ue.slice(-t):null;return g.createElement(Fm,{eventKey:cm,title:K,disabled:He,internalPopupClose:0===t,popupClassName:Z},n)},maxCount:"horizontal"!==De||w?Pg.INVALIDATE:Pg.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Be(e)},onKeyDown:ct},se));return g.createElement(Gg.Provider,{value:ut},g.createElement(Dg.Provider,{value:me},g.createElement(Lg,{prefixCls:i,rootClassName:a,mode:De,openKeys:xe,rtl:ve,disabled:b,motion:fe?H:null,defaultMotions:fe?F:null,activeKey:Je,onActive:tt,onInactive:nt,selectedKeys:it,inlineIndent:B,subMenuOpenDelay:C,subMenuCloseDelay:k,forceSubMenuRender:M,builtinPlacements:G,triggerSubMenuAction:W,getPopupContainer:J,itemIcon:U,expandIcon:q,onItemClick:lt,onOpenChange:st},g.createElement(Wg.Provider,{value:Ze},pt),g.createElement("div",{style:{display:"none"},"aria-hidden":!0},g.createElement(Bg.Provider,{value:Ke},de)))))});var Jm=Qm;Jm.Item=km,Jm.SubMenu=Fm,Jm.ItemGroup=Um,Jm.Divider=Vm;const ev=Jm;var tv=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=void 0===l?{}:l,c=e.style,u=e.className,d=e.editable,p=e.tabBarGutter,f=e.rtl,h=e.removeAriaLabel,m=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,b=Q((0,g.useState)(!1),2),x=b[0],w=b[1],S=Q((0,g.useState)(null),2),C=S[0],_=S[1],k=s.icon,M=void 0===k?"More":k,I="".concat(r,"-more-popup"),E="".concat(n,"-dropdown"),O=null!==C?"".concat(I,"-").concat(C):null,$=null===i||void 0===i?void 0:i.dropdownAriaLabel;var T=g.createElement(ev,{onClick:function(e){var t=e.key,n=e.domEvent;m(t,n),w(!1)},prefixCls:"".concat(E,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":O,selectedKeys:[C],"aria-label":void 0!==$?$:"expanded dropdown"},o.map(function(e){var t=e.closable,n=e.disabled,o=e.closeIcon,i=e.key,a=e.label,l=dh(t,o,d,n);return g.createElement(km,{key:i,id:"".concat(I,"-").concat(i),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(i),disabled:n},g.createElement("span",null,a),l&&g.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(E,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),d.onEdit("remove",{key:t,event:e})}(e,i)}},o||d.removeIcon||"\xd7"))}));function P(e){for(var t=o.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===C})||0,r=t.length,i=0;i<r;i+=1){var a=t[n=(n+e+r)%r];if(!a.disabled)return void _(a.key)}}(0,g.useEffect)(function(){var e=document.getElementById(O);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[C]),(0,g.useEffect)(function(){x||_(null)},[x]);var D=Y({},f?"marginRight":"marginLeft",p);o.length||(D.visibility="hidden",D.order=1);var N=po()(Y({},"".concat(E,"-rtl"),f)),A=a?null:g.createElement(dg,gt({prefixCls:E,overlay:T,visible:!!o.length&&x,onVisibleChange:w,overlayClassName:po()(N,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},s),g.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:D,"aria-haspopup":"listbox","aria-controls":I,id:"".concat(r,"-more"),"aria-expanded":x,onKeyDown:function(e){var t=e.which;if(x)switch(t){case bd.UP:P(-1),e.preventDefault();break;case bd.DOWN:P(1),e.preventDefault();break;case bd.ESC:w(!1);break;case bd.SPACE:case bd.ENTER:null!==C&&m(C,e)}else[bd.DOWN,bd.SPACE,bd.ENTER].includes(t)&&(w(!0),e.preventDefault())}},M));return g.createElement("div",{className:po()("".concat(n,"-nav-operations"),u),style:c,ref:t},A,g.createElement(fh,{prefixCls:n,locale:i,editable:d}))});const nv=g.memo(tv,function(e,t){return t.tabMoving});const rv=function(e){var t=e.prefixCls,n=e.id,r=e.active,o=e.focus,i=e.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,u=i.icon,d=e.closable,p=e.renderWrapper,f=e.removeAriaLabel,h=e.editable,m=e.onClick,v=e.onFocus,y=e.onBlur,b=e.onKeyDown,x=e.onMouseDown,w=e.onMouseUp,S=e.style,C=e.tabCount,_=e.currentPosition,k="".concat(t,"-tab"),M=dh(d,c,h,s);function I(e){s||m(e)}var E=g.useMemo(function(){return u&&"string"===typeof l?g.createElement("span",null,l):l},[l,u]),O=g.useRef(null);g.useEffect(function(){o&&O.current&&O.current.focus()},[o]);var $=g.createElement("div",{key:a,"data-node-key":uh(a),className:po()(k,Y(Y(Y(Y({},"".concat(k,"-with-remove"),M),"".concat(k,"-active"),r),"".concat(k,"-disabled"),s),"".concat(k,"-focus"),o)),style:S,onClick:I},g.createElement("div",{ref:O,role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(a),className:"".concat(k,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:function(e){e.stopPropagation(),I(e)},onKeyDown:b,onMouseDown:x,onMouseUp:w,onFocus:v,onBlur:y},o&&g.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(_," of ").concat(C)),u&&g.createElement("span",{className:"".concat(k,"-icon")},u),l&&E),M&&g.createElement("button",{type:"button",role:"tab","aria-label":f||"remove",tabIndex:r?0:-1,className:"".concat(k,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:a,event:t})}},c||h.removeIcon||"\xd7"));return p?p($):$};var ov=function(e){var t=e.current||{},n=t.offsetWidth,r=void 0===n?0:n,o=t.offsetHeight,i=void 0===o?0:o;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,s=a.height;if(Math.abs(l-r)<1)return[l,s]}return[r,i]},iv=function(e,t){return e[t?0:1]},av=g.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,p=e.tabBarGutter,f=e.children,h=e.onTabClick,m=e.onTabScroll,v=e.indicator,y=g.useContext(_f),b=y.prefixCls,x=y.tabs,w=(0,g.useRef)(null),S=(0,g.useRef)(null),C=(0,g.useRef)(null),_=(0,g.useRef)(null),k=(0,g.useRef)(null),M=(0,g.useRef)(null),I=(0,g.useRef)(null),E="top"===d||"bottom"===d,O=ih(0,function(e,t){E&&m&&m({direction:e>t?"left":"right"})}),$=Q(O,2),T=$[0],P=$[1],D=ih(0,function(e,t){!E&&m&&m({direction:e>t?"top":"bottom"})}),N=Q(D,2),A=N[0],R=N[1],j=Q((0,g.useState)([0,0]),2),L=j[0],z=j[1],B=Q((0,g.useState)([0,0]),2),H=B[0],F=B[1],V=Q((0,g.useState)([0,0]),2),W=V[0],G=V[1],U=Q((0,g.useState)([0,0]),2),q=U[0],X=U[1],K=function(e){var t=(0,g.useRef)([]),n=Q((0,g.useState)({}),2)[1],r=(0,g.useRef)("function"===typeof e?e():e),o=lh(function(){var e=r.current;t.current.forEach(function(t){e=t(e)}),t.current=[],r.current=e,n({})});return[r.current,function(e){t.current.push(e),o()}]}(new Map),Z=Q(K,2),J=Z[0],te=Z[1],re=function(e,t,n){return(0,g.useMemo)(function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||oh,i=o.left+o.width,a=0;a<e.length;a+=1){var l,s=e[a].key,c=t.get(s);c||(c=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||oh);var u=r.get(s)||ne({},c);u.right=i-u.left-u.width,r.set(s,u)}return r},[e.map(function(e){return e.key}).join("_"),t,n])}(x,J,H[0]),oe=iv(L,E),ie=iv(H,E),ae=iv(W,E),le=iv(q,E),se=Math.floor(oe)<Math.floor(ie+ae),ce=se?oe-le:oe-ae,ue="".concat(b,"-nav-operations-hidden"),de=0,pe=0;function fe(e){return e<de?de:e>pe?pe:e}E&&l?(de=0,pe=Math.max(0,ie-ce)):(de=Math.min(0,ce-ie),pe=0);var he=(0,g.useRef)(null),ge=Q((0,g.useState)(),2),me=ge[0],ve=ge[1];function ye(){ve(Date.now())}function be(){he.current&&clearTimeout(he.current)}!function(e,t){var n=Q((0,g.useState)(),2),r=n[0],o=n[1],i=Q((0,g.useState)(0),2),a=i[0],l=i[1],s=Q((0,g.useState)(0),2),c=s[0],u=s[1],d=Q((0,g.useState)(),2),p=d[0],f=d[1],h=(0,g.useRef)(),m=(0,g.useRef)(),v=(0,g.useRef)(null);v.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(h.current)},onTouchMove:function(e){if(r){var n=e.touches[0],i=n.screenX,s=n.screenY;o({x:i,y:s});var c=i-r.x,d=s-r.y;t(c,d);var p=Date.now();l(p),u(p-a),f({x:c,y:d})}},onTouchEnd:function(){if(r&&(o(null),f(null),p)){var e=p.x/c,n=p.y/c,i=Math.abs(e),a=Math.abs(n);if(Math.max(i,a)<.1)return;var l=e,s=n;h.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(s)<.01?window.clearInterval(h.current):t(20*(l*=ah),20*(s*=ah))},20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===m.current?n:r:i>a?(o=n,m.current="x"):(o=r,m.current="y"),t(-o,-o)&&e.preventDefault()}},g.useEffect(function(){function t(e){v.current.onTouchMove(e)}function n(e){v.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){v.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){v.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(_,function(e,t){function n(e,t){e(function(e){return fe(e+t)})}return!!se&&(E?n(P,e):n(R,t),be(),ye(),!0)}),(0,g.useEffect)(function(){return be(),me&&(he.current=setTimeout(function(){ve(0)},100)),be},[me]);var xe=function(e,t,n,r,o,i,a){var l,s,c,u=a.tabs,d=a.tabPosition,p=a.rtl;return["top","bottom"].includes(d)?(l="width",s=p?"right":"left",c=Math.abs(n)):(l="height",s="top",c=-n),(0,g.useMemo)(function(){if(!u.length)return[0,0];for(var n=u.length,r=n,o=0;o<n;o+=1){var i=e.get(u[o].key)||sh;if(Math.floor(i[s]+i[l])>Math.floor(c+t)){r=o-1;break}}for(var a=0,d=n-1;d>=0;d-=1)if((e.get(u[d].key)||sh)[s]<c){a=d+1;break}return a>=r?[0,0]:[a,r]},[e,t,r,o,i,c,d,u.map(function(e){return e.key}).join("_"),p])}(re,ce,E?T:A,ie,ae,le,ne(ne({},e),{},{tabs:x})),we=Q(xe,2),Se=we[0],Ce=we[1],_e=Lo(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=re.get(e)||{width:0,height:0,left:0,right:0,top:0};if(E){var n=T;l?t.right<T?n=t.right:t.right+t.width>T+ce&&(n=t.right+t.width-ce):t.left<-T?n=-t.left:t.left+t.width>-T+ce&&(n=-(t.left+t.width-ce)),R(0),P(fe(n))}else{var r=A;t.top<-A?r=-t.top:t.top+t.height>-A+ce&&(r=-(t.top+t.height-ce)),P(0),R(fe(r))}}),ke=Q((0,g.useState)(),2),Me=ke[0],Ie=ke[1],Ee=Q((0,g.useState)(!1),2),Oe=Ee[0],$e=Ee[1],Te=x.filter(function(e){return!e.disabled}).map(function(e){return e.key}),Pe=function(e){var t=Te.indexOf(Me||a),n=Te.length,r=Te[(t+e+n)%n];Ie(r)},De=function(e){var t=e.code,n=l&&E,r=Te[0],o=Te[Te.length-1];switch(t){case"ArrowLeft":E&&Pe(n?1:-1);break;case"ArrowRight":E&&Pe(n?-1:1);break;case"ArrowUp":e.preventDefault(),E||Pe(-1);break;case"ArrowDown":e.preventDefault(),E||Pe(1);break;case"Home":e.preventDefault(),Ie(r);break;case"End":e.preventDefault(),Ie(o);break;case"Enter":case"Space":e.preventDefault(),h(null!==Me&&void 0!==Me?Me:a,e);break;case"Backspace":case"Delete":var i=Te.indexOf(Me),s=x.find(function(e){return e.key===Me});dh(null===s||void 0===s?void 0:s.closable,null===s||void 0===s?void 0:s.closeIcon,c,null===s||void 0===s?void 0:s.disabled)&&(e.preventDefault(),e.stopPropagation(),c.onEdit("remove",{key:Me,event:e}),i===Te.length-1?Pe(-1):Pe(1))}},Ne={};E?Ne[l?"marginRight":"marginLeft"]=p:Ne.marginTop=p;var Ae=x.map(function(e,t){var n=e.key;return g.createElement(rv,{id:o,prefixCls:b,key:n,tab:e,style:0===t?void 0:Ne,closable:e.closable,editable:c,active:n===a,focus:n===Me,renderWrapper:f,removeAriaLabel:null===u||void 0===u?void 0:u.removeAriaLabel,tabCount:Te.length,currentPosition:t+1,onClick:function(e){h(n,e)},onKeyDown:De,onFocus:function(){Oe||Ie(n),_e(n),ye(),_.current&&(l||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:function(){Ie(void 0)},onMouseDown:function(){$e(!0)},onMouseUp:function(){$e(!1)}})}),Re=function(){return te(function(){var e,t=new Map,n=null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect();return x.forEach(function(e){var r,o=e.key,i=null===(r=k.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(uh(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,s=a.height,c=a.left,u=a.top;return Math.abs(l-n)<1?[l,s,c-t.left,u-t.top]:[n,r,i,o]}(i,n),l=Q(a,4),s=l[0],c=l[1],u=l[2],d=l[3];t.set(o,{width:s,height:c,left:u,top:d})}}),t})};(0,g.useEffect)(function(){Re()},[x.map(function(e){return e.key}).join("_")]);var je=lh(function(){var e=ov(w),t=ov(S),n=ov(C);z([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=ov(I);G(r);var o=ov(M);X(o);var i=ov(k);F([i[0]-r[0],i[1]-r[1]]),Re()}),Le=x.slice(0,Se),ze=x.slice(Ce+1),Be=[].concat(ee(Le),ee(ze)),He=re.get(a),Fe=rh({activeTabOffset:He,horizontal:E,indicator:v,rtl:l}).style;(0,g.useEffect)(function(){_e()},[a,de,pe,ch(He),ch(re),E]),(0,g.useEffect)(function(){je()},[l]);var Ve,We,Ge,Ue,Ye=!!Be.length,qe="".concat(b,"-nav-wrap");return E?l?(We=T>0,Ve=T!==pe):(Ve=T<0,We=T!==de):(Ge=A<0,Ue=A!==de),g.createElement(nh,{onResize:je},g.createElement("div",{ref:Co(t,w),role:"tablist","aria-orientation":E?"horizontal":"vertical",className:po()("".concat(b,"-nav"),n),style:r,onKeyDown:function(){ye()}},g.createElement(gh,{ref:S,position:"left",extra:s,prefixCls:b}),g.createElement(nh,{onResize:je},g.createElement("div",{className:po()(qe,Y(Y(Y(Y({},"".concat(qe,"-ping-left"),Ve),"".concat(qe,"-ping-right"),We),"".concat(qe,"-ping-top"),Ge),"".concat(qe,"-ping-bottom"),Ue)),ref:_},g.createElement(nh,{onResize:je},g.createElement("div",{ref:k,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(A,"px)"),transition:me?"none":void 0}},Ae,g.createElement(fh,{ref:I,prefixCls:b,locale:u,editable:c,style:ne(ne({},0===Ae.length?void 0:Ne),{},{visibility:Ye?"hidden":null})}),g.createElement("div",{className:po()("".concat(b,"-ink-bar"),Y({},"".concat(b,"-ink-bar-animated"),i.inkBar)),style:Fe}))))),g.createElement(nv,gt({},e,{removeAriaLabel:null===u||void 0===u?void 0:u.removeAriaLabel,ref:M,prefixCls:b,tabs:Be,className:!Ye&&ue,tabMoving:!!me})),g.createElement(gh,{ref:C,position:"right",extra:s,prefixCls:b})))});const lv=av;var sv=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return g.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:po()(n,a&&"".concat(n,"-active"),r),ref:t},s)});const cv=sv;var uv=["renderTabBar"],dv=["label","key"];const pv=function(e){var t=e.renderTabBar,n=Io(e,uv),r=g.useContext(_f).tabs;return t?t(ne(ne({},n),{},{panes:r.map(function(e){var t=e.label,n=e.key,r=Io(e,dv);return g.createElement(cv,gt({tab:t,key:n,tabKey:n},r))})}),lv):g.createElement(lv,n)};var fv=["key","forceRender","style","className","destroyInactiveTabPane"];const hv=function(e){var t=e.id,n=e.activeKey,r=e.animated,o=e.tabPosition,i=e.destroyInactiveTabPane,a=g.useContext(_f),l=a.prefixCls,s=a.tabs,c=r.tabPane,u="".concat(l,"-tabpane");return g.createElement("div",{className:po()("".concat(l,"-content-holder"))},g.createElement("div",{className:po()("".concat(l,"-content"),"".concat(l,"-content-").concat(o),Y({},"".concat(l,"-content-animated"),c))},s.map(function(e){var o=e.key,a=e.forceRender,l=e.style,s=e.className,d=e.destroyInactiveTabPane,p=Io(e,fv),f=o===n;return g.createElement(Ai,gt({key:o,visible:f,forceRender:a,removeOnLeave:!(!i&&!d),leavedClassName:"".concat(u,"-hidden")},r.tabPaneMotion),function(e,n){var r=e.style,i=e.className;return g.createElement(cv,gt({},p,{prefixCls:u,id:t,tabKey:o,animated:c,active:f,style:ne(ne({},l),r),className:po()(s,i),ref:n}))})})))};var gv=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],mv=0,vv=g.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=void 0===r?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,p=e.tabPosition,f=void 0===p?"top":p,h=e.tabBarGutter,m=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,b=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,S=e.onChange,C=e.onTabClick,_=e.onTabScroll,k=e.getPopupContainer,M=e.popupClassName,I=e.indicator,E=Io(e,gv),O=g.useMemo(function(){return(a||[]).filter(function(e){return e&&"object"===G(e)&&"key"in e})},[a]),$="rtl"===l,T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:ne({inkBar:!0},"object"===G(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(d),P=Q((0,g.useState)(!1),2),D=P[0],N=P[1];(0,g.useEffect)(function(){N(Cf())},[]);var A=Q(Ho(function(){var e;return null===(e=O[0])||void 0===e?void 0:e.key},{value:s,defaultValue:c}),2),R=A[0],j=A[1],L=Q((0,g.useState)(function(){return O.findIndex(function(e){return e.key===R})}),2),z=L[0],B=L[1];(0,g.useEffect)(function(){var e,t=O.findIndex(function(e){return e.key===R});-1===t&&(t=Math.max(0,Math.min(z,O.length-1)),j(null===(e=O[t])||void 0===e?void 0:e.key));B(t)},[O.map(function(e){return e.key}).join("_"),R,z]);var H=Q(Ho(null,{value:n}),2),F=H[0],V=H[1];(0,g.useEffect)(function(){n||(V("rc-tabs-".concat(mv)),mv+=1)},[]);var W={id:F,activeKey:R,animated:T,tabPosition:f,rtl:$,mobile:D},U=ne(ne({},W),{},{editable:u,locale:y,more:b,tabBarGutter:h,onTabClick:function(e,t){null===C||void 0===C||C(e,t);var n=e!==R;j(e),n&&(null===S||void 0===S||S(e))},onTabScroll:_,extra:v,style:m,panes:null,getPopupContainer:k,popupClassName:M,indicator:I});return g.createElement(_f.Provider,{value:{tabs:O,prefixCls:o}},g.createElement("div",gt({ref:t,id:n,className:po()(o,"".concat(o,"-").concat(f),Y(Y(Y({},"".concat(o,"-mobile"),D),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),$),i)},E),g.createElement(pv,gt({},U,{renderTabBar:w})),g.createElement(hv,gt({destroyInactiveTabPane:x},W,{animated:T}))))});const yv=vv,bv=()=>({height:0,opacity:0}),xv=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},wv=e=>({height:e?e.offsetHeight:0}),Sv=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,Cv=(e,t,n)=>void 0!==n?n:`${e}-${t}`,_v=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr}-motion-collapse`,onAppearStart:bv,onEnterStart:bv,onAppearActive:xv,onEnterActive:xv,onLeaveStart:wv,onLeaveActive:bv,onAppearEnd:Sv,onEnterEnd:Sv,onLeaveEnd:Sv,motionDeadline:500}},kv={motionAppear:!1,motionEnter:!0,motionLeave:!0};var Mv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Iv=function(e,t){if(e)return e.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const n=kf(t).map(e=>{if(g.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=Mv(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null});return function(e){return e.filter(e=>e)}(n)},Ev=e=>({animationDuration:e,animationFillMode:"both"}),Ov=e=>({animationDuration:e,animationFillMode:"both"}),$v=function(e,t,n,r){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n      ${o}${e}-enter,\n      ${o}${e}-appear\n    `]:Object.assign(Object.assign({},Ev(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Ov(r)),{animationPlayState:"paused"}),[`\n      ${o}${e}-enter${e}-enter-active,\n      ${o}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Tv=new xn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Pv=new xn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Dv=new xn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Nv=new xn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Av=new xn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Rv=new xn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),jv=new xn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Lv=new xn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),zv={"slide-up":{inKeyframes:Tv,outKeyframes:Pv},"slide-down":{inKeyframes:Dv,outKeyframes:Nv},"slide-left":{inKeyframes:Av,outKeyframes:Rv},"slide-right":{inKeyframes:jv,outKeyframes:Lv}},Bv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=zv[t];return[$v(r,o,i,e.motionDurationMid),{[`\n      ${r}-enter,\n      ${r}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Hv=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Bv(e,"slide-up"),Bv(e,"slide-down")]]},Fv=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Xe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Zi(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Xe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Xe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Xe(e.borderRadiusLG)} 0 0 ${Xe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Vv=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ki(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Xe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Xi),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Xe(e.paddingXXS)} ${Xe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Wv=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Xe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gv=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Xe(e.borderRadius)} ${Xe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Xe(e.borderRadius)} ${Xe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Xe(e.borderRadius)} ${Xe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Xe(e.borderRadius)} 0 0 ${Xe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},Uv=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Qi(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:Zi(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Yv=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Xe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Xe(e.marginXS)},marginLeft:{_skip_check_:!0,value:Xe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},qv=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${Xe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Qi(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Uv(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Qi(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Xv=dp("Tabs",e=>{const t=ep(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Xe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Xe(e.horizontalItemGutter)}`});return[Gv(t),Yv(t),Wv(t),Vv(t),Fv(t),qv(t),Hv(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,s=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:s,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}});var Kv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Zv=e=>{var t,n,r,o,i,a,l,s,c,u,d;const{type:p,className:f,rootClassName:h,size:m,onEdit:v,hideAdd:y,centered:b,addIcon:x,removeIcon:w,moreIcon:S,more:C,popupClassName:_,children:k,items:M,animated:I,style:E,indicatorSize:O,indicator:$,destroyInactiveTabPane:T,destroyOnHidden:P}=e,D=Kv(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:N}=D,{direction:A,tabs:R,getPrefixCls:j,getPopupContainer:L}=g.useContext(qr),z=j("tabs",N),B=Rd(z),[H,F,V]=Xv(z,B);let W;"editable-card"===p&&(W={onEdit:(e,t)=>{let{key:n,event:r}=t;null===v||void 0===v||v("add"===e?r:n,e)},removeIcon:null!==(t=null!==w&&void 0!==w?w:null===R||void 0===R?void 0:R.removeIcon)&&void 0!==t?t:g.createElement(Sp,null),addIcon:(null!==x&&void 0!==x?x:null===R||void 0===R?void 0:R.addIcon)||g.createElement(Sf,null),showAdd:!0!==y});const G=j();const U=Vp(m),Y=Iv(M,k),q=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},kv),{motionName:Cv(e,"switch")})),t}(z,I),X=Object.assign(Object.assign({},null===R||void 0===R?void 0:R.style),E),K={align:null!==(n=null===$||void 0===$?void 0:$.align)&&void 0!==n?n:null===(r=null===R||void 0===R?void 0:R.indicator)||void 0===r?void 0:r.align,size:null!==(l=null!==(i=null!==(o=null===$||void 0===$?void 0:$.size)&&void 0!==o?o:O)&&void 0!==i?i:null===(a=null===R||void 0===R?void 0:R.indicator)||void 0===a?void 0:a.size)&&void 0!==l?l:null===R||void 0===R?void 0:R.indicatorSize};return H(g.createElement(yv,Object.assign({direction:A,getPopupContainer:L},D,{items:Y,className:po()({[`${z}-${U}`]:U,[`${z}-card`]:["card","editable-card"].includes(p),[`${z}-editable-card`]:"editable-card"===p,[`${z}-centered`]:b},null===R||void 0===R?void 0:R.className,f,h,F,V,B),popupClassName:po()(_,F,V,B),style:X,editable:W,more:Object.assign({icon:null!==(d=null!==(u=null!==(c=null===(s=null===R||void 0===R?void 0:R.more)||void 0===s?void 0:s.icon)&&void 0!==c?c:null===R||void 0===R?void 0:R.moreIcon)&&void 0!==u?u:S)&&void 0!==d?d:g.createElement(bf,null),transitionName:`${G}-slide-up`},C),prefixCls:z,animated:q,indicator:K,destroyInactiveTabPane:null!==P&&void 0!==P?P:T})))};Zv.TabPane=()=>null;const Qv=Zv;var Jv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ey=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=Jv(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=g.useContext(qr),a=i("card",t),l=po()(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return g.createElement("div",Object.assign({},o,{className:l}))},ty=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Xe(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Xi),{[`\n          > ${n}-typography,\n          > ${n}-typography-edit-content\n        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ny=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n      ${Xe(o)} 0 0 0 ${n},\n      0 ${Xe(o)} 0 0 ${n},\n      ${Xe(o)} ${Xe(o)} 0 0 ${n},\n      ${Xe(o)} 0 0 0 ${n} inset,\n      0 ${Xe(o)} 0 0 ${n} inset;\n    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ry=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Xe(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:Xe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Xe(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Xe(e.lineWidth)} ${e.lineType} ${i}`}}})},oy=e=>Object.assign(Object.assign({margin:`${Xe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Xi),"&-description":{color:e.colorTextDescription}}),iy=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${Xe(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Xe(e.padding)} ${Xe(o)}`}}},ay=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},ly=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Ki(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:ty(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:ny(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ry(e),[`${t}-meta`]:oy(e)}),[`${t}-bordered`]:{border:`${Xe(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:iy(e),[`${t}-loading`]:ay(e),[`${t}-rtl`]:{direction:"rtl"}}},sy=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Xe(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},cy=dp("Card",e=>{const t=ep(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[ly(t),sy(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}});var uy="RC_FORM_INTERNAL_HOOKS",dy=function(){Ce(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const py=g.createContext({getFieldValue:dy,getFieldsValue:dy,getFieldError:dy,getFieldWarning:dy,getFieldsError:dy,isFieldsTouched:dy,isFieldTouched:dy,isFieldValidating:dy,isFieldsValidating:dy,resetFields:dy,setFields:dy,setFieldValue:dy,setFieldsValue:dy,validateFields:dy,submit:dy,getInternalHooks:function(){return dy(),{dispatch:dy,initEntityValue:dy,registerField:dy,useSubscribe:dy,setInitialValues:dy,destroyForm:dy,setCallbacks:dy,registerWatch:dy,getFields:dy,setValidateMessages:dy,setPreserve:dy,getInitialValue:dy}}});const fy=g.createContext(null);function hy(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function gy(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var my=gy();function vy(e){var t="function"==typeof Map?new Map:void 0;return vy=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(ga){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(No())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&To(o,n.prototype),o}(e,arguments,Do(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),To(n,e)},vy(e)}var yy=/%[sdj%]/g;function by(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function xy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var a=e.replace(yy,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(Da){return"[Circular]"}default:return e}});return a}return e}function wy(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function Sy(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}var Cy=function(e){Po(n,e);var t=Ro(n);function n(e,r){var o;return ke(this,n),Y(Ao(o=t.call(this,"Async Validation Error")),"errors",void 0),Y(Ao(o),"fields",void 0),o.errors=e,o.fields=r,o}return Ie(n)}(vy(Error));function _y(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ee(e[n]||[]))}),t}(e);Sy(a,n,function(e){return r(e),e.length?i(new Cy(e,by(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new Cy(u,by(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?Sy(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,ee(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}function ky(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function My(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===G(r)&&"object"===G(e[n])?e[n]=ne(ne({},e[n]),r):e[n]=r}return e}var Iy="enum";const Ey=function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,s=t,c=null,u="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(u?c="number":d?c="string":p&&(c="array"),!c)return!1;p&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(xy(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(xy(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(xy(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(xy(o.messages[c].range,e.fullField,e.min,e.max))};const Oy=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!wy(t,i||e.type)||r.push(xy(o.messages.required,e.fullField))};var $y;var Ty=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,Py=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Dy={integer:function(e){return Dy.number(e)&&parseInt(e,10)===e},float:function(e){return Dy.number(e)&&!Dy.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(vDe){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===G(e)&&!Dy.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Ty)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if($y)return $y;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return $y=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(Py)}};const Ny=function(e,t,n,r,o){if(e.required&&void 0===t)Oy(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Dy[i](t)||r.push(xy(o.messages.types[i],e.fullField,e.type)):i&&G(t)!==e.type&&r.push(xy(o.messages.types[i],e.fullField,e.type))}};const Ay={required:Oy,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(xy(o.messages.whitespace,e.fullField))},type:Ny,range:Ey,enum:function(e,t,n,r,o){e[Iy]=Array.isArray(e[Iy])?e[Iy]:[],-1===e[Iy].indexOf(t)&&r.push(xy(o.messages[Iy],e.fullField,e[Iy].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(xy(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(xy(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const Ry=function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":G(t);Ay.required(e,t,r,i,o,a),n(i)};const jy=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t,i)&&!e.required)return n();Ay.required(e,t,r,a,o,i),wy(t,i)||Ay.type(e,t,r,a,o)}n(a)},Ly={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t,"string")&&!e.required)return n();Ay.required(e,t,r,i,o,"string"),wy(t,"string")||(Ay.type(e,t,r,i,o),Ay.range(e,t,r,i,o),Ay.pattern(e,t,r,i,o),!0===e.whitespace&&Ay.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&Ay.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&(Ay.type(e,t,r,i,o),Ay.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&Ay.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),wy(t)||Ay.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&(Ay.type(e,t,r,i,o),Ay.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&(Ay.type(e,t,r,i,o),Ay.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();Ay.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(Ay.type(e,t,r,i,o),Ay.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&Ay.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o),void 0!==t&&Ay.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t,"string")&&!e.required)return n();Ay.required(e,t,r,i,o),wy(t,"string")||Ay.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t,"date")&&!e.required)return n();var a;if(Ay.required(e,t,r,i,o),!wy(t,"date"))a=t instanceof Date?t:new Date(t),Ay.type(e,a,r,i,o),a&&Ay.range(e,a.getTime(),r,i,o)}n(i)},url:jy,hex:jy,email:jy,required:Ry,any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(wy(t)&&!e.required)return n();Ay.required(e,t,r,i,o)}n(i)}};var zy=function(){function e(t){ke(this,e),Y(this,"rules",null),Y(this,"_messages",my),this.define(t)}return Ie(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==G(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=My(gy(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"===typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===my&&(a=gy()),My(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"===typeof a.transform&&(r===t&&(r=ne({},r)),void 0!==(i=r[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":G(i)))),(a="function"===typeof a?{validator:a}:ne({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))})});var s={};return _y(l,o,function(t,n){var i,a=t.rule,l=("object"===a.type||"array"===a.type)&&("object"===G(a.fields)||"object"===G(a.defaultField));function c(e,t){return ne(ne({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(ee(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(ky(a,r));if(o.first&&d.length)return s[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(ky(a,r)):o.error&&(d=[o.error(a,xy(o.messages.required,a.field))]),n(d);var p={};a.defaultField&&Object.keys(t.value).map(function(e){p[e]=a.defaultField}),p=ne(ne({},p),t.rule.fields);var f={};Object.keys(p).forEach(function(e){var t=p[e],n=Array.isArray(t)?t:[t];f[e]=n.map(c.bind(null,e))});var h=new e(f);h.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),h.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,ee(d)),e&&e.length&&t.push.apply(t,ee(e)),n(t.length?t:null)})}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(f){var d,p;null===(d=(p=console).error)||void 0===d||d.call(p,f),o.suppressValidatorError||setTimeout(function(){throw f},0),u(f.message)}!0===i?u():!1===i?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,ee(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=by(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!Ly.hasOwnProperty(e.type))throw new Error(xy("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Ly.required:Ly[this.getType(e)]||void 0}}]),e}();Y(zy,"register",function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Ly[e]=t}),Y(zy,"warning",function(){}),Y(zy,"messages",my),Y(zy,"validators",Ly);var By="'${name}' is not a valid ${type}",Hy={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:By,method:By,array:By,object:By,number:By,date:By,boolean:By,integer:By,float:By,regexp:By,email:By,url:By,hex:By},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Fy=zy;function Vy(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var Wy="CODE_LOGIC_ERROR";function Gy(e,t,n,r,o){return Uy.apply(this,arguments)}function Uy(){return Uy=Iu(ku().mark(function e(t,n,r,o,i){var a,l,s,c,u,d,p,f,h;return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(a=ne({},r)).ruleIndex,Fy.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Wy)}}),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new Fy(Y({},t,[a])),u=On(Hy,o.validateMessages),c.messages(u),d=[],e.prev=10,e.next=13,Promise.resolve(c.validate(Y({},t,n),ne({},o)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(d=e.t0.errors.map(function(e,t){var n=e.message,r=n===Wy?u.default:n;return g.isValidElement(r)?g.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(d.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Gy("".concat(t,".").concat(n),e,s,o,i)}));case 21:return p=e.sent,e.abrupt("return",p.reduce(function(e,t){return[].concat(ee(e),ee(t))},[]));case 23:return f=ne(ne({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=d.map(function(e){return"string"===typeof e?Vy(e,f):e}),e.abrupt("return",h);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),Uy.apply(this,arguments)}function Yy(e,t,n,r,o,i){var a,l=e.join("."),s=n.map(function(e,t){var n=e.validator,r=ne(ne({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){Ce(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});o=i&&"function"===typeof i.then&&"function"===typeof i.catch,Ce(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n===!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=Iu(ku().mark(function e(n,o){var a,c,u;return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,Gy(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map(function(e){return Gy(l,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return Xy.apply(this,arguments)}(c):function(e){return qy.apply(this,arguments)}(c)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function qy(){return(qy=Iu(ku().mark(function e(t){return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,ee(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xy(){return Xy=Iu(ku().mark(function e(t){var n;return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)})),Xy.apply(this,arguments)}function Ky(e){return hy(e)}function Zy(e,t){var n={};return t.forEach(function(t){var r=_n(e,t);n=Mn(n,t,r)}),n}function Qy(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Jy(t,e,n)})}function Jy(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function eb(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===G(t.target)&&e in t.target?t.target[e]:t}function tb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ee(e.slice(0,n)),[o],ee(e.slice(n,t)),ee(e.slice(t+1,r))):i<0?[].concat(ee(e.slice(0,t)),ee(e.slice(t+1,n+1)),[o],ee(e.slice(n+1,r))):e}var nb=["name"],rb=[];function ob(e,t,n,r,o,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var ib=function(e){Po(n,e);var t=Ro(n);function n(e){var r;(ke(this,n),Y(Ao(r=t.call(this,e)),"state",{resetCount:0}),Y(Ao(r),"cancelRegisterFunc",null),Y(Ao(r),"mounted",!1),Y(Ao(r),"touched",!1),Y(Ao(r),"dirty",!1),Y(Ao(r),"validatePromise",void 0),Y(Ao(r),"prevValidating",void 0),Y(Ao(r),"errors",rb),Y(Ao(r),"warnings",rb),Y(Ao(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Ky(o)),r.cancelRegisterFunc=null}),Y(Ao(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(ee(void 0===n?[]:n),ee(t)):[]}),Y(Ao(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map(function(e){return"function"===typeof e?e(o):e})}),Y(Ao(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),Y(Ao(r),"metaCache",null),Y(Ao(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=ne(ne({},r.getMeta()),{},{destroy:e});_e(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),Y(Ao(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,s=o.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),p=r.getValue(c),f=t&&Qy(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||_e(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=rb,r.warnings=rb,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=rb,r.warnings=rb,r.triggerMetaEvent(),null===s||void 0===s||s(),void r.refresh();break;case"remove":if(i&&ob(i,e,c,d,p,n))return void r.reRender();break;case"setField":var h=n.data;if(f)return"touched"in h&&(r.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(r.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(r.errors=h.errors||rb),"warnings"in h&&(r.warnings=h.warnings||rb),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in h&&Qy(t,u,!0))return void r.reRender();if(i&&!u.length&&ob(i,e,c,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(Ky).some(function(e){return Qy(n.relatedFields,e)}))return void r.reRender();break;default:if(f||(!l.length||u.length||i)&&ob(i,e,c,d,p,n))return void r.reRender()}!0===i&&r.reRender()}),Y(Ao(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(Iu(ku().mark(function o(){var a,l,c,u,d,p,f;return ku().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||hy(t).includes(i)})),!d||!i){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(f=Yy(t,n,p,e,c,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rb;if(r.validatePromise===s){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?rb:r;t?o.push.apply(o,ee(i)):n.push.apply(n,ee(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",f);case 13:case"end":return o.stop()}},o)})));return l||(r.validatePromise=s,r.dirty=!0,r.errors=rb,r.warnings=rb,r.triggerMetaEvent(),r.reRender()),s}),Y(Ao(r),"isFieldValidating",function(){return!!r.validatePromise}),Y(Ao(r),"isFieldTouched",function(){return r.touched}),Y(Ao(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(uy).getInitialValue)(r.getNamePath())}),Y(Ao(r),"getErrors",function(){return r.errors}),Y(Ao(r),"getWarnings",function(){return r.warnings}),Y(Ao(r),"isListField",function(){return r.props.isListField}),Y(Ao(r),"isList",function(){return r.props.isList}),Y(Ao(r),"isPreserve",function(){return r.props.preserve}),Y(Ao(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),Y(Ao(r),"getOnlyChild",function(e){if("function"===typeof e){var t=r.getMeta();return ne(ne({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=kf(e);return 1===n.length&&g.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),Y(Ao(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return _n(e||t(!0),n)}),Y(Ao(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,p=r.getNamePath(),f=u.getInternalHooks,h=u.getFieldsValue,g=f(uy).dispatch,m=r.getValue(),v=c||function(e){return Y({},s,e)},y=e[o],b=void 0!==n?v(m):{};var x=ne(ne({},e),b);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):eb.apply(void 0,[s].concat(n)),l&&(e=l(e,m,h(!0))),e!==m&&g({type:"updateValue",namePath:p,value:e}),y&&y.apply(void 0,n)},hy(d||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&g({type:"validateField",namePath:p,triggerName:e})}}),x}),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(uy).initEntityValue)(Ao(r));return r}return Ie(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(uy).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),o=r.child;return r.isFunction?e=o:g.isValidElement(o)?e=g.cloneElement(o,this.getControlled(o.props)):(Ce(!o,"`children` of Field is not validate ReactElement."),e=o),g.createElement(g.Fragment,{key:t},e)}}]),n}(g.Component);Y(ib,"contextType",py),Y(ib,"defaultProps",{trigger:"onChange",valuePropName:"value"});const ab=function(e){var t,n=e.name,r=Io(e,nb),o=g.useContext(py),i=g.useContext(fy),a=void 0!==n?Ky(n):void 0,l=null!==(t=r.isListField)&&void 0!==t?t:!!i,s="keep";return l||(s="_".concat((a||[]).join("_"))),g.createElement(ib,gt({key:s,name:a,isListField:l},r,{fieldContext:o}))};const lb=function(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=g.useContext(py),s=g.useContext(fy),c=g.useRef({keys:[],id:0}).current,u=g.useMemo(function(){var e=Ky(l.prefixName)||[];return[].concat(ee(e),ee(Ky(t)))},[l.prefixName,t]),d=g.useMemo(function(){return ne(ne({},l),{},{prefixName:u})},[l,u]),p=g.useMemo(function(){return{getKey:function(e){var t=u.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}},[u]);return"function"!==typeof r?(Ce(!1,"Form.List only accepts function as children."),null):g.createElement(fy.Provider,{value:p},g.createElement(py.Provider,{value:d},g.createElement(ab,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:null!==a&&void 0!==a?a:!!s},function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=l.getFieldValue,s=function(){return a(u||[])||[]},d={add:function(e,t){var n=s();t>=0&&t<=n.length?(c.keys=[].concat(ee(c.keys.slice(0,t)),[c.id],ee(c.keys.slice(t))),i([].concat(ee(n.slice(0,t)),[e],ee(n.slice(t))))):(c.keys=[].concat(ee(c.keys),[c.id]),i([].concat(ee(n),[e]))),c.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(c.keys=tb(c.keys,e,t),i(tb(n,e,t)))}}},p=o||[];return Array.isArray(p)||(p=[]),r(p.map(function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),d,t)})))};var sb="__@field_split__";function cb(e){return e.map(function(e){return"".concat(G(e),":").concat(e)}).join(sb)}var ub=function(){function e(){ke(this,e),Y(this,"kvs",new Map)}return Ie(e,[{key:"set",value:function(e,t){this.kvs.set(cb(e),t)}},{key:"get",value:function(e){return this.kvs.get(cb(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(cb(e))}},{key:"map",value:function(e){return ee(this.kvs.entries()).map(function(t){var n=Q(t,2),r=n[0],o=n[1],i=r.split(sb);return e({key:i.map(function(e){var t=Q(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}();const db=ub;var pb=["name"],fb=Ie(function e(t){var n=this;ke(this,e),Y(this,"formHooked",!1),Y(this,"forceRootUpdate",void 0),Y(this,"subscribable",!0),Y(this,"store",{}),Y(this,"fieldEntities",[]),Y(this,"initialValues",{}),Y(this,"callbacks",{}),Y(this,"validateMessages",null),Y(this,"preserve",null),Y(this,"lastValidatePromise",null),Y(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),Y(this,"getInternalHooks",function(e){return e===uy?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Y(this,"useSubscribe",function(e){n.subscribable=e}),Y(this,"prevWithoutPreserves",null),Y(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=On(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=Mn(o,n,_n(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),Y(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new db;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),Y(this,"getInitialValue",function(e){var t=_n(n.initialValues,e);return e.length?On(t):t}),Y(this,"setCallbacks",function(e){n.callbacks=e}),Y(this,"setValidateMessages",function(e){n.validateMessages=e}),Y(this,"setPreserve",function(e){n.preserve=e}),Y(this,"watchList",[]),Y(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),Y(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),Y(this,"timeoutId",null),Y(this,"warningUnhooked",function(){0}),Y(this,"updateStore",function(e){n.store=e}),Y(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),Y(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new db;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),Y(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Ky(e);return t.get(n)||{INVALIDATE_NAME_PATH:Ky(e)}})}),Y(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===G(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)}),Zy(n.store,l.map(Ky))}),Y(this,"getFieldValue",function(e){n.warningUnhooked();var t=Ky(e);return _n(n.store,t)}),Y(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Ky(e[n]),errors:[],warnings:[]}})}),Y(this,"getFieldError",function(e){n.warningUnhooked();var t=Ky(e);return n.getFieldsError([t])[0].errors}),Y(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Ky(e);return n.getFieldsError([t])[0].warnings}),Y(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Ky),l=!1):(o=null,l=i):(o=i.map(Ky),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every(function(e){return c(e)||e.isList()}):s.some(c);var u=new db;o.forEach(function(e){u.set(e,[])}),s.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(ee(t),[e])})})});var d=function(e){return e.some(c)},p=u.map(function(e){return e.value});return l?p.every(d):p.some(d)}),Y(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),Y(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Ky);return t.some(function(e){var t=e.getNamePath();return Qy(r,t)&&e.isFieldValidating()})}),Y(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),Y(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new db,r=n.getFieldEntities(!0);r.forEach(function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}});var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach(function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,ee(ee(r).map(function(e){return e.entity})))})):o=r,o.forEach(function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))Ce(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)Ce(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore(Mn(n.store,o,ee(i)[0].value))}}}})}),Y(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(On(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Ky);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Mn(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),Y(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=Io(e,pb),a=Ky(o);r.push(a),"value"in i&&n.updateStore(Mn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),Y(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=ne(ne({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),Y(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===_n(n.store,r)&&n.updateStore(Mn(n.store,r,t))}}),Y(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t}),Y(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!Jy(e.getNamePath(),t)})){var l=n.store;n.updateStore(Mn(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),Y(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),Y(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=ne(ne({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),Y(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ee(r))}),r}),Y(this,"updateValue",function(e,t){var r=Ky(e),o=n.store;n.updateStore(Mn(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(Zy(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(ee(i)))}),Y(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=On(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Y(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),Y(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new db;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Ky(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),Y(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new db;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return Qy(e,n)});a.length&&r(a,o)}}),Y(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Ky):[],l=[],s=String(Date.now()),c=new Set,u=o||{},d=u.recursive,p=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!p||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||Qy(a,t,d)){var r=e.validateRules(ne({validateMessages:ne(ne({},Hy),n.validateMessages)},o));l.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,ee(n)):r.push.apply(r,ee(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var f=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(l);n.lastValidatePromise=f,f.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var h=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==f})});h.catch(function(e){return e});var g=a.filter(function(e){return c.has(e.join(s))});return n.triggerOnFieldsChange(g),h}),Y(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const hb=function(e){var t=g.useRef(),n=Q(g.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new fb(function(){n({})});t.current=r.getForm()}return[t.current]};var gb=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mb=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,o=e.children,i=g.useContext(gb),a=g.useRef({});return g.createElement(gb.Provider,{value:ne(ne({},i),{},{validateMessages:ne(ne({},i.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),i.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=ne(ne({},a.current),{},Y({},e,t))),i.registerForm(e,t)},unregisterForm:function(e){var t=ne({},a.current);delete t[e],a.current=t,i.unregisterForm(e)}})},o)};const vb=gb;var yb=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const bb=function(e,t){var n=e.name,r=e.initialValues,o=e.fields,i=e.form,a=e.preserve,l=e.children,s=e.component,c=void 0===s?"form":s,u=e.validateMessages,d=e.validateTrigger,p=void 0===d?"onChange":d,f=e.onValuesChange,h=e.onFieldsChange,m=e.onFinish,v=e.onFinishFailed,y=e.clearOnDestroy,b=Io(e,yb),x=g.useRef(null),w=g.useContext(vb),S=Q(hb(i),1)[0],C=S.getInternalHooks(uy),_=C.useSubscribe,k=C.setInitialValues,M=C.setCallbacks,I=C.setValidateMessages,E=C.setPreserve,O=C.destroyForm;g.useImperativeHandle(t,function(){return ne(ne({},S),{},{nativeElement:x.current})}),g.useEffect(function(){return w.registerForm(n,S),function(){w.unregisterForm(n)}},[w,S,n]),I(ne(ne({},w.validateMessages),u)),M({onValuesChange:f,onFieldsChange:function(e){if(w.triggerFormChange(n,e),h){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];h.apply(void 0,[e].concat(r))}},onFinish:function(e){w.triggerFormFinish(n,e),m&&m(e)},onFinishFailed:v}),E(a);var $,T=g.useRef(null);k(r,!T.current),T.current||(T.current=!0),g.useEffect(function(){return function(){return O(y)}},[]);var P="function"===typeof l;P?$=l(S.getFieldsValue(!0),S):$=l;_(!P);var D=g.useRef();g.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==G(e)||"object"!==G(t))return!1;var n=Object.keys(e),r=Object.keys(t);return ee(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"===typeof r&&"function"===typeof o||r===o})})(D.current||[],o||[])||S.setFields(o||[]),D.current=o},[o,S]);var N=g.useMemo(function(){return ne(ne({},S),{},{validateTrigger:p})},[S,p]),A=g.createElement(fy.Provider,{value:null},g.createElement(py.Provider,{value:N},$));return!1===c?A:g.createElement(c,gt({},b,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),S.submit()},onReset:function(e){var t;e.preventDefault(),S.resetFields(),null===(t=b.onReset)||void 0===t||t.call(b,e)}}),A)};function xb(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var wb=function(){};const Sb=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=void 0===o?{}:o,a=function(e){return e&&!!e._init}(i)?{form:i}:i,l=a.form,s=Q((0,g.useState)(),2),c=s[0],u=s[1],d=(0,g.useMemo)(function(){return xb(c)},[c]),p=(0,g.useRef)(d);p.current=d;var f=(0,g.useContext)(py),h=l||f,m=h&&h._init,v=Ky(r),y=(0,g.useRef)(v);return y.current=v,wb(v),(0,g.useEffect)(function(){if(m){var e=h.getFieldsValue,t=(0,h.getInternalHooks)(uy).registerWatch,n=function(e,t){var n=a.preserve?t:e;return"function"===typeof r?r(n):_n(n,y.current)},o=t(function(e,t){var r=n(e,t),o=xb(r);p.current!==o&&(p.current=o,u(r))}),i=n(e(),e(!0));return c!==i&&u(i),o}},[m]),c};var Cb=g.forwardRef(bb);Cb.FormProvider=mb,Cb.Field=ab,Cb.List=lb,Cb.useForm=hb,Cb.useWatch=Sb;const _b=Cb,kb=g.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Mb=g.createContext(null),Ib=e=>{const t=Fp(e,["prefixCls"]);return g.createElement(mb,Object.assign({},t))},Eb=g.createContext({prefixCls:""}),Ob=g.createContext({});const $b=e=>{let{children:t,status:n,override:r}=e;const o=g.useContext(Ob),i=g.useMemo(()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,o]);return g.createElement(Ob.Provider,{value:i},t)},Tb=g.createContext(void 0),Pb=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=g.useContext(qr),l=g.useContext(Tb),s=null===a||void 0===a?void 0:a.variant;let c;c="undefined"!==typeof t?t:!1===n?"borderless":null!==(o=null!==(r=null!==l&&void 0!==l?l:s)&&void 0!==r?r:i)&&void 0!==o?o:"outlined";return[c,Yr.includes(c)]};var Db=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Nb=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return g.createElement("ul",{className:t,style:r},n.map((e,t)=>{const r=`action-${t}`;return g.createElement("li",{style:{width:100/n.length+"%"},key:r},g.createElement("span",null,e))}))},Ab=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:u,bordered:d,variant:p,size:f,type:h,cover:m,actions:v,tabList:y,children:b,activeTabKey:x,defaultActiveTabKey:w,tabBarExtraContent:S,hoverable:C,tabProps:_={},classNames:k,styles:M}=e,I=Db(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:E,direction:O,card:$}=g.useContext(qr),[T]=Pb("card",p,d);const P=e=>{var t;return po()(null===(t=null===$||void 0===$?void 0:$.classNames)||void 0===t?void 0:t[e],null===k||void 0===k?void 0:k[e])},D=e=>{var t;return Object.assign(Object.assign({},null===(t=null===$||void 0===$?void 0:$.styles)||void 0===t?void 0:t[e]),null===M||void 0===M?void 0:M[e])},N=g.useMemo(()=>{let e=!1;return g.Children.forEach(b,t=>{(null===t||void 0===t?void 0:t.type)===ey&&(e=!0)}),e},[b]),A=E("card",n),[R,j,L]=cy(A),z=g.createElement(mf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),B=void 0!==x,H=Object.assign(Object.assign({},_),{[B?"activeKey":"defaultActiveKey"]:B?x:w,tabBarExtraContent:S});let F;const V=Vp(f),W=V&&"default"!==V?V:"large",G=y?g.createElement(Qv,Object.assign({size:W},H,{className:`${A}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:y.map(e=>{var{tab:t}=e,n=Db(e,["tab"]);return Object.assign({label:t},n)})})):null;if(c||a||G){const e=po()(`${A}-head`,P("header")),t=po()(`${A}-head-title`,P("title")),n=po()(`${A}-extra`,P("extra")),r=Object.assign(Object.assign({},l),D("header"));F=g.createElement("div",{className:e,style:r},g.createElement("div",{className:`${A}-head-wrapper`},c&&g.createElement("div",{className:t,style:D("title")},c),a&&g.createElement("div",{className:n,style:D("extra")},a)),G)}const U=po()(`${A}-cover`,P("cover")),Y=m?g.createElement("div",{className:U,style:D("cover")},m):null,q=po()(`${A}-body`,P("body")),X=Object.assign(Object.assign({},s),D("body")),K=g.createElement("div",{className:q,style:X},u?z:b),Z=po()(`${A}-actions`,P("actions")),Q=(null===v||void 0===v?void 0:v.length)?g.createElement(Nb,{actionClasses:Z,actionStyle:D("actions"),actions:v}):null,J=Fp(I,["onTabChange"]),ee=po()(A,null===$||void 0===$?void 0:$.className,{[`${A}-loading`]:u,[`${A}-bordered`]:"borderless"!==T,[`${A}-hoverable`]:C,[`${A}-contain-grid`]:N,[`${A}-contain-tabs`]:null===y||void 0===y?void 0:y.length,[`${A}-${V}`]:V,[`${A}-type-${h}`]:!!h,[`${A}-rtl`]:"rtl"===O},r,o,j,L),te=Object.assign(Object.assign({},null===$||void 0===$?void 0:$.style),i);return R(g.createElement("div",Object.assign({ref:t},J,{className:ee,style:te}),F,Y,K,Q))});var Rb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jb=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=Rb(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=g.useContext(qr),s=l("card",t),c=po()(`${s}-meta`,n),u=r?g.createElement("div",{className:`${s}-meta-avatar`},r):null,d=o?g.createElement("div",{className:`${s}-meta-title`},o):null,p=i?g.createElement("div",{className:`${s}-meta-description`},i):null,f=d||p?g.createElement("div",{className:`${s}-meta-detail`},d,p):null;return g.createElement("div",Object.assign({},a,{className:c}),u,f)},Lb=Ab;Lb.Grid=ey,Lb.Meta=jb;const zb=Lb;function Bb(e){const[t,n]=g.useState(e);return g.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}const Hb=new xn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fb=new xn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Vb=new xn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wb=new xn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Gb=new xn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Ub=new xn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Yb=new xn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),qb=new xn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Xb=new xn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Kb=new xn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Zb=new xn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Qb=new xn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Jb={zoom:{inKeyframes:Hb,outKeyframes:Fb},"zoom-big":{inKeyframes:Vb,outKeyframes:Wb},"zoom-big-fast":{inKeyframes:Vb,outKeyframes:Wb},"zoom-left":{inKeyframes:Yb,outKeyframes:qb},"zoom-right":{inKeyframes:Xb,outKeyframes:Kb},"zoom-up":{inKeyframes:Gb,outKeyframes:Ub},"zoom-down":{inKeyframes:Zb,outKeyframes:Qb}},ex=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Jb[t];return[$v(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tx=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),nx=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n                     opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n                     transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},rx=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Xe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ox=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},ix=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ki(e)),rx(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ox(e,e.controlHeightSM)),"&-large":Object.assign({},ox(e,e.controlHeightLG))})}},ax=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Ki(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n        &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Hb,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},lx=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},sx=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},cx=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ux=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:cx(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},dx=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n        ${r}-col-24${n}-label,\n        ${r}-col-xl-24${n}-label`]:cx(e)}},[`@media (max-width: ${Xe(e.screenXSMax)})`]:[ux(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:cx(e)}}}],[`@media (max-width: ${Xe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:cx(e)}}},[`@media (max-width: ${Xe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:cx(e)}}},[`@media (max-width: ${Xe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:cx(e)}}}}},px=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n      ${n}-col-24${t}-label,\n      ${n}-col-xl-24${t}-label`]:cx(e),[`@media (max-width: ${Xe(e.screenXSMax)})`]:[ux(e),{[t]:{[`${n}-col-xs-24${t}-label`]:cx(e)}}],[`@media (max-width: ${Xe(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:cx(e)}},[`@media (max-width: ${Xe(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:cx(e)}},[`@media (max-width: ${Xe(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:cx(e)}}}},fx=(e,t)=>ep(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),hx=dp("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=fx(e,n);return[ix(r),ax(r),nx(r),lx(r,r.componentCls),lx(r,r.formItemCls),sx(r),dx(r),px(r),tx(r),Hb]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),gx=[];function mx(e,t,n){return{key:"string"===typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const vx=e=>{let{help:t,helpStatus:n,errors:r=gx,warnings:o=gx,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=g.useContext(Eb),c=`${s}-item-explain`,u=Rd(s),[d,p,f]=hx(s,u),h=g.useMemo(()=>_v(s),[s]),m=Bb(r),v=Bb(o),y=g.useMemo(()=>void 0!==t&&null!==t?[mx(t,"help",n)]:[].concat(ee(m.map((e,t)=>mx(e,"error","error",t))),ee(v.map((e,t)=>mx(e,"warning","warning",t)))),[t,n,m,v]),b=g.useMemo(()=>{const e={};return y.forEach(t=>{let{key:n}=t;e[n]=(e[n]||0)+1}),y.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[y]),x={};return a&&(x.id=`${a}_help`),d(g.createElement(Ai,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:l},e=>{const{className:t,style:n}=e;return g.createElement("div",Object.assign({},x,{className:po()(c,t,f,u,i,p),style:n}),g.createElement(Ni,Object.assign({keys:b},_v(s),{motionName:`${s}-show-help-item`,component:!1}),e=>{const{key:t,error:n,errorStatus:r,className:o,style:i}=e;return g.createElement("div",{key:t,className:po()(o,{[`${c}-${r}`]:r}),style:i},n)}))}))},yx=e=>"object"==typeof e&&null!=e&&1===e.nodeType,bx=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,xx=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return bx(n.overflowY,t)||bx(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Sx=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,Cx=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},_x=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!yx(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let h=e;for(;yx(h)&&d(h);){if(h=Cx(h),h===p){f.push(h);break}null!=h&&h===document.body&&xx(h)&&!xx(document.documentElement)||null!=h&&xx(h,u)&&f.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:x,top:w,right:S,bottom:C,left:_}=e.getBoundingClientRect(),{top:k,right:M,bottom:I,left:E}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===l||"nearest"===l?w-k:"end"===l?C+I:w+b/2-k+I,$="center"===s?_+x/2-E+M:"end"===s?S+M:_-E;const T=[];for(let P=0;P<f.length;P++){const e=f[P],{height:t,width:n,top:r,right:o,bottom:i,left:c}=e.getBoundingClientRect();if("if-needed"===a&&w>=0&&_>=0&&C<=m&&S<=g&&(e===p&&!xx(e)||w>=r&&C<=i&&_>=c&&S<=o))return T;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),h=parseInt(u.borderTopWidth,10),k=parseInt(u.borderRightWidth,10),M=parseInt(u.borderBottomWidth,10);let I=0,E=0;const D="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-k:0,N="offsetHeight"in e?e.offsetHeight-e.clientHeight-h-M:0,A="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,R="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)I="start"===l?O:"end"===l?O-m:"nearest"===l?Sx(y,y+m,m,h,M,y+O,y+O+b,b):O-m/2,E="start"===s?$:"center"===s?$-g/2:"end"===s?$-g:Sx(v,v+g,g,d,k,v+$,v+$+x,x),I=Math.max(0,I+y),E=Math.max(0,E+v);else{I="start"===l?O-r-h:"end"===l?O-i+M+N:"nearest"===l?Sx(r,i,t,h,M+N,O,O+b,b):O-(r+t/2)+N/2,E="start"===s?$-c-d:"center"===s?$-(c+n/2)+D/2:"end"===s?$-o+k+D:Sx(c,o,n,d,k+D,$,$+x,x);const{scrollLeft:a,scrollTop:u}=e;I=0===R?0:Math.max(0,Math.min(u+I/R,e.scrollHeight-t/R+N)),E=0===A?0:Math.max(0,Math.min(a+E/A,e.scrollWidth-n/A+D)),O+=u-I,$+=a-E}T.push({el:e,top:I,left:E})}return T};function kx(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(_x(e,t));const r="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:o,top:i,left:a}of _x(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}const Mx=["parentNode"];function Ix(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function Ex(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return Mx.includes(n)?`form_item_${n}`:n}function Ox(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var $x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Tx(e){return Ix(e).join("_")}function Px(e,t){const n=ho(t.getFieldInstance(e));if(n)return n;const r=Ex(Ix(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function Dx(e){const[t]=hb(),n=g.useRef({}),r=g.useMemo(()=>null!==e&&void 0!==e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const r=Tx(e);t?n.current[r]=t:delete n.current[r]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,o=$x(t,["focus"]),i=Px(e,r);i&&(kx(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o)),n&&r.focusField(e))},focusField:e=>{var t,n;const o=r.getFieldInstance(e);"function"===typeof(null===o||void 0===o?void 0:o.focus)?o.focus():null===(n=null===(t=Px(e,r))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=Tx(e);return n.current[t]}}),[e,t]);return[r]}var Nx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Ax=(e,t)=>{const n=g.useContext(no),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:l,className:s,style:c}=Zr("form"),{prefixCls:u,className:d,rootClassName:p,size:f,disabled:h=n,form:m,colon:v,labelAlign:y,labelWrap:b,labelCol:x,wrapperCol:w,hideRequiredMark:S,layout:C="horizontal",scrollToFirstError:_,requiredMark:k,onFinishFailed:M,name:I,style:E,feedbackIcons:O,variant:$}=e,T=Nx(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=Vp(f),D=g.useContext(Dn);const N=g.useMemo(()=>void 0!==k?k:!S&&(void 0===i||i),[S,k,i]),A=null!==v&&void 0!==v?v:a,R=r("form",u),j=Rd(R),[L,z,B]=hx(R,j),H=po()(R,`${R}-${C}`,{[`${R}-hide-required-mark`]:!1===N,[`${R}-rtl`]:"rtl"===o,[`${R}-${P}`]:P},B,j,z,s,d,p),[F]=Dx(m),{__INTERNAL__:V}=F;V.name=I;const W=g.useMemo(()=>({name:I,labelAlign:y,labelCol:x,labelWrap:b,wrapperCol:w,vertical:"vertical"===C,colon:A,requiredMark:N,itemRef:V.itemRef,form:F,feedbackIcons:O}),[I,y,x,w,C,A,N,F,O]),G=g.useRef(null);g.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},F),{nativeElement:null===(e=G.current)||void 0===e?void 0:e.nativeElement})});const U=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n=Object.assign(Object.assign({},n),e)),F.scrollToField(t,n)}};return L(g.createElement(Tb.Provider,{value:$},g.createElement(to,{disabled:h},g.createElement(io.Provider,{value:P},g.createElement(Ib,{validateMessages:D},g.createElement(kb.Provider,{value:W},g.createElement(_b,Object.assign({id:I},T,{name:I,onFinishFailed:e=>{if(null===M||void 0===M||M(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==_)return void U(_,t);void 0!==l&&U(l,t)}},form:F,ref:G,style:Object.assign(Object.assign({},c),E),className:H}))))))))};const Rx=g.forwardRef(Ax);function jx(e){return e&&g.isValidElement(e)&&e.type===g.Fragment}const Lx=(e,t,n)=>g.isValidElement(e)?g.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t;function zx(e,t){return Lx(e,e,t)}const Bx=()=>{const{status:e,errors:t=[],warnings:n=[]}=g.useContext(Ob);return{status:e,errors:t,warnings:n}};Bx.Context=Ob;const Hx=Bx;const Fx=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.addEventListener)?e.addEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.addListener)&&e.addListener(t)},Vx=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.removeEventListener)?e.removeEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.removeListener)&&e.removeListener(t)},Wx=["xxl","xl","lg","md","sm","xs"],Gx=(e,t)=>{if(t)for(const n of Wx)if(e[n]&&void 0!==(null===t||void 0===t?void 0:t[n]))return t[n]},Ux=()=>{const[,e]=Gi(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,n=[].concat(Wx).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(e));return g.useMemo(()=>{const e=new Map;let n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(e=>{let[t,n]=e;const o=e=>{let{matches:n}=e;this.dispatch(Object.assign(Object.assign({},r),{[t]:n}))},i=window.matchMedia(n);Fx(i,o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];Vx(null===t||void 0===t?void 0:t.mql,null===t||void 0===t?void 0:t.listener)}),e.clear()}}},[e])};function Yx(){const[,e]=g.useReducer(e=>e+1,0);return e}const qx=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,g.useRef)(t),r=Yx(),o=Ux();return rt(()=>{const t=o.subscribe(t=>{n.current=t,e&&r()});return()=>o.unsubscribe(t)},[]),n.current};const Xx=(0,g.createContext)({}),Kx=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Zx=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)0===a?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:a/o*100+"%"}],i[`${r}${t}-push-${a}`]={insetInlineStart:a/o*100+"%"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:a/o*100+"%"},i[`${r}${t}-offset-${a}`]={marginInlineStart:a/o*100+"%"},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),Qx=dp("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),Jx=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),ew=dp("Grid",e=>{const t=ep(e,{gridColumns:24}),n=Jx(t);return delete n.xs,[Kx(t),Zx(t,""),Zx(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${Xe(t)})`]:Object.assign({},Zx(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));var tw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function nw(e,t){const[n,r]=g.useState("string"===typeof e?e:"");return g.useEffect(()=>{(()=>{if("string"===typeof e&&r(e),"object"===typeof e)for(let n=0;n<Wx.length;n++){const o=Wx[n];if(!t||!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()},[JSON.stringify(e),t]),n}const rw=g.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=tw(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:p}=g.useContext(qr),f=qx(!0,null),h=nw(o,f),m=nw(r,f),v=d("row",n),[y,b,x]=Qx(v),w=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if("object"===typeof e&&null!==e)for(let r=0;r<Wx.length;r++){const i=Wx[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(s,f),S=po()(v,{[`${v}-no-wrap`]:!1===c,[`${v}-${m}`]:m,[`${v}-${h}`]:h,[`${v}-rtl`]:"rtl"===p},i,b,x),C={},_=null!=w[0]&&w[0]>0?w[0]/-2:void 0;_&&(C.marginLeft=_,C.marginRight=_);const[k,M]=w;C.rowGap=M;const I=g.useMemo(()=>({gutter:[k,M],wrap:c}),[k,M,c]);return y(g.createElement(Xx.Provider,{value:I},g.createElement("div",Object.assign({},u,{className:S,style:Object.assign(Object.assign({},C),a),ref:t}),l)))});const ow=rw;var iw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function aw(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const lw=["xs","sm","md","lg","xl","xxl"],sw=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(qr),{gutter:o,wrap:i}=g.useContext(Xx),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:d,className:p,children:f,flex:h,style:m}=e,v=iw(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[b,x,w]=ew(y),S={};let C={};lw.forEach(t=>{let n={};const o=e[t];"number"===typeof o?n.span=o:"object"===typeof o&&(n=o||{}),delete v[t],C=Object.assign(Object.assign({},C),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===r}),n.flex&&(C[`${y}-${t}-flex`]=!0,S[`--${y}-${t}-flex`]=aw(n.flex))});const _=po()(y,{[`${y}-${l}`]:void 0!==l,[`${y}-order-${s}`]:s,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${d}`]:d},p,C,x,w),k={};if(o&&o[0]>0){const e=o[0]/2;k.paddingLeft=e,k.paddingRight=e}return h&&(k.flex=aw(h),!1!==i||k.minWidth||(k.minWidth=0)),b(g.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},k),m),S),className:_,ref:t}),f))});const cw=sw,uw=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},dw=fp(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=fx(e,n);return[uw(r)]});var pw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fw=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:l,_internalItemRender:s,extra:c,help:u,fieldId:d,marginBottom:p,onErrorVisibleChanged:f,label:h}=e,m=`${t}-item`,v=g.useContext(kb),y=g.useMemo(()=>{let e=Object.assign({},o||v.wrapperCol||{});if(null===h&&!r&&!o&&v.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{const n=t?[t]:[],r=_n(v.labelCol,n),o="object"===typeof r?r:{},i=_n(e,n);"span"in o&&!("offset"in("object"===typeof i?i:{}))&&o.span<24&&(e=Mn(e,[].concat(n,["offset"]),o.span))})}return e},[o,v]),b=po()(`${m}-control`,y.className),x=g.useMemo(()=>{const{labelCol:e,wrapperCol:t}=v;return pw(v,["labelCol","wrapperCol"])},[v]),w=g.useRef(null),[S,C]=g.useState(0);rt(()=>{c&&w.current?C(w.current.clientHeight):C(0)},[c]);const _=g.createElement("div",{className:`${m}-control-input`},g.createElement("div",{className:`${m}-control-input-content`},i)),k=g.useMemo(()=>({prefixCls:t,status:n}),[t,n]),M=null!==p||a.length||l.length?g.createElement(Eb.Provider,{value:k},g.createElement(vx,{fieldId:d,errors:a,warnings:l,help:u,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:f})):null,I={};d&&(I.id=`${d}_extra`);const E=c?g.createElement("div",Object.assign({},I,{className:`${m}-extra`,ref:w}),c):null,O=M||E?g.createElement("div",{className:`${m}-additional`,style:p?{minHeight:p+S}:{}},M,E):null,$=s&&"pro_table_render"===s.mark&&s.render?s.render(e,{input:_,errorList:M,extra:E}):g.createElement(g.Fragment,null,_,O);return g.createElement(kb.Provider,{value:x},g.createElement(cw,Object.assign({},y,{className:b}),$),g.createElement(dw,{prefixCls:t}))};const hw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};var gw=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:hw}))};const mw=g.forwardRef(gw);const vw=function(e){return void 0===e||null===e?null:"object"!==typeof e||(0,g.isValidElement)(e)?{title:e}:e},yw=(e,t)=>{const n=g.useContext(Gn),r=g.useMemo(()=>{var r;const o=t||Bn[e],i=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"===typeof o?o():o),i||{})},[e,t,n]);return[r,g.useMemo(()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?Bn.locale:e},[n])]};function bw(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return g.createElement("div",{className:po()("".concat(n,"-content"),a),style:l},g.createElement("div",{className:po()("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},"function"===typeof t?t():t))}var xw={shiftX:64,adjustY:1},ww={adjustX:1,shiftY:!0},Sw=[0,0],Cw={left:{points:["cr","cl"],overflow:ww,offset:[-4,0],targetOffset:Sw},right:{points:["cl","cr"],overflow:ww,offset:[4,0],targetOffset:Sw},top:{points:["bc","tc"],overflow:xw,offset:[0,-4],targetOffset:Sw},bottom:{points:["tc","bc"],overflow:xw,offset:[0,4],targetOffset:Sw},topLeft:{points:["bl","tl"],overflow:xw,offset:[0,-4],targetOffset:Sw},leftTop:{points:["tr","tl"],overflow:ww,offset:[-4,0],targetOffset:Sw},topRight:{points:["br","tr"],overflow:xw,offset:[0,-4],targetOffset:Sw},rightTop:{points:["tl","tr"],overflow:ww,offset:[4,0],targetOffset:Sw},bottomRight:{points:["tr","br"],overflow:xw,offset:[0,4],targetOffset:Sw},rightBottom:{points:["bl","br"],overflow:ww,offset:[4,0],targetOffset:Sw},bottomLeft:{points:["tl","bl"],overflow:xw,offset:[0,4],targetOffset:Sw},leftBottom:{points:["br","bl"],overflow:ww,offset:[-4,0],targetOffset:Sw}};var _w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],kw=function(e,t){var n=e.overlayClassName,r=e.trigger,o=void 0===r?["hover"]:r,i=e.mouseEnterDelay,a=void 0===i?0:i,l=e.mouseLeaveDelay,s=void 0===l?.1:l,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,p=e.children,f=e.onVisibleChange,h=e.afterVisibleChange,m=e.transitionName,v=e.animation,y=e.motion,b=e.placement,x=void 0===b?"right":b,w=e.align,S=void 0===w?{}:w,C=e.destroyTooltipOnHide,_=void 0!==C&&C,k=e.defaultVisible,M=e.getTooltipContainer,I=e.overlayInnerStyle,E=(e.arrowContent,e.overlay),O=e.id,$=e.showArrow,T=void 0===$||$,P=e.classNames,D=e.styles,N=Io(e,_w),A=Th(O),R=(0,g.useRef)(null);(0,g.useImperativeHandle)(t,function(){return R.current});var j=ne({},N);"visible"in e&&(j.popupVisible=e.visible);return g.createElement(ng,gt({popupClassName:po()(n,null===P||void 0===P?void 0:P.root),prefixCls:d,popup:function(){return g.createElement(bw,{key:"content",prefixCls:d,id:A,bodyClassName:null===P||void 0===P?void 0:P.body,overlayInnerStyle:ne(ne({},I),null===D||void 0===D?void 0:D.body)},E)},action:o,builtinPlacements:Cw,popupPlacement:x,ref:R,popupAlign:S,getPopupContainer:M,onPopupVisibleChange:f,afterPopupVisibleChange:h,popupTransitionName:m,popupAnimation:v,popupMotion:y,defaultPopupVisible:k,autoDestroy:_,mouseLeaveDelay:s,popupStyle:ne(ne({},c),null===D||void 0===D?void 0:D.root),mouseEnterDelay:a,arrow:T},j),function(){var e=g.Children.only(p),t=ne(ne({},(null===e||void 0===e?void 0:e.props)||{}),{},{"aria-describedby":E?A:null});return g.cloneElement(p,t)}())};const Mw=(0,g.forwardRef)(kw),Iw=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ew=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},Ow=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},$w=dp("Space",e=>{const t=ep(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Ew(t),Ow(t),Iw(t)]},()=>({}),{resetStyle:!1});var Tw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Pw=g.createContext(null),Dw=(e,t)=>{const n=g.useContext(Pw),r=g.useMemo(()=>{if(!n)return"";const{compactDirection:r,isFirstItem:o,isLastItem:i}=n,a="vertical"===r?"-vertical-":"-";return po()(`${e}-compact${a}item`,{[`${e}-compact${a}first-item`]:o,[`${e}-compact${a}last-item`]:i,[`${e}-compact${a}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},Nw=e=>{const{children:t}=e;return g.createElement(Pw.Provider,{value:null},t)},Aw=e=>{const{children:t}=e,n=Tw(e,["children"]);return g.createElement(Pw.Provider,{value:g.useMemo(()=>n,[n])},t)},Rw=e=>{const{getPrefixCls:t,direction:n}=g.useContext(qr),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:s,children:c}=e,u=Tw(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Vp(e=>null!==r&&void 0!==r?r:e),p=t("space-compact",a),[f,h]=$w(p),m=po()(p,h,{[`${p}-rtl`]:"rtl"===n,[`${p}-block`]:i,[`${p}-vertical`]:"vertical"===o},l,s),v=g.useContext(Pw),y=kf(c),b=g.useMemo(()=>y.map((e,t)=>{const n=(null===e||void 0===e?void 0:e.key)||`${p}-item-${t}`;return g.createElement(Aw,{key:n,compactSize:d,compactDirection:o,isFirstItem:0===t&&(!v||(null===v||void 0===v?void 0:v.isFirstItem)),isLastItem:t===y.length-1&&(!v||(null===v||void 0===v?void 0:v.isLastItem))},e)}),[r,y,v]);return 0===y.length?null:f(g.createElement("div",Object.assign({className:m},u),b))},jw=e=>{const{space:t,form:n,children:r}=e;if(void 0===r||null===r)return null;let o=r;return n&&(o=g.createElement($b,{override:!0,status:!0},o)),t&&(o=g.createElement(Nw,null,o)),o};function Lw(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,p=2*o-a,f=l,h=2*o-0,g=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${f} A ${r} ${r} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const zw=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Xe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Bw(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Hw(e,t){return e?t:{}}function Fw(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},zw(e,t,o)),{"&:before":{background:t}})]},Hw(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Xe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Hw(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Xe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Hw(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Hw(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const Vw={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Ww={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Gw=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Uw(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(Vw).forEach(e=>{const c=r&&Ww[e]||Vw[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,Gw.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=Bw({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-d.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*d.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"===typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")}),s}const Yw=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function qw(e,t){return Yw.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const Xw=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:f}=e,h=t(a).add(f).add(p).equal(),g=t(a).mul(2).add(f).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:s,padding:`${Xe(e.calc(u).div(2).equal())} ${Xe(d)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),qw(e,(e,t)=>{let{darkColor:r}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:r},[`${n}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},Fw(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Kw=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Bw({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Lw(ep(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Zw=function(e){const t=dp("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=ep(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Xw(o),ex(e,"zoom-big-fast")]},Kw,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},Qw=Yw.map(e=>`${e}-inverse`),Jw=["success","processing","error","default","warning"];function eS(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(ee(Qw),ee(Yw)).includes(e):Yw.includes(e)}function tS(e,t){const n=eS(t),r=po()({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const nS=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=g.useContext(qr),s=l("tooltip",t),[c,u,d]=Zw(s),p=tS(s,i),f=p.arrowStyle,h=Object.assign(Object.assign({},a),p.overlayStyle),m=po()(u,d,s,`${s}-pure`,`${s}-placement-${r}`,n,p.className);return c(g.createElement("div",{className:m,style:f},g.createElement("div",{className:`${s}-arrow`}),g.createElement(bw,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:h}),o)))};var rS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const oS=g.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:s,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:p,destroyOnHidden:f,arrow:h=!0,title:m,overlay:v,builtinPlacements:y,arrowPointAtCenter:b=!1,autoAdjustOverflow:x=!0,motion:w,getPopupContainer:S,placement:C="top",mouseEnterDelay:_=.1,mouseLeaveDelay:k=.1,overlayStyle:M,rootClassName:I,overlayClassName:E,styles:O,classNames:$}=e,T=rS(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),P=!!h,[,D]=Gi(),{getPopupContainer:N,getPrefixCls:A,direction:R,className:j,style:L,classNames:z,styles:B}=Zr("tooltip"),H=Pn("Tooltip"),F=g.useRef(null),V=()=>{var e;null===(e=F.current)||void 0===e||e.forceAlign()};g.useImperativeHandle(t,()=>{var e,t;return{forceAlign:V,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:null===(e=F.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=F.current)||void 0===t?void 0:t.popupElement}});const[W,G]=Ho(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),U=!m&&!v&&0!==m,Y=g.useMemo(()=>{var e,t;let n=b;return"object"===typeof h&&(n=null!==(t=null!==(e=h.pointAtCenter)&&void 0!==e?e:h.arrowPointAtCenter)&&void 0!==t?t:b),y||Uw({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:P?D.sizePopupArrow:0,borderRadius:D.borderRadius,offset:D.marginXXS,visibleFirst:!0})},[b,h,y,D]),q=g.useMemo(()=>0===m?m:v||m||"",[v,m]),X=g.createElement(jw,{space:!0},"function"===typeof q?q():q),K=A("tooltip",o),Z=A(),Q=e["data-popover-inject"];let J=W;"open"in e||"visible"in e||!U||(J=!1);const ee=g.isValidElement(c)&&!jx(c)?c:g.createElement("span",null,c),te=ee.props,ne=te.className&&"string"!==typeof te.className?te.className:po()(te.className,i||`${K}-open`),[re,oe,ie]=Zw(K,!Q),ae=tS(K,l),le=ae.arrowStyle,se=po()(E,{[`${K}-rtl`]:"rtl"===R},ae.className,I,oe,ie,j,z.root,null===$||void 0===$?void 0:$.root),ce=po()(z.body,null===$||void 0===$?void 0:$.body),[ue,de]=Fd("Tooltip",T.zIndex),pe=g.createElement(Mw,Object.assign({},T,{zIndex:ue,showArrow:P,placement:C,mouseEnterDelay:_,mouseLeaveDelay:k,prefixCls:K,classNames:{root:se,body:ce},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},le),B.root),L),M),null===O||void 0===O?void 0:O.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),s),null===O||void 0===O?void 0:O.body),ae.overlayStyle)},getTooltipContainer:S||a||N,ref:F,builtinPlacements:Y,overlay:X,visible:J,onVisibleChange:t=>{var n,r;G(!U&&t),U||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!==u&&void 0!==u?u:d,arrowContent:g.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:Cv(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!==f&&void 0!==f?f:!!p}),J?zx(ee,{className:ne}):ee);return re(g.createElement(jd.Provider,{value:de},pe))}),iS=oS;iS._InternalPanelDoNotUseOrYouWillBeFired=nS;const aS=iS;var lS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sS=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c,vertical:u}=e;var d;const[p]=yw("Form"),{labelAlign:f,labelCol:h,labelWrap:m,colon:v}=g.useContext(kb);if(!n)return null;const y=o||h||{},b=i||f,x=`${t}-item-label`,w=po()(x,"left"===b&&`${x}-left`,y.className,{[`${x}-wrap`]:!!m});let S=n;const C=!0===a||!1!==v&&!1!==a;C&&!u&&"string"===typeof n&&n.trim()&&(S=n.replace(/[:|\uff1a]\s*$/,""));const _=vw(c);if(_){const{icon:e=g.createElement(mw,null)}=_,n=lS(_,["icon"]),r=g.createElement(aS,Object.assign({},n),g.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));S=g.createElement(g.Fragment,null,S,r)}const k="optional"===s,M="function"===typeof s,I=!1===s;let E;M?S=s(S,{required:!!l}):k&&!l&&(S=g.createElement(g.Fragment,null,S,g.createElement("span",{className:`${t}-item-optional`,title:""},(null===p||void 0===p?void 0:p.optional)||(null===(d=Bn.Form)||void 0===d?void 0:d.optional)))),I?E="hidden":(k||M)&&(E="optional");const O=po()({[`${t}-item-required`]:l,[`${t}-item-required-mark-${E}`]:E,[`${t}-item-no-colon`]:!C});return g.createElement(cw,Object.assign({},y,{className:w}),g.createElement("label",{htmlFor:r,className:O,title:"string"===typeof n?n:""},S))},cS={success:id,warning:dd,error:sd,validating:vd};function uS(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s,name:c}=e;const u=`${a}-item`,{feedbackIcons:d}=g.useContext(kb),p=Ox(n,r,l,null,!!o,i),{isFormItemInput:f,status:h,hasFeedback:m,feedbackIcon:v,name:y}=g.useContext(Ob),b=g.useMemo(()=>{var e;let t;if(o){const i=!0!==o&&o.icons||d,a=p&&(null===(e=null===i||void 0===i?void 0:i({status:p,errors:n,warnings:r}))||void 0===e?void 0:e[p]),l=p&&cS[p];t=!1!==a&&l?g.createElement("span",{className:po()(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},a||g.createElement(l,null)):null}const i={status:p||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:t,isFormItemInput:!0,name:c};return s&&(i.status=(null!==p&&void 0!==p?p:h)||"",i.isFormItemInput=f,i.hasFeedback=!!(null!==o&&void 0!==o?o:m),i.feedbackIcon=void 0!==o?i.feedbackIcon:v,i.name=null!==c&&void 0!==c?c:y),i},[p,o,s,f,h]);return g.createElement(Ob.Provider,{value:b},t)}var dS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function pS(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:d,children:p,fieldId:f,required:h,isRequired:m,onSubItemMetaChange:v,layout:y,name:b}=e,x=dS(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),w=`${t}-item`,{requiredMark:S,vertical:C}=g.useContext(kb),_=C||"vertical"===y,k=g.useRef(null),M=Bb(a),I=Bb(l),E=void 0!==i&&null!==i,O=!!(E||a.length||l.length),$=!!k.current&&Fh(k.current),[T,P]=g.useState(null);rt(()=>{if(O&&k.current){const e=getComputedStyle(k.current);P(parseInt(e.marginBottom,10))}},[O,$]);const D=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Ox(e?M:c.errors,e?I:c.warnings,c,"",!!u,s)}(),N=po()(w,n,r,{[`${w}-with-help`]:E||M.length||I.length,[`${w}-has-feedback`]:D&&u,[`${w}-has-success`]:"success"===D,[`${w}-has-warning`]:"warning"===D,[`${w}-has-error`]:"error"===D,[`${w}-is-validating`]:"validating"===D,[`${w}-hidden`]:d,[`${w}-${y}`]:y});return g.createElement("div",{className:N,style:o,ref:k},g.createElement(ow,Object.assign({className:`${w}-row`},Fp(x,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),g.createElement(sS,Object.assign({htmlFor:f},e,{requiredMark:S,required:null!==h&&void 0!==h?h:m,prefixCls:t,vertical:_})),g.createElement(fw,Object.assign({},e,c,{errors:M,warnings:I,prefixCls:t,status:D,help:i,marginBottom:T,onErrorVisibleChanged:e=>{e||P(null)}}),g.createElement(Mb.Provider,{value:v},g.createElement(uS,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:D,name:b},p)))),!!T&&g.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-T}}))}const fS=g.memo(e=>{let{children:t}=e;return t},(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||"function"===typeof r||"function"===typeof o})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const hS=function(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:d,trigger:p="onChange",validateTrigger:f,hidden:h,help:m,layout:v}=e,{getPrefixCls:y}=g.useContext(qr),{name:b}=g.useContext(kb),x=function(e){if("function"===typeof e)return e;const t=kf(e);return t.length<=1?t[0]:t}(s),w="function"===typeof x,S=g.useContext(Mb),{validateTrigger:C}=g.useContext(py),_=void 0!==f?f:C,k=!(void 0===t||null===t),M=y("form",i),I=Rd(M),[E,O,$]=hx(M,I);Pn("Form.Item");const T=g.useContext(fy),P=g.useRef(null),[D,N]=function(e){const[t,n]=g.useState(e),r=g.useRef(null),o=g.useRef([]),i=g.useRef(!1);return g.useEffect(()=>(i.current=!1,()=>{i.current=!0,vi.cancel(r.current),r.current=null}),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=vi(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}({}),[A,R]=zo(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),j=(e,t)=>{N(n=>{const r=Object.assign({},n),o=[].concat(ee(e.name.slice(0,-1)),ee(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[L,z]=g.useMemo(()=>{const e=ee(A.errors),t=ee(A.warnings);return Object.values(D).forEach(n=>{e.push.apply(e,ee(n.errors||[])),t.push.apply(t,ee(n.warnings||[]))}),[e,t]},[D,A.errors,A.warnings]),B=function(){const{itemRef:e}=g.useContext(kb),t=g.useRef({});return function(n,r){const o=r&&"object"===typeof r&&Mo(r),i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=So(e(n),o)),t.current.ref}}();function H(o,i,a){return n&&!h?g.createElement(uS,{prefixCls:M,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:A,errors:L,warnings:z,noStyle:!0,name:t},o):g.createElement(pS,Object.assign({key:"row"},e,{className:po()(r,$,I,O),prefixCls:M,fieldId:i,isRequired:a,errors:L,warnings:z,meta:A,onSubItemMetaChange:j,layout:v,name:t}),o)}if(!k&&!w&&!o)return E(H(x));let F={};return"string"===typeof u?F.label=u:t&&(F.label=String(t)),d&&(F=Object.assign(Object.assign({},F),d)),E(g.createElement(ab,Object.assign({},e,{messageVariables:F,trigger:p,validateTrigger:_,onMetaChange:e=>{const t=null===T||void 0===T?void 0:T.getKey(e.name);if(R(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==m&&S){let n=e.name;if(e.destroy)n=P.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ee(r)),P.current=n}S(e,n)}}}),(n,r,i)=>{const s=Ix(t).length&&r?r.name:[],u=Ex(s,b),d=void 0!==c?c:!!(null===l||void 0===l?void 0:l.some(e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(i);return(null===t||void 0===t?void 0:t.required)&&!(null===t||void 0===t?void 0:t.warningOnly)}return!1})),f=Object.assign({},n);let h=null;if(Array.isArray(x)&&k)h=x;else if(w&&(!a&&!o||k));else if(!o||w||k)if(g.isValidElement(x)){const t=Object.assign(Object.assign({},x.props),f);if(t.id||(t.id=u),m||L.length>0||z.length>0||e.extra){const n=[];(m||L.length>0)&&n.push(`${u}_help`),e.extra&&n.push(`${u}_extra`),t["aria-describedby"]=n.join(" ")}L.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),_o(x)&&(t.ref=B(s,x));new Set([].concat(ee(Ix(p)),ee(Ix(_)))).forEach(e=>{t[e]=function(){for(var t,n,r,o,i,a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];null===(r=f[e])||void 0===r||(t=r).call.apply(t,[f].concat(l)),null===(i=(o=x.props)[e])||void 0===i||(n=i).call.apply(n,[o].concat(l))}});const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];h=g.createElement(fS,{control:f,update:x,childProps:n},zx(x,t))}else h=w&&(a||o)&&!k?x(i):x;else;return H(h,u,d)}))};hS.useStatus=Hx;const gS=hS;var mS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vS=e=>{var{prefixCls:t,children:n}=e,r=mS(e,["prefixCls","children"]);const{getPrefixCls:o}=g.useContext(qr),i=o("form",t),a=g.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return g.createElement(lb,Object.assign({},r),(e,t,r)=>g.createElement(Eb.Provider,{value:a},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))};const yS=Rx;yS.Item=gS,yS.List=vS,yS.ErrorList=vx,yS.useForm=Dx,yS.useFormInstance=function(){const{form:e}=g.useContext(kb);return e},yS.useWatch=Sb,yS.Provider=Ib,yS.create=()=>{};const bS=yS;function xS(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wS(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function SS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},xS(e,r,t)),wS(n,r,t))}}function CS(e){return ep(e,{inputAffixPadding:e.paddingXXS})}const _S=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b,inputFontSize:x,inputFontSizeLG:w,inputFontSizeSM:S}=e,C=x||n,_=S||C,k=w||l,M=Math.round((t-C*r)/2*10)/10-o,I=Math.round((i-_*r)/2*10)/10-o,E=Math.ceil((a-k*s)/2*10)/10-o;return{paddingBlock:Math.max(M,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(E,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:p,activeBorderColor:h,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:C,inputFontSizeLG:k,inputFontSizeSM:_}},kS=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),MS=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},kS(ep(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),IS=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ES=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},IS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),OS=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},IS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},MS(e))}),ES(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ES(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$S=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),TS=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$S(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$S(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},MS(e))}})}),PS=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},DS=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null===t||void 0===t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},NS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},DS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),AS=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},DS(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},MS(e))}),NS(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),NS(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),RS=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),jS=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},RS(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),RS(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),LS=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Xe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),zS=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},LS(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),BS=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},LS(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),zS(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),zS(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),HS=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),FS=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Xe(t)} ${Xe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},VS=e=>({padding:`${Xe(e.paddingBlockSM)} ${Xe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),WS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Xe(e.paddingBlock)} ${Xe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},HS(e.colorTextPlaceholder)),{"&-lg":Object.assign({},FS(e)),"&-sm":Object.assign({},VS(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),GS=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},FS(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},VS(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Xe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Xe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Xe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Xe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Xe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n        & > ${t}-affix-wrapper,\n        & > ${t}-number-affix-wrapper,\n        & > ${n}-picker-range\n      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n      & > ${n}-select-auto-complete ${t},\n      & > ${n}-cascader-picker ${t},\n      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n      & > ${n}-select:first-child > ${n}-select-selector,\n      & > ${n}-select-auto-complete:first-child ${t},\n      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n      & > ${n}-select:last-child > ${n}-select-selector,\n      & > ${n}-cascader-picker:last-child ${t},\n      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},US=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),WS(e)),OS(e)),AS(e)),PS(e)),BS(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},YS=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Xe(e.inputAffixPadding)}`}}}},qS=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},WS(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),YS(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},XS=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ki(e)),GS(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},TS(e)),jS(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},KS=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n        > ${t},\n        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},ZS=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},QS=dp(["Input","Shared"],e=>{const t=ep(e,CS(e));return[US(t),qS(t)]},_S,{resetFont:!1}),JS=dp(["Input","Component"],e=>{const t=ep(e,CS(e));return[XS(t),KS(t),ZS(t),SS(t)]},_S,{resetFont:!1}),eC=e=>{const{getPrefixCls:t,direction:n}=(0,g.useContext)(qr),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s,c]=JS(a),u=po()(i,c,{[`${i}-lg`]:"large"===e.size,[`${i}-sm`]:"small"===e.size,[`${i}-compact`]:e.compact,[`${i}-rtl`]:"rtl"===n},s,o),d=(0,g.useContext)(Ob),p=(0,g.useMemo)(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return l(g.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},g.createElement(Ob.Provider,{value:p},e.children)))};function tC(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function nC(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=tC(t,e,r)):n(o=tC(t,e,""))}}function rC(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var oC=g.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,l=e.prefixCls,s=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,p=e.className,f=e.style,h=e.disabled,m=e.readOnly,v=e.focused,y=e.triggerFocus,b=e.allowClear,x=e.value,w=e.handleReset,S=e.hidden,C=e.classes,_=e.classNames,k=e.dataAttrs,M=e.styles,I=e.components,E=e.onClear,O=null!==a&&void 0!==a?a:i,$=(null===I||void 0===I?void 0:I.affixWrapper)||"span",T=(null===I||void 0===I?void 0:I.groupWrapper)||"span",P=(null===I||void 0===I?void 0:I.wrapper)||"span",D=(null===I||void 0===I?void 0:I.groupAddon)||"span",N=(0,g.useRef)(null),A=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),R=(0,g.cloneElement)(O,{value:x,className:po()(null===(n=O.props)||void 0===n?void 0:n.className,!A&&(null===_||void 0===_?void 0:_.variant))||null}),j=(0,g.useRef)(null);if(g.useImperativeHandle(t,function(){return{nativeElement:j.current||N.current}}),A){var L=null;if(b){var z=!h&&!m&&x,B="".concat(l,"-clear-icon"),H="object"===G(b)&&null!==b&&void 0!==b&&b.clearIcon?b.clearIcon:"\u2716";L=g.createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null===w||void 0===w||w(e),null===E||void 0===E||E()},onMouseDown:function(e){return e.preventDefault()},className:po()(B,Y(Y({},"".concat(B,"-hidden"),!z),"".concat(B,"-has-suffix"),!!c))},H)}var F="".concat(l,"-affix-wrapper"),V=po()(F,Y(Y(Y(Y(Y({},"".concat(l,"-disabled"),h),"".concat(F,"-disabled"),h),"".concat(F,"-focused"),v),"".concat(F,"-readonly"),m),"".concat(F,"-input-with-clear-btn"),c&&b&&x),null===C||void 0===C?void 0:C.affixWrapper,null===_||void 0===_?void 0:_.affixWrapper,null===_||void 0===_?void 0:_.variant),W=(c||b)&&g.createElement("span",{className:po()("".concat(l,"-suffix"),null===_||void 0===_?void 0:_.suffix),style:null===M||void 0===M?void 0:M.suffix},L,c);R=g.createElement($,gt({className:V,style:null===M||void 0===M?void 0:M.affixWrapper,onClick:function(e){var t;null!==(t=N.current)&&void 0!==t&&t.contains(e.target)&&(null===y||void 0===y||y())}},null===k||void 0===k?void 0:k.affixWrapper,{ref:N}),s&&g.createElement("span",{className:po()("".concat(l,"-prefix"),null===_||void 0===_?void 0:_.prefix),style:null===M||void 0===M?void 0:M.prefix},s),R,W)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var U="".concat(l,"-group"),q="".concat(U,"-addon"),X="".concat(U,"-wrapper"),K=po()("".concat(l,"-wrapper"),U,null===C||void 0===C?void 0:C.wrapper,null===_||void 0===_?void 0:_.wrapper),Z=po()(X,Y({},"".concat(X,"-disabled"),h),null===C||void 0===C?void 0:C.group,null===_||void 0===_?void 0:_.groupWrapper);R=g.createElement(T,{className:Z,ref:j},g.createElement(P,{className:K},u&&g.createElement(D,{className:q},u),R,d&&g.createElement(D,{className:q},d)))}return g.cloneElement(R,{className:po()(null===(r=R.props)||void 0===r?void 0:r.className,p)||null,style:ne(ne({},null===(o=R.props)||void 0===o?void 0:o.style),f),hidden:S})});const iC=oC;var aC=["show"];function lC(e,t){return g.useMemo(function(){var n={};t&&(n.show="object"===G(t)&&t.formatter?t.formatter:!!t);var r=n=ne(ne({},n),e),o=r.show,i=Io(r,aC);return ne(ne({},i),{},{show:!!o,showFormatter:"function"===typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})},[e,t])}var sC=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],cC=(0,g.forwardRef)(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,u=void 0===c?"rc-input":c,d=e.disabled,p=e.htmlSize,f=e.className,h=e.maxLength,m=e.suffix,v=e.showCount,y=e.count,b=e.type,x=void 0===b?"text":b,w=e.classes,S=e.classNames,C=e.styles,_=e.onCompositionStart,k=e.onCompositionEnd,M=Io(e,sC),I=Q((0,g.useState)(!1),2),E=I[0],O=I[1],$=(0,g.useRef)(!1),T=(0,g.useRef)(!1),P=(0,g.useRef)(null),D=(0,g.useRef)(null),N=function(e){P.current&&rC(P.current,e)},A=Q(Ho(e.defaultValue,{value:e.value}),2),R=A[0],j=A[1],L=void 0===R||null===R?"":String(R),z=Q((0,g.useState)(null),2),B=z[0],H=z[1],F=lC(y,v),V=F.max||h,W=F.strategy(L),G=!!V&&W>V;(0,g.useImperativeHandle)(t,function(){var e;return{focus:N,blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=P.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=P.current)||void 0===e||e.select()},input:P.current,nativeElement:(null===(e=D.current)||void 0===e?void 0:e.nativeElement)||P.current}}),(0,g.useEffect)(function(){T.current&&(T.current=!1),O(function(e){return(!e||!d)&&e})},[d]);var U=function(e,t,n){var o,i,a=t;if(!$.current&&F.exceedFormatter&&F.max&&F.strategy(t)>F.max)t!==(a=F.exceedFormatter(t,{max:F.max}))&&H([(null===(o=P.current)||void 0===o?void 0:o.selectionStart)||0,(null===(i=P.current)||void 0===i?void 0:i.selectionEnd)||0]);else if("compositionEnd"===n.source)return;j(a),P.current&&nC(P.current,e,r,a)};(0,g.useEffect)(function(){var e;B&&(null===(e=P.current)||void 0===e||e.setSelectionRange.apply(e,ee(B)))},[B]);var q=function(e){U(e,e.target.value,{source:"change"})},X=function(e){$.current=!1,U(e,e.currentTarget.value,{source:"compositionEnd"}),null===k||void 0===k||k(e)},K=function(e){a&&"Enter"===e.key&&!T.current&&(T.current=!0,a(e)),null===l||void 0===l||l(e)},Z=function(e){"Enter"===e.key&&(T.current=!1),null===s||void 0===s||s(e)},J=function(e){O(!0),null===o||void 0===o||o(e)},te=function(e){T.current&&(T.current=!1),O(!1),null===i||void 0===i||i(e)},re=G&&"".concat(u,"-out-of-range");return g.createElement(iC,gt({},M,{prefixCls:u,className:po()(f,re),handleReset:function(e){j(""),N(),P.current&&nC(P.current,e,r)},value:L,focused:E,triggerFocus:N,suffix:function(){var e=Number(V)>0;if(m||F.show){var t=F.showFormatter?F.showFormatter({value:L,count:W,maxLength:V}):"".concat(W).concat(e?" / ".concat(V):"");return g.createElement(g.Fragment,null,F.show&&g.createElement("span",{className:po()("".concat(u,"-show-count-suffix"),Y({},"".concat(u,"-show-count-has-suffix"),!!m),null===S||void 0===S?void 0:S.count),style:ne({},null===C||void 0===C?void 0:C.count)},t),m)}return null}(),disabled:d,classes:w,classNames:S,styles:C,ref:D}),function(){var t=Fp(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return g.createElement("input",gt({autoComplete:n},t,{onChange:q,onFocus:J,onBlur:te,onKeyDown:K,onKeyUp:Z,className:po()(u,Y({},"".concat(u,"-disabled"),d),null===S||void 0===S?void 0:S.input),style:null===C||void 0===C?void 0:C.input,ref:P,size:p,type:x,onCompositionStart:function(e){$.current=!0,null===_||void 0===_||_(e)},onCompositionEnd:X}))}())});const uC=cC,dC=e=>{let t;return"object"===typeof e&&(null===e||void 0===e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:g.createElement(sd,null)}),t};function pC(e,t,n){return po()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const fC=(e,t)=>t||e;function hC(e,t){const n=(0,g.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,r,o;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=e.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=e.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,g.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}var gC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const mC=(0,g.forwardRef)((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:u,addonAfter:d,addonBefore:p,className:f,style:h,styles:m,rootClassName:v,onChange:y,classNames:b,variant:x}=e,w=gC(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:S,direction:C,allowClear:_,autoComplete:k,className:M,style:I,classNames:E,styles:O}=Zr("input"),$=S("input",n),T=(0,g.useRef)(null),P=Rd($),[D,N,A]=QS($,v),[R]=JS($,P),{compactSize:j,compactItemClassnames:L}=Dw($,C),z=Vp(e=>{var t;return null!==(t=null!==i&&void 0!==i?i:j)&&void 0!==t?t:e}),B=g.useContext(no),H=null!==a&&void 0!==a?a:B,{status:F,hasFeedback:V,feedbackIcon:W}=(0,g.useContext)(Ob),G=fC(F,o),U=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!V;(0,g.useRef)(U);const Y=hC(T,!0),q=(V||c)&&g.createElement(g.Fragment,null,c,V&&W),X=dC(null!==u&&void 0!==u?u:_),[K,Z]=Pb("input",x,r);return D(R(g.createElement(uC,Object.assign({ref:So(t,T),prefixCls:$,autoComplete:k},w,{disabled:H,onBlur:e=>{Y(),null===l||void 0===l||l(e)},onFocus:e=>{Y(),null===s||void 0===s||s(e)},style:Object.assign(Object.assign({},I),h),styles:Object.assign(Object.assign({},O),m),suffix:q,allowClear:X,className:po()(f,v,A,P,L,M),onChange:e=>{Y(),null===y||void 0===y||y(e)},addonBefore:p&&g.createElement(jw,{form:!0,space:!0},p),addonAfter:d&&g.createElement(jw,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},b),E),{input:po()({[`${$}-sm`]:"small"===z,[`${$}-lg`]:"large"===z,[`${$}-rtl`]:"rtl"===C},null===b||void 0===b?void 0:b.input,E.input,N),variant:po()({[`${$}-${K}`]:Z},pC($,G)),affixWrapper:po()({[`${$}-affix-wrapper-sm`]:"small"===z,[`${$}-affix-wrapper-lg`]:"large"===z,[`${$}-affix-wrapper-rtl`]:"rtl"===C},N),wrapper:po()({[`${$}-group-rtl`]:"rtl"===C},N),groupWrapper:po()({[`${$}-group-wrapper-sm`]:"small"===z,[`${$}-group-wrapper-lg`]:"large"===z,[`${$}-group-wrapper-rtl`]:"rtl"===C,[`${$}-group-wrapper-${K}`]:Z},pC(`${$}-group-wrapper`,G,V),N)})}))))});const vC=mC,yC=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},bC=dp(["Input","OTP"],e=>{const t=ep(e,CS(e));return[yC(t)]},_S);var xC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wC=g.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,s=xC(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=g.useContext(qr),u=c("otp"),d="string"===typeof l?l:r,p=g.useRef(null);g.useImperativeHandle(t,()=>p.current);const f=()=>{vi(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return g.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},l&&""!==r&&void 0!==r&&g.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),g.createElement(vC,Object.assign({"aria-label":`OTP Input ${a+1}`,type:!0===l?"password":"text"},s,{ref:p,value:r,onInput:e=>{o(a,e.target.value)},onFocus:f,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?i(a-1):"ArrowRight"===t?i(a+1):"z"===t&&(n||r)&&e.preventDefault(),f()},onKeyUp:e=>{"Backspace"!==e.key||r||i(a-1),f()},onMouseDown:f,onMouseUp:f,className:po()(n,{[`${u}-mask-input`]:l})})))}),SC=wC;var CC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function _C(e){return(e||"").split("")}const kC=e=>{const{index:t,prefixCls:n,separator:r}=e,o="function"===typeof r?r(t):r;return o?g.createElement("span",{className:`${n}-separator`},o):null},MC=g.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,separator:c,variant:u,disabled:d,status:p,autoFocus:f,mask:h,type:m,onInput:v,inputMode:y}=e,b=CC(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:x,direction:w}=g.useContext(qr),S=x("otp",n),C=Sd(b,{aria:!0,data:!0,attr:!0}),[_,k,M]=bC(S),I=Vp(e=>null!==o&&void 0!==o?o:e),E=g.useContext(Ob),O=fC(E.status,p),$=g.useMemo(()=>Object.assign(Object.assign({},E),{status:O,hasFeedback:!1,feedbackIcon:null}),[E,O]),T=g.useRef(null),P=g.useRef({});g.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:T.current}));const D=e=>s?s(e):e,[N,A]=g.useState(()=>_C(D(i||"")));g.useEffect(()=>{void 0!==a&&A(_C(a))},[a]);const R=Lo(e=>{A(e),v&&v(e),l&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>N[t]!==e)&&l(e.join(""))}),j=Lo((e,t)=>{let n=ee(N);for(let r=0;r<e;r+=1)n[r]||(n[r]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(_C(t)),n=n.slice(0,r);for(let r=n.length-1;r>=0&&!n[r];r-=1)n.pop();const o=D(n.map(e=>e||" ").join(""));return n=_C(o).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),L=(e,t)=>{var n;const o=j(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null===(n=P.current[i])||void 0===n||n.focus()),R(o)},z=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},B={variant:u,disabled:d,status:O,mask:h,type:m,inputMode:y};return _(g.createElement("div",Object.assign({},C,{ref:T,className:po()(S,{[`${S}-sm`]:"small"===I,[`${S}-lg`]:"large"===I,[`${S}-rtl`]:"rtl"===w},M,k),role:"group"}),g.createElement(Ob.Provider,{value:$},Array.from({length:r}).map((e,t)=>{const n=`otp-${t}`,o=N[t]||"";return g.createElement(g.Fragment,{key:n},g.createElement(SC,Object.assign({ref:e=>{P.current[t]=e},index:t,size:I,htmlSize:1,className:`${S}-input`,onChange:L,value:o,onActiveChange:z,autoFocus:0===t&&f},B)),t<r-1&&g.createElement(kC,{separator:c,index:t,prefixCls:S}))}))))}),IC=MC;const EC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var OC=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:EC}))};const $C=g.forwardRef(OC);const TC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var PC=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:TC}))};const DC=g.forwardRef(PC);var NC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const AC=e=>e?g.createElement(DC,null):g.createElement($C,null),RC={click:"onClick",hover:"onMouseOver"},jC=g.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=AC}=e,a=g.useContext(no),l=null!==n&&void 0!==n?n:a,s="object"===typeof o&&void 0!==o.visible,[c,u]=(0,g.useState)(()=>!!s&&o.visible),d=(0,g.useRef)(null);g.useEffect(()=>{s&&u(o.visible)},[s,o]);const p=hC(d),f=()=>{var e;if(l)return;c&&p();const t=!c;u(t),"object"===typeof o&&(null===(e=o.onVisibleChange)||void 0===e||e.call(o,t))},{className:h,prefixCls:m,inputPrefixCls:v,size:y}=e,b=NC(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:x}=g.useContext(qr),w=x("input",v),S=x("input-password",m),C=o&&(e=>{const t=RC[r]||"",n=i(c),o={[t]:f,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return g.cloneElement(g.isValidElement(n)?n:g.createElement("span",null,n),o)})(S),_=po()(S,h,{[`${S}-${y}`]:!!y}),k=Object.assign(Object.assign({},Fp(b,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:_,prefixCls:w,suffix:C});return y&&(k.size=y),g.createElement(vC,Object.assign({ref:So(t,d)},k))});const LC=jC;const zC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var BC=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:zC}))};const HC=g.forwardRef(BC),FC=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},VC=pp("Wave",e=>[FC(e)]),WC=`${Gr}-wave-target`;function GC(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function UC(e){return Number.isNaN(e)?0:e}const YC=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=g.useRef(null),a=g.useRef(null);g.useEffect(()=>{a.current=o()},[]);const[l,s]=g.useState(null),[c,u]=g.useState([]),[d,p]=g.useState(0),[f,h]=g.useState(0),[m,v]=g.useState(0),[y,b]=g.useState(0),[x,w]=g.useState(!1),S={left:d,top:f,width:m,height:y,borderRadius:c.map(e=>`${e}px`).join(" ")};function C(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return GC(t)?t:GC(n)?n:GC(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;p(t?n.offsetLeft:UC(-parseFloat(r))),h(t?n.offsetTop:UC(-parseFloat(o))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map(e=>UC(parseFloat(e))))}if(l&&(S["--wave-color"]=l),g.useEffect(()=>{if(n){const e=vi(()=>{C(),w(!0)});let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(C),t.observe(n)),()=>{vi.cancel(e),null===t||void 0===t||t.disconnect()}}},[]),!x)return null;const _=("Checkbox"===r||"Radio"===r)&&(null===n||void 0===n?void 0:n.classList.contains(WC));return g.createElement(Ai,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=i.current)||void 0===n?void 0:n.parentElement;null===(r=a.current)||void 0===r||r.call(a).then(()=>{null===e||void 0===e||e.remove()})}return!1}},(e,n)=>{let{className:r}=e;return g.createElement("div",{ref:So(i,n),className:po()(t,r,{"wave-quick":_}),style:S})})},qC=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null===e||void 0===e||e.insertBefore(o,null===e||void 0===e?void 0:e.firstChild);const i=Hu();let a=null;a=i(g.createElement(YC,Object.assign({},t,{target:e,registerUnmount:function(){return a}})),o)},XC=(e,t,n)=>{const{wave:r}=g.useContext(qr),[,o,i]=Gi(),a=Lo(a=>{const l=e.current;if((null===r||void 0===r?void 0:r.disabled)||!l)return;const s=l.querySelector(`.${WC}`)||l,{showEffect:c}=r||{};(c||qC)(s,{className:t,token:o,component:n,event:a,hashId:i})}),l=g.useRef(null);return e=>{vi.cancel(l.current),l.current=vi(()=>{a(e)})}};const KC=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=(0,g.useContext)(qr),i=(0,g.useRef)(null),a=o("wave"),[,l]=VC(a),s=XC(i,po()(a,l),r);if(g.useEffect(()=>{const e=i.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Fh(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||s(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!g.isValidElement(t))return null!==t&&void 0!==t?t:null;return zx(t,{ref:_o(t)?So(Mo(t),i):i})};var ZC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const QC=g.createContext(void 0),JC=e=>{const{getPrefixCls:t,direction:n}=g.useContext(qr),{prefixCls:r,size:o,className:i}=e,a=ZC(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=Gi(),c=g.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);const u=po()(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:"rtl"===n},i,s);return g.createElement(QC.Provider,{value:o},g.createElement("div",Object.assign({},a,{className:u})))},e_=/^[\u4E00-\u9FA5]{2}$/,t_=e_.test.bind(e_);function n_(e){return"danger"===e?{danger:!0}:{type:e}}function r_(e){return"string"===typeof e}function o_(e){return"text"===e||"link"===e}function i_(e,t){let n=!1;const r=[];return g.Children.forEach(e,e=>{const t=typeof e,o="string"===t||"number"===t;if(n&&o){const t=r.length-1,n=r[t];r[t]=`${n}${e}`}else r.push(e);n=o}),g.Children.map(r,e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&r_(e.type)&&t_(e.props.children)?zx(e,{children:e.props.children.split("").join(n)}):r_(e)?t_(e)?g.createElement("span",null,e.split("").join(n)):g.createElement("span",null,e):jx(e)?g.createElement("span",null,e):e}(e,t))}["default","primary","danger"].concat(ee(Yw));const a_=(0,g.forwardRef)((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=po()(`${i}-icon`,n);return g.createElement("span",{ref:t,className:a,style:r},o)}),l_=a_,s_=(0,g.forwardRef)((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=po()(`${n}-loading-icon`,r);return g.createElement(l_,{prefixCls:n,className:a,style:o,ref:t},g.createElement(vd,{className:i}))}),c_=()=>({width:0,opacity:0,transform:"scale(0)"}),u_=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),d_=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?g.createElement(s_,{prefixCls:t,className:o,style:i}):g.createElement(Ai,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:c_,onAppearActive:u_,onEnterStart:c_,onEnterActive:u_,onLeaveStart:u_,onLeaveActive:c_},(e,n)=>{let{className:r,style:a}=e;const l=Object.assign(Object.assign({},i),a);return g.createElement(s_,{prefixCls:t,className:po()(o,r),style:l,ref:n})})},p_=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),f_=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},p_(`${t}-primary`,o),p_(`${t}-danger`,i)]}};var h_=["b"],g_=["v"],m_=function(e){return Math.round(Number(e||0))},v_=function(e){Po(n,e);var t=Ro(n);function n(e){return ke(this,n),t.call(this,function(e){if(e instanceof Zn)return e;if(e&&"object"===G(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return ne(ne({},Io(t,h_)),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return Ie(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=m_(100*e.s),n=m_(100*e.b),r=m_(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return ne(ne({},Io(e,g_)),{},{b:t,a:this.a})}}]),n}(Zn),y_=function(e){return e instanceof v_?e:new v_(e)};y_("#1677ff");let b_=function(){return Ie(function e(t){var n;if(ke(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}}),this.metaColor=new v_(this.colors[0].color.metaColor)):this.metaColor=new v_(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;if(e){const t=e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ");return`linear-gradient(90deg, ${t})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();const x_=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new v_(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192},w_=e=>{const{paddingInline:t,onlyIconSize:n}=e;return ep(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},S_=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:Ar(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Ar(s),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Ar(c),f=x_(new b_(e.colorBgSolid),"#fff")?"#000":"#fff",h=Yw.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Xe(e.controlOutlineWidth)} 0 ${ji(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:f,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*p)/2-e.lineWidth,0)})},C_=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Xe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":Qi(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},__=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),k_=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),M_=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),I_=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),E_=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},__(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),O_=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},I_(e))}),$_=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),T_=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?$_:O_;return Object.assign(Object.assign({},o(e)),__(e.componentCls,t,n))},P_=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},T_(e,r,o))}),D_=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},T_(e,r,o))}),N_=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),A_=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},T_(e,n,r))}),R_=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},T_(e,r,o,n))}),j_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},P_(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),N_(e)),A_(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),E_(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),R_(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),L_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},D_(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),N_(e)),A_(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),R_(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),R_(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),E_(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),z_=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},P_(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),D_(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),N_(e)),A_(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),R_(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),R_(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),E_(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),B_=e=>Object.assign(Object.assign({},R_(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),E_(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),H_=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:j_(e),[`${t}-color-primary`]:L_(e),[`${t}-color-dangerous`]:z_(e),[`${t}-color-link`]:B_(e)},(e=>{const{componentCls:t}=e;return Yw.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},P_(e,e.colorTextLightSolid,o,{background:a},{background:c})),D_(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),N_(e)),A_(e,i,{background:l},{background:s})),R_(e,o,"link",{color:a},{color:c})),R_(e,o,"text",{color:a,background:i},{color:c,background:s}))})},{})})(e))},F_=e=>Object.assign(Object.assign(Object.assign(Object.assign({},D_(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),R_(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),P_(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),R_(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),V_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${Xe(s)} ${Xe(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:k_(e)},{[`${n}${n}-round${t}`]:M_(e)}]},W_=e=>{const t=ep(e,{fontSize:e.contentFontSize});return V_(t,e.componentCls)},G_=e=>{const t=ep(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return V_(t,`${e.componentCls}-sm`)},U_=e=>{const t=ep(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return V_(t,`${e.componentCls}-lg`)},Y_=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},q_=dp("Button",e=>{const t=w_(e);return[C_(t),W_(t),G_(t),U_(t),Y_(t),H_(t),F_(t),f_(t)]},S_,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function X_(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function K_(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},X_(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const Z_=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Q_=fp(["Button","compact"],e=>{const t=w_(e);return[SS(t),K_(t),Z_(t)]},S_);var J_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ek={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},tk=g.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:l,type:s,danger:c=!1,shape:u="default",size:d,styles:p,disabled:f,className:h,rootClassName:m,children:v,icon:y,iconPosition:b="start",ghost:x=!1,block:w=!1,htmlType:S="button",classNames:C,style:_={},autoInsertSpace:k,autoFocus:M}=e,I=J_(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),E=s||"default",{button:O}=g.useContext(qr),[$,T]=(0,g.useMemo)(()=>{if(a&&l)return[a,l];if(s||c){const e=ek[E]||[];return c?["danger",e[1]]:e}return(null===O||void 0===O?void 0:O.color)&&(null===O||void 0===O?void 0:O.variant)?[O.color,O.variant]:["default","outlined"]},[s,a,l,c,null===O||void 0===O?void 0:O.variant,null===O||void 0===O?void 0:O.color]),P="danger"===$?"dangerous":$,{getPrefixCls:D,direction:N,autoInsertSpace:A,className:R,style:j,classNames:L,styles:z}=Zr("button"),B=null===(n=null!==k&&void 0!==k?k:A)||void 0===n||n,H=D("btn",i),[F,V,W]=q_(H),G=(0,g.useContext)(no),U=null!==f&&void 0!==f?f:G,Y=(0,g.useContext)(QC),q=(0,g.useMemo)(()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(o),[o]),[X,K]=(0,g.useState)(q.loading),[Z,Q]=(0,g.useState)(!1),J=(0,g.useRef)(null),ee=Co(t,J),te=1===g.Children.count(v)&&!y&&!o_(T),ne=(0,g.useRef)(!0);g.useEffect(()=>(ne.current=!1,()=>{ne.current=!0}),[]),(0,g.useLayoutEffect)(()=>{let e=null;return q.delay>0?e=setTimeout(()=>{e=null,K(!0)},q.delay):K(q.loading),function(){e&&(clearTimeout(e),e=null)}},[q.delay,q.loading]),(0,g.useEffect)(()=>{if(!J.current||!B)return;const e=J.current.textContent||"";te&&t_(e)?Z||Q(!0):Z&&Q(!1)}),(0,g.useEffect)(()=>{M&&J.current&&J.current.focus()},[]);const re=g.useCallback(t=>{var n;X||U?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,X,U]);const{compactSize:oe,compactItemClassnames:ie}=Dw(H,N),ae={large:"lg",small:"sm",middle:void 0},le=Vp(e=>{var t,n;return null!==(n=null!==(t=null!==d&&void 0!==d?d:oe)&&void 0!==t?t:Y)&&void 0!==n?n:e}),se=le&&null!==(r=ae[le])&&void 0!==r?r:"",ce=X?"loading":y,ue=Fp(I,["navigate"]),de=po()(H,V,W,{[`${H}-${u}`]:"default"!==u&&u,[`${H}-${E}`]:E,[`${H}-dangerous`]:c,[`${H}-color-${P}`]:P,[`${H}-variant-${T}`]:T,[`${H}-${se}`]:se,[`${H}-icon-only`]:!v&&0!==v&&!!ce,[`${H}-background-ghost`]:x&&!o_(T),[`${H}-loading`]:X,[`${H}-two-chinese-chars`]:Z&&B&&!X,[`${H}-block`]:w,[`${H}-rtl`]:"rtl"===N,[`${H}-icon-end`]:"end"===b},ie,h,m,R),pe=Object.assign(Object.assign({},j),_),fe=po()(null===C||void 0===C?void 0:C.icon,L.icon),he=Object.assign(Object.assign({},(null===p||void 0===p?void 0:p.icon)||{}),z.icon||{}),ge=y&&!X?g.createElement(l_,{prefixCls:H,className:fe,style:he},y):o&&"object"===typeof o&&o.icon?g.createElement(l_,{prefixCls:H,className:fe,style:he},o.icon):g.createElement(d_,{existIcon:!!y,prefixCls:H,loading:X,mount:ne.current}),me=v||0===v?i_(v,te&&B):null;if(void 0!==ue.href)return F(g.createElement("a",Object.assign({},ue,{className:po()(de,{[`${H}-disabled`]:U}),href:U?void 0:ue.href,style:pe,onClick:re,ref:ee,tabIndex:U?-1:0}),ge,me));let ve=g.createElement("button",Object.assign({},I,{type:S,className:de,style:pe,onClick:re,disabled:U,ref:ee}),ge,me,ie&&g.createElement(Q_,{prefixCls:H}));return o_(T)||(ve=g.createElement(KC,{component:"Button",disabled:X},ve)),F(ve)}),nk=tk;nk.Group=JC,nk.__ANT_BUTTON=!0;const rk=nk;var ok=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const ik=g.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:d,onChange:p,onCompositionStart:f,onCompositionEnd:h,variant:m,onPressEnter:v}=e,y=ok(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:b,direction:x}=g.useContext(qr),w=g.useRef(!1),S=b("input-search",n),C=b("input",r),{compactSize:_}=Dw(S,x),k=Vp(e=>{var t;return null!==(t=null!==i&&void 0!==i?i:_)&&void 0!==t?t:e}),M=g.useRef(null),I=e=>{var t;document.activeElement===(null===(t=M.current)||void 0===t?void 0:t.input)&&e.preventDefault()},E=e=>{var t,n;d&&d(null===(n=null===(t=M.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},O="boolean"===typeof l?g.createElement(HC,null):null,$=`${S}-button`;let T;const P=l||{},D=P.type&&!0===P.type.__ANT_BUTTON;T=D||"button"===P.type?zx(P,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null===(n=null===(t=null===P||void 0===P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),E(e)},key:"enterButton"},D?{className:$,size:k}:{})):g.createElement(rk,{className:$,color:l?"primary":"default",size:k,disabled:u,key:"enterButton",onMouseDown:I,onClick:E,loading:c,icon:O,variant:"borderless"===m||"filled"===m||"underlined"===m?"text":l?"solid":void 0},l),s&&(T=[T,zx(s,{key:"addonAfter"})]);const N=po()(S,{[`${S}-rtl`]:"rtl"===x,[`${S}-${k}`]:!!k,[`${S}-with-button`]:!!l},o),A=Object.assign(Object.assign({},y),{className:N,prefixCls:C,type:"search",size:k,variant:m,onPressEnter:e=>{w.current||c||(null===v||void 0===v||v(e),E(e))},onCompositionStart:e=>{w.current=!0,null===f||void 0===f||f(e)},onCompositionEnd:e=>{w.current=!1,null===h||void 0===h||h(e)},addonAfter:T,suffix:a,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&d&&d(e.target.value,e,{source:"clear"}),null===p||void 0===p||p(e)},disabled:u});return g.createElement(vC,Object.assign({ref:So(M,t)},A))});const ak=ik;var lk,sk=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],ck={};function uk(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;lk||((lk=document.createElement("textarea")).setAttribute("tab-index","-1"),lk.setAttribute("aria-hidden","true"),lk.setAttribute("name","hiddenTextarea"),document.body.appendChild(lk)),e.getAttribute("wrap")?lk.setAttribute("wrap",e.getAttribute("wrap")):lk.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ck[n])return ck[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:sk.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(ck[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;lk.setAttribute("style","".concat(s,";").concat("\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n")),lk.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,p=lk.scrollHeight;if("border-box"===l?p+=a:"content-box"===l&&(p-=i),null!==n||null!==r){lk.value=" ";var f=lk.scrollHeight-i;null!==n&&(u=f*n,"border-box"===l&&(u=u+i+a),p=Math.max(u,p)),null!==r&&(d=f*r,"border-box"===l&&(d=d+i+a),c=p>d?"":"hidden",p=Math.min(d,p))}var h={height:p,overflowY:c,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var dk=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pk=g.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,d=n.onChange,p=(n.onInternalAutoSize,Io(n,dk)),f=Q(Ho(o,{value:i,postState:function(e){return null!==e&&void 0!==e?e:""}}),2),h=f[0],m=f[1],v=g.useRef();g.useImperativeHandle(t,function(){return{textArea:v.current}});var y=Q(g.useMemo(function(){return a&&"object"===G(a)?[a.minRows,a.maxRows]:[]},[a]),2),b=y[0],x=y[1],w=!!a,S=Q(g.useState(2),2),C=S[0],_=S[1],k=Q(g.useState(),2),M=k[0],I=k[1],E=function(){_(0)};rt(function(){w&&E()},[i,b,x,w]),rt(function(){if(0===C)_(1);else if(1===C){var e=uk(v.current,!1,b,x);_(2),I(e)}else!function(){try{if(document.activeElement===v.current){var e=v.current,t=e.selectionStart,n=e.selectionEnd,r=e.scrollTop;v.current.setSelectionRange(t,n),v.current.scrollTop=r}}catch(vDe){}}()},[C]);var O=g.useRef(),$=function(){vi.cancel(O.current)};g.useEffect(function(){return $},[]);var T=w?M:null,P=ne(ne({},c),T);return 0!==C&&1!==C||(P.overflowY="hidden",P.overflowX="hidden"),g.createElement(nh,{onResize:function(e){2===C&&(null===l||void 0===l||l(e),a&&($(),O.current=vi(function(){E()})))},disabled:!(a||l)},g.createElement("textarea",gt({},p,{ref:v,style:P,className:po()(r,s,Y({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:function(e){m(e.target.value),null===d||void 0===d||d(e)}})))});const fk=pk;var hk=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],gk=g.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,p=e.suffix,f=e.prefixCls,h=void 0===f?"rc-textarea":f,m=e.showCount,v=e.count,y=e.className,b=e.style,x=e.disabled,w=e.hidden,S=e.classNames,C=e.styles,_=e.onResize,k=e.onClear,M=e.onPressEnter,I=e.readOnly,E=e.autoSize,O=e.onKeyDown,$=Io(e,hk),T=Q(Ho(r,{value:o,defaultValue:r}),2),P=T[0],D=T[1],N=void 0===P||null===P?"":String(P),A=Q(g.useState(!1),2),R=A[0],j=A[1],L=g.useRef(!1),z=Q(g.useState(null),2),B=z[0],H=z[1],F=(0,g.useRef)(null),V=(0,g.useRef)(null),W=function(){var e;return null===(e=V.current)||void 0===e?void 0:e.textArea},G=function(){W().focus()};(0,g.useImperativeHandle)(t,function(){var e;return{resizableTextArea:V.current,focus:G,blur:function(){W().blur()},nativeElement:(null===(e=F.current)||void 0===e?void 0:e.nativeElement)||W()}}),(0,g.useEffect)(function(){j(function(e){return!x&&e})},[x]);var U=Q(g.useState(null),2),q=U[0],X=U[1];g.useEffect(function(){var e;q&&(e=W()).setSelectionRange.apply(e,ee(q))},[q]);var K,Z=lC(v,m),J=null!==(n=Z.max)&&void 0!==n?n:c,te=Number(J)>0,re=Z.strategy(N),oe=!!J&&re>J,ie=function(e,t){var n=t;!L.current&&Z.exceedFormatter&&Z.max&&Z.strategy(t)>Z.max&&t!==(n=Z.exceedFormatter(t,{max:Z.max}))&&X([W().selectionStart||0,W().selectionEnd||0]),D(n),nC(e.currentTarget,e,l,n)},ae=p;Z.show&&(K=Z.showFormatter?Z.showFormatter({value:N,count:re,maxLength:J}):"".concat(re).concat(te?" / ".concat(J):""),ae=g.createElement(g.Fragment,null,ae,g.createElement("span",{className:po()("".concat(h,"-data-count"),null===S||void 0===S?void 0:S.count),style:null===C||void 0===C?void 0:C.count},K)));var le=!E&&!m&&!s;return g.createElement(iC,{ref:F,value:N,allowClear:s,handleReset:function(e){D(""),G(),nC(W(),e,l)},suffix:ae,prefixCls:h,classNames:ne(ne({},S),{},{affixWrapper:po()(null===S||void 0===S?void 0:S.affixWrapper,Y(Y({},"".concat(h,"-show-count"),m),"".concat(h,"-textarea-allow-clear"),s))}),disabled:x,focused:R,className:po()(y,oe&&"".concat(h,"-out-of-range")),style:ne(ne({},b),B&&!le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof K?K:void 0}},hidden:w,readOnly:I,onClear:k},g.createElement(fk,gt({},$,{autoSize:E,maxLength:c,onKeyDown:function(e){"Enter"===e.key&&M&&M(e),null===O||void 0===O||O(e)},onChange:function(e){ie(e,e.target.value)},onFocus:function(e){j(!0),null===i||void 0===i||i(e)},onBlur:function(e){j(!1),null===a||void 0===a||a(e)},onCompositionStart:function(e){L.current=!0,null===u||void 0===u||u(e)},onCompositionEnd:function(e){L.current=!1,ie(e,e.currentTarget.value),null===d||void 0===d||d(e)},className:po()(null===S||void 0===S?void 0:S.textarea),style:ne(ne({},null===C||void 0===C?void 0:C.textarea),{},{resize:null===b||void 0===b?void 0:b.resize}),disabled:x,prefixCls:h,onResize:function(e){var t;null===_||void 0===_||_(e),null!==(t=W())&&void 0!==t&&t.style.height&&H(!0)},ref:V,readOnly:I})))});const mk=gk,vk=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n        &-allow-clear > ${t},\n        &-affix-wrapper${r}-has-feedback ${t}\n      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},yk=dp(["Input","TextArea"],e=>{const t=ep(e,CS(e));return[vk(t)]},_S,{resetFont:!1});var bk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xk=(0,g.forwardRef)((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:s,classNames:c,rootClassName:u,className:d,style:p,styles:f,variant:h,showCount:m,onMouseDown:v,onResize:y}=e,b=bk(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:x,direction:w,allowClear:S,autoComplete:C,className:_,style:k,classNames:M,styles:I}=Zr("textArea"),E=g.useContext(no),O=null!==a&&void 0!==a?a:E,{status:$,hasFeedback:T,feedbackIcon:P}=g.useContext(Ob),D=fC($,l),N=g.useRef(null);g.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=N.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;rC(null===(n=null===(t=N.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=N.current)||void 0===e?void 0:e.blur()}}});const A=x("input",r),R=Rd(A),[j,L,z]=QS(A,u),[B]=yk(A,R),{compactSize:H,compactItemClassnames:F}=Dw(A,w),V=Vp(e=>{var t;return null!==(t=null!==i&&void 0!==i?i:H)&&void 0!==t?t:e}),[W,G]=Pb("textArea",h,o),U=dC(null!==s&&void 0!==s?s:S),[Y,q]=g.useState(!1),[X,K]=g.useState(!1);return j(B(g.createElement(mk,Object.assign({autoComplete:C},b,{style:Object.assign(Object.assign({},k),p),styles:Object.assign(Object.assign({},I),f),disabled:O,allowClear:U,className:po()(z,R,d,u,F,_,X&&`${A}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),M),{textarea:po()({[`${A}-sm`]:"small"===V,[`${A}-lg`]:"large"===V},L,null===c||void 0===c?void 0:c.textarea,M.textarea,Y&&`${A}-mouse-active`),variant:po()({[`${A}-${W}`]:G},pC(A,D)),affixWrapper:po()(`${A}-textarea-affix-wrapper`,{[`${A}-affix-wrapper-rtl`]:"rtl"===w,[`${A}-affix-wrapper-sm`]:"small"===V,[`${A}-affix-wrapper-lg`]:"large"===V,[`${A}-textarea-show-count`]:m||(null===(n=e.count)||void 0===n?void 0:n.show)},L)}),prefixCls:A,suffix:T&&g.createElement("span",{className:`${A}-textarea-suffix`},P),showCount:m,ref:N,onResize:e=>{var t,n;if(null===y||void 0===y||y(e),Y&&"function"===typeof getComputedStyle){const e=null===(n=null===(t=N.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&K(!0)}},onMouseDown:e=>{q(!0),null===v||void 0===v||v(e);const t=()=>{q(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),wk=xk,Sk=vC;Sk.Group=eC,Sk.Search=ak,Sk.TextArea=wk,Sk.Password=LC,Sk.OTP=IC;const Ck=Sk;const _k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};var kk=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:_k}))};const Mk=g.forwardRef(kk);const Ik={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};var Ek=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:Ik}))};const Ok=g.forwardRef(Ek);function $k(e,t){return function(){return e.apply(t,arguments)}}const{toString:Tk}=Object.prototype,{getPrototypeOf:Pk}=Object,{iterator:Dk,toStringTag:Nk}=Symbol,Ak=(Rk=Object.create(null),e=>{const t=Tk.call(e);return Rk[t]||(Rk[t]=t.slice(8,-1).toLowerCase())});var Rk;const jk=e=>(e=e.toLowerCase(),t=>Ak(t)===e),Lk=e=>t=>typeof t===e,{isArray:zk}=Array,Bk=Lk("undefined");function Hk(e){return null!==e&&!Bk(e)&&null!==e.constructor&&!Bk(e.constructor)&&Wk(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fk=jk("ArrayBuffer");const Vk=Lk("string"),Wk=Lk("function"),Gk=Lk("number"),Uk=e=>null!==e&&"object"===typeof e,Yk=e=>{if("object"!==Ak(e))return!1;const t=Pk(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Nk in e)&&!(Dk in e)},qk=jk("Date"),Xk=jk("File"),Kk=jk("Blob"),Zk=jk("FileList"),Qk=jk("URLSearchParams"),[Jk,eM,tM,nM]=["ReadableStream","Request","Response","Headers"].map(jk);function rM(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),zk(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(Hk(e))return;const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function oM(e,t){if(Hk(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const iM="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,aM=e=>!Bk(e)&&e!==iM;const lM=(sM="undefined"!==typeof Uint8Array&&Pk(Uint8Array),e=>sM&&e instanceof sM);var sM;const cM=jk("HTMLFormElement"),uM=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),dM=jk("RegExp"),pM=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};rM(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const fM=jk("AsyncFunction"),hM=(gM="function"===typeof setImmediate,mM=Wk(iM.postMessage),gM?setImmediate:mM?((e,t)=>(iM.addEventListener("message",n=>{let{source:r,data:o}=n;r===iM&&o===e&&t.length&&t.shift()()},!1),n=>{t.push(n),iM.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var gM,mM;const vM="undefined"!==typeof queueMicrotask?queueMicrotask.bind(iM):"undefined"!==typeof process&&process.nextTick||hM,yM={isArray:zk,isArrayBuffer:Fk,isBuffer:Hk,isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||Wk(e.append)&&("formdata"===(t=Ak(e))||"object"===t&&Wk(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Fk(e.buffer),t},isString:Vk,isNumber:Gk,isBoolean:e=>!0===e||!1===e,isObject:Uk,isPlainObject:Yk,isEmptyObject:e=>{if(!Uk(e)||Hk(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(vDe){return!1}},isReadableStream:Jk,isRequest:eM,isResponse:tM,isHeaders:nM,isUndefined:Bk,isDate:qk,isFile:Xk,isBlob:Kk,isRegExp:dM,isFunction:Wk,isStream:e=>Uk(e)&&Wk(e.pipe),isURLSearchParams:Qk,isTypedArray:lM,isFileList:Zk,forEach:rM,merge:function e(){const{caseless:t}=aM(this)&&this||{},n={},r=(r,o)=>{const i=t&&oM(n,o)||o;Yk(n[i])&&Yk(r)?n[i]=e(n[i],r):Yk(r)?n[i]=e({},r):zk(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&rM(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return rM(t,(t,r)=>{n&&Wk(t)?e[r]=$k(t,n):e[r]=t},{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&Pk(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ak,kindOfTest:jk,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(zk(e))return e;let t=e.length;if(!Gk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Dk]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:cM,hasOwnProperty:uM,hasOwnProp:uM,reduceDescriptors:pM,freezeMethods:e=>{pM(e,(t,n)=>{if(Wk(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Wk(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return zk(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:oM,global:iM,isContextDefined:aM,isSpecCompliantForm:function(e){return!!(e&&Wk(e.append)&&"FormData"===e[Nk]&&e[Dk])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Uk(e)){if(t.indexOf(e)>=0)return;if(Hk(e))return e;if(!("toJSON"in e)){t[r]=e;const o=zk(e)?[]:{};return rM(e,(e,t)=>{const i=n(e,r+1);!Bk(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:fM,isThenable:e=>e&&(Uk(e)||Wk(e))&&Wk(e.then)&&Wk(e.catch),setImmediate:hM,asap:vM,isIterable:e=>null!=e&&Wk(e[Dk])};function bM(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}yM.inherits(bM,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:yM.toJSONObject(this.config),code:this.code,status:this.status}}});const xM=bM.prototype,wM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wM[e]={value:e}}),Object.defineProperties(bM,wM),Object.defineProperty(xM,"isAxiosError",{value:!0}),bM.from=(e,t,n,r,o,i)=>{const a=Object.create(xM);return yM.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),bM.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const SM=bM;function CM(e){return yM.isPlainObject(e)||yM.isArray(e)}function _M(e){return yM.endsWith(e,"[]")?e.slice(0,-2):e}function kM(e,t,n){return e?e.concat(t).map(function(e,t){return e=_M(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const MM=yM.toFlatObject(yM,{},null,function(e){return/^is[A-Z]/.test(e)});const IM=function(e,t,n){if(!yM.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=yM.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!yM.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||"undefined"!==typeof Blob&&Blob)&&yM.isSpecCompliantForm(t);if(!yM.isFunction(o))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(yM.isDate(e))return e.toISOString();if(yM.isBoolean(e))return e.toString();if(!l&&yM.isBlob(e))throw new SM("Blob is not supported. Use a Buffer instead.");return yM.isArrayBuffer(e)||yM.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let l=e;if(e&&!o&&"object"===typeof e)if(yM.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(yM.isArray(e)&&function(e){return yM.isArray(e)&&!e.some(CM)}(e)||(yM.isFileList(e)||yM.endsWith(n,"[]"))&&(l=yM.toArray(e)))return n=_M(n),l.forEach(function(e,r){!yM.isUndefined(e)&&null!==e&&t.append(!0===a?kM([n],r,i):null===a?n:n+"[]",s(e))}),!1;return!!CM(e)||(t.append(kM(o,n,i),s(e)),!1)}const u=[],d=Object.assign(MM,{defaultVisitor:c,convertValue:s,isVisitable:CM});if(!yM.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!yM.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),yM.forEach(n,function(n,i){!0===(!(yM.isUndefined(n)||null===n)&&o.call(t,n,yM.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function EM(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function OM(e,t){this._pairs=[],e&&IM(e,this,t)}const $M=OM.prototype;$M.append=function(e,t){this._pairs.push([e,t])},$M.toString=function(e){const t=e?function(t){return e.call(this,t,EM)}:EM;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const TM=OM;function PM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function DM(e,t,n){if(!t)return e;const r=n&&n.encode||PM;yM.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):yM.isURLSearchParams(t)?t.toString():new TM(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const NM=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){yM.forEach(this.handlers,function(t){null!==t&&e(t)})}},AM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},RM={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:TM,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},jM="undefined"!==typeof window&&"undefined"!==typeof document,LM="object"===typeof navigator&&navigator||void 0,zM=jM&&(!LM||["ReactNative","NativeScript","NS"].indexOf(LM.product)<0),BM="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,HM=jM&&window.location.href||"http://localhost",FM={...e,...RM};const VM=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),l=o>=e.length;if(i=!i&&yM.isArray(r)?r.length:i,l)return yM.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&yM.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&yM.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(yM.isFormData(e)&&yM.isFunction(e.entries)){const n={};return yM.forEachEntry(e,(e,r)=>{t(function(e){return yM.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null};const WM={transitional:AM,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=yM.isObject(e);o&&yM.isHTMLForm(e)&&(e=new FormData(e));if(yM.isFormData(e))return r?JSON.stringify(VM(e)):e;if(yM.isArrayBuffer(e)||yM.isBuffer(e)||yM.isStream(e)||yM.isFile(e)||yM.isBlob(e)||yM.isReadableStream(e))return e;if(yM.isArrayBufferView(e))return e.buffer;if(yM.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return IM(e,new FM.classes.URLSearchParams,{visitor:function(e,t,n,r){return FM.isNode&&yM.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=yM.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return IM(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(yM.isString(e))try{return(t||JSON.parse)(e),yM.trim(e)}catch(vDe){if("SyntaxError"!==vDe.name)throw vDe}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||WM.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(yM.isResponse(e)||yM.isReadableStream(e))return e;if(e&&yM.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(vDe){if(n){if("SyntaxError"===vDe.name)throw SM.from(vDe,SM.ERR_BAD_RESPONSE,this,null,this.response);throw vDe}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:FM.classes.FormData,Blob:FM.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};yM.forEach(["delete","get","head","post","put","patch"],e=>{WM.headers[e]={}});const GM=WM,UM=yM.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),YM=Symbol("internals");function qM(e){return e&&String(e).trim().toLowerCase()}function XM(e){return!1===e||null==e?e:yM.isArray(e)?e.map(XM):String(e)}function KM(e,t,n,r,o){return yM.isFunction(r)?r.call(this,t,n):(o&&(t=n),yM.isString(t)?yM.isString(r)?-1!==t.indexOf(r):yM.isRegExp(r)?r.test(t):void 0:void 0)}class ZM{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=qM(t);if(!o)throw new Error("header name must be a non-empty string");const i=yM.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=XM(e))}const i=(e,t)=>yM.forEach(e,(e,n)=>o(e,n,t));if(yM.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(yM.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&UM[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(yM.isObject(e)&&yM.isIterable(e)){let n,r,o={};for(const t of e){if(!yM.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?yM.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=qM(e)){const n=yM.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(yM.isFunction(t))return t.call(this,e,n);if(yM.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qM(e)){const n=yM.findKey(this,e);return!(!n||void 0===this[n]||t&&!KM(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=qM(e)){const o=yM.findKey(n,e);!o||t&&!KM(0,n[o],o,t)||(delete n[o],r=!0)}}return yM.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!KM(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return yM.forEach(this,(r,o)=>{const i=yM.findKey(n,o);if(i)return t[i]=XM(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=XM(r),n[a]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return yM.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&yM.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let[t,n]=e;return t+": "+n}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[YM]=this[YM]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=qM(e);t[r]||(!function(e,t){const n=yM.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return yM.isArray(e)?e.forEach(r):r(e),this}}ZM.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),yM.reduceDescriptors(ZM.prototype,(e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}}),yM.freezeMethods(ZM);const QM=ZM;function JM(e,t){const n=this||GM,r=t||n,o=QM.from(r.headers);let i=r.data;return yM.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eI(e){return!(!e||!e.__CANCEL__)}function tI(e,t,n){SM.call(this,null==e?"canceled":e,SM.ERR_CANCELED,t,n),this.name="CanceledError"}yM.inherits(tI,SM,{__CANCEL__:!0});const nI=tI;function rI(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new SM("Request failed with status code "+n.status,[SM.ERR_BAD_REQUEST,SM.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const oI=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(l){const s=Date.now(),c=r[a];o||(o=s),n[i]=l,r[i]=s;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),s-o<t)return;const p=c&&s-c;return p?Math.round(1e3*d/p):void 0}};const iI=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[function(){const e=Date.now(),t=e-o;for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];t>=i?a(s,e):(n=s,r||(r=setTimeout(()=>{r=null,a(n)},i-t)))},()=>n&&a(n)]},aI=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=oI(50,250);return iI(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,l=i-r,s=o(l);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&i<=a?(a-i)/s:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},lI=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sI=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yM.asap(()=>e(...n))},cI=FM.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,FM.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(FM.origin),FM.navigator&&/(msie|trident)/i.test(FM.navigator.userAgent)):()=>!0,uI=FM.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];yM.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),yM.isString(r)&&a.push("path="+r),yM.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function dI(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const pI=e=>e instanceof QM?{...e}:e;function fI(e,t){t=t||{};const n={};function r(e,t,n,r){return yM.isPlainObject(e)&&yM.isPlainObject(t)?yM.merge.call({caseless:r},e,t):yM.isPlainObject(t)?yM.merge({},t):yM.isArray(t)?t.slice():t}function o(e,t,n,o){return yM.isUndefined(t)?yM.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!yM.isUndefined(t))return r(void 0,t)}function a(e,t){return yM.isUndefined(t)?yM.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function l(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t,n)=>o(pI(e),pI(t),0,!0)};return yM.forEach(Object.keys({...e,...t}),function(r){const i=s[r]||o,a=i(e[r],t[r],r);yM.isUndefined(a)&&i!==l||(n[r]=a)}),n}const hI=e=>{const t=fI({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:l,auth:s}=t;if(t.headers=l=QM.from(l),t.url=DM(dI(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),yM.isFormData(r))if(FM.hasStandardBrowserEnv||FM.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(n=l.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...t].join("; "))}if(FM.hasStandardBrowserEnv&&(o&&yM.isFunction(o)&&(o=o(t)),o||!1!==o&&cI(t.url))){const e=i&&a&&uI.read(a);e&&l.set(i,e)}return t},gI="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=hI(e);let o=r.data;const i=QM.from(r.headers).normalize();let a,l,s,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=QM.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());rI(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new SM("Request aborted",SM.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new SM("Network Error",SM.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||AM;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new SM(t,o.clarifyTimeoutError?SM.ETIMEDOUT:SM.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&yM.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),yM.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),f&&([s,u]=aI(f,!0),g.addEventListener("progress",s)),p&&g.upload&&([l,c]=aI(p),g.upload.addEventListener("progress",l),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new nI(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===FM.protocols.indexOf(v)?n(new SM("Unsupported protocol "+v+":",SM.ERR_BAD_REQUEST,e)):g.send(o||null)})},mI=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof SM?t:new nI(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new SM(`timeout ${t} of ms exceeded`,SM.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>yM.asap(a),l}},vI=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},yI=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},bI=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of yI(e))yield*vI(n,t)}(e,t);let i,a=0,l=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return l(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),o.return())},{highWaterMark:2})},xI="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,wI=xI&&"function"===typeof ReadableStream,SI=xI&&("function"===typeof TextEncoder?(CI=new TextEncoder,e=>CI.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var CI;const _I=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(vDe){return!1}},kI=wI&&_I(()=>{let e=!1;const t=new Request(FM.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),MI=wI&&_I(()=>yM.isReadableStream(new Response("").body)),II={stream:MI&&(e=>e.body)};var EI;xI&&(EI=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!II[e]&&(II[e]=yM.isFunction(EI[e])?t=>t[e]():(t,n)=>{throw new SM(`Response type '${e}' is not supported`,SM.ERR_NOT_SUPPORT,n)})}));const OI=async(e,t)=>{const n=yM.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(yM.isBlob(e))return e.size;if(yM.isSpecCompliantForm(e)){const t=new Request(FM.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return yM.isArrayBufferView(e)||yM.isArrayBuffer(e)?e.byteLength:(yM.isURLSearchParams(e)&&(e+=""),yM.isString(e)?(await SI(e)).byteLength:void 0)})(t):n},$I=xI&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:s,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=hI(e);c=c?(c+"").toLowerCase():"text";let f,h=mI([o,i&&i.toAbortSignal()],a);const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(s&&kI&&"get"!==n&&"head"!==n&&0!==(m=await OI(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(yM.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=lI(m,aI(sI(s)));r=bI(n.body,65536,e,t)}}yM.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(f,p);const a=MI&&("stream"===c||"response"===c);if(MI&&(l||a&&g)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=yM.toFiniteNumber(i.headers.get("content-length")),[n,r]=l&&lI(t,aI(sI(l),!0))||[];i=new Response(bI(i.body,65536,n,()=>{r&&r(),g&&g()}),e)}c=c||"text";let v=await II[yM.findKey(II,c)||"text"](i,e);return!a&&g&&g(),await new Promise((t,n)=>{rI(t,n,{data:v,headers:QM.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(v){if(g&&g(),v&&"TypeError"===v.name&&/Load failed|fetch/i.test(v.message))throw Object.assign(new SM("Network Error",SM.ERR_NETWORK,e,f),{cause:v.cause||v});throw SM.from(v,v&&v.code,e,f)}}),TI={http:null,xhr:gI,fetch:$I};yM.forEach(TI,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(vDe){}Object.defineProperty(e,"adapterName",{value:t})}});const PI=e=>`- ${e}`,DI=e=>yM.isFunction(e)||null===e||!1===e,NI=e=>{e=yM.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!DI(n)&&(r=TI[(t=String(n)).toLowerCase()],void 0===r))throw new SM(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")});let n=t?e.length>1?"since :\n"+e.map(PI).join("\n"):" "+PI(e[0]):"as no adapter specified";throw new SM("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function AI(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nI(null,e)}function RI(e){AI(e),e.headers=QM.from(e.headers),e.data=JM.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return NI(e.adapter||GM.adapter)(e).then(function(t){return AI(e),t.data=JM.call(e,e.transformResponse,t),t.headers=QM.from(t.headers),t},function(t){return eI(t)||(AI(e),t&&t.response&&(t.response.data=JM.call(e,e.transformResponse,t.response),t.response.headers=QM.from(t.response.headers))),Promise.reject(t)})}const jI="1.11.0",LI={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{LI[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const zI={};LI.transitional=function(e,t,n){function r(e,t){return"[Axios v"+jI+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new SM(r(o," has been removed"+(t?" in "+t:"")),SM.ERR_DEPRECATED);return t&&!zI[o]&&(zI[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},LI.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const BI={assertOptions:function(e,t,n){if("object"!==typeof e)throw new SM("options must be an object",SM.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new SM("option "+i+" must be "+n,SM.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new SM("Unknown option "+i,SM.ERR_BAD_OPTION)}},validators:LI},HI=BI.validators;class FI{constructor(e){this.defaults=e||{},this.interceptors={request:new NM,response:new NM}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(vDe){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=fI(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&BI.assertOptions(n,{silentJSONParsing:HI.transitional(HI.boolean),forcedJSONParsing:HI.transitional(HI.boolean),clarifyTimeoutError:HI.transitional(HI.boolean)},!1),null!=r&&(yM.isFunction(r)?t.paramsSerializer={serialize:r}:BI.assertOptions(r,{encode:HI.function,serialize:HI.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),BI.assertOptions(t,{baseUrl:HI.spelling("baseURL"),withXsrfToken:HI.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&yM.merge(o.common,o[t.method]);o&&yM.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=QM.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const s=[];let c;this.interceptors.response.forEach(function(e){s.push(e.fulfilled,e.rejected)});let u,d=0;if(!l){const e=[RI.bind(this),void 0];for(e.unshift(...a),e.push(...s),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=RI.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=s.length;d<u;)c=c.then(s[d++],s[d++]);return c}getUri(e){return DM(dI((e=fI(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}yM.forEach(["delete","get","head","options"],function(e){FI.prototype[e]=function(t,n){return this.request(fI(n||{},{method:e,url:t,data:(n||{}).data}))}}),yM.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(fI(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}FI.prototype[e]=t(),FI.prototype[e+"Form"]=t(!0)});const VI=FI;class WI{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new nI(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new WI(function(t){e=t});return{token:t,cancel:e}}}const GI=WI;const UI={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(UI).forEach(e=>{let[t,n]=e;UI[n]=t});const YI=UI;const qI=function e(t){const n=new VI(t),r=$k(VI.prototype.request,n);return yM.extend(r,VI.prototype,n,{allOwnKeys:!0}),yM.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(fI(t,n))},r}(GM);qI.Axios=VI,qI.CanceledError=nI,qI.CancelToken=GI,qI.isCancel=eI,qI.VERSION=jI,qI.toFormData=IM,qI.AxiosError=SM,qI.Cancel=qI.CanceledError,qI.all=function(e){return Promise.all(e)},qI.spread=function(e){return function(t){return e.apply(null,t)}},qI.isAxiosError=function(e){return yM.isObject(e)&&!0===e.isAxiosError},qI.mergeConfig=fI,qI.AxiosHeaders=QM,qI.formToJSON=e=>VM(yM.isHTMLForm(e)?new FormData(e):e),qI.getAdapter=NI,qI.HttpStatusCode=YI,qI.default=qI;const XI=qI;var KI=n(6111),ZI=n.n(KI);const QI="rSc4Mq8Ywu1NuNJU";function JI(){return function(e){if(!e)return console.warn("AES encrypt: the content is null!"),null;try{const t=ZI().enc.Utf8.parse(QI);return ZI().AES.encrypt(e,t,{mode:ZI().mode.ECB,padding:ZI().pad.Pkcs7}).toString()}catch(t){throw console.error("AES encrypt exception:",t.message),new Error("\u52a0\u5bc6\u5931\u8d25")}}(`${Date.now()}_zyz`)}const eE=XI.create({baseURL:{NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_API_BASE_URL||"http://sqyy.spoc.haikou.gov.in:9094/grid-hub-prod",timeout:1e4,headers:{"Content-Type":"application/json"}});eE.interceptors.request.use(e=>{const t=localStorage.getItem("token");t&&(e.headers.Authorization=`Bearer ${t}`);const n=JI();return n&&(e.headers.Sign=n),e},e=>Promise.reject(e)),eE.interceptors.response.use(e=>{const{data:t}=e;return 0===t.code?t:Promise.reject(new Error(t.msg||"\u8bf7\u6c42\u5931\u8d25"))},e=>{if(!e.response)return e.request?Promise.reject(new Error("\u7f51\u7edc\u8fde\u63a5\u5931\u8d25")):Promise.reject(new Error(e.message));{const{status:t,data:n}=e.response;switch(t){case 401:localStorage.removeItem("token"),localStorage.removeItem("user"),window.location.href="/login";break;case 403:return Promise.reject(new Error("\u6ca1\u6709\u6743\u9650\u8bbf\u95ee"));case 404:return Promise.reject(new Error("\u8bf7\u6c42\u7684\u8d44\u6e90\u4e0d\u5b58\u5728"));case 500:return Promise.reject(new Error("\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef"));default:return Promise.reject(new Error((null===n||void 0===n?void 0:n.msg)||"\u8bf7\u6c42\u5931\u8d25"))}}});const tE=e=>eE.post("/web/api/admins/login",e),nE=e=>eE.get("/web/api/admins/pageQuery",{params:e}),rE=e=>eE.get("/web/api/admins/getById",{params:{id:e}}),oE=e=>eE.post("/web/api/admins/saveAdmin",e),iE=e=>eE.get("/web/api/admins/removeByIds",{params:{ids:e}}),aE=(e,t)=>eE.post("/web/api/admins/resetPassword",null,{params:{id:e,newPassword:t}}),lE=e=>eE.get("/web/api/users/pageQuery",{params:e}),sE=e=>eE.post("/web/api/users/saveUser",e),cE=e=>eE.get("/web/api/users/removeByIds",{params:{ids:e}}),uE=e=>eE.get("/web/api/applications/pageQuery",{params:e}),dE=e=>eE.get("/web/api/applications/getById",{params:{id:e}}),pE=e=>eE.post("/web/api/applications/review",e),fE=e=>eE.get("/web/api/activities/pageQuery",{params:e}),hE=e=>eE.get("/web/api/activities/getById",{params:{id:e}}),gE=e=>eE.post("/web/api/activities/saveActivity",e),mE=e=>eE.get("/web/api/activities/removeByIds",{params:{ids:e}}),vE=e=>eE.get("/web/api/activityUser/pageQuery",{params:e}),yE=e=>eE.get("/web/api/activityUser/getById",{params:{id:e}}),bE=e=>eE.get("/web/api/activityUser/removeByIds",{params:{ids:e}}),xE=()=>eE.get("/web/api/statistics/getOverview"),wE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return eE.get("/web/api/statistics/getPointsTrend",{params:{period:e}})},SE=()=>eE.get("/web/api/statistics/getActivityParticipation"),CE=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return eE.get("/web/api/dashboard/getRecentActivities",{params:{limit:e}})},_E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;return eE.get("/web/api/dashboard/getRecentVolunteers",{params:{limit:e}})},kE=e=>eE.get("/web/api/declarationConfigs/pageQuery",{params:e}),ME=e=>eE.post("/web/api/declarationConfigs/saveDeclarationConfig",e),IE=e=>eE.get("/web/api/declarationConfigs/removeByIds",{params:{ids:e}});var EE=n(579);const OE=()=>{const[e,t]=(0,g.useState)(!1),n=V(),r=Uc();return(0,EE.jsx)("div",{style:{minHeight:"100vh",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",display:"flex",alignItems:"center",justifyContent:"center",padding:"20px"},children:(0,EE.jsxs)(zb,{title:(0,EE.jsx)("div",{style:{textAlign:"center",fontSize:"24px",fontWeight:"bold",color:"#1890ff"},children:"\u5fd7\u613f\u8005\u670d\u52a1\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf"}),style:{width:400,boxShadow:"0 4px 12px rgba(0,0,0,0.15)"},children:[(0,EE.jsxs)(bS,{name:"login",onFinish:async e=>{t(!0),n(as());try{const t=await tE({phone:e.phone,password:e.password});if(0===t.code){const e=t.data;localStorage.setItem("token",e.token),localStorage.setItem("user",JSON.stringify(e)),n(ls(e)),Hp.success("\u767b\u5f55\u6210\u529f\uff01"),r("/")}else n(ss(t.message||"\u767b\u5f55\u5931\u8d25")),Hp.error(t.message||"\u767b\u5f55\u5931\u8d25")}catch(o){const e=o.message||"\u767b\u5f55\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u7528\u6237\u540d\u548c\u5bc6\u7801";n(ss(e)),Hp.error(e)}finally{t(!1)}},autoComplete:"off",size:"large",children:[(0,EE.jsx)(bS.Item,{name:"phone",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01"},{pattern:/^1[3-9]\d{9}$/,message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01"}],children:(0,EE.jsx)(Ck,{prefix:(0,EE.jsx)(Mk,{}),placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"})}),(0,EE.jsx)(bS.Item,{name:"password",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801\uff01"}],children:(0,EE.jsx)(Ck.Password,{prefix:(0,EE.jsx)(Ok,{}),placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"})}),(0,EE.jsx)(bS.Item,{children:(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",loading:e,style:{width:"100%"},children:"\u767b\u5f55"})})]}),(0,EE.jsxs)("div",{style:{textAlign:"center",color:"#8c8c8c",fontSize:"12px"},children:[(0,EE.jsx)("p",{children:"\u9ed8\u8ba4\u8d26\u53f7\uff1a13800138000"}),(0,EE.jsx)("p",{children:"\u9ed8\u8ba4\u5bc6\u7801\uff1a123456"})]})]})})},$E=g.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});const TE={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var PE=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:TE}))};const DE=g.forwardRef(PE);const NE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var AE=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:NE}))};const RE=g.forwardRef(AE);const jE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var LE=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:jE}))};const zE=g.forwardRef(LE),BE=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:Xe(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:s,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},HE=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=1.25*r;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:o}},FE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],VE=dp("Layout",e=>[BE(e)],HE,{deprecatedTokens:FE}),WE=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:p,lightSiderBg:f,lightTriggerColor:h,lightTriggerBg:g,bodyBg:m}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:Xe(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${Xe(p)} ${Xe(p)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Xe(p)} 0 0 ${Xe(p)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:h,background:g},[`${t}-zero-width-trigger`]:{color:h,background:g,border:`1px solid ${m}`,borderInlineStart:0}}}}},GE=dp(["Layout","Sider"],e=>[WE(e)],HE,{deprecatedTokens:FE});var UE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const YE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},qE=g.createContext({}),XE=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),KE=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:s={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:p=80,zeroWidthTriggerStyle:f,breakpoint:h,onCollapse:m,onBreakpoint:v}=e,y=UE(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,g.useContext)($E),[x,w]=(0,g.useState)("collapsed"in e?e.collapsed:a),[S,C]=(0,g.useState)(!1);(0,g.useEffect)(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const _=(t,n)=>{"collapsed"in e||w(t),null===m||void 0===m||m(t,n)},{getPrefixCls:k,direction:M}=(0,g.useContext)(qr),I=k("layout-sider",n),[E,O,$]=GE(I),T=(0,g.useRef)(null);T.current=e=>{C(e.matches),null===v||void 0===v||v(e.matches),x!==e.matches&&_(e.matches,"responsive")},(0,g.useEffect)(()=>{function e(e){var t;return null===(t=T.current)||void 0===t?void 0:t.call(T,e)}let t;return"undefined"!==typeof(null===window||void 0===window?void 0:window.matchMedia)&&h&&h in YE&&(t=window.matchMedia(`screen and (max-width: ${YE[h]})`),Fx(t,e),e(t)),()=>{Vx(t,e)}},[h]),(0,g.useEffect)(()=>{const e=XE("ant-sider-");return b.addSider(e),()=>b.removeSider(e)},[]);const P=()=>{_(!x,"clickTrigger")},D=Fp(y,["collapsed"]),N=x?p:d,A=(R=N,!Number.isNaN(Number.parseFloat(R))&&isFinite(R)?`${N}px`:String(N));var R;const j=0===parseFloat(String(p||0))?g.createElement("span",{onClick:P,className:po()(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${u?"right":"left"}`),style:f},o||g.createElement(DE,null)):null,L="rtl"===M===!u,z={expanded:L?g.createElement(zE,null):g.createElement(RE,null),collapsed:L?g.createElement(RE,null):g.createElement(zE,null)}[x?"collapsed":"expanded"],B=null!==o?j||g.createElement("div",{className:`${I}-trigger`,onClick:P,style:{width:A}},o||z):null,H=Object.assign(Object.assign({},s),{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}),F=po()(I,`${I}-${l}`,{[`${I}-collapsed`]:!!x,[`${I}-has-trigger`]:c&&null!==o&&!j,[`${I}-below`]:!!S,[`${I}-zero-width`]:0===parseFloat(A)},r,O,$),V=g.useMemo(()=>({siderCollapsed:x}),[x]);return E(g.createElement(qE.Provider,{value:V},g.createElement("aside",Object.assign({className:F},D,{style:H,ref:t}),g.createElement("div",{className:`${I}-children`},i),c||S&&j?B:null)))});const ZE=KE;var QE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function JE(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>g.forwardRef((r,o)=>g.createElement(e,Object.assign({ref:o,suffixCls:t,tagName:n},r)))}const eO=g.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=QE(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=g.useContext(qr),s=l("layout",n),[c,u,d]=VE(s),p=r?`${s}-${r}`:s;return c(g.createElement(i,Object.assign({className:po()(n||p,o,u,d),ref:t},a)))}),tO=g.forwardRef((e,t)=>{const{direction:n}=g.useContext(qr),[r,o]=g.useState([]),{prefixCls:i,className:a,rootClassName:l,children:s,hasSider:c,tagName:u,style:d}=e,p=Fp(QE(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:f,className:h,style:m}=Zr("layout"),v=f("layout",i),y=function(e,t,n){return"boolean"===typeof n?n:!!e.length||kf(t).some(e=>e.type===ZE)}(r,s,c),[b,x,w]=VE(v),S=po()(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:"rtl"===n},h,a,l,x,w),C=g.useMemo(()=>({siderHook:{addSider:e=>{o(t=>[].concat(ee(t),[e]))},removeSider:e=>{o(t=>t.filter(t=>t!==e))}}}),[]);return b(g.createElement($E.Provider,{value:C},g.createElement(u,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},m),d)},p),s)))}),nO=JE({tagName:"div",displayName:"Layout"})(tO),rO=JE({suffixCls:"header",tagName:"header",displayName:"Header"})(eO),oO=JE({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(eO),iO=JE({suffixCls:"content",tagName:"main",displayName:"Content"})(eO),aO=nO;aO.Header=rO,aO.Footer=oO,aO.Content=iO,aO.Sider=ZE,aO._InternalSiderContext=qE;const lO=aO,sO=(0,g.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var cO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const uO=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=cO(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=g.useContext(qr),a=i("menu",t),l=po()({[`${a}-item-divider-dashed`]:!!r},n);return g.createElement(Vm,Object.assign({className:l},o))},dO=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:l}=e,{prefixCls:s,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:p}=g.useContext(sO),{siderCollapsed:f}=g.useContext(qE);let h=i;"undefined"===typeof i?h=c?r:"":!1===i&&(h="");const m={title:h};f||p||(m.title=null,m.open=!1);const v=kf(r).length;let y=g.createElement(km,Object.assign({},Fp(e,["title","icon","danger"]),{className:po()({[`${s}-item-danger`]:a,[`${s}-item-only-child`]:1===(o?v+1:v)},n),title:"string"===typeof i?i:void 0}),zx(o,{className:po()(g.isValidElement(o)?null===(t=o.props)||void 0===t?void 0:t.className:void 0,`${s}-item-icon`)}),(e=>{const t=null===r||void 0===r?void 0:r[0],n=g.createElement("span",{className:po()(`${s}-title-content`,{[`${s}-title-content-with-extra`]:!!l||0===l})},r);return(!o||g.isValidElement(r)&&"span"===r.type)&&r&&e&&c&&"string"===typeof t?g.createElement("div",{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):n})(p));return d||(y=g.createElement(aS,Object.assign({},m,{placement:"rtl"===u?"left":"right",classNames:{root:`${s}-inline-collapsed-tooltip`}}),y)),y};var pO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const fO=g.createContext(null),hO=g.forwardRef((e,t)=>{const{children:n}=e,r=pO(e,["children"]),o=g.useContext(fO),i=g.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=function(e){return ko(e)&&_o(e)}(n),l=Co(t,a?Mo(n):null);return g.createElement(fO.Provider,{value:i},g.createElement(jw,{space:!0},a?g.cloneElement(n,{ref:l}):n))}),gO=fO,mO=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Xe(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n        > ${t}-item-active,\n        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},vO=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Xe(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Xe(n)})`}}}}},yO=e=>Object.assign({},Zi(e)),bO=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:m,motionDurationMid:v,itemHoverColor:y,lineType:b,colorSplit:x,itemDisabledColor:w,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:_,dangerItemActiveBg:k,dangerItemSelectedBg:M,popupBg:I,itemHoverBg:E,itemActiveBg:O,menuSubMenuBg:$,horizontalItemSelectedColor:T,horizontalItemSelectedBg:P,horizontalItemBorderRadius:D,horizontalItemHoverBg:N}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},yO(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},yO(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:O}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:E},"&:active":{backgroundColor:O}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:M}},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:D,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${Xe(u)} solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:u,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:P,"&:hover":{backgroundColor:P},"&::after":{borderBottomWidth:u,borderBottomColor:T}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Xe(p)} ${b} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Xe(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(",")}}}}}},xO=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Xe(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Xe(n)},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:u}}},wO=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:m}=e,v={height:r,lineHeight:Xe(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},xO(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},xO(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Xe(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n          > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Xe(e.calc(m).div(2).equal())} - ${Xe(c)})`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:m,lineHeight:Xe(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Xi),{paddingInline:f})}}]},SO=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},CO=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Xe(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Xe(a)})`}}}}},_O=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:h,menuArrowOffset:g,lineType:m,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Xe(l)} ${Xe(s)}`,fontSize:y,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:m,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),SO(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Xe(e.calc(r).mul(2).equal())} ${Xe(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},SO(e)),CO(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n          &-placement-leftTop,\n          &-placement-bottomRight,\n          ":{transformOrigin:"100% 0"},"\n          &-placement-leftBottom,\n          &-placement-topRight,\n          ":{transformOrigin:"100% 100%"},"\n          &-placement-rightBottom,\n          &-placement-topLeft,\n          ":{transformOrigin:"0 100%"},"\n          &-placement-bottomLeft,\n          &-placement-rightTop,\n          ":{transformOrigin:"0 0"},"\n          &-placement-leftTop,\n          &-placement-leftBottom\n          ":{paddingInlineEnd:e.paddingXS},"\n          &-placement-rightTop,\n          &-placement-rightBottom\n          ":{paddingInlineStart:e.paddingXS},"\n          &-placement-topRight,\n          &-placement-topLeft\n          ":{paddingBottom:e.paddingXS},"\n          &-placement-bottomRight,\n          &-placement-bottomLeft\n          ":{paddingTop:e.paddingXS}}}),CO(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xe(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Xe(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Xe(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Xe(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Xe(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},kO=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:m,controlHeightLG:v,lineHeight:y,colorBgElevated:b,marginXXS:x,padding:w,fontSize:S,controlHeightSM:C,fontSizeLG:_,colorTextLightSolid:k,colorErrorHover:M}=e,I=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,E=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,O=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,$=new Zn(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:m,itemHoverBg:m,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:f,activeBarBorderWidth:E,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:O,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:2*v,popupBg:b,itemMarginBlock:x,itemPaddingInline:w,horizontalLineHeight:1.15*v+"px",iconSize:S,iconMarginInlineEnd:C-S,collapsedIconSize:_,groupTitleFontSize:S,darkItemDisabledColor:new Zn(k).setA(.25).toRgbString(),darkItemColor:$,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:$,darkItemHoverColor:k,darkDangerItemHoverColor:M,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${E}px)`:`calc(100% - ${2*O}px)`}},MO=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=dp("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:f,darkItemDisabledColor:h,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:m,darkDangerItemActiveBg:v,popupBg:y,darkPopupBg:b}=e,x=e.calc(r).div(7).mul(5).equal(),w=ep(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:y}),S=ep(w,{itemColor:o,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:b,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:h,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:m,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[_O(w),mO(w),wO(w),bO(w,"light"),bO(S,"dark"),vO(w),tx(w),Bv(w,"slide-up"),Bv(w,"slide-down"),ex(w,"zoom-big")]},kO,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},IO=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=g.useContext(sO),{prefixCls:l,inlineCollapsed:s,theme:c}=a,u=Vg();let d;if(r){const e=g.isValidElement(o)&&"span"===o.type;d=g.createElement(g.Fragment,null,zx(r,{className:po()(g.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0,`${l}-item-icon`)}),e?o:g.createElement("span",{className:`${l}-title-content`},o))}else d=s&&!u.length&&o&&"string"===typeof o?g.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):g.createElement("span",{className:`${l}-title-content`},o);const p=g.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[f]=Fd("Menu");return g.createElement(sO.Provider,{value:p},g.createElement(Fm,Object.assign({},Fp(e,["icon"]),{title:d,popupClassName:po()(l,n,`${l}-${i||c}`),popupStyle:Object.assign({zIndex:f},e.popupStyle)})))};var EO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function OO(e){return null===e||!1===e}const $O={item:dO,submenu:IO,divider:uO},TO=(0,g.forwardRef)((e,t)=>{var n;const r=g.useContext(gO),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:s}=g.useContext(qr),c=i(),{prefixCls:u,className:d,style:p,theme:f="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:m,inlineCollapsed:v,siderCollapsed:y,rootClassName:b,mode:x,selectable:w,onClick:S,overflowedIndicatorPopupClassName:C}=e,_=Fp(EO(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=o.validator)||void 0===n||n.call(o,{mode:x});const k=Lo(function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];null===S||void 0===S||S.apply(void 0,n),null===(e=o.onClick)||void 0===e||e.call(o)}),M=o.mode||x,I=null!==w&&void 0!==w?w:o.selectable,E=null!==v&&void 0!==v?v:y,O={horizontal:{motionName:`${c}-slide-up`},inline:_v(c),other:{motionName:`${c}-zoom-big`}},$=i("menu",u||o.prefixCls),T=Rd($),[P,D,N]=MO($,T,!r),A=po()(`${$}-${f}`,null===s||void 0===s?void 0:s.className,d),R=g.useMemo(()=>{var e,t;if("function"===typeof h||OO(h))return h||null;if("function"===typeof o.expandIcon||OO(o.expandIcon))return o.expandIcon||null;if("function"===typeof(null===s||void 0===s?void 0:s.expandIcon)||OO(null===s||void 0===s?void 0:s.expandIcon))return(null===s||void 0===s?void 0:s.expandIcon)||null;const n=null!==(e=null!==h&&void 0!==h?h:null===o||void 0===o?void 0:o.expandIcon)&&void 0!==e?e:null===s||void 0===s?void 0:s.expandIcon;return zx(n,{className:po()(`${$}-submenu-expand-icon`,g.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[h,null===o||void 0===o?void 0:o.expandIcon,null===s||void 0===s?void 0:s.expandIcon,$]),j=g.useMemo(()=>({prefixCls:$,inlineCollapsed:E||!1,direction:l,firstLevel:!0,theme:f,mode:M,disableMenuItemTitleTooltip:m}),[$,E,l,m,f]);return P(g.createElement(gO.Provider,{value:null},g.createElement(sO.Provider,{value:j},g.createElement(ev,Object.assign({getPopupContainer:a,overflowedIndicator:g.createElement(bf,null),overflowedIndicatorPopupClassName:po()($,`${$}-${f}`,C),mode:M,selectable:I,onClick:k},_,{inlineCollapsed:E,style:Object.assign(Object.assign({},null===s||void 0===s?void 0:s.style),p),className:A,prefixCls:$,direction:l,defaultMotions:O,expandIcon:R,ref:t,rootClassName:po()(b,D,o.rootClassName,N,T),_internalComponents:$O})))))}),PO=TO,DO=(0,g.forwardRef)((e,t)=>{const n=(0,g.useRef)(null),r=g.useContext(qE);return(0,g.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),g.createElement(PO,Object.assign({ref:n},e,r))});DO.Item=dO,DO.SubMenu=IO,DO.Divider=uO,DO.ItemGroup=Um;const NO=DO,AO=e=>"object"!==typeof e&&"function"!==typeof e||null===e;function RO(e){return t=>g.createElement(fa,{theme:{token:{motion:!1,zIndexPopupBase:0}}},g.createElement(e,Object.assign({},t)))}const jO=(e,t,n,r,o)=>RO(i=>{const{prefixCls:a,style:l}=i,s=g.useRef(null),[c,u]=g.useState(0),[d,p]=g.useState(0),[f,h]=Ho(!1,{value:i.open}),{getPrefixCls:m}=g.useContext(qr),v=m(r||"select",a);g.useEffect(()=>{if(h(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;u(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;const r=o?`.${o(v)}`:`.${v}-dropdown`,i=null===(n=s.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(t),e.observe(i))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},l),{margin:0}),open:f,visible:f,getPopupContainer:()=>s.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:c,position:"relative",minWidth:d};return g.createElement("div",{ref:s,style:b},g.createElement(e,Object.assign({},y)))}),LO=new xn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zO=new xn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),BO=new xn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),HO=new xn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),FO=new xn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),VO=new xn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),WO={"move-up":{inKeyframes:new xn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new xn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:LO,outKeyframes:zO},"move-left":{inKeyframes:BO,outKeyframes:HO},"move-right":{inKeyframes:FO,outKeyframes:VO}},GO=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=WO[t];return[$v(r,o,i,e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},UO=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},YO=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Tv},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Dv},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Pv},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Nv}}},Fw(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Ki(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Qi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Xe(c)} ${Xe(h)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${Xe(c)} ${Xe(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Qi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Xe(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Xe(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Bv(e,"slide-up"),Bv(e,"slide-down"),GO(e,"move-up"),GO(e,"move-down"),ex(e,"zoom-big")]]},qO=dp("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=ep(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[YO(i),UO(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Bw({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Lw(e)),{resetStyle:!1}),XO=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:s,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:p,overlayStyle:f,open:h,onOpenChange:m,visible:v,onVisibleChange:y,mouseEnterDelay:b=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:w=!0,placement:S="",overlay:C,transitionName:_,destroyOnHidden:k,destroyPopupOnHide:M}=e,{getPopupContainer:I,getPrefixCls:E,direction:O,dropdown:$}=g.useContext(qr),T=c||s;Pn("Dropdown");const P=g.useMemo(()=>{const e=E();return void 0!==_?_:S.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[E,S,_]),D=g.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:"rtl"===O?"bottomRight":"bottomLeft",[S,O]),N=E("dropdown",o),A=Rd(N),[R,j,L]=qO(N,A),[,z]=Gi(),B=g.Children.only(AO(i)?g.createElement("span",null,i):i),H=zx(B,{className:po()(`${N}-trigger`,{[`${N}-rtl`]:"rtl"===O},B.props.className),disabled:null!==(t=B.props.disabled)&&void 0!==t?t:l}),F=l?[]:a,V=!!(null===F||void 0===F?void 0:F.includes("contextMenu")),[W,G]=Ho(!1,{value:null!==h&&void 0!==h?h:v}),U=Lo(e=>{null===m||void 0===m||m(e,{source:"trigger"}),null===y||void 0===y||y(e),G(e)}),Y=po()(d,p,j,L,A,null===$||void 0===$?void 0:$.className,{[`${N}-rtl`]:"rtl"===O}),q=Uw({arrowPointAtCenter:"object"===typeof r&&r.pointAtCenter,autoAdjustOverflow:w,offset:z.marginXXS,arrowWidth:r?z.sizePopupArrow:0,borderRadius:z.borderRadius}),X=g.useCallback(()=>{(null===n||void 0===n?void 0:n.selectable)&&(null===n||void 0===n?void 0:n.multiple)||(null===m||void 0===m||m(!1,{source:"menu"}),G(!1))},[null===n||void 0===n?void 0:n.selectable,null===n||void 0===n?void 0:n.multiple]),[K,Z]=Fd("Dropdown",null===f||void 0===f?void 0:f.zIndex);let Q=g.createElement(dg,Object.assign({alignPoint:V},Fp(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:x,visible:W,builtinPlacements:q,arrow:!!r,overlayClassName:Y,prefixCls:N,getPopupContainer:u||I,transitionName:P,trigger:F,overlay:()=>{let e;return e=(null===n||void 0===n?void 0:n.items)?g.createElement(NO,Object.assign({},n)):"function"===typeof C?C():C,T&&(e=T(e)),e=g.Children.only("string"===typeof e?g.createElement("span",null,e):e),g.createElement(hO,{prefixCls:`${N}-menu`,rootClassName:po()(L,A),expandIcon:g.createElement("span",{className:`${N}-menu-submenu-arrow`},"rtl"===O?g.createElement(RE,{className:`${N}-menu-submenu-arrow-icon`}):g.createElement(zE,{className:`${N}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:e=>{let{mode:t}=e}},e)},placement:D,onVisibleChange:U,overlayStyle:Object.assign(Object.assign(Object.assign({},null===$||void 0===$?void 0:$.style),f),{zIndex:K}),autoDestroy:null!==k&&void 0!==k?k:M}),H);return K&&(Q=g.createElement(jd.Provider,{value:Z},Q)),R(Q)},KO=jO(XO,"align",void 0,"dropdown",e=>e);XO._InternalPanelDoNotUseOrYouWillBeFired=e=>g.createElement(KO,Object.assign({},e),g.createElement("span",null));const ZO=XO;function QO(e){return["small","middle","large"].includes(e)}function JO(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const e$=g.createContext({latestIndex:0}),t$=e$.Provider,n$=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=g.useContext(e$);return null===r||void 0===r?null:g.createElement(g.Fragment,null,g.createElement("div",{className:t,style:i},r),n<a&&o&&g.createElement("span",{className:`${t}-split`},o))};var r$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const o$=g.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:l,classNames:s,styles:c}=Zr("space"),{size:u=(null!==i&&void 0!==i?i:"small"),align:d,className:p,rootClassName:f,children:h,direction:m="horizontal",prefixCls:v,split:y,style:b,wrap:x=!1,classNames:w,styles:S}=e,C=r$(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[_,k]=Array.isArray(u)?u:[u,u],M=QO(k),I=QO(_),E=JO(k),O=JO(_),$=kf(h,{keepEmpty:!0}),T=void 0===d&&"horizontal"===m?"center":d,P=r("space",v),[D,N,A]=$w(P),R=po()(P,a,N,`${P}-${m}`,{[`${P}-rtl`]:"rtl"===o,[`${P}-align-${T}`]:T,[`${P}-gap-row-${k}`]:M,[`${P}-gap-col-${_}`]:I},p,f,A),j=po()(`${P}-item`,null!==(n=null===w||void 0===w?void 0:w.item)&&void 0!==n?n:s.item);let L=0;const z=$.map((e,t)=>{var n;null!==e&&void 0!==e&&(L=t);const r=(null===e||void 0===e?void 0:e.key)||`${j}-${t}`;return g.createElement(n$,{className:j,key:r,index:t,split:y,style:null!==(n=null===S||void 0===S?void 0:S.item)&&void 0!==n?n:c.item},e)}),B=g.useMemo(()=>({latestIndex:L}),[L]);if(0===$.length)return null;const H={};return x&&(H.flexWrap="wrap"),!I&&O&&(H.columnGap=_),!M&&E&&(H.rowGap=k),D(g.createElement("div",Object.assign({ref:t,className:R,style:Object.assign(Object.assign(Object.assign({},H),l),b)},C),g.createElement(t$,{value:B},z)))}),i$=o$;i$.Compact=Rw;const a$=i$;var l$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const s$=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=g.useContext(qr),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:u,children:d,className:p,menu:f,arrow:h,autoFocus:m,overlay:v,trigger:y,align:b,open:x,onOpenChange:w,placement:S,getPopupContainer:C,href:_,icon:k=g.createElement(bf,null),title:M,buttonsRender:I=e=>e,mouseEnterDelay:E,mouseLeaveDelay:O,overlayClassName:$,overlayStyle:T,destroyOnHidden:P,destroyPopupOnHide:D,dropdownRender:N,popupRender:A}=e,R=l$(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),j=n("dropdown",o),L=`${j}-button`,z={menu:f,arrow:h,autoFocus:m,align:b,disabled:l,trigger:l?[]:y,onOpenChange:w,getPopupContainer:C||t,mouseEnterDelay:E,mouseLeaveDelay:O,overlayClassName:$,overlayStyle:T,destroyOnHidden:P,popupRender:A||N},{compactSize:B,compactItemClassnames:H}=Dw(j,r),F=po()(L,H,p);"destroyPopupOnHide"in e&&(z.destroyPopupOnHide=D),"overlay"in e&&(z.overlay=v),"open"in e&&(z.open=x),z.placement="placement"in e?S:"rtl"===r?"bottomLeft":"bottomRight";const V=g.createElement(rk,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:u,href:_,title:M},d),W=g.createElement(rk,{type:i,danger:a,icon:k}),[G,U]=I([V,W]);return g.createElement(a$.Compact,Object.assign({className:F,size:B,block:!0},R),G,g.createElement(ZO,Object.assign({},z),U))};s$.__ANT_BUTTON=!0;const c$=s$,u$=ZO;u$.Button=c$;const d$=u$,p$=g.createContext({}),f$=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:h,lineWidth:g,lineType:m}=e,v=(e,t,o)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Xe(g)} ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),v(a,c,p)),{"&-lg":Object.assign({},v(l,u,f)),"&-sm":Object.assign({},v(s,d,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},h$=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},g$=dp("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ep(e,{avatarBg:n,avatarColor:t});return[f$(r),h$(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}});var m$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const v$=g.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:l,className:s,rootClassName:c,style:u,alt:d,draggable:p,children:f,crossOrigin:h,gap:m=4,onError:v}=e,y=m$(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[b,x]=g.useState(1),[w,S]=g.useState(!1),[C,_]=g.useState(!0),k=g.useRef(null),M=g.useRef(null),I=So(t,k),{getPrefixCls:E,avatar:O}=g.useContext(qr),$=g.useContext(p$),T=()=>{if(!M.current||!k.current)return;const e=M.current.offsetWidth,t=k.current.offsetWidth;0!==e&&0!==t&&2*m<t&&x(t-2*m<e?(t-2*m)/e:1)};g.useEffect(()=>{S(!0)},[]),g.useEffect(()=>{_(!0),x(1)},[i]),g.useEffect(T,[m]);const P=()=>{!1!==(null===v||void 0===v?void 0:v())&&_(!1)},D=Vp(e=>{var t,n;return null!==(n=null!==(t=null!==o&&void 0!==o?o:null===$||void 0===$?void 0:$.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"}),N=Object.keys("object"===typeof D&&D||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),A=qx(N),R=g.useMemo(()=>{if("object"!==typeof D)return{};const e=Wx.find(e=>A[e]),t=D[e];return t?{width:t,height:t,fontSize:t&&(l||f)?t/2:18}:{}},[A,D]);const j=E("avatar",n),L=Rd(j),[z,B,H]=g$(j,L),F=po()({[`${j}-lg`]:"large"===D,[`${j}-sm`]:"small"===D}),V=g.isValidElement(i),W=r||(null===$||void 0===$?void 0:$.shape)||"circle",G=po()(j,F,null===O||void 0===O?void 0:O.className,`${j}-${W}`,{[`${j}-image`]:V||i&&C,[`${j}-icon`]:!!l},H,L,s,c,B),U="number"===typeof D?{width:D,height:D,fontSize:l?D/2:18}:{};let Y;if("string"===typeof i&&C)Y=g.createElement("img",{src:i,draggable:p,srcSet:a,onError:P,alt:d,crossOrigin:h});else if(V)Y=i;else if(l)Y=l;else if(w||1!==b){const e=`scale(${b})`,t={msTransform:e,WebkitTransform:e,transform:e};Y=g.createElement(nh,{onResize:T},g.createElement("span",{className:`${j}-string`,ref:M,style:Object.assign({},t)},f))}else Y=g.createElement("span",{className:`${j}-string`,style:{opacity:0},ref:M},f);return z(g.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},U),R),null===O||void 0===O?void 0:O.style),u),className:G,ref:I}),Y))});const y$=v$,b$=e=>e?"function"===typeof e?e():e:null,x$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:f,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Ki(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},Fw(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},w$=e=>{const{componentCls:t}=e;return{[t]:Yw.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},S$=dp("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=ep(e,{popoverBg:t,popoverColor:n});return[x$(r),w$(r),ex(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,p=n-r,f=p/2,h=p/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Lw(e)),Bw({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${f}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var C$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const _$=e=>{let{title:t,content:n,prefixCls:r}=e;return t||n?g.createElement(g.Fragment,null,t&&g.createElement("div",{className:`${r}-title`},t),n&&g.createElement("div",{className:`${r}-inner-content`},n)):null},k$=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e,c=b$(a),u=b$(l),d=po()(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return g.createElement("div",{className:d,style:o},g.createElement("div",{className:`${n}-arrow`}),g.createElement(bw,Object.assign({},e,{className:t,prefixCls:n}),s||g.createElement(_$,{prefixCls:n,title:c,content:u})))},M$=e=>{const{prefixCls:t,className:n}=e,r=C$(e,["prefixCls","className"]),{getPrefixCls:o}=g.useContext(qr),i=o("popover",t),[a,l,s]=S$(i);return a(g.createElement(k$,Object.assign({},r,{prefixCls:i,hashId:l,className:po()(n,s)})))};var I$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const E$=g.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:s="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:p=.1,onOpenChange:f,overlayStyle:h={},styles:m,classNames:v}=e,y=I$(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:x,style:w,classNames:S,styles:C}=Zr("popover"),_=b("popover",o),[k,M,I]=S$(_),E=b(),O=po()(l,M,I,x,S.root,null===v||void 0===v?void 0:v.root),$=po()(S.body,null===v||void 0===v?void 0:v.body),[T,P]=Ho(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),D=(e,t)=>{P(e,!0),null===f||void 0===f||f(e,t)},N=b$(i),A=b$(a);return k(g.createElement(aS,Object.assign({placement:s,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:p},y,{prefixCls:_,classNames:{root:O,body:$},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),w),h),null===m||void 0===m?void 0:m.root),body:Object.assign(Object.assign({},C.body),null===m||void 0===m?void 0:m.body)},ref:t,open:T,onOpenChange:e=>{D(e)},overlay:N||A?g.createElement(_$,{prefixCls:_,title:N,content:A}):null,transitionName:Cv(E,"zoom-big",y.transitionName),"data-popover-inject":!0}),zx(u,{onKeyDown:e=>{var t,n;(0,g.isValidElement)(u)&&(null===(n=null===u||void 0===u?void 0:(t=u.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===bd.ESC&&D(!1,e)})(e)}})))}),O$=E$;O$._InternalPanelDoNotUseOrYouWillBeFired=M$;const $$=O$,T$=e=>{const{size:t,shape:n}=g.useContext(p$),r=g.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return g.createElement(p$.Provider,{value:r},e.children)},P$=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=g.useContext(qr),{prefixCls:l,className:s,rootClassName:c,style:u,maxCount:d,maxStyle:p,size:f,shape:h,maxPopoverPlacement:m,maxPopoverTrigger:v,children:y,max:b}=e;const x=i("avatar",l),w=`${x}-group`,S=Rd(x),[C,_,k]=g$(x,S),M=po()(w,{[`${w}-rtl`]:"rtl"===a},k,S,s,c,_),I=kf(y).map((e,t)=>zx(e,{key:`avatar-key-${t}`})),E=(null===b||void 0===b?void 0:b.count)||d,O=I.length;if(E&&E<O){const e=I.slice(0,E),i=I.slice(E,O),a=(null===b||void 0===b?void 0:b.style)||p,l=(null===(t=null===b||void 0===b?void 0:b.popover)||void 0===t?void 0:t.trigger)||v||"hover",s=(null===(n=null===b||void 0===b?void 0:b.popover)||void 0===n?void 0:n.placement)||m||"top",c=Object.assign(Object.assign({content:i},null===b||void 0===b?void 0:b.popover),{classNames:{root:po()(`${w}-popover`,null===(o=null===(r=null===b||void 0===b?void 0:b.popover)||void 0===r?void 0:r.classNames)||void 0===o?void 0:o.root)},placement:s,trigger:l});return e.push(g.createElement($$,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},c),g.createElement(y$,{style:a},"+"+(O-E)))),C(g.createElement(T$,{shape:h,size:f},g.createElement("div",{className:M,style:u},e)))}return C(g.createElement(T$,{shape:h,size:f},g.createElement("div",{className:M,style:u},I)))},D$=y$;D$.Group=P$;const N$=D$;const A$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};var R$=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:A$}))};const j$=g.forwardRef(R$);const L$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z"}}]},name:"gift",theme:"outlined"};var z$=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:L$}))};const B$=g.forwardRef(z$);const H$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};var F$=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:H$}))};const V$=g.forwardRef(F$);const W$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};var G$=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:W$}))};const U$=g.forwardRef(G$);const Y$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};var q$=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:Y$}))};const X$=g.forwardRef(q$);const K$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var Z$=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:K$}))};const Q$=g.forwardRef(Z$);const J$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};var eT=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:J$}))};const tT=g.forwardRef(eT);const nT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};var rT=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:nT}))};const oT=g.forwardRef(rT);const iT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};var aT=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:iT}))};const lT=g.forwardRef(aT),{Header:sT,Sider:cT,Content:uT}=lO,dT=e=>{let{children:t}=e;const[n,r]=(0,g.useState)(!1),[o,i]=(0,g.useState)([]),a=Uc(),l=Wc(),s=V(),{user:c}=D(e=>e.auth),u=[{key:"/dashboard",icon:(0,EE.jsx)(j$,{}),label:"\u4e3b\u63a7\u5236\u53f0"},{key:"/points/rules",icon:(0,EE.jsx)(B$,{}),label:"\u7533\u62a5\u9879\u76ee\u8bbe\u7f6e"},{key:"/activities",icon:(0,EE.jsx)(V$,{}),label:"\u6d3b\u52a8\u5217\u8868"},{key:"/volunteers",icon:(0,EE.jsx)(U$,{}),label:"\u5fd7\u613f\u8005\u5217\u8868"},{key:"/volunteers/points",icon:(0,EE.jsx)(U$,{}),label:"\u79ef\u5206\u67e5\u8be2"},{key:"/statistics/overview",icon:(0,EE.jsx)(X$,{}),label:"\u6570\u636e\u6982\u89c8"},{key:"system",icon:(0,EE.jsx)(Q$,{}),label:"\u7cfb\u7edf\u7ba1\u7406",children:[{key:"/system/admins",icon:(0,EE.jsx)(Mk,{}),label:"\u7ba1\u7406\u5458\u7ba1\u7406"},{key:"/system/users",icon:(0,EE.jsx)(Mk,{}),label:"\u7528\u6237\u7ba1\u7406"},{key:"/system/permissions",icon:(0,EE.jsx)(Q$,{}),label:"\u6743\u9650\u7ba1\u7406"},{key:"/system/settings",icon:(0,EE.jsx)(Q$,{}),label:"\u7cfb\u7edf\u8bbe\u7f6e"}]}],d=[{key:"profile",icon:(0,EE.jsx)(Mk,{}),label:"\u4e2a\u4eba\u8d44\u6599"},{type:"divider"},{key:"logout",icon:(0,EE.jsx)(tT,{}),label:"\u9000\u51fa\u767b\u5f55",onClick:()=>{s(cs()),a("/login")}}];return g.useEffect(()=>{l.pathname.startsWith("/system")&&i(["system"])},[l.pathname]),(0,EE.jsxs)(lO,{style:{minHeight:"100vh"},children:[(0,EE.jsxs)(cT,{trigger:null,collapsible:!0,collapsed:n,theme:"dark",children:[(0,EE.jsx)("div",{className:"logo",children:n?"\u5fd7\u613f":"\u5fd7\u613f\u8005\u7ba1\u7406\u7cfb\u7edf"}),(0,EE.jsx)(NO,{theme:"dark",mode:"inline",selectedKeys:[l.pathname],openKeys:o,onOpenChange:e=>{i(e)},items:u,onClick:e=>{let{key:t}=e;a(t)}})]}),(0,EE.jsxs)(lO,{children:[(0,EE.jsxs)(sT,{style:{padding:0,background:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,EE.jsx)("div",{style:{display:"flex",alignItems:"center"},children:g.createElement(n?oT:lT,{className:"trigger",onClick:()=>r(!n),style:{fontSize:"18px",padding:"0 24px",cursor:"pointer"}})}),(0,EE.jsx)("div",{style:{marginRight:24},children:(0,EE.jsx)(d$,{menu:{items:d},placement:"bottomRight",children:(0,EE.jsxs)(a$,{style:{cursor:"pointer"},children:[(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),(0,EE.jsx)("span",{children:(null===c||void 0===c?void 0:c.name)||"\u7ba1\u7406\u5458"})]})})})]}),(0,EE.jsx)(uT,{className:"content-layout",children:t})]})]})},pT=ow,fT=cw,hT=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:i="",prefixCls:a}=e;let l;if("function"===typeof n)l=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,i),"number"===typeof r&&(s=s.padEnd(r,"0").slice(0,r>0?r:0)),s&&(s=`${o}${s}`),l=[g.createElement("span",{key:"int",className:`${a}-content-value-int`},e,t),s&&g.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},s)]}else l=e}return g.createElement("span",{className:`${a}-content-value`},l)},gT=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:s}=e;return{[t]:Object.assign(Object.assign({},Ki(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},mT=dp("Statistic",e=>{const t=ep(e,{});return[gT(t)]},e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}});var vT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yT=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,valueStyle:a,value:l=0,title:s,valueRender:c,prefix:u,suffix:d,loading:p=!1,formatter:f,precision:h,decimalSeparator:m=".",groupSeparator:v=",",onMouseEnter:y,onMouseLeave:b}=e,x=vT(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:w,direction:S,className:C,style:_}=Zr("statistic"),k=w("statistic",n),[M,I,E]=mT(k),O=g.createElement(hT,{decimalSeparator:m,groupSeparator:v,prefixCls:k,formatter:f,precision:h,value:l}),$=po()(k,{[`${k}-rtl`]:"rtl"===S},C,r,o,I,E),T=g.useRef(null);g.useImperativeHandle(t,()=>({nativeElement:T.current}));const P=Sd(x,{aria:!0,data:!0});return M(g.createElement("div",Object.assign({},P,{ref:T,className:$,style:Object.assign(Object.assign({},_),i),onMouseEnter:y,onMouseLeave:b}),s&&g.createElement("div",{className:`${k}-title`},s),g.createElement(mf,{paragraph:!1,loading:p,className:`${k}-skeleton`},g.createElement("div",{style:a,className:`${k}-content`},u&&g.createElement("span",{className:`${k}-content-prefix`},u),c?c(O):O,d&&g.createElement("span",{className:`${k}-content-suffix`},d)))))});const bT=yT,xT=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function wT(e,t,n){const{format:r=""}=t,o=new Date(e).getTime(),i=Date.now();return function(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(e=>e.slice(1,-1)),i=t.replace(r,"[]"),a=xT.reduce((e,t)=>{let[r,o]=t;if(e.includes(r)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${r}+`,"g"),e=>{const n=e.length;return t.toString().padStart(n,"0")})}return e},i);let l=0;return a.replace(r,()=>{const e=o[l];return l+=1,e})}(n?Math.max(o-i,0):Math.max(i-o,0),r)}var ST=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const CT=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:o,type:i}=e,a=ST(e,["value","format","onChange","onFinish","type"]),l="countdown"===i,[s,c]=g.useState(null),u=Lo(()=>{const e=Date.now(),n=function(e){return new Date(e).getTime()}(t);c({});return null===r||void 0===r||r(l?n-e:e-n),!(l&&n<e)||(null===o||void 0===o||o(),!1)});g.useEffect(()=>{let e;const t=()=>{e=vi(()=>{u()&&t()})};return t(),()=>vi.cancel(e)},[t,l]),g.useEffect(()=>{c({})},[]);return g.createElement(bT,Object.assign({},a,{value:t,valueRender:e=>zx(e,{title:void 0}),formatter:(e,t)=>s?wT(e,Object.assign(Object.assign({},t),{format:n}),l):"-"}))},_T=e=>g.createElement(CT,Object.assign({},e,{type:"countdown"})),kT=g.memo(_T);bT.Timer=CT,bT.Countdown=kT;const MT=bT;const IT=function(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(t=>{t&&Object.keys(t).forEach(n=>{void 0!==t[n]&&(e[n]=t[n])})}),e};const ET=()=>{const[,e]=Gi(),[t]=yw("Empty"),n=new Zn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return g.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),g.createElement("g",{fill:"none",fillRule:"evenodd"},g.createElement("g",{transform:"translate(24 31.67)"},g.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),g.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),g.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),g.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),g.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),g.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),g.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},g.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),g.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const OT=()=>{const[,e]=Gi(),[t]=yw("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=(0,g.useMemo)(()=>({borderColor:new Zn(n).onBackground(i).toHexString(),shadowColor:new Zn(r).onBackground(i).toHexString(),contentColor:new Zn(o).onBackground(i).toHexString()}),[n,r,o,i]);return g.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},g.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),g.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},g.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),g.createElement("g",{fillRule:"nonzero",stroke:a},g.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),g.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},$T=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},TT=dp("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=ep(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[$T(o)]});var PT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const DT=g.createElement(ET,null),NT=g.createElement(OT,null),AT=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=DT,description:i,children:a,imageStyle:l,style:s,classNames:c,styles:u}=e,d=PT(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:p,direction:f,className:h,style:m,classNames:v,styles:y}=Zr("empty"),b=p("empty",r),[x,w,S]=TT(b),[C]=yw("Empty"),_="undefined"!==typeof i?i:null===C||void 0===C?void 0:C.description,k="string"===typeof _?_:"empty";let M=null;return M="string"===typeof o?g.createElement("img",{alt:k,src:o}):o,x(g.createElement("div",Object.assign({className:po()(w,S,b,h,{[`${b}-normal`]:o===NT,[`${b}-rtl`]:"rtl"===f},t,n,v.root,null===c||void 0===c?void 0:c.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),m),null===u||void 0===u?void 0:u.root),s)},d),g.createElement("div",{className:po()(`${b}-image`,v.image,null===c||void 0===c?void 0:c.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),null===u||void 0===u?void 0:u.image)},M),_&&g.createElement("div",{className:po()(`${b}-description`,v.description,null===c||void 0===c?void 0:c.description),style:Object.assign(Object.assign({},y.description),null===u||void 0===u?void 0:u.description)},_),a&&g.createElement("div",{className:po()(`${b}-footer`,v.footer,null===c||void 0===c?void 0:c.footer),style:Object.assign(Object.assign({},y.footer),null===u||void 0===u?void 0:u.footer)},a)))};AT.PRESENTED_IMAGE_DEFAULT=DT,AT.PRESENTED_IMAGE_SIMPLE=NT;const RT=AT,jT=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,g.useContext)(qr),r=n("empty");switch(t){case"Table":case"List":return g.createElement(RT,{image:RT.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return g.createElement(RT,{image:RT.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return g.createElement(RT,null)}};const LT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var zT=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:LT}))};const BT=g.forwardRef(zT);const HT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var FT=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:HT}))};const VT=g.forwardRef(FT);const WT={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};var GT=[10,20,50,100];const UT=function(e){var t=e.pageSizeOptions,n=void 0===t?GT:t,r=e.locale,o=e.changeSize,i=e.pageSize,a=e.goButton,l=e.quickGo,s=e.rootPrefixCls,c=e.disabled,u=e.buildOptionText,d=e.showSizeChanger,p=e.sizeChangerRender,f=Q(g.useState(""),2),h=f[0],m=f[1],v=function(){return!h||Number.isNaN(h)?void 0:Number(h)},y="function"===typeof u?u:function(e){return"".concat(e," ").concat(r.items_per_page)},b=function(e){""!==h&&(e.keyCode!==bd.ENTER&&"click"!==e.type||(m(""),null===l||void 0===l||l(v())))},x="".concat(s,"-options");if(!d&&!l)return null;var w=null,S=null,C=null;return d&&p&&(w=p({disabled:c,size:i,onSizeChange:function(e){null===o||void 0===o||o(Number(e))},"aria-label":r.page_size,className:"".concat(x,"-size-changer"),options:(n.some(function(e){return e.toString()===i.toString()})?n:n.concat([i]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:y(e),value:e}})})),l&&(a&&(C="boolean"===typeof a?g.createElement("button",{type:"button",onClick:b,onKeyUp:b,disabled:c,className:"".concat(x,"-quick-jumper-button")},r.jump_to_confirm):g.createElement("span",{onClick:b,onKeyUp:b},a)),S=g.createElement("div",{className:"".concat(x,"-quick-jumper")},r.jump_to,g.createElement("input",{disabled:c,type:"text",value:h,onChange:function(e){m(e.target.value)},onKeyUp:b,onBlur:function(e){a||""===h||(m(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null===l||void 0===l||l(v()))},"aria-label":r.page}),r.page,C)),g.createElement("li",{className:x},w,S)};const YT=function(e){var t=e.rootPrefixCls,n=e.page,r=e.active,o=e.className,i=e.showTitle,a=e.onClick,l=e.onKeyPress,s=e.itemRender,c="".concat(t,"-item"),u=po()(c,"".concat(c,"-").concat(n),Y(Y({},"".concat(c,"-active"),r),"".concat(c,"-disabled"),!n),o),d=s(n,"page",g.createElement("a",{rel:"nofollow"},n));return d?g.createElement("li",{title:i?String(n):null,className:u,onClick:function(){a(n)},onKeyDown:function(e){l(e,a,n)},tabIndex:0},d):null};var qT=function(e,t,n){return n};function XT(){}function KT(e){var t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ZT(e,t,n){var r="undefined"===typeof e?t:e;return Math.floor((n-1)/r)+1}const QT=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,r=e.selectPrefixCls,o=void 0===r?"rc-select":r,i=e.className,a=e.current,l=e.defaultCurrent,s=void 0===l?1:l,c=e.total,u=void 0===c?0:c,d=e.pageSize,p=e.defaultPageSize,f=void 0===p?10:p,h=e.onChange,m=void 0===h?XT:h,v=e.hideOnSinglePage,y=e.align,b=e.showPrevNextJumpers,x=void 0===b||b,w=e.showQuickJumper,S=e.showLessItems,C=e.showTitle,_=void 0===C||C,k=e.onShowSizeChange,M=void 0===k?XT:k,I=e.locale,E=void 0===I?WT:I,O=e.style,$=e.totalBoundaryShowSizeChanger,T=void 0===$?50:$,P=e.disabled,D=e.simple,N=e.showTotal,A=e.showSizeChanger,R=void 0===A?u>T:A,j=e.sizeChangerRender,L=e.pageSizeOptions,z=e.itemRender,B=void 0===z?qT:z,H=e.jumpPrevIcon,F=e.jumpNextIcon,V=e.prevIcon,W=e.nextIcon,U=g.useRef(null),q=Q(Ho(10,{value:d,defaultValue:f}),2),X=q[0],K=q[1],Z=Ho(1,{value:a,defaultValue:s,postState:function(e){return Math.max(1,Math.min(e,ZT(void 0,X,u)))}}),J=Q(Z,2),ee=J[0],te=J[1],re=Q(g.useState(ee),2),oe=re[0],ie=re[1];(0,g.useEffect)(function(){ie(ee)},[ee]);var ae=Math.max(1,ee-(S?3:5)),le=Math.min(ZT(void 0,X,u),ee+(S?3:5));function se(t,r){var o=t||g.createElement("button",{type:"button","aria-label":r,className:"".concat(n,"-item-link")});return"function"===typeof t&&(o=g.createElement(t,ne({},e))),o}function ce(e){var t=e.target.value,n=ZT(void 0,X,u);return""===t?t:Number.isNaN(Number(t))?oe:t>=n?n:Number(t)}var ue=u>X&&w;function de(e){var t=ce(e);switch(t!==oe&&ie(t),e.keyCode){case bd.ENTER:pe(t);break;case bd.UP:pe(t-1);break;case bd.DOWN:pe(t+1)}}function pe(e){if(function(e){return KT(e)&&e!==ee&&KT(u)&&u>0}(e)&&!P){var t=ZT(void 0,X,u),n=e;return e>t?n=t:e<1&&(n=1),n!==oe&&ie(n),te(n),null===m||void 0===m||m(n,X),n}return ee}var fe=ee>1,he=ee<ZT(void 0,X,u);function ge(){fe&&pe(ee-1)}function me(){he&&pe(ee+1)}function ve(){pe(ae)}function ye(){pe(le)}function be(e,t){if("Enter"===e.key||e.charCode===bd.ENTER||e.keyCode===bd.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t.apply(void 0,r)}}function xe(e){"click"!==e.type&&e.keyCode!==bd.ENTER||pe(oe)}var we=null,Se=Sd(e,{aria:!0,data:!0}),Ce=N&&g.createElement("li",{className:"".concat(n,"-total-text")},N(u,[0===u?0:(ee-1)*X+1,ee*X>u?u:ee*X])),_e=null,ke=ZT(void 0,X,u);if(v&&u<=X)return null;var Me=[],Ie={rootPrefixCls:n,onClick:pe,onKeyPress:be,showTitle:_,itemRender:B,page:-1},Ee=ee-1>0?ee-1:0,Oe=ee+1<ke?ee+1:ke,$e=w&&w.goButton,Te="object"===G(D)?D.readOnly:!D,Pe=$e,De=null;D&&($e&&(Pe="boolean"===typeof $e?g.createElement("button",{type:"button",onClick:xe,onKeyUp:xe},E.jump_to_confirm):g.createElement("span",{onClick:xe,onKeyUp:xe},$e),Pe=g.createElement("li",{title:_?"".concat(E.jump_to).concat(ee,"/").concat(ke):null,className:"".concat(n,"-simple-pager")},Pe)),De=g.createElement("li",{title:_?"".concat(ee,"/").concat(ke):null,className:"".concat(n,"-simple-pager")},Te?oe:g.createElement("input",{type:"text","aria-label":E.jump_to,value:oe,disabled:P,onKeyDown:function(e){e.keyCode!==bd.UP&&e.keyCode!==bd.DOWN||e.preventDefault()},onKeyUp:de,onChange:de,onBlur:function(e){pe(ce(e))},size:3}),g.createElement("span",{className:"".concat(n,"-slash")},"/"),ke));var Ne=S?1:2;if(ke<=3+2*Ne){ke||Me.push(g.createElement(YT,gt({},Ie,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Ae=1;Ae<=ke;Ae+=1)Me.push(g.createElement(YT,gt({},Ie,{key:Ae,page:Ae,active:ee===Ae})))}else{var Re=S?E.prev_3:E.prev_5,je=S?E.next_3:E.next_5,Le=B(ae,"jump-prev",se(H,"prev page")),ze=B(le,"jump-next",se(F,"next page"));x&&(we=Le?g.createElement("li",{title:_?Re:null,key:"prev",onClick:ve,tabIndex:0,onKeyDown:function(e){be(e,ve)},className:po()("".concat(n,"-jump-prev"),Y({},"".concat(n,"-jump-prev-custom-icon"),!!H))},Le):null,_e=ze?g.createElement("li",{title:_?je:null,key:"next",onClick:ye,tabIndex:0,onKeyDown:function(e){be(e,ye)},className:po()("".concat(n,"-jump-next"),Y({},"".concat(n,"-jump-next-custom-icon"),!!F))},ze):null);var Be=Math.max(1,ee-Ne),He=Math.min(ee+Ne,ke);ee-1<=Ne&&(He=1+2*Ne),ke-ee<=Ne&&(Be=ke-2*Ne);for(var Fe=Be;Fe<=He;Fe+=1)Me.push(g.createElement(YT,gt({},Ie,{key:Fe,page:Fe,active:ee===Fe})));if(ee-1>=2*Ne&&3!==ee&&(Me[0]=g.cloneElement(Me[0],{className:po()("".concat(n,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(we)),ke-ee>=2*Ne&&ee!==ke-2){var Ve=Me[Me.length-1];Me[Me.length-1]=g.cloneElement(Ve,{className:po()("".concat(n,"-item-before-jump-next"),Ve.props.className)}),Me.push(_e)}1!==Be&&Me.unshift(g.createElement(YT,gt({},Ie,{key:1,page:1}))),He!==ke&&Me.push(g.createElement(YT,gt({},Ie,{key:ke,page:ke})))}var We=function(e){var t=B(e,"prev",se(V,"prev page"));return g.isValidElement(t)?g.cloneElement(t,{disabled:!fe}):t}(Ee);if(We){var Ge=!fe||!ke;We=g.createElement("li",{title:_?E.prev_page:null,onClick:ge,tabIndex:Ge?null:0,onKeyDown:function(e){be(e,ge)},className:po()("".concat(n,"-prev"),Y({},"".concat(n,"-disabled"),Ge)),"aria-disabled":Ge},We)}var Ue,Ye,qe=function(e){var t=B(e,"next",se(W,"next page"));return g.isValidElement(t)?g.cloneElement(t,{disabled:!he}):t}(Oe);qe&&(D?(Ue=!he,Ye=fe?0:null):Ye=(Ue=!he||!ke)?null:0,qe=g.createElement("li",{title:_?E.next_page:null,onClick:me,tabIndex:Ye,onKeyDown:function(e){be(e,me)},className:po()("".concat(n,"-next"),Y({},"".concat(n,"-disabled"),Ue)),"aria-disabled":Ue},qe));var Xe=po()(n,i,Y(Y(Y(Y(Y({},"".concat(n,"-start"),"start"===y),"".concat(n,"-center"),"center"===y),"".concat(n,"-end"),"end"===y),"".concat(n,"-simple"),D),"".concat(n,"-disabled"),P));return g.createElement("ul",gt({className:Xe,style:O,ref:U},Se),Ce,We,D?De:Me,qe,g.createElement(UT,{locale:E,rootPrefixCls:n,disabled:P,selectPrefixCls:o,changeSize:function(e){var t=ZT(e,X,u),n=ee>t&&0!==t?t:ee;K(e),ie(n),null===M||void 0===M||M(ee,e),te(n),null===m||void 0===m||m(n,e)},pageSize:X,pageSizeOptions:L,quickGo:ue?pe:null,goButton:Pe,showSizeChanger:R,sizeChangerRender:j}))};const JT=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,o=e.children,i=e.onMouseDown,a=e.onClick,l="function"===typeof n?n(r):n;return g.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null===i||void 0===i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:g.createElement("span",{className:po()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},o))};var eP=g.createContext(null);function tP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=g.useRef(null),n=g.useRef(null);return g.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}const nP=function(e,t,n){var r=ne(ne({},e),n?t:{});return Object.keys(t).forEach(function(n){var o=t[n];"function"===typeof o&&(r[n]=function(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})}),r};var rP=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],oP=function(e,t){var n=e.prefixCls,r=e.id,o=e.inputElement,i=e.autoFocus,a=e.autoComplete,l=e.editable,s=e.activeDescendantId,c=e.value,u=e.open,d=e.attrs,p=Io(e,rP),f=o||g.createElement("input",null),h=f,m=h.ref,v=h.props;return f.props,f=g.cloneElement(f,ne(ne(ne({type:"search"},nP(p,v,!0)),{},{id:r,ref:So(t,m),autoComplete:a||"off",autoFocus:i,className:po()("".concat(n,"-selection-search-input"),null===v||void 0===v?void 0:v.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":u?s:void 0},d),{},{value:l?c:"",readOnly:!l,unselectable:l?null:"on",style:ne(ne({},v.style),{},{opacity:l?null:0})}))};const iP=g.forwardRef(oP);function aP(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var lP="undefined"!==typeof window&&window.document&&window.document.documentElement;function sP(e){return["string","number"].includes(G(e))}function cP(e){var t=void 0;return e&&(sP(e.title)?t=e.title.toString():sP(e.label)&&(t=e.label.toString())),t}function uP(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var dP=function(e){e.preventDefault(),e.stopPropagation()};const pP=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,a=e.open,l=e.searchValue,s=e.autoClearSearchValue,c=e.inputRef,u=e.placeholder,d=e.disabled,p=e.mode,f=e.showSearch,h=e.autoFocus,m=e.autoComplete,v=e.activeDescendantId,y=e.tabIndex,b=e.removeIcon,x=e.maxTagCount,w=e.maxTagTextLength,S=e.maxTagPlaceholder,C=void 0===S?function(e){return"+ ".concat(e.length," ...")}:S,_=e.tagRender,k=e.onToggleOpen,M=e.onRemove,I=e.onInputChange,E=e.onInputPaste,O=e.onInputKeyDown,$=e.onInputMouseDown,T=e.onInputCompositionStart,P=e.onInputCompositionEnd,D=e.onInputBlur,N=g.useRef(null),A=Q((0,g.useState)(0),2),R=A[0],j=A[1],L=Q((0,g.useState)(!1),2),z=L[0],B=L[1],H="".concat(o,"-selection"),F=a||"multiple"===p&&!1===s||"tags"===p?l:"",V="tags"===p||"multiple"===p&&!1===s||f&&(a||z);t=function(){j(N.current.scrollWidth)},n=[F],lP?g.useLayoutEffect(t,n):g.useEffect(t,n);var W=function(e,t,n,r,o){return g.createElement("span",{title:cP(e),className:po()("".concat(H,"-item"),Y({},"".concat(H,"-item-disabled"),n))},g.createElement("span",{className:"".concat(H,"-item-content")},t),r&&g.createElement(JT,{className:"".concat(H,"-item-remove"),onMouseDown:dP,onClick:o,customizeIcon:b},"\xd7"))},G=function(e,t,n,r,o,i){return g.createElement("span",{onMouseDown:function(e){dP(e),k(!a)}},_({label:t,value:e,disabled:n,closable:r,onClose:o,isMaxTag:!!i}))},U=g.createElement("div",{className:"".concat(H,"-search"),style:{width:R},onFocus:function(){B(!0)},onBlur:function(){B(!1)}},g.createElement(iP,{ref:c,open:a,prefixCls:o,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:m,editable:V,activeDescendantId:v,value:F,onKeyDown:O,onMouseDown:$,onChange:I,onPaste:E,onCompositionStart:T,onCompositionEnd:P,onBlur:D,tabIndex:y,attrs:Sd(e,!0)}),g.createElement("span",{ref:N,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},F,"\xa0")),q=g.createElement(Pg,{prefixCls:"".concat(H,"-overflow"),data:i,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!d&&!t,i=n;if("number"===typeof w&&("string"===typeof n||"number"===typeof n)){var a=String(i);a.length>w&&(i="".concat(a.slice(0,w),"..."))}var l=function(t){t&&t.stopPropagation(),M(e)};return"function"===typeof _?G(r,i,t,o,l):W(e,i,t,o,l)},renderRest:function(e){if(!i.length)return null;var t="function"===typeof C?C(e):C;return"function"===typeof _?G(void 0,t,!1,!1,void 0,!0):W({title:t},t,!1)},suffix:U,itemKey:uP,maxCount:x});return g.createElement("span",{className:"".concat(H,"-wrap")},q,!i.length&&!F&&g.createElement("span",{className:"".concat(H,"-placeholder")},u))};const fP=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,s=e.activeDescendantId,c=e.mode,u=e.open,d=e.values,p=e.placeholder,f=e.tabIndex,h=e.showSearch,m=e.searchValue,v=e.activeValue,y=e.maxLength,b=e.onInputKeyDown,x=e.onInputMouseDown,w=e.onInputChange,S=e.onInputPaste,C=e.onInputCompositionStart,_=e.onInputCompositionEnd,k=e.onInputBlur,M=e.title,I=Q(g.useState(!1),2),E=I[0],O=I[1],$="combobox"===c,T=$||h,P=d[0],D=m||"";$&&v&&!E&&(D=v),g.useEffect(function(){$&&O(!1)},[$,v]);var N=!("combobox"!==c&&!u&&!h)&&!!D,A=void 0===M?cP(P):M,R=g.useMemo(function(){return P?null:g.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:N?{visibility:"hidden"}:void 0},p)},[P,N,p,n]);return g.createElement("span",{className:"".concat(n,"-selection-wrap")},g.createElement("span",{className:"".concat(n,"-selection-search")},g.createElement(iP,{ref:o,prefixCls:n,id:r,open:u,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:T,activeDescendantId:s,value:D,onKeyDown:b,onMouseDown:x,onChange:function(e){O(!0),w(e)},onPaste:S,onCompositionStart:C,onCompositionEnd:_,onBlur:k,tabIndex:f,attrs:Sd(e,!0),maxLength:$?y:void 0})),!$&&P?g.createElement("span",{className:"".concat(n,"-selection-item"),title:A,style:N?{visibility:"hidden"}:void 0},P.label):null,R)};var hP=function(e,t){var n=(0,g.useRef)(null),r=(0,g.useRef)(!1),o=e.prefixCls,i=e.open,a=e.mode,l=e.showSearch,s=e.tokenWithEnter,c=e.disabled,u=e.prefix,d=e.autoClearSearchValue,p=e.onSearch,f=e.onSearchSubmit,h=e.onToggleOpen,m=e.onInputKeyDown,v=e.onInputBlur,y=e.domRef;g.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var b=Q(tP(0),2),x=b[0],w=b[1],S=(0,g.useRef)(null),C=function(e){!1!==p(e,!0,r.current)&&h(!0)},_={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,l=n.current instanceof HTMLTextAreaElement;(l||!i||o!==bd.UP&&o!==bd.DOWN||e.preventDefault(),m&&m(e),o!==bd.ENTER||"tags"!==a||r.current||i||null===f||void 0===f||f(e.target.value),l&&!i&&~[bd.UP,bd.DOWN,bd.LEFT,bd.RIGHT].indexOf(o))||(t=o)&&![bd.ESC,bd.SHIFT,bd.BACKSPACE,bd.TAB,bd.WIN_KEY,bd.ALT,bd.META,bd.WIN_KEY_RIGHT,bd.CTRL,bd.SEMICOLON,bd.EQUALS,bd.CAPS_LOCK,bd.CONTEXT_MENU,bd.F1,bd.F2,bd.F3,bd.F4,bd.F5,bd.F6,bd.F7,bd.F8,bd.F9,bd.F10,bd.F11,bd.F12].includes(t)&&h(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(s&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,C(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");S.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==a&&C(e.target.value)},onInputBlur:v},k="multiple"===a||"tags"===a?g.createElement(pP,gt({},e,_)):g.createElement(fP,gt({},e,_));return g.createElement("div",{ref:y,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=x();e.target===n.current||t||"combobox"===a&&c||e.preventDefault(),("combobox"===a||l&&t)&&i||(i&&!1!==d&&p("",!0,!1),h())}},u&&g.createElement("div",{className:"".concat(o,"-prefix")},u),k)};const gP=g.forwardRef(hP);var mP=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],vP=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,i=e.popupElement,a=e.animation,l=e.transitionName,s=e.dropdownStyle,c=e.dropdownClassName,u=e.direction,d=void 0===u?"ltr":u,p=e.placement,f=e.builtinPlacements,h=e.dropdownMatchSelectWidth,m=e.dropdownRender,v=e.dropdownAlign,y=e.getPopupContainer,b=e.empty,x=e.getTriggerDOMNode,w=e.onPopupVisibleChange,S=e.onPopupMouseEnter,C=Io(e,mP),_="".concat(n,"-dropdown"),k=i;m&&(k=m(i));var M=g.useMemo(function(){return f||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(h)},[f,h]),I=a?"".concat(_,"-").concat(a):l,E="number"===typeof h,O=g.useMemo(function(){return E?null:!1===h?"minWidth":"width"},[h,E]),$=s;E&&($=ne(ne({},$),{},{width:h}));var T=g.useRef(null);return g.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}}),g.createElement(ng,gt({},C,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:p||("rtl"===d?"bottomRight":"bottomLeft"),builtinPlacements:M,prefixCls:_,popupTransitionName:I,popup:g.createElement("div",{onMouseEnter:S},k),ref:T,stretch:O,popupAlign:v,popupVisible:r,getPopupContainer:y,popupClassName:po()(c,Y({},"".concat(_,"-empty"),b)),popupStyle:$,getTriggerDOMNode:x,onPopupVisibleChange:w}),o)};const yP=g.forwardRef(vP);function bP(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(t)}function xP(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function wP(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function SP(e){var t=ne({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const CP=g.createContext(null);function _P(e){var t=e.visible,n=e.values;if(!t)return null;return g.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes(G(t))?t:n}).join(", ")),n.length>50?", ...":null)}var kP=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],MP=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],IP=function(e){return"tags"===e||"multiple"===e},EP=g.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,s=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,p=e.emptyOptions,f=e.notFoundContent,h=void 0===f?"Not Found":f,m=e.onClear,v=e.mode,y=e.disabled,b=e.loading,x=e.getInputElement,w=e.getRawInputElement,S=e.open,C=e.defaultOpen,_=e.onDropdownVisibleChange,k=e.activeValue,M=e.onActiveValueChange,I=e.activeDescendantId,E=e.searchValue,O=e.autoClearSearchValue,$=e.onSearch,T=e.onSearchSplit,P=e.tokenSeparators,D=e.allowClear,N=e.prefix,A=e.suffixIcon,R=e.clearIcon,j=e.OptionList,L=e.animation,z=e.transitionName,B=e.dropdownStyle,H=e.dropdownClassName,F=e.dropdownMatchSelectWidth,V=e.dropdownRender,W=e.dropdownAlign,U=e.placement,q=e.builtinPlacements,X=e.getPopupContainer,K=e.showAction,Z=void 0===K?[]:K,J=e.onFocus,te=e.onBlur,re=e.onKeyUp,oe=e.onKeyDown,ie=e.onMouseDown,ae=Io(e,kP),le=IP(v),se=(void 0!==a?a:le)||"combobox"===v,ce=ne({},ae);MP.forEach(function(e){delete ce[e]}),null===c||void 0===c||c.forEach(function(e){delete ce[e]});var ue=Q(g.useState(!1),2),de=ue[0],pe=ue[1];g.useEffect(function(){pe(Cf())},[]);var fe=g.useRef(null),he=g.useRef(null),ge=g.useRef(null),me=g.useRef(null),ve=g.useRef(null),ye=g.useRef(!1),be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=Q(g.useState(!1),2),n=t[0],r=t[1],o=g.useRef(null),i=function(){window.clearTimeout(o.current)};return g.useEffect(function(){return i},[]),[n,function(t,n){i(),o.current=window.setTimeout(function(){r(t),n&&n()},e)},i]}(),xe=Q(be,3),we=xe[0],Se=xe[1],Ce=xe[2];g.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=me.current)||void 0===e?void 0:e.focus,blur:null===(t=me.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=ve.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:fe.current||he.current}});var _e=g.useMemo(function(){var e;if("combobox"!==v)return E;var t=null===(e=u[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""},[E,v,u]),ke="combobox"===v&&"function"===typeof x&&x()||null,Me="function"===typeof w&&w(),Ie=Co(he,null===Me||void 0===Me||null===(n=Me.props)||void 0===n?void 0:n.ref),Ee=Q(g.useState(!1),2),Oe=Ee[0],$e=Ee[1];rt(function(){$e(!0)},[]);var Te=Q(Ho(!1,{defaultValue:C,value:S}),2),Pe=Te[0],De=Te[1],Ne=!!Oe&&Pe,Ae=!h&&p;(y||Ae&&Ne&&"combobox"===v)&&(Ne=!1);var Re=!Ae&&Ne,je=g.useCallback(function(e){var t=void 0!==e?e:!Ne;y||(De(t),Ne!==t&&(null===_||void 0===_||_(t)))},[y,Ne,De,_]),Le=g.useMemo(function(){return(P||[]).some(function(e){return["\n","\r\n"].includes(e)})},[P]),ze=g.useContext(CP)||{},Be=ze.maxCount,He=ze.rawValues,Fe=function(e,t,n){if(!(le&&xP(Be)&&(null===He||void 0===He?void 0:He.size)>=Be)){var r=!0,o=e;null===M||void 0===M||M(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Cn(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce(function(t,n){return[].concat(ee(t),ee(e(n,a)))},[]).filter(Boolean)}(e,t);return r?"undefined"!==typeof n?o.slice(0,n):o:null}(e,P,xP(Be)?Be-He.size:void 0),a=n?null:i;return"combobox"!==v&&a&&(o="",null===T||void 0===T||T(a),je(!1),r=!1),$&&_e!==o&&$(o,{source:t?"typing":"effect"}),r}};g.useEffect(function(){Ne||le||"combobox"===v||Fe("",!1,!1)},[Ne]),g.useEffect(function(){Pe&&y&&De(!1),y&&!ye.current&&Se(!1)},[y]);var Ve=Q(tP(),2),We=Ve[0],Ge=Ve[1],Ue=g.useRef(!1),Ye=g.useRef(!1),qe=[];g.useEffect(function(){return function(){qe.forEach(function(e){return clearTimeout(e)}),qe.splice(0,qe.length)}},[]);var Xe,Ke=Q(g.useState({}),2)[1];Me&&(Xe=function(e){je(e)}),function(e,t,n,r){var o=g.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},g.useEffect(function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[fe.current,null===(e=ge.current)||void 0===e?void 0:e.getPopupElement()]},Re,je,!!Me);var Ze,Qe=g.useMemo(function(){return ne(ne({},e),{},{notFoundContent:h,open:Ne,triggerOpen:Re,id:r,showSearch:se,multiple:le,toggleOpen:je})},[e,h,Re,Ne,r,se,le,je]),Je=!!A||b;Je&&(Ze=g.createElement(JT,{className:po()("".concat(o,"-arrow"),Y({},"".concat(o,"-arrow-loading"),b)),customizeIcon:A,customizeIconProps:{loading:b,searchValue:_e,open:Ne,focused:we,showSearch:se}}));var et,tt=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,s=g.useMemo(function(){return"object"===G(r)?r.clearIcon:o||void 0},[r,o]);return{allowClear:g.useMemo(function(){return!(i||!r||!n.length&&!a||"combobox"===l&&""===a)},[r,i,n.length,a,l]),clearIcon:g.createElement(JT,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}}(o,function(){var e;null===m||void 0===m||m(),null===(e=me.current)||void 0===e||e.focus(),d([],{type:"clear",values:u}),Fe("",!1,!1)},u,D,R,y,_e,v),nt=tt.allowClear,ot=tt.clearIcon,it=g.createElement(j,{ref:ve}),at=po()(o,i,Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},"".concat(o,"-focused"),we),"".concat(o,"-multiple"),le),"".concat(o,"-single"),!le),"".concat(o,"-allow-clear"),D),"".concat(o,"-show-arrow"),Je),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),b),"".concat(o,"-open"),Ne),"".concat(o,"-customize-input"),ke),"".concat(o,"-show-search"),se)),lt=g.createElement(yP,{ref:ge,disabled:y,prefixCls:o,visible:Re,popupElement:it,animation:L,transitionName:z,dropdownStyle:B,dropdownClassName:H,direction:s,dropdownMatchSelectWidth:F,dropdownRender:V,dropdownAlign:W,placement:U,builtinPlacements:q,getPopupContainer:X,empty:p,getTriggerDOMNode:function(e){return he.current||e},onPopupVisibleChange:Xe,onPopupMouseEnter:function(){Ke({})}},Me?g.cloneElement(Me,{ref:Ie}):g.createElement(gP,gt({},e,{domRef:he,prefixCls:o,inputElement:ke,ref:me,id:r,prefix:N,showSearch:se,autoClearSearchValue:O,mode:v,activeDescendantId:I,tagRender:l,values:u,open:Ne,onToggleOpen:je,activeValue:k,searchValue:_e,onSearch:Fe,onSearchSubmit:function(e){e&&e.trim()&&$(e,{source:"submit"})},onRemove:function(e){var t=u.filter(function(t){return t!==e});d(t,{type:"remove",values:[e]})},tokenWithEnter:Le,onInputBlur:function(){Ue.current=!1}})));return et=Me?lt:g.createElement("div",gt({className:at},ce,{ref:fe,onMouseDown:function(e){var t,n=e.target,r=null===(t=ge.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=qe.indexOf(o);-1!==t&&qe.splice(t,1),Ce(),de||r.contains(document.activeElement)||null===(e=me.current)||void 0===e||e.focus()});qe.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null===ie||void 0===ie||ie.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=We(),r=e.key,o="Enter"===r;if(o&&("combobox"!==v&&e.preventDefault(),Ne||je(!0)),Ge(!!_e),"Backspace"===r&&!n&&le&&!_e&&u.length){for(var i=ee(u),a=null,l=i.length-1;l>=0;l-=1){var s=i[l];if(!s.disabled){i.splice(l,1),a=s;break}}a&&d(i,{type:"remove",values:[a]})}for(var c=arguments.length,p=new Array(c>1?c-1:0),f=1;f<c;f++)p[f-1]=arguments[f];!Ne||o&&Ue.current||(o&&(Ue.current=!0),null===(t=ve.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(p))),null===oe||void 0===oe||oe.apply(void 0,[e].concat(p))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;Ne&&(null===(o=ve.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(Ue.current=!1),null===re||void 0===re||re.apply(void 0,[e].concat(n))},onFocus:function(){Se(!0),y||(J&&!Ye.current&&J.apply(void 0,arguments),Z.includes("focus")&&je(!0)),Ye.current=!0},onBlur:function(){ye.current=!0,Se(!1,function(){Ye.current=!1,ye.current=!1,je(!1)}),y||(_e&&("tags"===v?$(_e,{source:"submit"}):"multiple"===v&&$("",{source:"blur"})),te&&te.apply(void 0,arguments))}}),g.createElement(_P,{visible:we&&!Ne,values:u}),lt,Ze,nt&&ot),g.createElement(eP.Provider,{value:Qe},et)});const OP=EP;var $P=function(){return null};$P.isSelectOptGroup=!0;const TP=$P;var PP=function(){return null};PP.isSelectOption=!0;const DP=PP;var NP=g.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=e.onInnerResize,s=e.innerProps,c=e.rtl,u=e.extra,d={},p={display:"flex",flexDirection:"column"};return void 0!==r&&(d={height:n,position:"relative",overflow:"hidden"},p=ne(ne({},p),{},Y(Y(Y(Y(Y({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),g.createElement("div",{style:d},g.createElement(nh,{onResize:function(e){e.offsetHeight&&l&&l()}},g.createElement("div",gt({style:p,className:po()(Y({},"".concat(a,"-holder-inner"),a)),ref:t},s),i,u)))});NP.displayName="Filler";const AP=NP;function RP(e){var t=e.children,n=e.setRef,r=g.useCallback(function(e){n(e)},[]);return g.cloneElement(t,{ref:r})}function jP(e,t,n){var r=Q(g.useState(e),2),o=r[0],i=r[1],a=Q(g.useState(null),2),l=a[0],s=a[1];return g.useEffect(function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var p=s(r[d]);if(p!==s(o[d])){c=d,u=u||p!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(o||[],e||[],t);void 0!==(null===r||void 0===r?void 0:r.index)&&(null===n||void 0===n||n(r.index),s(e[r.index])),i(e)},[e]),[l]}const LP="object"===("undefined"===typeof navigator?"undefined":G(navigator))&&/Firefox/i.test(navigator.userAgent),zP=function(e,t,n,r){var o=(0,g.useRef)(!1),i=(0,g.useRef)(null);var a=(0,g.useRef)({top:e,bottom:t,left:n,right:r});return a.current.top=e,a.current.bottom=t,a.current.left=n,a.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&a.current.left||t>0&&a.current.right:t<0&&a.current.top||t>0&&a.current.bottom;return n&&r?(clearTimeout(i.current),o.current=!1):r&&!o.current||(clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)),!o.current&&r}};function BP(e,t,n,r,o,i,a){var l=(0,g.useRef)(0),s=(0,g.useRef)(null),c=(0,g.useRef)(null),u=(0,g.useRef)(!1),d=zP(t,n,r,o);var p=(0,g.useRef)(null),f=(0,g.useRef)(null);return[function(t){if(e){vi.cancel(f.current),f.current=vi(function(){p.current=null},2);var n=t.deltaX,r=t.deltaY,o=t.shiftKey,h=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(h=r,g=0,p.current="sx");var m=Math.abs(h),v=Math.abs(g);null===p.current&&(p.current=i&&m>v?"x":"y"),"y"===p.current?function(e,t){if(vi.cancel(s.current),!d(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,l.current+=t,c.current=t,LP||n.preventDefault(),s.current=vi(function(){var e=u.current?10:1;a(l.current*e,!1),l.current=0}))}}(t,g):function(e,t){a(t,!0),LP||e.preventDefault()}(t,h)}},function(t){e&&(u.current=t.detail===c.current)}]}const HP=function(){function e(){ke(this,e),Y(this,"maps",void 0),Y(this,"id",0),Y(this,"diffRecords",new Map),this.maps=Object.create(null)}return Ie(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function FP(e){var t=parseFloat(e);return isNaN(t)?0:t}var VP=14/15;function WP(e){return Math.floor(Math.pow(e,.5))}function GP(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var UP=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,s=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,p=e.style,f=e.thumbStyle,h=e.showScrollBar,m=Q(g.useState(!1),2),v=m[0],y=m[1],b=Q(g.useState(null),2),x=b[0],w=b[1],S=Q(g.useState(null),2),C=S[0],_=S[1],k=!r,M=g.useRef(),I=g.useRef(),E=Q(g.useState(h),2),O=E[0],$=E[1],T=g.useRef(),P=function(){!0!==h&&!1!==h&&(clearTimeout(T.current),$(!0),T.current=setTimeout(function(){$(!1)},3e3))},D=i-d||0,N=d-u||0,A=g.useMemo(function(){return 0===o||0===D?0:o/D*N},[o,D,N]),R=g.useRef({top:A,dragging:v,pageY:x,startTop:C});R.current={top:A,dragging:v,pageY:x,startTop:C};var j=function(e){y(!0),w(GP(e,c)),_(R.current.top),a(),e.stopPropagation(),e.preventDefault()};g.useEffect(function(){var e=function(e){e.preventDefault()},t=M.current,n=I.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",j,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",j)}},[]);var L=g.useRef();L.current=D;var z=g.useRef();z.current=N,g.useEffect(function(){if(v){var e,t=function(t){var n=R.current,r=n.dragging,o=n.pageY,i=n.startTop;vi.cancel(e);var a=M.current.getBoundingClientRect(),l=d/(c?a.width:a.height);if(r){var u=(GP(t,c)-o)*l,p=i;!k&&c?p-=u:p+=u;var f=L.current,h=z.current,g=h?p/h:0,m=Math.ceil(g*f);m=Math.max(m,0),m=Math.min(m,f),e=vi(function(){s(m,c)})}},n=function(){y(!1),l()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),vi.cancel(e)}}},[v]),g.useEffect(function(){return P(),function(){clearTimeout(T.current)}},[o]),g.useImperativeHandle(t,function(){return{delayHidden:P}});var B="".concat(n,"-scrollbar"),H={position:"absolute",visibility:O?null:"hidden"},F={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(H,{height:8,left:0,right:0,bottom:0}),Object.assign(F,Y({height:"100%",width:u},k?"left":"right",A))):(Object.assign(H,Y({width:8,top:0,bottom:0},k?"right":"left",0)),Object.assign(F,{width:"100%",height:u,top:A})),g.createElement("div",{ref:M,className:po()(B,Y(Y(Y({},"".concat(B,"-horizontal"),c),"".concat(B,"-vertical"),!c),"".concat(B,"-visible"),O)),style:ne(ne({},H),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:P},g.createElement("div",{ref:I,className:po()("".concat(B,"-thumb"),Y({},"".concat(B,"-thumb-moving"),v)),style:ne(ne({},F),f),onMouseDown:j}))});const YP=UP;function qP(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var XP=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],KP=[],ZP={overflowY:"auto",overflowAnchor:"none"};function QP(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,s=void 0===l||l,c=e.style,u=e.data,d=e.children,p=e.itemKey,f=e.virtual,h=e.direction,m=e.scrollWidth,v=e.component,y=void 0===v?"div":v,b=e.onScroll,w=e.onVirtualScroll,S=e.onVisibleChange,C=e.innerProps,_=e.extraRender,k=e.styles,M=e.showScrollBar,I=void 0===M?"optional":M,E=Io(e,XP),O=g.useCallback(function(e){return"function"===typeof p?p(e):null===e||void 0===e?void 0:e[p]},[p]),$=function(e,t,n){var r=Q(g.useState(0),2),o=r[0],i=r[1],a=(0,g.useRef)(new Map),l=(0,g.useRef)(new HP),s=(0,g.useRef)(0);function c(){s.current+=1}function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c();var t=function(){var e=!1;a.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,a=o.marginBottom,s=r+FP(i)+FP(a);l.current.get(n)!==s&&(l.current.set(n,s),e=!0)}}),e&&i(function(e){return e+1})};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then(function(){n===s.current&&t()})}}return(0,g.useEffect)(function(){return c},[]),[function(r,o){var i=e(r),l=a.current.get(i);o?(a.current.set(i,o),u()):a.current.delete(i),!l!==!o&&(o?null===t||void 0===t||t(r):null===n||void 0===n||n(r))},u,l.current,o]}(O,null,null),T=Q($,4),P=T[0],D=T[1],N=T[2],A=T[3],R=!(!1===f||!i||!a),j=g.useMemo(function(){return Object.values(N.maps).reduce(function(e,t){return e+t},0)},[N.id,N.maps]),L=R&&u&&(Math.max(a*u.length,j)>i||!!m),z="rtl"===h,B=po()(r,Y({},"".concat(r,"-rtl"),z),o),H=u||KP,F=(0,g.useRef)(),V=(0,g.useRef)(),W=(0,g.useRef)(),U=Q((0,g.useState)(0),2),q=U[0],X=U[1],K=Q((0,g.useState)(0),2),Z=K[0],J=K[1],ee=Q((0,g.useState)(!1),2),te=ee[0],re=ee[1],oe=function(){re(!0)},ie=function(){re(!1)},ae={getKey:O};function le(e){X(function(t){var n=function(e){var t=e;Number.isNaN(_e.current)||(t=Math.min(t,_e.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return F.current.scrollTop=n,n})}var se=(0,g.useRef)({start:0,end:H.length}),ce=(0,g.useRef)(),ue=Q(jP(H,O),1)[0];ce.current=ue;var de=g.useMemo(function(){if(!R)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};var e;if(!L)return{scrollHeight:(null===(e=V.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:H.length-1,offset:void 0};for(var t,n,r,o=0,l=H.length,s=0;s<l;s+=1){var c=H[s],u=O(c),d=N.get(u),p=o+(void 0===d?a:d);p>=q&&void 0===t&&(t=s,n=o),p>q+i&&void 0===r&&(r=s),o=p}return void 0===t&&(t=0,n=0,r=Math.ceil(i/a)),void 0===r&&(r=H.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,H.length-1),offset:n}},[L,R,q,H,A,i]),pe=de.scrollHeight,fe=de.start,he=de.end,ge=de.offset;se.current.start=fe,se.current.end=he,g.useLayoutEffect(function(){var e=N.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=H[fe];if(r&&void 0===n)if(O(r)===t){var o=N.get(t)-a;le(function(e){return e+o})}}N.resetRecord()},[pe]);var me=Q(g.useState({width:0,height:i}),2),ve=me[0],ye=me[1],be=(0,g.useRef)(),xe=(0,g.useRef)(),we=g.useMemo(function(){return qP(ve.width,m)},[ve.width,m]),Se=g.useMemo(function(){return qP(ve.height,pe)},[ve.height,pe]),Ce=pe-i,_e=(0,g.useRef)(Ce);_e.current=Ce;var ke=q<=0,Me=q>=Ce,Ie=Z<=0,Ee=Z>=m,Oe=zP(ke,Me,Ie,Ee),$e=function(){return{x:z?-Z:Z,y:q}},Te=(0,g.useRef)($e()),Pe=Lo(function(e){if(w){var t=ne(ne({},$e()),e);Te.current.x===t.x&&Te.current.y===t.y||(w(t),Te.current=t)}});function De(e,t){var n=e;t?((0,x.flushSync)(function(){J(n)}),Pe()):le(n)}var Ne=function(e){var t=e,n=m?m-ve.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Ae=Lo(function(e,t){t?((0,x.flushSync)(function(){J(function(t){return Ne(t+(z?-e:e))})}),Pe()):le(function(t){return t+e})}),Re=Q(BP(R,ke,Me,Ie,Ee,!!m,Ae),2),je=Re[0],Le=Re[1];!function(e,t,n){var r,o=(0,g.useRef)(!1),i=(0,g.useRef)(0),a=(0,g.useRef)(0),l=(0,g.useRef)(null),s=(0,g.useRef)(null),c=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),l=i.current-t,c=a.current-r,u=Math.abs(l)>Math.abs(c);u?i.current=t:a.current=r;var d=n(u,u?l:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(function(){u?l*=VP:c*=VP;var e=Math.floor(u?l:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c,{passive:!1}),l.current.addEventListener("touchend",u,{passive:!0}))};r=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",u))},rt(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(s.current)}},[e])}(R,F,function(e,t,n,r){var o=r;return!Oe(e,t,n)&&((!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),je({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){g.useEffect(function(){var r=t.current;if(e&&r){var o,i,a=!1,l=function(){vi.cancel(o)},s=function e(){l(),o=vi(function(){n(i),e()})},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=GP(e,!1),n=r.getBoundingClientRect(),o=n.top,c=n.bottom;t<=o?(i=-WP(o-t),s()):t>=c?(i=WP(t-c),s()):l()}};return r.addEventListener("mousedown",c),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",d),function(){r.removeEventListener("mousedown",c),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",d),l()}}},[e])}(L,F,function(e){le(function(t){return t+e})}),rt(function(){function e(e){var t=ke&&e.detail<0,n=Me&&e.detail>0;!R||t||n||e.preventDefault()}var t=F.current;return t.addEventListener("wheel",je,{passive:!1}),t.addEventListener("DOMMouseScroll",Le,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",je),t.removeEventListener("DOMMouseScroll",Le),t.removeEventListener("MozMousePixelScroll",e)}},[R,ke,Me]),rt(function(){if(m){var e=Ne(Z);J(e),Pe({x:e})}},[ve.width,m]);var ze=function(){var e,t;null===(e=be.current)||void 0===e||e.delayHidden(),null===(t=xe.current)||void 0===t||t.delayHidden()},Be=function(e,t,n,r,o,i,a,l){var s=g.useRef(),c=Q(g.useState(null),2),u=c[0],d=c[1];return rt(function(){if(u&&u.times<10){if(!e.current)return void d(function(e){return ne({},e)});i();var l=u.targetAlign,s=u.originAlign,c=u.index,p=u.offset,f=e.current.clientHeight,h=!1,g=l,m=null;if(f){for(var v=l||s,y=0,b=0,x=0,w=Math.min(t.length-1,c),S=0;S<=w;S+=1){var C=o(t[S]);b=y;var _=n.get(C);y=x=b+(void 0===_?r:_)}for(var k="top"===v?p:f-p,M=w;M>=0;M-=1){var I=o(t[M]),E=n.get(I);if(void 0===E){h=!0;break}if((k-=E)<=0)break}switch(v){case"top":m=b-p;break;case"bottom":m=x-f+p;break;default:var O=e.current.scrollTop;b<O?g="top":x>O+f&&(g="bottom")}null!==m&&a(m),m!==u.lastTop&&(h=!0)}h&&d(ne(ne({},u),{},{times:u.times+1,targetAlign:g,lastTop:m}))}},[u,e.current]),function(e){if(null!==e&&void 0!==e){if(vi.cancel(s.current),"number"===typeof e)a(e);else if(e&&"object"===G(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex(function(t){return o(t)===e.key});var i=e.offset;d({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else l()}}(F,H,N,a,O,function(){return D(!0)},le,ze);g.useImperativeHandle(t,function(){return{nativeElement:W.current,getScrollInfo:$e,scrollTo:function(e){var t;(t=e)&&"object"===G(t)&&("left"in t||"top"in t)?(void 0!==e.left&&J(Ne(e.left)),Be(e.top)):Be(e)}}}),rt(function(){if(S){var e=H.slice(fe,he+1);S(e,H)}},[fe,he,H]);var He=function(e,t,n,r){var o=Q(g.useMemo(function(){return[new Map,[]]},[e,n.id,r]),2),i=o[0],a=o[1];return function(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=i.get(o),c=i.get(l);if(void 0===s||void 0===c)for(var u=e.length,d=a.length;d<u;d+=1){var p,f=e[d],h=t(f);i.set(h,d);var g=null!==(p=n.get(h))&&void 0!==p?p:r;if(a[d]=(a[d-1]||0)+g,h===o&&(s=d),h===l&&(c=d),void 0!==s&&void 0!==c)break}return{top:a[s-1]||0,bottom:a[c]}}}(H,O,N,a),Fe=null===_||void 0===_?void 0:_({start:fe,end:he,virtual:L,offsetX:Z,offsetY:ge,rtl:z,getSize:He}),Ve=function(e,t,n,r,o,i,a,l){var s=l.getKey;return e.slice(t,n+1).map(function(e,n){var l=a(e,t+n,{style:{width:r},offsetX:o}),c=s(e);return g.createElement(RP,{key:c,setRef:function(t){return i(e,t)}},l)})}(H,fe,he,m,Z,P,d,ae),We=null;i&&(We=ne(Y({},s?"height":"maxHeight",i),ZP),R&&(We.overflowY="hidden",m&&(We.overflowX="hidden"),te&&(We.pointerEvents="none")));var Ge={};return z&&(Ge.dir="rtl"),g.createElement("div",gt({ref:W,style:ne(ne({},c),{},{position:"relative"}),className:B},Ge,E),g.createElement(nh,{onResize:function(e){ye({width:e.offsetWidth,height:e.offsetHeight})}},g.createElement(y,{className:"".concat(r,"-holder"),style:We,ref:F,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==q&&le(t),null===b||void 0===b||b(e),Pe()},onMouseEnter:ze},g.createElement(AP,{prefixCls:r,height:pe,offsetX:Z,offsetY:ge,scrollWidth:m,onInnerResize:D,ref:V,innerProps:C,rtl:z,extra:Fe},Ve))),L&&pe>i&&g.createElement(YP,{ref:be,prefixCls:r,scrollOffset:q,scrollRange:pe,rtl:z,onScroll:De,onStartMove:oe,onStopMove:ie,spinSize:Se,containerSize:ve.height,style:null===k||void 0===k?void 0:k.verticalScrollBar,thumbStyle:null===k||void 0===k?void 0:k.verticalScrollBarThumb,showScrollBar:I}),L&&m>ve.width&&g.createElement(YP,{ref:xe,prefixCls:r,scrollOffset:Z,scrollRange:m,rtl:z,onScroll:De,onStartMove:oe,onStopMove:ie,spinSize:we,containerSize:ve.width,horizontal:!0,style:null===k||void 0===k?void 0:k.horizontalScrollBar,thumbStyle:null===k||void 0===k?void 0:k.horizontalScrollBarThumb,showScrollBar:I}))}var JP=g.forwardRef(QP);JP.displayName="List";const eD=JP;var tD=["disabled","title","children","style","className"];function nD(e){return"string"===typeof e||"number"===typeof e}var rD=function(e,t){var n=g.useContext(eP),r=n.prefixCls,o=n.id,i=n.open,a=n.multiple,l=n.mode,s=n.searchValue,c=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,p=g.useContext(CP),f=p.maxCount,h=p.flattenOptions,m=p.onActiveValue,v=p.defaultActiveFirstOption,y=p.onSelect,b=p.menuItemSelectedIcon,x=p.rawValues,w=p.fieldNames,S=p.virtual,C=p.direction,_=p.listHeight,k=p.listItemHeight,M=p.optionRender,I="".concat(r,"-item"),E=me(function(){return h},[i,h],function(e,t){return t[0]&&e[1]!==t[1]}),O=g.useRef(null),$=g.useMemo(function(){return a&&xP(f)&&(null===x||void 0===x?void 0:x.size)>=f},[a,f,null===x||void 0===x?void 0:x.size]),T=function(e){e.preventDefault()},P=function(e){var t;null===(t=O.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},D=g.useCallback(function(e){return"combobox"!==l&&x.has(e)},[l,ee(x).toString(),x.size]),N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=E.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=E[o]||{},a=i.group,l=i.data;if(!a&&(null===l||void 0===l||!l.disabled)&&(D(l.value)||!$))return o}return-1},A=Q(g.useState(function(){return N(0)}),2),R=A[0],j=A[1],L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];j(e);var n={source:t?"keyboard":"mouse"},r=E[e];r?m(r.value,e,n):m(null,-1,n)};(0,g.useEffect)(function(){L(!1!==v?N(0):-1)},[E.length,s]);var z=g.useCallback(function(e){return"combobox"===l?String(e).toLowerCase()===s.toLowerCase():x.has(e)},[l,s,ee(x).toString(),x.size]);(0,g.useEffect)(function(){var e,t=setTimeout(function(){if(!a&&i&&1===x.size){var e=Array.from(x)[0],t=E.findIndex(function(t){var n=t.data;return s?String(n.value).startsWith(s):n.value===e});-1!==t&&(L(t),P(t))}});i&&(null===(e=O.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[i,s]);var B=function(e){void 0!==e&&y(e,{selected:!x.has(e)}),a||c(!1)};if(g.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case bd.N:case bd.P:case bd.UP:case bd.DOWN:var r=0;if(t===bd.UP?r=-1:t===bd.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===bd.N?r=1:t===bd.P&&(r=-1)),0!==r){var o=N(R+r,r);P(o),L(o,!0)}break;case bd.TAB:case bd.ENTER:var a,l=E[R];!l||null!==l&&void 0!==l&&null!==(a=l.data)&&void 0!==a&&a.disabled||$?B(void 0):B(l.value),i&&e.preventDefault();break;case bd.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){P(e)}}}),0===E.length)return g.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(I,"-empty"),onMouseDown:T},u);var H=Object.keys(w).map(function(e){return w[e]}),F=function(e){return e.label};function V(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var W=function(e){var t=E[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,i=Sd(n,!0),a=F(t);return t?g.createElement("div",gt({"aria-label":"string"!==typeof a||o?null:a},i,{key:e},V(t,e),{"aria-selected":z(r)}),r):null},G={role:"listbox",id:"".concat(o,"_list")};return g.createElement(g.Fragment,null,S&&g.createElement("div",gt({},G,{style:{height:0,width:0,overflow:"hidden"}}),W(R-1),W(R),W(R+1)),g.createElement(eD,{itemKey:"key",ref:O,data:E,height:_,itemHeight:k,fullHeight:!1,onMouseDown:T,onScroll:d,virtual:S,direction:C,innerProps:S?null:G},function(e,t){var n=e.group,r=e.groupOption,o=e.data,i=e.label,a=e.value,l=o.key;if(n){var s,c=null!==(s=o.title)&&void 0!==s?s:nD(i)?i.toString():void 0;return g.createElement("div",{className:po()(I,"".concat(I,"-group"),o.className),title:c},void 0!==i?i:l)}var u=o.disabled,d=o.title,p=(o.children,o.style),f=o.className,h=Fp(Io(o,tD),H),m=D(a),v=u||!m&&$,y="".concat(I,"-option"),x=po()(I,y,f,Y(Y(Y(Y({},"".concat(y,"-grouped"),r),"".concat(y,"-active"),R===t&&!v),"".concat(y,"-disabled"),v),"".concat(y,"-selected"),m)),w=F(e),C=!b||"function"===typeof b||m,_="number"===typeof w?w:w||a,k=nD(_)?_.toString():void 0;return void 0!==d&&(k=d),g.createElement("div",gt({},Sd(h),S?{}:V(e,t),{"aria-selected":z(a),className:x,title:k,onMouseMove:function(){R===t||v||L(t)},onClick:function(){v||B(a)},style:p}),g.createElement("div",{className:"".concat(y,"-content")},"function"===typeof M?M(e,{index:t}):_),g.isValidElement(b)||m,C&&g.createElement(JT,{className:"".concat(I,"-option-state"),customizeIcon:b,customizeIconProps:{value:a,disabled:v,isSelected:m}},m?"\u2713":null))}))};const oD=g.forwardRef(rD);function iD(e,t){return aP(e).join("").toUpperCase().includes(t)}var aD=0,lD=oe();function sD(e){var t=Q(g.useState(),2),n=t[0],r=t[1];return g.useEffect(function(){r("rc_select_".concat(function(){var e;return lD?(e=aD,aD+=1):e="TEST_OR_SSR",e}()))},[]),e||n}var cD=["children","value"],uD=["children"];function dD(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return kf(e).map(function(e,n){if(!g.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,a=r.props,l=a.children,s=Io(a,uD);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return ne({key:n,value:void 0!==i?i:n,children:o},Io(r,cD))}(e):ne(ne({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:dD(l)})}).filter(function(e){return e})}const pD=function(e,t,n,r,o){return g.useMemo(function(){var i=e;!e&&(i=dD(t));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[n.options]||i?(a.set(u[n.value],u),s(l,u,n.label),s(l,u,r),s(l,u,o)):e(u[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}},[e,t,n,r,o])};function fD(e){var t=g.useRef();t.current=e;var n=g.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var hD=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],gD=["inputValue"];var mD=g.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=void 0===o?"rc-select":o,a=e.backfill,l=e.fieldNames,s=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,p=void 0===d||d,f=e.onSelect,h=e.onDeselect,m=e.dropdownMatchSelectWidth,v=void 0===m||m,y=e.filterOption,b=e.filterSort,x=e.optionFilterProp,w=e.optionLabelProp,S=e.options,C=e.optionRender,_=e.children,k=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,I=e.virtual,E=e.direction,O=e.listHeight,$=void 0===O?200:O,T=e.listItemHeight,P=void 0===T?20:T,D=e.labelRender,N=e.value,A=e.defaultValue,R=e.labelInValue,j=e.onChange,L=e.maxCount,z=Io(e,hD),B=sD(n),H=IP(r),F=!(S||!_),V=g.useMemo(function(){return(void 0!==y||"combobox"!==r)&&y},[y,r]),W=g.useMemo(function(){return wP(l,F)},[JSON.stringify(l),F]),U=Q(Ho("",{value:void 0!==c?c:s,postState:function(e){return e||""}}),2),q=U[0],X=U[1],K=pD(S,_,W,x,w),Z=K.valueOptions,J=K.labelOptions,te=K.options,re=g.useCallback(function(e){return aP(e).map(function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==G(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var l,s=Z.get(t);s&&(void 0===n&&(n=null===s||void 0===s?void 0:s[w||W.label]),void 0===r&&(r=null!==(l=null===s||void 0===s?void 0:s.key)&&void 0!==l?l:t),o=null===s||void 0===s?void 0:s.disabled,i=null===s||void 0===s?void 0:s.title);return{label:n,value:t,key:r,disabled:o,title:i}})},[W,w,Z]),oe=Q(Ho(A,{value:N}),2),ie=oe[0],ae=oe[1],le=g.useMemo(function(){var e,t=re(H&&null===ie?[]:ie);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[ie,re,r,H]),se=function(e,t){var n=g.useRef({values:new Map,options:new Map});return[g.useMemo(function(){var r=n.current,o=r.values,i=r.options,a=e.map(function(e){var t;return void 0===e.label?ne(ne({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,s=new Map;return a.forEach(function(e){l.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=l,n.current.options=s,a},[e,t]),g.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]}(le,Z),ce=Q(se,2),ue=ce[0],de=ce[1],pe=g.useMemo(function(){if(!r&&1===ue.length){var e=ue[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return ue.map(function(e){var t;return ne(ne({},e),{},{label:null!==(t="function"===typeof D?D(e):e.label)&&void 0!==t?t:e.value})})},[r,ue,D]),fe=g.useMemo(function(){return new Set(ue.map(function(e){return e.value}))},[ue]);g.useEffect(function(){if("combobox"===r){var e,t=null===(e=ue[0])||void 0===e?void 0:e.value;X(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}},[ue]);var he=fD(function(e,t){var n=null!==t&&void 0!==t?t:e;return Y(Y({},W.value,e),W.label,n)}),ge=g.useMemo(function(){if("tags"!==r)return te;var e=ee(te);return ee(ue).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return Z.has(e)})(n)||e.push(he(n,t.label))}),e},[he,te,Z,ue,r]),me=function(e,t,n,r,o){return g.useMemo(function(){if(!n||!1===r)return e;var i=t.options,a=t.label,l=t.value,s=[],c="function"===typeof r,u=n.toUpperCase(),d=c?r:function(e,t){return o?iD(t[o],u):t[i]?iD(t["children"!==a?a:"label"],u):iD(t[l],u)},p=c?function(e){return SP(e)}:function(e){return e};return e.forEach(function(e){if(e[i])if(d(n,p(e)))s.push(e);else{var t=e[i].filter(function(e){return d(n,p(e))});t.length&&s.push(ne(ne({},e),{},Y({},i,t)))}else d(n,p(e))&&s.push(e)}),s},[e,r,o,n,t])}(ge,W,q,V,x),ve=g.useMemo(function(){return"tags"!==r||!q||me.some(function(e){return e[x||"value"]===q})||me.some(function(e){return e[W.value]===q})?me:[he(q)].concat(ee(me))},[he,x,r,me,q,W]),ye=function e(t){var n=ee(t).sort(function(e,t){return b(e,t,{searchValue:q})});return n.map(function(t){return Array.isArray(t.options)?ne(ne({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},be=g.useMemo(function(){return b?ye(ve):ve},[ve,b,q]),xe=g.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=wP(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(s in t)){var i=t[l];o.push({key:bP(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:bP(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}})}(e,!1),o}(be,{fieldNames:W,childrenAsData:F})},[be,W,F]),we=function(e){var t=re(e);if(ae(t),j&&(t.length!==ue.length||t.some(function(e,t){var n;return(null===(n=ue[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)}))){var n=R?t:t.map(function(e){return e.value}),r=t.map(function(e){return SP(de(e.value))});j(H?n:n[0],H?r:r[0])}},Se=Q(g.useState(null),2),Ce=Se[0],_e=Se[1],ke=Q(g.useState(0),2),Me=ke[0],Ie=ke[1],Ee=void 0!==k?k:"combobox"!==r,Oe=g.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Ie(t),a&&"combobox"===r&&null!==e&&"keyboard"===o&&_e(String(e))},[a,r]),$e=function(e,t,n){var r=function(){var t,n=de(e);return[R?{label:null===n||void 0===n?void 0:n[W.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,SP(n)]};if(t&&f){var o=Q(r(),2),i=o[0],a=o[1];f(i,a)}else if(!t&&h&&"clear"!==n){var l=Q(r(),2),s=l[0],c=l[1];h(s,c)}},Te=fD(function(e,t){var n,o=!H||t.selected;n=o?H?[].concat(ee(ue),[e]):[e]:ue.filter(function(t){return t.value!==e}),we(n),$e(e,o),"combobox"===r?_e(""):IP&&!p||(X(""),_e(""))}),Pe=g.useMemo(function(){var e=!1!==I&&!1!==v;return ne(ne({},K),{},{flattenOptions:xe,onActiveValue:Oe,defaultActiveFirstOption:Ee,onSelect:Te,menuItemSelectedIcon:M,rawValues:fe,fieldNames:W,virtual:e,direction:E,listHeight:$,listItemHeight:P,childrenAsData:F,maxCount:L,optionRender:C})},[L,K,xe,Oe,Ee,Te,M,fe,W,I,v,E,$,P,F,C]);return g.createElement(CP.Provider,{value:Pe},g.createElement(OP,gt({},z,{id:B,prefixCls:i,ref:t,omitDomProps:gD,mode:r,displayValues:pe,onDisplayValuesChange:function(e,t){we(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){$e(e.value,!1,n)})},direction:E,searchValue:q,onSearch:function(e,t){if(X(e),_e(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&we(e),null===u||void 0===u||u(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(ee(fe),[n])));we(o),$e(n,!0),X("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map(function(e){var t=J.get(e);return null===t||void 0===t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(ee(fe),ee(t))));we(n),n.forEach(function(e){$e(e,!0)})},dropdownMatchSelectWidth:v,OptionList:oD,emptyOptions:!xe.length,activeValue:Ce,activeDescendantId:"".concat(B,"_list_").concat(Me)})))});var vD=mD;vD.Option=DP,vD.OptGroup=TP;const yD=vD;const bD=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},xD=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},wD=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ki(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n          ${o}${l}bottomLeft,\n          ${i}${l}bottomLeft\n        `]:{animationName:Tv},[`\n          ${o}${l}topLeft,\n          ${i}${l}topLeft,\n          ${o}${l}topRight,\n          ${i}${l}topRight\n        `]:{animationName:Dv},[`${a}${l}bottomLeft`]:{animationName:Pv},[`\n          ${a}${l}topLeft,\n          ${a}${l}topRight\n        `]:{animationName:Nv},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},xD(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Xi),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},xD(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Bv(e,"slide-up"),Bv(e,"slide-down"),GO(e,"move-up"),GO(e,"move-down")]},SD=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Xe(t),itemLineHeight:Xe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},CD=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},_D=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",s=SD(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},CD(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Xe(r)} 0`,lineHeight:Xe(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:Xe(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Xe(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,\n        ${n}-prefix + ${n}-selection-wrap\n      `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:Xe(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function kD(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n        &${n}-show-arrow ${n}-selector,\n        &${n}-allow-clear ${n}-selector\n      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[_D(e,t),o]}const MD=e=>{const{componentCls:t}=e,n=ep(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ep(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[kD(e),kD(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},kD(r,"lg")]};function ID(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ki(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Xe(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n          ${n}-selection-item,\n          ${n}-selection-placeholder\n        `]:{display:"block",padding:0,lineHeight:Xe(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n        &${n}-show-arrow ${n}-selection-item,\n        &${n}-show-arrow ${n}-selection-search,\n        &${n}-show-arrow ${n}-selection-placeholder\n      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Xe(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:Xe(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Xe(r)}`,"&:after":{display:"none"}}}}}}}function ED(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ID(e),ID(ep(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Xe(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n            &${t}-show-arrow ${t}-selection-item,\n            &${t}-show-arrow ${t}-selection-placeholder\n          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ID(ep(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const OD=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Xe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${Xe(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},$D=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},OD(e,t))}),TD=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},OD(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),$D(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),$D(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),PD=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Xe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},DD=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},PD(e,t))}),ND=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},PD(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),DD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),DD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),AD=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Xe(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),RD=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${Xe(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},jD=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},RD(e,t))}),LD=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},RD(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),jD(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),jD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),zD=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},TD(e)),ND(e)),AD(e)),LD(e))}),BD=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},HD=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},FD=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Ki(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},BD(e)),HD(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Xi),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Xi),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},VD=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},FD(e),ED(e),MD(e),wD(e),{[`${t}-rtl`]:{direction:"rtl"}},SS(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},WD=dp("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ep(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[VD(r),zD(r)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:f,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:m,colorTextDisabled:v,colorPrimaryHover:y,colorPrimary:b,controlOutline:x}=e,w=2*l,S=2*r,C=Math.min(o-w,o-S),_=Math.min(i-w,i-S),k=Math.min(a-w,a-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:f,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:_,multipleItemHeightLG:k,multipleSelectorBgDisabled:m,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:y,activeBorderColor:b,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const GD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var UD=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:GD}))};const YD=g.forwardRef(UD);const qD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var XD=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:qD}))};const KD=g.forwardRef(XD);function ZD(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:p}=e;const f=null!==n&&void 0!==n?n:g.createElement(sd,null),h=e=>null!==t||l||d?g.createElement(g.Fragment,null,!1!==c&&e,l&&u):null;let m=null;if(void 0!==t)m=h(t);else if(i)m=h(g.createElement(vd,{spin:!0}));else{const e=`${s}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return h(n&&r?g.createElement(HC,{className:e}):g.createElement(KD,{className:e}))}}let v=null;v=void 0!==r?r:a?g.createElement(YD,null):null;let y=null;return y=void 0!==o?o:g.createElement(Sp,null),{clearIcon:f,suffixIcon:m,itemIcon:v,removeIcon:y}}var QD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const JD="SECRET_COMBOBOX_MODE_DO_NOT_USE",eN=(e,t)=>{var n,r,o,i,a;const{prefixCls:l,bordered:s,className:c,rootClassName:u,getPopupContainer:d,popupClassName:p,dropdownClassName:f,listHeight:h=256,placement:m,listItemHeight:v,size:y,disabled:b,notFoundContent:x,status:w,builtinPlacements:S,dropdownMatchSelectWidth:C,popupMatchSelectWidth:_,direction:k,style:M,allowClear:I,variant:E,dropdownStyle:O,transitionName:$,tagRender:T,maxCount:P,prefix:D,dropdownRender:N,popupRender:A,onDropdownVisibleChange:R,onOpenChange:j,styles:L,classNames:z}=e,B=QD(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:H,getPrefixCls:F,renderEmpty:V,direction:W,virtual:G,popupMatchSelectWidth:U,popupOverflow:Y}=g.useContext(qr),{showSearch:q,style:X,styles:K,className:Z,classNames:Q}=Zr("select"),[,J]=Gi(),ee=null!==v&&void 0!==v?v:null===J||void 0===J?void 0:J.controlHeight,te=F("select",l),ne=F(),re=null!==k&&void 0!==k?k:W,{compactSize:oe,compactItemClassnames:ie}=Dw(te,re),[ae,le]=Pb("select",E,s),se=Rd(te),[ce,ue,de]=WD(te,se),pe=g.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===JD?"combobox":t},[e.mode]),fe="multiple"===pe||"tags"===pe,he=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ge=null!==(n=null!==_&&void 0!==_?_:C)&&void 0!==n?n:U,me=(null===(r=null===L||void 0===L?void 0:L.popup)||void 0===r?void 0:r.root)||(null===(o=K.popup)||void 0===o?void 0:o.root)||O,ve=A||N,ye=j||R,{status:be,hasFeedback:xe,isFormItemInput:we,feedbackIcon:Se}=g.useContext(Ob),Ce=fC(be,w);let _e;_e=void 0!==x?x:"combobox"===pe?null:(null===V||void 0===V?void 0:V("Select"))||g.createElement(jT,{componentName:"Select"});const{suffixIcon:ke,itemIcon:Me,removeIcon:Ie,clearIcon:Ee}=ZD(Object.assign(Object.assign({},B),{multiple:fe,hasFeedback:xe,feedbackIcon:Se,showSuffixIcon:he,prefixCls:te,componentName:"Select"})),Oe=!0===I?{clearIcon:Ee}:I,$e=Fp(B,["suffixIcon","itemIcon"]),Te=po()((null===(i=null===z||void 0===z?void 0:z.popup)||void 0===i?void 0:i.root)||(null===(a=null===Q||void 0===Q?void 0:Q.popup)||void 0===a?void 0:a.root)||p||f,{[`${te}-dropdown-${re}`]:"rtl"===re},u,Q.root,null===z||void 0===z?void 0:z.root,de,se,ue),Pe=Vp(e=>{var t;return null!==(t=null!==y&&void 0!==y?y:oe)&&void 0!==t?t:e}),De=g.useContext(no),Ne=null!==b&&void 0!==b?b:De,Ae=po()({[`${te}-lg`]:"large"===Pe,[`${te}-sm`]:"small"===Pe,[`${te}-rtl`]:"rtl"===re,[`${te}-${ae}`]:le,[`${te}-in-form-item`]:we},pC(te,Ce,xe),ie,Z,c,Q.root,null===z||void 0===z?void 0:z.root,u,de,se,ue),Re=g.useMemo(()=>void 0!==m?m:"rtl"===re?"bottomRight":"bottomLeft",[m,re]);const[je]=Fd("SelectLike",null===me||void 0===me?void 0:me.zIndex);return ce(g.createElement(yD,Object.assign({ref:t,virtual:G,showSearch:q},$e,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K.root),null===L||void 0===L?void 0:L.root),X),M),dropdownMatchSelectWidth:ge,transitionName:Cv(ne,"slide-up",$),builtinPlacements:bD(S,Y),listHeight:h,listItemHeight:ee,mode:pe,prefixCls:te,placement:Re,direction:re,prefix:D,suffixIcon:ke,menuItemSelectedIcon:Me,removeIcon:Ie,allowClear:Oe,notFoundContent:_e,className:Ae,getPopupContainer:d||H,dropdownClassName:Te,disabled:Ne,dropdownStyle:Object.assign(Object.assign({},me),{zIndex:je}),maxCount:fe?P:void 0,tagRender:fe?T:void 0,dropdownRender:ve,onDropdownVisibleChange:ye})))};const tN=g.forwardRef(eN),nN=jO(tN,"dropdownAlign");tN.SECRET_COMBOBOX_MODE_DO_NOT_USE=JD,tN.Option=DP,tN.OptGroup=TP,tN._InternalPanelDoNotUseOrYouWillBeFired=nN;const rN=tN,oN=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},iN=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Xe(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Xe(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Xe(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n    &${t}-mini ${t}-prev ${t}-item-link,\n    &${t}-mini ${t}-next ${t}-item-link\n    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Xe(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Xe(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Xe(e.itemSizeSM),input:Object.assign(Object.assign({},VS(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},aN=e=>{const{componentCls:t}=e;return{[`\n    &${t}-simple ${t}-prev,\n    &${t}-simple ${t}-next\n    `]:{height:e.itemSizeSM,lineHeight:Xe(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:Xe(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${Xe(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Xe(e.inputOutlineOffset)} 0 ${Xe(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},lN=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`\n    ${t}-prev,\n    ${t}-jump-prev,\n    ${t}-jump-next\n    `]:{marginInlineEnd:e.marginXS},[`\n    ${t}-prev,\n    ${t}-next,\n    ${t}-jump-prev,\n    ${t}-jump-next\n    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Xe(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Xe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:Xe(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},WS(e)),IS(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},MS(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},sN=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Xe(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Xe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Xe(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},cN=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:Xe(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),sN(e)),lN(e)),aN(e)),iN(e)),oN(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},uN=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Qi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Zi(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Zi(e))}}}},dN=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},_S(e)),pN=e=>ep(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},CS(e)),fN=dp("Pagination",e=>{const t=pN(e);return[cN(t),uN(t)]},dN),hN=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},gN=fp(["Pagination","bordered"],e=>{const t=pN(e);return[hN(t)]},dN);function mN(e){return(0,g.useMemo)(()=>"boolean"===typeof e?[e,{}]:e&&"object"===typeof e?[!0,e]:[void 0,void 0],[e])}var vN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const yN=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:l,locale:s,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:p}=e,f=vN(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=qx(c),[,m]=Gi(),{getPrefixCls:v,direction:y,showSizeChanger:b,className:x,style:w}=Zr("pagination"),S=v("pagination",n),[C,_,k]=fN(S),M=Vp(l),I="small"===M||!(!h||M||!c),[E]=yw("Pagination",Nn),O=Object.assign(Object.assign({},E),s),[$,T]=mN(u),[P,D]=mN(b),N=null!==$&&void 0!==$?$:P,A=null!==T&&void 0!==T?T:D,R=d||rN,j=g.useMemo(()=>p?p.map(e=>Number(e)):void 0,[p]);const L=g.useMemo(()=>{const e=g.createElement("span",{className:`${S}-item-ellipsis`},"\u2022\u2022\u2022");return{prevIcon:g.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},"rtl"===y?g.createElement(zE,null):g.createElement(RE,null)),nextIcon:g.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},"rtl"===y?g.createElement(RE,null):g.createElement(zE,null)),jumpPrevIcon:g.createElement("a",{className:`${S}-item-link`},g.createElement("div",{className:`${S}-item-container`},"rtl"===y?g.createElement(VT,{className:`${S}-item-link-icon`}):g.createElement(BT,{className:`${S}-item-link-icon`}),e)),jumpNextIcon:g.createElement("a",{className:`${S}-item-link`},g.createElement("div",{className:`${S}-item-container`},"rtl"===y?g.createElement(BT,{className:`${S}-item-link-icon`}):g.createElement(VT,{className:`${S}-item-link-icon`}),e))}},[y,S]),z=v("select",r),B=po()({[`${S}-${t}`]:!!t,[`${S}-mini`]:I,[`${S}-rtl`]:"rtl"===y,[`${S}-bordered`]:m.wireframe},x,o,i,_,k),H=Object.assign(Object.assign({},w),a);return C(g.createElement(g.Fragment,null,m.wireframe&&g.createElement(gN,{prefixCls:S}),g.createElement(QT,Object.assign({},L,f,{style:H,prefixCls:S,selectPrefixCls:z,className:B,locale:O,pageSizeOptions:j,showSizeChanger:N,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:o,"aria-label":i,className:a,options:l}=e,{className:s,onChange:c}=A||{},u=null===(t=l.find(e=>String(e.value)===String(r)))||void 0===t?void 0:t.value;return g.createElement(R,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:l},A,{value:u,onChange:(e,t)=>{null===o||void 0===o||o(e),null===c||void 0===c||c(e,t)},size:I?"small":"middle",className:po()(a,s)}))}}))))},bN=yN;function xN(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,p=0;function f(){r&&clearTimeout(r)}function h(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,c=Date.now()-p;function h(){p=Date.now(),t.apply(l,o)}function g(){r=void 0}d||(s||!u||r||h(),f(),void 0===u&&c>e?s?(p=Date.now(),a||(r=setTimeout(u?g:h,e))):h():!0!==a&&(r=setTimeout(u?g:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}const wN=80*Math.PI,SN=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return g.createElement("circle",{className:po()(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},CN=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,l]=g.useState(!1);rt(()=>{0!==t&&l(!0)},[0!==t]);const s=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:""+wN/4,strokeDasharray:`${wN*s/100} ${wN*(100-s)/100}`};return g.createElement("span",{className:po()(o,`${r}-progress`,s<=0&&i)},g.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},g.createElement(SN,{dotClassName:r,hasCircleCls:!0}),g.createElement(SN,{dotClassName:r,style:c})))};function _N(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return g.createElement(g.Fragment,null,g.createElement("span",{className:po()(o,n>0&&i)},g.createElement("span",{className:po()(r,`${t}-dot-spin`)},[1,2,3,4].map(e=>g.createElement("i",{className:`${t}-dot-item`,key:e})))),g.createElement(CN,{prefixCls:t,percent:n}))}function kN(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&g.isValidElement(r)?zx(r,{className:po()(null===(t=r.props)||void 0===t?void 0:t.className,i),percent:o}):g.createElement(_N,{prefixCls:n,percent:o})}const MN=new xn("antSpinMove",{to:{opacity:1}}),IN=new xn("antRotate",{to:{transform:"rotate(405deg)"}}),EN=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ki(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:MN,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:IN,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},ON=dp("Spin",e=>{const t=ep(e,{spinDotDefault:e.colorTextDescription});return[EN(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),$N=[[30,.05],[70,.03],[96,.01]];var TN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let PN;const DN=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:l="default",tip:s,wrapperClassName:c,style:u,children:d,fullscreen:p=!1,indicator:f,percent:h}=e,m=TN(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:b,style:x,indicator:w}=Zr("spin"),S=v("spin",n),[C,_,k]=ON(S),[M,I]=g.useState(()=>r&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(r,o)),E=function(e,t){const[n,r]=g.useState(0),o=g.useRef(null),i="auto"===t;return g.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<$N.length;n+=1){const[r,o]=$N[n];if(e<=r)return e+t*o}return e})},200)),()=>{clearInterval(o.current)}),[i,e]),i?n:t}(M,h);g.useEffect(()=>{if(r){const e=xN(o,()=>{I(!0)});return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}I(!1)},[o,r]);const O=g.useMemo(()=>"undefined"!==typeof d&&!p,[d,p]);const $=po()(S,b,{[`${S}-sm`]:"small"===l,[`${S}-lg`]:"large"===l,[`${S}-spinning`]:M,[`${S}-show-text`]:!!s,[`${S}-rtl`]:"rtl"===y},i,!p&&a,_,k),T=po()(`${S}-container`,{[`${S}-blur`]:M}),P=null!==(t=null!==f&&void 0!==f?f:w)&&void 0!==t?t:PN,D=Object.assign(Object.assign({},x),u),N=g.createElement("div",Object.assign({},m,{style:D,className:$,"aria-live":"polite","aria-busy":M}),g.createElement(kN,{prefixCls:S,indicator:P,percent:E}),s&&(O||p)?g.createElement("div",{className:`${S}-text`},s):null);return C(O?g.createElement("div",Object.assign({},m,{className:po()(`${S}-nested-loading`,c,_,k)}),M&&g.createElement("div",{key:"loading"},N),g.createElement("div",{className:T,key:"container"},d)):p?g.createElement("div",{className:po()(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:M},a,_,k)},N):N)};DN.setDefaultIndicator=e=>{PN=e};const NN=DN,AN=g.createContext({});AN.Consumer;var RN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jN=g.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:i,styles:a,className:l,classNames:s,colStyle:c}=e,u=RN(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:d,itemLayout:p}=(0,g.useContext)(AN),{getPrefixCls:f,list:h}=(0,g.useContext)(qr),m=e=>{var t,n;return po()(null===(n=null===(t=null===h||void 0===h?void 0:h.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null===s||void 0===s?void 0:s[e])},v=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null===h||void 0===h?void 0:h.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null===a||void 0===a?void 0:a[e])},y=f("list",n),b=o&&o.length>0&&g.createElement("ul",{className:po()(`${y}-item-action`,m("actions")),key:"actions",style:v("actions")},o.map((e,t)=>g.createElement("li",{key:`${y}-item-action-${t}`},e,t!==o.length-1&&g.createElement("em",{className:`${y}-item-action-split`})))),x=d?"div":"li",w=g.createElement(x,Object.assign({},u,d?{}:{ref:t},{className:po()(`${y}-item`,{[`${y}-item-no-flex`]:!("vertical"===p?i:!(()=>{let e=!1;return g.Children.forEach(r,t=>{"string"===typeof t&&(e=!0)}),e&&g.Children.count(r)>1})())},l)}),"vertical"===p&&i?[g.createElement("div",{className:`${y}-item-main`,key:"content"},r,b),g.createElement("div",{className:po()(`${y}-item-extra`,m("extra")),key:"extra",style:v("extra")},i)]:[r,b,zx(i,{key:"extra"})]);return d?g.createElement(cw,{ref:t,flex:1,style:c},w):w}),LN=jN;LN.Meta=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=RN(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:l}=(0,g.useContext)(qr),s=l("list",t),c=po()(`${s}-item-meta`,n),u=g.createElement("div",{className:`${s}-item-meta-content`},o&&g.createElement("h4",{className:`${s}-item-meta-title`},o),i&&g.createElement("div",{className:`${s}-item-meta-description`},i));return g.createElement("div",Object.assign({},a,{className:c}),r&&g.createElement("div",{className:`${s}-item-meta-avatar`},r),(o||i)&&u)};const zN=LN,BN=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:s}=e;return{[t]:{border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Xe(o)} ${Xe(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},HN=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Xe(a)}`}}}}}},FN=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:l,itemPadding:s,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:p,margin:f,colorText:h,colorTextDescription:g,motionDurationSlow:m,lineWidth:v,headerBg:y,footerBg:b,emptyTextPadding:x,metaMarginBottom:w,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:_}=e;return{[t]:Object.assign(Object.assign({},Ki(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:y},[`${t}-footer`]:{background:b},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Xe(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${m}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:_,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Xe(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:v,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Xe(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:x,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:w,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${Xe(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},VN=dp("List",e=>{const t=ep(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[FN(t),BN(t),HN(t)]},e=>({contentWidth:220,itemPadding:`${Xe(e.paddingContentVertical)} 0`,itemPaddingSM:`${Xe(e.paddingContentVerticalSM)} ${Xe(e.paddingContentHorizontal)}`,itemPaddingLG:`${Xe(e.paddingContentVerticalLG)} ${Xe(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));var WN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function GN(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:i=!0,className:a,rootClassName:l,style:s,children:c,itemLayout:u,loadMore:d,grid:p,dataSource:f=[],size:h,header:m,footer:v,loading:y=!1,rowKey:b,renderItem:x,locale:w}=e,S=WN(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),C=n&&"object"===typeof n?n:{},[_,k]=g.useState(C.defaultCurrent||1),[M,I]=g.useState(C.defaultPageSize||10),{getPrefixCls:E,direction:O,className:$,style:T}=Zr("list"),{renderEmpty:P}=g.useContext(qr),D=e=>(t,r)=>{var o;k(t),I(r),n&&(null===(o=null===n||void 0===n?void 0:n[e])||void 0===o||o.call(n,t,r))},N=D("onChange"),A=D("onShowSizeChange"),R=(e,t)=>{if(!x)return null;let n;return n="function"===typeof b?b(e):b?e[b]:e.key,n||(n=`list-item-${t}`),g.createElement(g.Fragment,{key:n},x(e,t))},j=!!(d||n||v),L=E("list",r),[z,B,H]=VN(L);let F=y;"boolean"===typeof F&&(F={spinning:F});const V=!!(null===F||void 0===F?void 0:F.spinning);let W="";switch(Vp(h)){case"large":W="lg";break;case"small":W="sm"}const G=po()(L,{[`${L}-vertical`]:"vertical"===u,[`${L}-${W}`]:W,[`${L}-split`]:i,[`${L}-bordered`]:o,[`${L}-loading`]:V,[`${L}-grid`]:!!p,[`${L}-something-after-last-item`]:j,[`${L}-rtl`]:"rtl"===O},$,a,l,B,H),U=IT({current:1,total:0,position:"bottom"},{total:f.length,current:_,pageSize:M},n||{}),Y=Math.ceil(U.total/U.pageSize);U.current=Math.min(U.current,Y);const q=n&&g.createElement("div",{className:po()(`${L}-pagination`)},g.createElement(bN,Object.assign({align:"end"},U,{onChange:N,onShowSizeChange:A})));let X=ee(f);n&&f.length>(U.current-1)*U.pageSize&&(X=ee(f).splice((U.current-1)*U.pageSize,U.pageSize));const K=Object.keys(p||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),Z=qx(K),Q=g.useMemo(()=>{for(let e=0;e<Wx.length;e+=1){const t=Wx[e];if(Z[t])return t}},[Z]),J=g.useMemo(()=>{if(!p)return;const e=Q&&p[Q]?p[Q]:p.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0},[JSON.stringify(p),Q]);let te=V&&g.createElement("div",{style:{minHeight:53}});if(X.length>0){const e=X.map(R);te=p?g.createElement(ow,{gutter:p.gutter},g.Children.map(e,e=>g.createElement("div",{key:null===e||void 0===e?void 0:e.key,style:J},e))):g.createElement("ul",{className:`${L}-items`},e)}else c||V||(te=g.createElement("div",{className:`${L}-empty-text`},(null===w||void 0===w?void 0:w.emptyText)||(null===P||void 0===P?void 0:P("List"))||g.createElement(jT,{componentName:"List"})));const ne=U.position,re=g.useMemo(()=>({grid:p,itemLayout:u}),[JSON.stringify(p),u]);return z(g.createElement(AN.Provider,{value:re},g.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},T),s),className:G},S),("top"===ne||"both"===ne)&&q,m&&g.createElement("div",{className:`${L}-header`},m),g.createElement(NN,Object.assign({},F),te,c),v&&g.createElement("div",{className:`${L}-footer`},v),d||("bottom"===ne||"both"===ne)&&q)))}const UN=g.forwardRef(GN);UN.Item=zN;const YN=UN;function qN(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function XN(e){const{closable:t,closeIcon:n}=e||{};return g.useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!==typeof n&&null!==n?n:void 0};return t&&"object"===typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}const KN={};function ZN(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:KN;const r=XN(e),o=XN(t),[i]=yw("global",Bn.global),a="boolean"!==typeof r&&!!(null===r||void 0===r?void 0:r.disabled),l=g.useMemo(()=>Object.assign({closeIcon:g.createElement(Sp,null)},n),[n]),s=g.useMemo(()=>!1!==r&&(r?IT(l,o,r):!1!==o&&(o?IT(l,o):!!l.closable&&l)),[r,o,l]);return g.useMemo(()=>{var e,t;if(!1===s)return[!1,null,a,{}];const{closeIconRender:n}=l,{closeIcon:r}=s;let o=r;const c=Sd(s,!0);return null!==o&&void 0!==o&&(n&&(o=n(r)),o=g.isValidElement(o)?g.cloneElement(o,Object.assign(Object.assign(Object.assign({},o.props),{"aria-label":null!==(t=null===(e=o.props)||void 0===e?void 0:e["aria-label"])&&void 0!==t?t:i.close}),c)):g.createElement("span",Object.assign({"aria-label":i.close},c),o)),[!0,o,a,c]},[s,l])}const QN=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return ep(e,{tagFontSize:o,tagLineHeight:Xe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},JN=e=>({defaultBg:new Zn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),eA=dp("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Ki(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(QN(e)),JN);var tA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nA=g.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=tA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=g.useContext(qr),d=c("tag",n),[p,f,h]=eA(d),m=po()(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},null===u||void 0===u?void 0:u.className,o,f,h);return p(g.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),null===u||void 0===u?void 0:u.style),className:m,onClick:e=>{null===a||void 0===a||a(!i),null===l||void 0===l||l(e)}})))}),rA=nA,oA=fp(["Tag","preset"],e=>(e=>qw(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}))(QN(e)),JN);const iA=(e,t,n)=>{const r="string"!==typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aA=fp(["Tag","status"],e=>{const t=QN(e);return[iA(t,"success","Success"),iA(t,"processing","Info"),iA(t,"error","Error"),iA(t,"warning","Warning")]},JN);var lA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const sA=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,bordered:u=!0,visible:d}=e,p=lA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:f,direction:h,tag:m}=g.useContext(qr),[v,y]=g.useState(!0),b=Fp(p,["closeIcon","closable"]);g.useEffect(()=>{void 0!==d&&y(d)},[d]);const x=eS(s),w=function(e){return Jw.includes(e)}(s),S=x||w,C=Object.assign(Object.assign({backgroundColor:s&&!S?s:void 0},null===m||void 0===m?void 0:m.style),i),_=f("tag",n),[k,M,I]=eA(_),E=po()(_,null===m||void 0===m?void 0:m.className,{[`${_}-${s}`]:S,[`${_}-has-color`]:s&&!S,[`${_}-hidden`]:!v,[`${_}-rtl`]:"rtl"===h,[`${_}-borderless`]:!u},r,o,M,I),O=e=>{e.stopPropagation(),null===c||void 0===c||c(e),e.defaultPrevented||y(!1)},[,$]=ZN(qN(e),qN(m),{closable:!1,closeIconRender:e=>Lx(e,g.createElement("span",{className:`${_}-close-icon`,onClick:O},e),e=>({onClick:t=>{var n;null===(n=null===e||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),O(t)},className:po()(null===e||void 0===e?void 0:e.className,`${_}-close-icon`)}))}),T="function"===typeof p.onClick||a&&"a"===a.type,P=l||null,D=P?g.createElement(g.Fragment,null,P,a&&g.createElement("span",null,a)):a,N=g.createElement("span",Object.assign({},b,{ref:t,className:E,style:C}),D,$,x&&g.createElement(oA,{key:"preset",prefixCls:_}),w&&g.createElement(aA,{key:"status",prefixCls:_}));return k(T?g.createElement(KC,{component:"Tag"},N):N)}),cA=sA;cA.CheckableTag=rA;const uA=cA;function dA(e){return!!(null===e||void 0===e?void 0:e.then)}const pA=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,d=g.useRef(!1),p=g.useRef(null),[f,h]=zo(!1),m=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===i||void 0===i||i.apply(void 0,t)};g.useEffect(()=>{let e=null;return a&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[]);return g.createElement(rk,Object.assign({},n_(t),{onClick:e=>{if(d.current)return;if(d.current=!0,!u)return void m();let t;if(l){if(t=u(e),c&&!dA(t))return d.current=!1,void m(e)}else if(u.length)t=u(i),d.current=!1;else if(t=u(),!dA(t))return void m();(e=>{dA(e)&&(h(!0),e.then(function(){h(!1,!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];m.apply(void 0,t),d.current=!1},e=>{if(h(!1,!0),d.current=!1,!(null===s||void 0===s?void 0:s()))return Promise.reject(e)}))})(t)},loading:f,prefixCls:r},o,{ref:p}),n)},fA=g.createContext({}),{Provider:hA}=fA,gA=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=(0,g.useContext)(fA);return o?g.createElement(pA,{isSilent:r,actionFn:l,close:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===a||void 0===a||a.apply(void 0,t),null===s||void 0===s||s(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${i}-btn`},n):null},mA=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=(0,g.useContext)(fA);return g.createElement(pA,{isSilent:n,type:a||"primary",actionFn:s,close:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];null===t||void 0===t||t.apply(void 0,n),null===l||void 0===l||l(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${o}-btn`},i)};var vA=g.createContext({});function yA(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function bA(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}const xA=g.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var wA={width:0,height:0,overflow:"hidden",outline:"none"},SA={outline:"none"},CA=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,p=e.bodyStyle,f=e.bodyProps,h=e.modalRender,m=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,b=e.visible,x=e.forceRender,w=e.width,S=e.height,C=e.classNames,_=e.styles,k=g.useContext(vA).panel,M=Co(y,k),I=(0,g.useRef)(),E=(0,g.useRef)();g.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===E.current?I.current.focus({preventScroll:!0}):e||t!==I.current||E.current.focus({preventScroll:!0})}}});var O={};void 0!==w&&(O.width=w),void 0!==S&&(O.height=S);var $=l?g.createElement("div",{className:po()("".concat(n,"-footer"),null===C||void 0===C?void 0:C.footer),style:ne({},null===_||void 0===_?void 0:_.footer)},l):null,T=i?g.createElement("div",{className:po()("".concat(n,"-header"),null===C||void 0===C?void 0:C.header),style:ne({},null===_||void 0===_?void 0:_.header)},g.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,P=(0,g.useMemo)(function(){return"object"===G(s)&&null!==s?s:s?{closeIcon:null!==c&&void 0!==c?c:g.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),D=Sd(P,!0),N="object"===G(s)&&s.disabled,A=s?g.createElement("button",gt({type:"button",onClick:u,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:N}),P.closeIcon):null,R=g.createElement("div",{className:po()("".concat(n,"-content"),null===C||void 0===C?void 0:C.content),style:null===_||void 0===_?void 0:_.content},A,T,g.createElement("div",gt({className:po()("".concat(n,"-body"),null===C||void 0===C?void 0:C.body),style:ne(ne({},p),null===_||void 0===_?void 0:_.body)},f),d),$);return g.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:M,style:ne(ne({},o),O),className:po()(n,r),onMouseDown:m,onMouseUp:v},g.createElement("div",{ref:I,tabIndex:0,style:SA},g.createElement(xA,{shouldUpdate:b||x},h?h(R):R)),g.createElement("div",{tabIndex:0,ref:E,style:wA}))});const _A=CA;var kA=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,p=e.mousePosition,f=(0,g.useRef)(),h=Q(g.useState(),2),m=h[0],v=h[1],y={};function b(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=bA(o),n.top+=bA(o,!0),n}(f.current);v(p&&(p.x||p.y)?"".concat(p.x-e.left,"px ").concat(p.y-e.top,"px"):"")}return m&&(y.transformOrigin=m),g.createElement(Ai,{visible:a,onVisibleChanged:d,onAppearPrepare:b,onEnterPrepare:b,forceRender:l,motionName:c,removeOnLeave:s,ref:f},function(a,l){var s=a.className,c=a.style;return g.createElement(_A,gt({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:l,style:ne(ne(ne({},c),o),y),className:po()(i,s)}))})});kA.displayName="Content";const MA=kA;const IA=function(e){var t=e.prefixCls,n=e.style,r=e.visible,o=e.maskProps,i=e.motionName,a=e.className;return g.createElement(Ai,{key:"mask",visible:r,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var i=e.className,l=e.style;return g.createElement("div",gt({ref:r,style:ne(ne({},l),n),className:po()("".concat(t,"-mask"),i,a)},o))})};const EA=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,o=e.visible,i=void 0!==o&&o,a=e.keyboard,l=void 0===a||a,s=e.focusTriggerAfterClose,c=void 0===s||s,u=e.wrapStyle,d=e.wrapClassName,p=e.wrapProps,f=e.onClose,h=e.afterOpenChange,m=e.afterClose,v=e.transitionName,y=e.animation,b=e.closable,x=void 0===b||b,w=e.mask,S=void 0===w||w,C=e.maskTransitionName,_=e.maskAnimation,k=e.maskClosable,M=void 0===k||k,I=e.maskStyle,E=e.maskProps,O=e.rootClassName,$=e.classNames,T=e.styles;var P=(0,g.useRef)(),D=(0,g.useRef)(),N=(0,g.useRef)(),A=Q(g.useState(i),2),R=A[0],j=A[1],L=Th();function z(e){null===f||void 0===f||f(e)}var B=(0,g.useRef)(!1),H=(0,g.useRef)(),F=null;M&&(F=function(e){B.current?B.current=!1:D.current===e.target&&z(e)}),(0,g.useEffect)(function(){i&&(j(!0),ie(D.current,document.activeElement)||(P.current=document.activeElement))},[i]),(0,g.useEffect)(function(){return function(){clearTimeout(H.current)}},[]);var V=ne(ne(ne({zIndex:r},u),null===T||void 0===T?void 0:T.wrapper),{},{display:R?null:"none"});return g.createElement("div",gt({className:po()("".concat(n,"-root"),O)},Sd(e,{data:!0})),g.createElement(IA,{prefixCls:n,visible:S&&i,motionName:yA(n,C,_),style:ne(ne({zIndex:r},I),null===T||void 0===T?void 0:T.mask),maskProps:E,className:null===$||void 0===$?void 0:$.mask}),g.createElement("div",gt({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===bd.ESC)return e.stopPropagation(),void z(e);i&&e.keyCode===bd.TAB&&N.current.changeActive(!e.shiftKey)},className:po()("".concat(n,"-wrap"),d,null===$||void 0===$?void 0:$.wrapper),ref:D,onClick:F,style:V},p),g.createElement(MA,gt({},e,{onMouseDown:function(){clearTimeout(H.current),B.current=!0},onMouseUp:function(){H.current=setTimeout(function(){B.current=!1})},ref:N,closable:x,ariaId:L,prefixCls:n,visible:i&&R,onClose:z,onVisibleChanged:function(e){if(e)!function(){var e;ie(D.current,document.activeElement)||null===(e=N.current)||void 0===e||e.focus()}();else{if(j(!1),S&&P.current&&c){try{P.current.focus({preventScroll:!0})}catch(vDe){}P.current=null}R&&(null===m||void 0===m||m())}null===h||void 0===h||h(e)},motionName:yA(n,v,y)}))))};var OA=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,o=e.destroyOnClose,i=void 0!==o&&o,a=e.afterClose,l=e.panelRef,s=Q(g.useState(t),2),c=s[0],u=s[1],d=g.useMemo(function(){return{panel:l}},[l]);return g.useEffect(function(){t&&u(!0)},[t]),r||!i||c?g.createElement(vA.Provider,{value:d},g.createElement(Eh,{open:t||r||c,autoDestroy:!1,getContainer:n,autoLock:t||c},g.createElement(EA,gt({},e,{destroyOnClose:i,afterClose:function(){null===a||void 0===a||a(),u(!1)}})))):null};OA.displayName="Dialog";const $A=OA;function TA(){}const PA=g.createContext({add:TA,remove:TA});const DA=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,g.useContext)(fA);return g.createElement(rk,Object.assign({onClick:n},e),t)},NA=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=(0,g.useContext)(fA);return g.createElement(rk,Object.assign({},n_(n),{loading:e,onClick:o},t),r)};function AA(e,t){return g.createElement("span",{className:`${e}-close-x`},t||g.createElement(Sp,{className:`${e}-close-icon`}))}const RA=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=yw("Modal",Wn()),d={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:t||(null===u||void 0===u?void 0:u.okText),cancelTextLocale:r||(null===u||void 0===u?void 0:u.cancelText),okType:n,onOk:i,onCancel:a},p=g.useMemo(()=>d,ee(Object.values(d)));let f;return"function"===typeof c||"undefined"===typeof c?(f=g.createElement(g.Fragment,null,g.createElement(DA,null),g.createElement(NA,null)),"function"===typeof c&&(f=c(f,{OkBtn:NA,CancelBtn:DA})),f=g.createElement(hA,{value:p},f)):f=c,g.createElement(to,{disabled:!1},f)},jA=new xn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),LA=new xn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),zA=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[$v(r,jA,LA,e.motionDurationMid,t),{[`\n        ${o}${r}-enter,\n        ${o}${r}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]};function BA(e){return{position:e,inset:0}}const HA=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},BA("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},BA("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:zA(e)}]},FA=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${Xe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ki(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Xe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:Xe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Qi(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${Xe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},VA=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},WA=e=>{const{componentCls:t}=e,n=Jx(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(e=>({[`@media (min-width: ${Xe(r[e])})`]:{width:`var(${o}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ee(Object.keys(n).map((e,t)=>{const r=Object.keys(n)[t-1];return r?{[`${o}${e}-width`]:`var(${o}${r}-width)`}:null})),[{width:`var(${o}xs-width)`}],ee(i))}}},GA=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return ep(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},UA=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Xe(e.paddingMD)} ${Xe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Xe(e.padding)} ${Xe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Xe(e.paddingXS)} ${Xe(e.padding)}`:0,footerBorderTop:e.wireframe?`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Xe(e.borderRadiusLG)} ${Xe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Xe(2*e.padding)} ${Xe(2*e.padding)} ${Xe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),YA=dp("Modal",e=>{const t=GA(e);return[FA(t),VA(t),HA(t),ex(t,"zoom"),WA(t)]},UA,{unitless:{titleLineHeight:!0}});var qA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};let XA;const KA=e=>{XA={x:e.pageX,y:e.pageY},setTimeout(()=>{XA=null},100)};oe()&&window.document.documentElement&&document.documentElement.addEventListener("click",KA,!0);const ZA=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:l,focusTriggerAfterClose:s=!0,style:c,visible:u,width:d=520,footer:p,classNames:f,styles:h,children:m,loading:v,confirmLoading:y,zIndex:b,mousePosition:x,onOk:w,onCancel:S,destroyOnHidden:C,destroyOnClose:_}=e,k=qA(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:M,getPrefixCls:I,direction:E,modal:O}=g.useContext(qr),$=e=>{y||null===S||void 0===S||S(e)};const T=I("modal",t),P=I(),D=Rd(T),[N,A,R]=YA(T,D),j=po()(i,{[`${T}-centered`]:null!==a&&void 0!==a?a:null===O||void 0===O?void 0:O.centered,[`${T}-wrap-rtl`]:"rtl"===E}),L=null===p||v?null:g.createElement(RA,Object.assign({},e,{onOk:e=>{null===w||void 0===w||w(e)},onCancel:$})),[z,B,H,F]=ZN(qN(e),qN(O),{closable:!0,closeIcon:g.createElement(Sp,{className:`${T}-close-icon`}),closeIconRender:e=>AA(T,e)}),V=function(e){const t=g.useContext(PA),n=g.useRef(null);return Lo(r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)})}(`.${T}-content`),[W,G]=Fd("Modal",b),[U,Y]=g.useMemo(()=>d&&"object"===typeof d?[void 0,d]:[d,void 0],[d]),q=g.useMemo(()=>{const e={};return Y&&Object.keys(Y).forEach(t=>{const n=Y[t];void 0!==n&&(e[`--${T}-${t}-width`]="number"===typeof n?`${n}px`:n)}),e},[Y]);return N(g.createElement(jw,{form:!0,space:!0},g.createElement(jd.Provider,{value:G},g.createElement($A,Object.assign({width:U},k,{zIndex:W,getContainer:void 0===l?M:l,prefixCls:T,rootClassName:po()(A,r,R,D),footer:L,visible:null!==o&&void 0!==o?o:u,mousePosition:null!==x&&void 0!==x?x:XA,onClose:$,closable:z?Object.assign({disabled:H,closeIcon:B},F):z,closeIcon:B,focusTriggerAfterClose:s,transitionName:Cv(P,"zoom",e.transitionName),maskTransitionName:Cv(P,"fade",e.maskTransitionName),className:po()(A,n,null===O||void 0===O?void 0:O.className),style:Object.assign(Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),c),q),classNames:Object.assign(Object.assign(Object.assign({},null===O||void 0===O?void 0:O.classNames),f),{wrapper:po()(j,null===f||void 0===f?void 0:f.wrapper)}),styles:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.styles),h),panelRef:V,destroyOnClose:null!==C&&void 0!==C?C:_}),v?g.createElement(mf,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):m))))},QA=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Xe(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Xe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n        ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},JA=fp(["Modal","confirm"],e=>{const t=GA(e);return[QA(t)]},UA,{order:-1e3});var eR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function tR(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=eR(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&null!==n)switch(a){case"info":d=g.createElement(hd,null);break;case"success":d=g.createElement(id,null);break;case"error":d=g.createElement(sd,null);break;default:d=g.createElement(dd,null)}const p=null!==l&&void 0!==l?l:"confirm"===a,f=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[h]=yw("Modal"),m=c||h,v=r||(p?null===m||void 0===m?void 0:m.okText:null===m||void 0===m?void 0:m.justOkText),y=o||(null===m||void 0===m?void 0:m.cancelText),b=Object.assign({autoFocusButton:f,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:p},u),x=g.useMemo(()=>b,ee(Object.values(b))),w=g.createElement(g.Fragment,null,g.createElement(gA,null),g.createElement(mA,null)),S=void 0!==e.title&&null!==e.title,C=`${i}-body`;return g.createElement("div",{className:`${i}-body-wrapper`},g.createElement("div",{className:po()(C,{[`${C}-has-title`]:S})},d,g.createElement("div",{className:`${i}-paragraph`},S&&g.createElement("span",{className:`${i}-title`},e.title),g.createElement("div",{className:`${i}-content`},e.content))),void 0===s||"function"===typeof s?g.createElement(hA,{value:x},g.createElement("div",{className:`${i}-btns`},"function"===typeof s?s(w,{OkBtn:mA,CancelBtn:gA}):w)):s,g.createElement(JA,{prefixCls:t}))}const nR=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:s,closable:c=!1,onConfirm:u,styles:d}=e;const p=`${i}-confirm`,f=e.width||416,h=e.style||{},m=void 0===e.mask||e.mask,v=void 0!==e.maskClosable&&e.maskClosable,y=po()(p,`${p}-${e.type}`,{[`${p}-rtl`]:"rtl"===o},e.className),[,b]=Gi(),x=g.useMemo(()=>void 0!==n?n:b.zIndexPopupBase+zd,[n,b]);return g.createElement(ZA,Object.assign({},e,{className:y,wrapClassName:po()({[`${p}-centered`]:!!e.centered},a),onCancel:()=>{null===t||void 0===t||t({triggerCancel:!0}),null===u||void 0===u||u(!1)},title:"",footer:null,transitionName:Cv(l||"","zoom",e.transitionName),maskTransitionName:Cv(l||"","fade",e.maskTransitionName),mask:m,maskClosable:v,style:h,styles:Object.assign({body:s,mask:r},d),width:f,zIndex:x,closable:c}),g.createElement(tR,Object.assign({},e,{confirmPrefixCls:p})))};const rR=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return g.createElement(fa,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},g.createElement(nR,Object.assign({},e)))},oR=[];let iR="";function aR(){return iR}const lR=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Wn(),l=(0,g.useContext)(qr),s=aR()||l.getPrefixCls(),c=r||`${s}-modal`;let u=o;return!1===u&&(u=void 0),g.createElement(rR,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:null!==i&&void 0!==i?i:l.direction,locale:null!==(n=null===(t=l.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:a,getContainer:u}))};function sR(e){const t=ua();const n=document.createDocumentFragment();let r,o,i=Object.assign(Object.assign({},e),{close:s,open:!0});function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a;r.some(e=>null===e||void 0===e?void 0:e.triggerCancel)&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(ee(r.slice(1)))));for(let e=0;e<oR.length;e++){if(oR[e]===s){oR.splice(e,1);break}}o()}function l(e){clearTimeout(r),r=setTimeout(()=>{const r=t.getPrefixCls(void 0,aR()),i=t.getIconPrefixCls(),a=t.getTheme(),l=g.createElement(lR,Object.assign({},e)),s=Hu();o=s(g.createElement(fa,{prefixCls:r,iconPrefixCls:i,theme:a},t.holderRender?t.holderRender(l):l),n)})}function s(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i=Object.assign(Object.assign({},i),{open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),a.apply(this,n)}}),i.visible&&delete i.visible,l(i)}return l(i),oR.push(s),{destroy:s,update:function(e){i="function"===typeof e?e(i):Object.assign(Object.assign({},i),e),l(i)}}}function cR(e){return Object.assign(Object.assign({},e),{type:"warning"})}function uR(e){return Object.assign(Object.assign({},e),{type:"info"})}function dR(e){return Object.assign(Object.assign({},e),{type:"success"})}function pR(e){return Object.assign(Object.assign({},e),{type:"error"})}function fR(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var hR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const gR=RO(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=hR(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=g.useContext(qr),d=u(),p=t||u("modal"),f=Rd(d),[h,m,v]=YA(p,f),y=`${p}-confirm`;let b={};return b=i?{closable:null!==o&&void 0!==o&&o,title:"",footer:"",children:g.createElement(tR,Object.assign({},e,{prefixCls:p,confirmPrefixCls:y,rootPrefixCls:d,content:l}))}:{closable:null===o||void 0===o||o,title:a,footer:null!==s&&g.createElement(RA,Object.assign({},e)),children:l},h(g.createElement(_A,Object.assign({prefixCls:p,className:po()(m,`${p}-pure-panel`,i&&y,i&&`${y}-${i}`,n,v,f)},c,{closeIcon:AA(p,r),closable:o},b)))});var mR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vR=(e,t)=>{var n,{afterClose:r,config:o}=e,i=mR(e,["afterClose","config"]);const[a,l]=g.useState(!0),[s,c]=g.useState(o),{direction:u,getPrefixCls:d}=g.useContext(qr),p=d("modal"),f=d(),h=function(){var e;l(!1);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o;n.some(e=>null===e||void 0===e?void 0:e.triggerCancel)&&(null===(e=s.onCancel)||void 0===e||(o=e).call.apply(o,[s,()=>{}].concat(ee(n.slice(1)))))};g.useImperativeHandle(t,()=>({destroy:h,update:e=>{c(t=>{const n="function"===typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const m=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[v]=yw("Modal",Bn.Modal);return g.createElement(rR,Object.assign({prefixCls:p,rootPrefixCls:f},s,{close:h,open:a,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(m?null===v||void 0===v?void 0:v.okText:null===v||void 0===v?void 0:v.justOkText),direction:s.direction||u,cancelText:s.cancelText||(null===v||void 0===v?void 0:v.cancelText)},i))},yR=g.forwardRef(vR);let bR=0;const xR=g.memo(g.forwardRef((e,t)=>{const[n,r]=function(){const[e,t]=g.useState([]);return[e,g.useCallback(e=>(t(t=>[].concat(ee(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return g.useImperativeHandle(t,()=>({patchElement:r}),[]),g.createElement(g.Fragment,null,n)}));const wR=function(){const e=g.useRef(null),[t,n]=g.useState([]);g.useEffect(()=>{if(t.length){ee(t).forEach(e=>{e()}),n([])}},[t]);const r=g.useCallback(t=>function(r){var o;bR+=1;const i=g.createRef();let a;const l=new Promise(e=>{a=e});let s,c=!1;const u=g.createElement(yR,{key:`modal-${bR}`,config:t(r),ref:i,afterClose:()=>{null===s||void 0===s||s()},isSilent:()=>c,onConfirm:e=>{a(e)}});s=null===(o=e.current)||void 0===o?void 0:o.patchElement(u),s&&oR.push(s);const d={destroy:()=>{function e(){var e;null===(e=i.current)||void 0===e||e.destroy()}i.current?e():n(t=>[].concat(ee(t),[e]))},update:e=>{function t(){var t;null===(t=i.current)||void 0===t||t.update(e)}i.current?t():n(e=>[].concat(ee(e),[t]))},then:e=>(c=!0,l.then(e))};return d},[]);return[g.useMemo(()=>({info:r(uR),success:r(dR),error:r(pR),warning:r(cR),confirm:r(fR)}),[]),g.createElement(xR,{key:"modal-holder",ref:e})]};function SR(e){return sR(cR(e))}const CR=ZA;CR.useModal=wR,CR.info=function(e){return sR(uR(e))},CR.success=function(e){return sR(dR(e))},CR.error=function(e){return sR(pR(e))},CR.warning=SR,CR.warn=SR,CR.confirm=function(e){return sR(fR(e))},CR.destroyAll=function(){for(;oR.length;){const e=oR.pop();e&&e()}},CR.config=function(e){let{rootPrefixCls:t}=e;iR=t},CR._InternalPanelDoNotUseOrYouWillBeFired=gR;const _R=CR;var kR=function(e,t){return kR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},kR(e,t)};function MR(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}kR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var IR=function(){return IR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},IR.apply(this,arguments)};Object.create;Object.create;var ER=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},OR=new function(){this.browser=new ER,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window};"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(OR.wxa=!0,OR.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?OR.worker=!0:!OR.hasGlobalWindow||"Deno"in window?(OR.node=!0,OR.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);o&&(n.ie=!0,n.version=o[1]);i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,OR);const $R=OR;var TR="sans-serif",PR="12px "+TR;var DR=function(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),o=(e.charCodeAt(n)-20)/100;t[r]=o}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),NR={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var o=NR.createCanvas();e=o&&o.getContext("2d")}if(e)return t!==r&&(t=e.font=r||PR),e.measureText(n);n=n||"";var i=/((?:\d+)?\.?\d*)px/.exec(r=r||PR),a=i&&+i[1]||12,l=0;if(r.indexOf("mono")>=0)l=a*n.length;else for(var s=0;s<n.length;s++){var c=DR[n[s]];l+=null==c?a:c*a}return{width:l}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function AR(e){for(var t in NR)e[t]&&(NR[t]=e[t])}var RR=sj(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),jR=sj(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),LR=Object.prototype.toString,zR=Array.prototype,BR=zR.forEach,HR=zR.filter,FR=zR.slice,VR=zR.map,WR=function(){}.constructor,GR=WR?WR.prototype:null,UR="__proto__",YR=2311;function qR(){return YR++}function XR(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function KR(e){if(null==e||"object"!==typeof e)return e;var t=e,n=LR.call(e);if("[object Array]"===n){if(!Rj(e)){t=[];for(var r=0,o=e.length;r<o;r++)t[r]=KR(e[r])}}else if(jR[n]){if(!Rj(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(r=0,o=e.length;r<o;r++)t[r]=e[r]}}}else if(!RR[n]&&!Rj(e)&&!Sj(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==UR&&(t[a]=KR(e[a]));return t}function ZR(e,t,n){if(!bj(t)||!bj(e))return n?KR(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==UR){var o=e[r],i=t[r];!bj(i)||!bj(o)||hj(i)||hj(o)||Sj(i)||Sj(o)||xj(i)||xj(o)||Rj(i)||Rj(o)?!n&&r in e||(e[r]=KR(t[r])):ZR(o,i,n)}return e}function QR(e,t){for(var n=e[0],r=1,o=e.length;r<o;r++)n=ZR(n,e[r],t);return n}function JR(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==UR&&(e[n]=t[n]);return e}function ej(e,t,n){for(var r=dj(t),o=0,i=r.length;o<i;o++){var a=r[o];(n?null!=t[a]:null==e[a])&&(e[a]=t[a])}return e}var tj=NR.createCanvas;function nj(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function rj(e,t){var n=e.prototype;function r(){}for(var o in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(o)&&(e.prototype[o]=n[o]);e.prototype.constructor=e,e.superClass=t}function oj(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++){var i=r[o];"constructor"!==i&&(n?null!=t[i]:null==e[i])&&(e[i]=t[i])}else ej(e,t,n)}function ij(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function aj(e,t,n){if(e&&t)if(e.forEach&&e.forEach===BR)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function lj(e,t,n){if(!e)return[];if(!t)return $j(e);if(e.map&&e.map===VR)return e.map(t,n);for(var r=[],o=0,i=e.length;o<i;o++)r.push(t.call(n,e[o],o,e));return r}function sj(e,t,n,r){if(e&&t){for(var o=0,i=e.length;o<i;o++)n=t.call(r,n,e[o],o,e);return n}}function cj(e,t,n){if(!e)return[];if(!t)return $j(e);if(e.filter&&e.filter===HR)return e.filter(t,n);for(var r=[],o=0,i=e.length;o<i;o++)t.call(n,e[o],o,e)&&r.push(e[o]);return r}function uj(e,t,n){if(e&&t)for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return e[r]}function dj(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var pj=GR&&gj(GR.bind)?GR.call.bind(GR.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(FR.call(arguments)))}};function fj(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(FR.call(arguments)))}}function hj(e){return Array.isArray?Array.isArray(e):"[object Array]"===LR.call(e)}function gj(e){return"function"===typeof e}function mj(e){return"string"===typeof e}function vj(e){return"[object String]"===LR.call(e)}function yj(e){return"number"===typeof e}function bj(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function xj(e){return!!RR[LR.call(e)]}function wj(e){return!!jR[LR.call(e)]}function Sj(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function Cj(e){return null!=e.colorStops}function _j(e){return null!=e.image}function kj(e){return"[object RegExp]"===LR.call(e)}function Mj(e){return e!==e}function Ij(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function Ej(e,t){return null!=e?e:t}function Oj(e,t,n){return null!=e?e:null!=t?t:n}function $j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return FR.apply(e,t)}function Tj(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Pj(e,t){if(!e)throw new Error(t)}function Dj(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Nj="__ec_primitive__";function Aj(e){e[Nj]=!0}function Rj(e){return e[Nj]}var jj=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return dj(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Lj="function"===typeof Map;var zj=function(){function e(t){var n=hj(t);this.data=Lj?new Map:new jj;var r=this;function o(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(o):t&&aj(t,o)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Lj?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function Bj(e){return new zj(e)}function Hj(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var o=e.length;for(r=0;r<t.length;r++)n[r+o]=t[r];return n}function Fj(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&JR(n,t),n}function Vj(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Wj(e,t){return e.hasOwnProperty(t)}function Gj(){}var Uj=180/Math.PI;function Yj(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function qj(e,t){return e[0]=t[0],e[1]=t[1],e}function Xj(e){return[e[0],e[1]]}function Kj(e,t,n){return e[0]=t,e[1]=n,e}function Zj(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Qj(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Jj(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function eL(e){return Math.sqrt(nL(e))}var tL=eL;function nL(e){return e[0]*e[0]+e[1]*e[1]}var rL=nL;function oL(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function iL(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function aL(e,t){return e[0]*t[0]+e[1]*t[1]}function lL(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function sL(e,t){var n=eL(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function cL(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var uL=cL;function dL(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var pL=dL;function fL(e,t){return e[0]=-t[0],e[1]=-t[1],e}function hL(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function gL(e,t,n){var r=t[0],o=t[1];return e[0]=n[0]*r+n[2]*o+n[4],e[1]=n[1]*r+n[3]*o+n[5],e}function mL(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function vL(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var yL=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},bL=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new yL(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,o=n-this._x,i=r-this._y;this._x=n,this._y=r,t.drift(o,i,e),this.handler.dispatchToElement(new yL(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,l=this._dropTarget;this._dropTarget=a,t!==a&&(l&&a!==l&&this.handler.dispatchToElement(new yL(l,e),"dragleave",e.event),a&&a!==l&&this.handler.dispatchToElement(new yL(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new yL(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new yL(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}();const xL=bL;var wL=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var i=this._$eventProcessor;null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),o[e]||(o[e]=[]);for(var a=0;a<o[e].length;a++)if(o[e][a].h===n)return this;var l={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},s=o[e].length-1,c=o[e][s];return c&&c.callAtLast?o[e].splice(s,0,l):o[e].push(l),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],o=0,i=n[e].length;o<i;o++)n[e][o].h!==t&&r.push(n[e][o]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],o=this._$eventProcessor;if(r)for(var i=t.length,a=r.length,l=0;l<a;l++){var s=r[l];if(!o||!o.filter||null==s.query||o.filter(e,s.query))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],o=this._$eventProcessor;if(r)for(var i=t.length,a=t[i-1],l=r.length,s=0;s<l;s++){var c=r[s];if(!o||!o.filter||null==c.query||o.filter(e,c.query))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return o&&o.afterTrigger&&o.afterTrigger(e),this},e}();const SL=wL;var CL=Math.log(2);function _L(e,t,n,r,o,i){var a=r+"-"+o,l=e.length;if(i.hasOwnProperty(a))return i[a];if(1===t){var s=Math.round(Math.log((1<<l)-1&~o)/CL);return e[n][s]}for(var c=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,p=0,f=0;p<l;p++){var h=1<<p;h&o||(d+=(f%2?-1:1)*e[n][p]*_L(e,t-1,u,c,o|h,i),f++)}return i[a]=d,d}function kL(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},o=_L(n,8,0,0,0,r);if(0!==o){for(var i=[],a=0;a<8;a++)for(var l=0;l<8;l++)null==i[l]&&(i[l]=0),i[l]+=((a+l)%2?-1:1)*_L(n,7,0===a?1:0,1<<a,1<<l,r)/o*t[a];return function(e,t,n){var r=t*i[6]+n*i[7]+1;e[0]=(t*i[0]+n*i[1]+i[2])/r,e[1]=(t*i[3]+n*i[4]+i[5])/r}}}var ML="___zrEVENTSAVED",IL=[];function EL(e,t,n,r,o){if(t.getBoundingClientRect&&$R.domSupported&&!OL(t)){var i=t[ML]||(t[ML]={}),a=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],o=["top","bottom"],i=0;i<4;i++){var a=document.createElement("div"),l=i%2,s=(i>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",o[s]+":0",r[1-l]+":auto",o[1-s]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,i),l=function(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],i=t.srcCoords,a=[],l=[],s=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,p=u.left,f=u.top;a.push(p,f),s=s&&i&&p===i[d]&&f===i[d+1],l.push(e[c].offsetLeft,e[c].offsetTop)}return s&&o?o:(t.srcCoords=a,t[r]=n?kL(l,a):kL(a,l))}(a,i,o);if(l)return l(e,n,r),!0}return!1}function OL(e){return"CANVAS"===e.nodeName.toUpperCase()}var $L=/([&<>"'])/g,TL={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function PL(e){return null==e?"":(e+"").replace($L,function(e,t){return TL[t]})}var DL=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,NL=[],AL=$R.browser.firefox&&+$R.browser.version.split(".")[0]<39;function RL(e,t,n,r){return n=n||{},r?jL(e,t,n):AL&&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):jL(e,t,n),n}function jL(e,t,n){if($R.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(OL(e)){var i=e.getBoundingClientRect();return n.zrX=r-i.left,void(n.zrY=o-i.top)}if(EL(NL,e,r,o))return n.zrX=NL[0],void(n.zrY=NL[1])}n.zrX=n.zrY=0}function LL(e){return e||window.event}function zL(e,t,n){if(null!=(t=LL(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var o="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];o&&RL(e,o,t,n)}else{RL(e,t,t,n);var i=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&DL.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function BL(e,t,n,r){e.addEventListener(t,n,r)}function HL(e,t,n,r){e.removeEventListener(t,n,r)}var FL=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function VL(e){return 2===e.which||3===e.which}var WL=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 o={points:[],touches:[],target:t,event:e},i=0,a=r.length;i<a;i++){var l=r[i],s=RL(n,l,{});o.points.push([s.zrX,s.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(e){for(var t in UL)if(UL.hasOwnProperty(t)){var n=UL[t](this._track,e);if(n)return n}},e}();function GL(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var UL={pinch:function(e,t){var n=e.length;if(n){var r,o=(e[n-1]||{}).points,i=(e[n-2]||{}).points||o;if(i&&i.length>1&&o&&o.length>1){var a=GL(o)/GL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var l=[((r=o)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}};function YL(){return[1,0,0,1,0,0]}function qL(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function XL(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 KL(e,t,n){var r=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],s=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=s,e}function ZL(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 QL(e,t,n,r){void 0===r&&(r=[0,0]);var o=t[0],i=t[2],a=t[4],l=t[1],s=t[3],c=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=o*d+l*u,e[1]=-o*u+l*d,e[2]=i*d+s*u,e[3]=-i*u+d*s,e[4]=d*(a-r[0])+u*(c-r[1])+r[0],e[5]=d*(c-r[1])-u*(a-r[0])+r[1],e}function JL(e,t,n){var r=n[0],o=n[1];return e[0]=t[0]*r,e[1]=t[1]*o,e[2]=t[2]*r,e[3]=t[3]*o,e[4]=t[4]*r,e[5]=t[5]*o,e}function ez(e,t){var n=t[0],r=t[2],o=t[4],i=t[1],a=t[3],l=t[5],s=n*a-i*r;return s?(s=1/s,e[0]=a*s,e[1]=-i*s,e[2]=-r*s,e[3]=n*s,e[4]=(r*l-a*o)*s,e[5]=(i*o-n*l)*s,e):null}function tz(e){var t=[1,0,0,1,0,0];return XL(t,e),t}var nz=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 o=1-r;e.x=o*t.x+r*n.x,e.y=o*t.y+r*n.y},e}();const rz=nz;var oz=Math.min,iz=Math.max,az=new rz,lz=new rz,sz=new rz,cz=new rz,uz=new rz,dz=new rz,pz=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=oz(e.x,this.x),n=oz(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=iz(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=iz(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,o=[1,0,0,1,0,0];return ZL(o,o,[-t.x,-t.y]),JL(o,o,[n,r]),ZL(o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,i=r.x+r.width,a=r.y,l=r.y+r.height,s=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,p=!(i<s||c<o||l<u||d<a);if(n){var f=1/0,h=0,g=Math.abs(i-s),m=Math.abs(c-o),v=Math.abs(l-u),y=Math.abs(d-a),b=Math.min(g,m),x=Math.min(v,y);i<s||c<o?b>h&&(h=b,g<m?rz.set(dz,-g,0):rz.set(dz,m,0)):b<f&&(f=b,g<m?rz.set(uz,g,0):rz.set(uz,-m,0)),l<u||d<a?x>h&&(h=x,v<y?rz.set(dz,0,-v):rz.set(dz,0,y)):b<f&&(f=b,v<y?rz.set(uz,0,v):rz.set(uz,0,-y))}return n&&rz.copy(n,p?uz:dz),p},e.prototype.contain=function(e,t){var n=this;return e>=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 o=r[0],i=r[3],a=r[4],l=r[5];return t.x=n.x*o+a,t.y=n.y*i+l,t.width=n.width*o,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}az.x=sz.x=n.x,az.y=cz.y=n.y,lz.x=cz.x=n.x+n.width,lz.y=sz.y=n.y+n.height,az.transform(r),cz.transform(r),lz.transform(r),sz.transform(r),t.x=oz(az.x,lz.x,sz.x,cz.x),t.y=oz(az.y,lz.y,sz.y,cz.y);var s=iz(az.x,lz.x,sz.x,cz.x),c=iz(az.y,lz.y,sz.y,cz.y);t.width=s-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}();const fz=pz;var hz="silent";function gz(){FL(this.event)}var mz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return MR(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(SL),vz=function(e,t){this.x=e,this.y=t},yz=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bz=new fz(0,0,0,0),xz=function(e){function t(t,n,r,o,i){var a=e.call(this)||this;return a._hovered=new vz(0,0),a.storage=t,a.painter=n,a.painterRoot=o,a._pointerSize=i,r=r||new mz,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new xL(a),a}return MR(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(aj(yz,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=Cz(this,t,n),o=this._hovered,i=o.target;i&&!i.__zr&&(i=(o=this.findHover(o.x,o.y)).target);var a=this._hovered=r?new vz(t,n):this.findHover(t,n),l=a.target,s=this.proxy;s.setCursor&&s.setCursor(l?l.cursor:"default"),i&&l!==i&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(a,"mousemove",e),l&&l!==i&&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 vz(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){var r=(e=e||{}).target;if(!r||!r.silent){for(var o="on"+t,i=function(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:gz}}(t,e,n);r&&(r[o]&&(i.cancelBubble=!!r[o].call(r,i)),r.trigger(t,i),r=r.__hostTarget?r.__hostTarget:r.parent,!i.cancelBubble););i.cancelBubble||(this.trigger(t,i),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"===typeof e[o]&&e[o].call(e,i),e.trigger&&e.trigger(t,i)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),o=new vz(e,t);if(Sz(r,o,e,t,n),this._pointerSize&&!o.target){for(var i=[],a=this._pointerSize,l=a/2,s=new fz(e-l,t-l,a,a),c=r.length-1;c>=0;c--){var u=r[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(bz.copy(u.getBoundingRect()),u.transform&&bz.applyTransform(u.transform),bz.intersect(s)&&i.push(u))}if(i.length)for(var d=Math.PI/12,p=2*Math.PI,f=0;f<l;f+=4)for(var h=0;h<p;h+=d){if(Sz(i,o,e+f*Math.cos(h),t+f*Math.sin(h),n),o.target)return o}}return o},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new WL);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var o=r.type;e.gestureEvent=o;var i=new vz;i.target=r.target,this.dispatchToElement(i,o,r.event)}},t}(SL);function wz(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,o=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(o=!0);var l=r.__hostTarget;r=l||r.parent}return!o||hz}return!1}function Sz(e,t,n,r,o){for(var i=e.length-1;i>=0;i--){var a=e[i],l=void 0;if(a!==o&&!a.ignore&&(l=wz(a,n,r))&&(!t.topTarget&&(t.topTarget=a),l!==hz)){t.target=a;break}}}function Cz(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}aj(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){xz.prototype[e]=function(t){var n,r,o=t.zrX,i=t.zrY,a=Cz(this,o,i);if("mouseup"===e&&a||(r=(n=this.findHover(o,i)).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||uL(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});const _z=xz;function kz(e,t,n,r){var o=t+1;if(o===n)return 1;if(r(e[o++],e[t])<0){for(;o<n&&r(e[o],e[o-1])<0;)o++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,o)}else for(;o<n&&r(e[o],e[o-1])>=0;)o++;return o-t}function Mz(e,t,n,r,o){for(r===t&&r++;r<n;r++){for(var i,a=e[r],l=t,s=r;l<s;)o(a,e[i=l+s>>>1])<0?s=i:l=i+1;var c=r-l;switch(c){case 3:e[l+3]=e[l+2];case 2:e[l+2]=e[l+1];case 1:e[l+1]=e[l];break;default:for(;c>0;)e[l+c]=e[l+c-1],c--}e[l]=a}}function Iz(e,t,n,r,o,i){var a=0,l=0,s=1;if(i(e,t[n+o])>0){for(l=r-o;s<l&&i(e,t[n+o+s])>0;)a=s,(s=1+(s<<1))<=0&&(s=l);s>l&&(s=l),a+=o,s+=o}else{for(l=o+1;s<l&&i(e,t[n+o-s])<=0;)a=s,(s=1+(s<<1))<=0&&(s=l);s>l&&(s=l);var c=a;a=o-s,s=o-c}for(a++;a<s;){var u=a+(s-a>>>1);i(e,t[n+u])>0?a=u+1:s=u}return s}function Ez(e,t,n,r,o,i){var a=0,l=0,s=1;if(i(e,t[n+o])<0){for(l=o+1;s<l&&i(e,t[n+o-s])<0;)a=s,(s=1+(s<<1))<=0&&(s=l);s>l&&(s=l);var c=a;a=o-s,s=o-c}else{for(l=r-o;s<l&&i(e,t[n+o+s])>=0;)a=s,(s=1+(s<<1))<=0&&(s=l);s>l&&(s=l),a+=o,s+=o}for(a++;a<s;){var u=a+(s-a>>>1);i(e,t[n+u])<0?s=u:a=u+1}return s}function Oz(e,t){var n,r,o=7,i=0,a=[];function l(l){var s=n[l],c=r[l],u=n[l+1],d=r[l+1];r[l]=c+d,l===i-3&&(n[l+1]=n[l+2],r[l+1]=r[l+2]),i--;var p=Ez(e[u],e,s,c,0,t);s+=p,0!==(c-=p)&&0!==(d=Iz(e[s+c-1],e,u,d,d-1,t))&&(c<=d?function(n,r,i,l){var s=0;for(s=0;s<r;s++)a[s]=e[n+s];var c=0,u=i,d=n;if(e[d++]=e[u++],0===--l){for(s=0;s<r;s++)e[d+s]=a[c+s];return}if(1===r){for(s=0;s<l;s++)e[d+s]=e[u+s];return void(e[d+l]=a[c])}var p,f,h,g=o;for(;;){p=0,f=0,h=!1;do{if(t(e[u],a[c])<0){if(e[d++]=e[u++],f++,p=0,0===--l){h=!0;break}}else if(e[d++]=a[c++],p++,f=0,1===--r){h=!0;break}}while((p|f)<g);if(h)break;do{if(0!==(p=Ez(e[u],a,c,r,0,t))){for(s=0;s<p;s++)e[d+s]=a[c+s];if(d+=p,c+=p,(r-=p)<=1){h=!0;break}}if(e[d++]=e[u++],0===--l){h=!0;break}if(0!==(f=Iz(a[c],e,u,l,0,t))){for(s=0;s<f;s++)e[d+s]=e[u+s];if(d+=f,u+=f,0===(l-=f)){h=!0;break}}if(e[d++]=a[c++],1===--r){h=!0;break}g--}while(p>=7||f>=7);if(h)break;g<0&&(g=0),g+=2}if((o=g)<1&&(o=1),1===r){for(s=0;s<l;s++)e[d+s]=e[u+s];e[d+l]=a[c]}else{if(0===r)throw new Error;for(s=0;s<r;s++)e[d+s]=a[c+s]}}(s,c,u,d):function(n,r,i,l){var s=0;for(s=0;s<l;s++)a[s]=e[i+s];var c=n+r-1,u=l-1,d=i+l-1,p=0,f=0;if(e[d--]=e[c--],0===--r){for(p=d-(l-1),s=0;s<l;s++)e[p+s]=a[s];return}if(1===l){for(f=(d-=r)+1,p=(c-=r)+1,s=r-1;s>=0;s--)e[f+s]=e[p+s];return void(e[d]=a[u])}var h=o;for(;;){var g=0,m=0,v=!1;do{if(t(a[u],e[c])<0){if(e[d--]=e[c--],g++,m=0,0===--r){v=!0;break}}else if(e[d--]=a[u--],m++,g=0,1===--l){v=!0;break}}while((g|m)<h);if(v)break;do{if(0!==(g=r-Ez(a[u],e,n,r,r-1,t))){for(r-=g,f=(d-=g)+1,p=(c-=g)+1,s=g-1;s>=0;s--)e[f+s]=e[p+s];if(0===r){v=!0;break}}if(e[d--]=a[u--],1===--l){v=!0;break}if(0!==(m=l-Iz(e[c],a,0,l,l-1,t))){for(l-=m,f=(d-=m)+1,p=(u-=m)+1,s=0;s<m;s++)e[f+s]=a[p+s];if(l<=1){v=!0;break}}if(e[d--]=e[c--],0===--r){v=!0;break}h--}while(g>=7||m>=7);if(v)break;h<0&&(h=0),h+=2}(o=h)<1&&(o=1);if(1===l){for(f=(d-=r)+1,p=(c-=r)+1,s=r-1;s>=0;s--)e[f+s]=e[p+s];e[d]=a[u]}else{if(0===l)throw new Error;for(p=d-(l-1),s=0;s<l;s++)e[p+s]=a[s]}}(s,c,u,d))}return n=[],r=[],{mergeRuns:function(){for(;i>1;){var e=i-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]&&e--;else if(r[e]>r[e+1])break;l(e)}},forceMergeRuns:function(){for(;i>1;){var e=i-2;e>0&&r[e-1]<r[e+1]&&e--,l(e)}},pushRun:function(e,t){n[i]=e,r[i]=t,i+=1}}}function $z(e,t,n,r){n||(n=0),r||(r=e.length);var o=r-n;if(!(o<2)){var i=0;if(o<32)Mz(e,n,r,n+(i=kz(e,n,r,t)),t);else{var a=Oz(e,t),l=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(o);do{if((i=kz(e,n,r,t))<l){var s=o;s>l&&(s=l),Mz(e,n,n+s,n+i,t),i=s}a.pushRun(n,i),a.mergeRuns(),o-=i,n+=i}while(0!==o);a.forceMergeRuns()}}}var Tz=1,Pz=4,Dz=!1;function Nz(){Dz||(Dz=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Az(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Rz=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Az}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,o=t.length;r<o;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,$z(n,Az)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var o=r,i=e;o;)o.parent=i,o.updateTransform(),t.push(o),i=o,o=o.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),l=0;l<a.length;l++){var s=a[l];e.__dirty&&(s.__dirty|=Tz),this._updateAndAddDisplayable(s,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Nz(),c.z=0),isNaN(c.z2)&&(Nz(),c.z2=0),isNaN(c.zlevel)&&(Nz(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,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<n;t++)this.delRoot(e[t]);else{var r=nj(this._roots,e);r>=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}();const jz=Rz;const Lz=$R.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var zz={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;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):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-zz.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*zz.bounceIn(2*e):.5*zz.bounceOut(2*e-1)+.5}};const Bz=zz;var Hz=Math.pow,Fz=Math.sqrt,Vz=1e-8,Wz=1e-4,Gz=Fz(3),Uz=1/3,Yz=Yj(),qz=Yj(),Xz=Yj();function Kz(e){return e>-1e-8&&e<Vz}function Zz(e){return e>Vz||e<-1e-8}function Qz(e,t,n,r,o){var i=1-o;return i*i*(i*e+3*o*t)+o*o*(o*r+3*i*n)}function Jz(e,t,n,r,o){var i=1-o;return 3*(((t-e)*i+2*(n-t)*o)*i+(r-n)*o*o)}function eB(e,t,n,r,o,i){var a=r+3*(t-n)-e,l=3*(n-2*t+e),s=3*(t-e),c=e-o,u=l*l-3*a*s,d=l*s-9*a*c,p=s*s-3*l*c,f=0;if(Kz(u)&&Kz(d)){if(Kz(l))i[0]=0;else(_=-s/l)>=0&&_<=1&&(i[f++]=_)}else{var h=d*d-4*u*p;if(Kz(h)){var g=d/u,m=-g/2;(_=-l/a+g)>=0&&_<=1&&(i[f++]=_),m>=0&&m<=1&&(i[f++]=m)}else if(h>0){var v=Fz(h),y=u*l+1.5*a*(-d+v),b=u*l+1.5*a*(-d-v);(_=(-l-((y=y<0?-Hz(-y,Uz):Hz(y,Uz))+(b=b<0?-Hz(-b,Uz):Hz(b,Uz))))/(3*a))>=0&&_<=1&&(i[f++]=_)}else{var x=(2*u*l-3*a*d)/(2*Fz(u*u*u)),w=Math.acos(x)/3,S=Fz(u),C=Math.cos(w),_=(-l-2*S*C)/(3*a),k=(m=(-l+S*(C+Gz*Math.sin(w)))/(3*a),(-l+S*(C-Gz*Math.sin(w)))/(3*a));_>=0&&_<=1&&(i[f++]=_),m>=0&&m<=1&&(i[f++]=m),k>=0&&k<=1&&(i[f++]=k)}}return f}function tB(e,t,n,r,o){var i=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,l=3*t-3*e,s=0;if(Kz(a)){if(Zz(i))(u=-l/i)>=0&&u<=1&&(o[s++]=u)}else{var c=i*i-4*a*l;if(Kz(c))o[0]=-i/(2*a);else if(c>0){var u,d=Fz(c),p=(-i-d)/(2*a);(u=(-i+d)/(2*a))>=0&&u<=1&&(o[s++]=u),p>=0&&p<=1&&(o[s++]=p)}}return s}function nB(e,t,n,r,o,i){var a=(t-e)*o+e,l=(n-t)*o+t,s=(r-n)*o+n,c=(l-a)*o+a,u=(s-l)*o+l,d=(u-c)*o+c;i[0]=e,i[1]=a,i[2]=c,i[3]=d,i[4]=d,i[5]=u,i[6]=s,i[7]=r}function rB(e,t,n,r,o,i,a,l,s,c,u){var d,p,f,h,g,m=.005,v=1/0;Yz[0]=s,Yz[1]=c;for(var y=0;y<1;y+=.05)qz[0]=Qz(e,n,o,a,y),qz[1]=Qz(t,r,i,l,y),(h=pL(Yz,qz))<v&&(d=y,v=h);v=1/0;for(var b=0;b<32&&!(m<Wz);b++)p=d-m,f=d+m,qz[0]=Qz(e,n,o,a,p),qz[1]=Qz(t,r,i,l,p),h=pL(qz,Yz),p>=0&&h<v?(d=p,v=h):(Xz[0]=Qz(e,n,o,a,f),Xz[1]=Qz(t,r,i,l,f),g=pL(Xz,Yz),f<=1&&g<v?(d=f,v=g):m*=.5);return u&&(u[0]=Qz(e,n,o,a,d),u[1]=Qz(t,r,i,l,d)),Fz(v)}function oB(e,t,n,r,o,i,a,l,s){for(var c=e,u=t,d=0,p=1/s,f=1;f<=s;f++){var h=f*p,g=Qz(e,n,o,a,h),m=Qz(t,r,i,l,h),v=g-c,y=m-u;d+=Math.sqrt(v*v+y*y),c=g,u=m}return d}function iB(e,t,n,r){var o=1-r;return o*(o*e+2*r*t)+r*r*n}function aB(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function lB(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function sB(e,t,n,r,o){var i=(t-e)*r+e,a=(n-t)*r+t,l=(a-i)*r+i;o[0]=e,o[1]=i,o[2]=l,o[3]=l,o[4]=a,o[5]=n}function cB(e,t,n,r,o,i,a,l,s){var c,u=.005,d=1/0;Yz[0]=a,Yz[1]=l;for(var p=0;p<1;p+=.05){qz[0]=iB(e,n,o,p),qz[1]=iB(t,r,i,p),(m=pL(Yz,qz))<d&&(c=p,d=m)}d=1/0;for(var f=0;f<32&&!(u<Wz);f++){var h=c-u,g=c+u;qz[0]=iB(e,n,o,h),qz[1]=iB(t,r,i,h);var m=pL(qz,Yz);if(h>=0&&m<d)c=h,d=m;else{Xz[0]=iB(e,n,o,g),Xz[1]=iB(t,r,i,g);var v=pL(Xz,Yz);g<=1&&v<d?(c=g,d=v):u*=.5}}return s&&(s[0]=iB(e,n,o,c),s[1]=iB(t,r,i,c)),Fz(d)}function uB(e,t,n,r,o,i,a){for(var l=e,s=t,c=0,u=1/a,d=1;d<=a;d++){var p=d*u,f=iB(e,n,o,p),h=iB(t,r,i,p),g=f-l,m=h-s;c+=Math.sqrt(g*g+m*m),l=f,s=h}return c}var dB=/cubic-bezier\(([0-9,\.e ]+)\)/;function pB(e){var t=e&&dB.exec(e);if(t){var n=t[1].split(","),r=+Dj(n[0]),o=+Dj(n[1]),i=+Dj(n[2]),a=+Dj(n[3]);if(isNaN(r+o+i+a))return;var l=[];return function(e){return e<=0?0:e>=1?1:eB(0,r,i,1,e,l)&&Qz(0,o,a,1,l[0])}}}const fB=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||Gj,this.ondestroy=e.ondestroy||Gj,this.onrestart=e.onrestart||Gj,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,o=r/n;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,a=i?i(o):o;if(this.onframe(a),1===o){if(!this.loop)return!0;var l=r%n;this._startTime=e-l,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=gj(e)?e:Bz[e]||pB(e)},e}();var hB=function(e){this.value=e},gB=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new hB(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){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=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mB=function(){function e(e){this._list=new gB,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,o=null;if(null==r[e]){var i=n.len(),a=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}a?a.value=t:a=new hB(t),a.key=e,n.insertEntry(a),r[e]=a}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const vB=mB;var yB={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function bB(e){return(e=Math.round(e))<0?0:e>255?255:e}function xB(e){return e<0?0:e>1?1:e}function wB(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?bB(parseFloat(t)/100*255):bB(parseInt(t,10))}function SB(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?xB(parseFloat(t)/100):xB(parseFloat(t))}function CB(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function _B(e,t,n){return e+(t-e)*n}function kB(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function MB(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var IB=new vB(20),EB=null;function OB(e,t){EB&&MB(EB,t),EB=IB.put(e,EB||t.slice())}function $B(e,t){if(e){t=t||[];var n=IB.get(e);if(n)return MB(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in yB)return MB(t,yB[r]),OB(e,t),t;var o,i=r.length;if("#"===r.charAt(0))return 4===i||5===i?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(kB(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(r.slice(4),16)/15:1),OB(e,t),t):void kB(t,0,0,0,1):7===i||9===i?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(kB(t,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(r.slice(7),16)/255:1),OB(e,t),t):void kB(t,0,0,0,1):void 0;var a=r.indexOf("("),l=r.indexOf(")");if(-1!==a&&l+1===i){var s=r.substr(0,a),c=r.substr(a+1,l-(a+1)).split(","),u=1;switch(s){case"rgba":if(4!==c.length)return 3===c.length?kB(t,+c[0],+c[1],+c[2],1):kB(t,0,0,0,1);u=SB(c.pop());case"rgb":return c.length>=3?(kB(t,wB(c[0]),wB(c[1]),wB(c[2]),3===c.length?u:SB(c[3])),OB(e,t),t):void kB(t,0,0,0,1);case"hsla":return 4!==c.length?void kB(t,0,0,0,1):(c[3]=SB(c[3]),TB(c,t),OB(e,t),t);case"hsl":return 3!==c.length?void kB(t,0,0,0,1):(TB(c,t),OB(e,t),t);default:return}}kB(t,0,0,0,1)}}function TB(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=SB(e[1]),o=SB(e[2]),i=o<=.5?o*(r+1):o+r-o*r,a=2*o-i;return kB(t=t||[],bB(255*CB(a,i,n+1/3)),bB(255*CB(a,i,n)),bB(255*CB(a,i,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function PB(e,t){var n=$B(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return BB(n,4===n.length?"rgba":"rgb")}}function DB(e){var t=$B(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function NB(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),o=Math.floor(r),i=Math.ceil(r),a=t[o],l=t[i],s=r-o;return n[0]=bB(_B(a[0],l[0],s)),n[1]=bB(_B(a[1],l[1],s)),n[2]=bB(_B(a[2],l[2],s)),n[3]=xB(_B(a[3],l[3],s)),n}}var AB=NB;function RB(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),o=Math.floor(r),i=Math.ceil(r),a=$B(t[o]),l=$B(t[i]),s=r-o,c=BB([bB(_B(a[0],l[0],s)),bB(_B(a[1],l[1],s)),bB(_B(a[2],l[2],s)),xB(_B(a[3],l[3],s))],"rgba");return n?{color:c,leftIndex:o,rightIndex:i,value:r}:c}}var jB=RB;function LB(e,t,n,r){var o=$B(e);if(e)return o=function(e){if(e){var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=Math.min(r,o,i),l=Math.max(r,o,i),s=l-a,c=(l+a)/2;if(0===s)t=0,n=0;else{n=c<.5?s/(l+a):s/(2-l-a);var u=((l-r)/6+s/2)/s,d=((l-o)/6+s/2)/s,p=((l-i)/6+s/2)/s;r===l?t=p-d:o===l?t=1/3+u-p:i===l&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,c];return null!=e[3]&&f.push(e[3]),f}}(o),null!=t&&(o[0]=function(e){return(e=Math.round(e))<0?0:e>360?360:e}(t)),null!=n&&(o[1]=SB(n)),null!=r&&(o[2]=SB(r)),BB(TB(o),"rgba")}function zB(e,t){var n=$B(e);if(n&&null!=t)return n[3]=xB(t),BB(n,"rgba")}function BB(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function HB(e,t){var n=$B(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function FB(){return BB([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var VB=new vB(100);function WB(e){if(mj(e)){var t=VB.get(e);return t||(t=PB(e,-.1),VB.put(e,t)),t}if(Cj(e)){var n=JR({},e);return n.colorStops=lj(e.colorStops,function(e){return{offset:e.offset,color:PB(e.color,-.1)}}),n}return e}var GB=Math.round;function UB(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=$B(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var YB=1e-4;function qB(e){return e<YB&&e>-1e-4}function XB(e){return GB(1e3*e)/1e3}function KB(e){return GB(1e4*e)/1e4}var ZB={left:"start",right:"end",center:"middle",middle:"middle"};function QB(e){return e&&!!e.image}function JB(e){return QB(e)||function(e){return e&&!!e.svgElement}(e)}function eH(e){return"linear"===e.type}function tH(e){return"radial"===e.type}function nH(e){return e&&("linear"===e.type||"radial"===e.type)}function rH(e){return"url(#"+e+")"}function oH(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function iH(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Uj,o=Ej(e.scaleX,1),i=Ej(e.scaleY,1),a=e.skewX||0,l=e.skewY||0,s=[];return(t||n)&&s.push("translate("+t+"px,"+n+"px)"),r&&s.push("rotate("+r+")"),1===o&&1===i||s.push("scale("+o+","+i+")"),(a||l)&&s.push("skew("+GB(a*Uj)+"deg, "+GB(l*Uj)+"deg)"),s.join(" ")}var aH=$R.hasGlobalWindow&&gj(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof Buffer?function(e){return Buffer.from(e).toString("base64")}:function(e){return null},lH=Array.prototype.slice;function sH(e,t,n){return(t-e)*n+e}function cH(e,t,n,r){for(var o=t.length,i=0;i<o;i++)e[i]=sH(t[i],n[i],r);return e}function uH(e,t,n,r){for(var o=t.length,i=0;i<o;i++)e[i]=t[i]+n[i]*r;return e}function dH(e,t,n,r){for(var o=t.length,i=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var l=0;l<i;l++)e[a][l]=t[a][l]+n[a][l]*r}return e}function pH(e,t){for(var n=e.length,r=t.length,o=n>r?t:e,i=Math.min(n,r),a=o[i-1]||{color:[0,0,0,0],offset:0},l=i;l<Math.max(n,r);l++)o.push({offset:a.offset,color:a.color.slice()})}function fH(e,t,n){var r=e,o=t;if(r.push&&o.push){var i=r.length,a=o.length;if(i!==a)if(i>a)r.length=a;else for(var l=i;l<a;l++)r.push(1===n?o[l]:lH.call(o[l]));var s=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=o[l]);else for(var c=0;c<s;c++)isNaN(r[l][c])&&(r[l][c]=o[l][c])}}function hH(e){if(ij(e)){var t=e.length;if(ij(e[0])){for(var n=[],r=0;r<t;r++)n.push(lH.call(e[r]));return n}return lH.call(e)}return e}function gH(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function mH(e){return 4===e||5===e}function vH(e){return 1===e||2===e}var yH=[0,0,0,0],bH=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,o=r.length,i=!1,a=6,l=t;if(ij(t)){var s=function(e){return ij(e&&e[0])?2:1}(t);a=s,(1===s&&!yj(t[0])||2===s&&!yj(t[0][0]))&&(i=!0)}else if(yj(t)&&!Mj(t))a=0;else if(mj(t))if(isNaN(+t)){var c=$B(t);c&&(l=c,a=3)}else a=0;else if(Cj(t)){var u=JR({},l);u.colorStops=lj(t.colorStops,function(e){return{offset:e.offset,color:$B(e.color)}}),eH(t)?a=4:tH(t)&&(a=5),l=u}0===o?this.valType=a:a===this.valType&&6!==a||(i=!0),this.discrete=this.discrete||i;var d={time:e,value:l,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=gj(n)?n:Bz[n]||pB(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,o=n.length,i=n[o-1],a=this.discrete,l=vH(r),s=mH(r),c=0;c<o;c++){var u=n[c],d=u.value,p=i.value;u.percent=u.time/e,a||(l&&c!==o-1?fH(d,p,r):s&&pH(d.colorStops,p.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var f=n[0].value;for(c=0;c<o;c++)0===r?n[c].additiveValue=n[c].value-f:3===r?n[c].additiveValue=uH([],n[c].value,f,-1):vH(r)&&(n[c].additiveValue=1===r?uH([],n[c].value,f,-1):dH([],n[c].value,f,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,o,i=null!=this._additiveTrack,a=i?"additiveValue":"value",l=this.valType,s=this.keyframes,c=s.length,u=this.propName,d=3===l,p=this._lastFr,f=Math.min;if(1===c)r=o=s[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=f(p+1,c-1);n>=0&&!(s[n].percent<=t);n--);n=f(n,c-2)}else{for(n=p;n<c&&!(s[n].percent>t);n++);n=f(n-1,c-2)}o=s[n+1],r=s[n]}if(r&&o){this._lastFr=n,this._lastFrP=t;var h=o.percent-r.percent,g=0===h?1:f((t-r.percent)/h,1);o.easingFunc&&(g=o.easingFunc(g));var m=i?this._additiveValue:d?yH:e[u];if(!vH(l)&&!d||m||(m=this._additiveValue=[]),this.discrete)e[u]=g<1?r.rawValue:o.rawValue;else if(vH(l))1===l?cH(m,r[a],o[a],g):function(e,t,n,r){for(var o=t.length,i=o&&t[0].length,a=0;a<o;a++){e[a]||(e[a]=[]);for(var l=0;l<i;l++)e[a][l]=sH(t[a][l],n[a][l],r)}}(m,r[a],o[a],g);else if(mH(l)){var v=r[a],y=o[a],b=4===l;e[u]={type:b?"linear":"radial",x:sH(v.x,y.x,g),y:sH(v.y,y.y,g),colorStops:lj(v.colorStops,function(e,t){var n=y.colorStops[t];return{offset:sH(e.offset,n.offset,g),color:gH(cH([],e.color,n.color,g))}}),global:y.global},b?(e[u].x2=sH(v.x2,y.x2,g),e[u].y2=sH(v.y2,y.y2,g)):e[u].r=sH(v.r,y.r,g)}else if(d)cH(m,r[a],o[a],g),i||(e[u]=gH(m));else{var x=sH(r[a],o[a],g);i?this._additiveValue=x:e[u]=x}i&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?($B(e[n],yH),uH(yH,yH,r,1),e[n]=gH(yH)):1===t?uH(e[n],e[n],r,1):2===t&&dH(e[n],e[n],r,1)},e}(),xH=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?XR("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,dj(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var o=this._tracks,i=0;i<n.length;i++){var a=n[i],l=o[a];if(!l){l=o[a]=new bH(a);var s=void 0,c=this._getAdditiveTrack(a);if(c){var u=c.keyframes,d=u[u.length-1];s=d&&d.value,3===c.valType&&s&&(s=gH(s))}else s=this._target[a];if(null==s)continue;e>0&&l.addKeyframe(0,hH(s),r),this._trackKeys.push(a)}l.addKeyframe(e,hH(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;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var o=n[r].getTrack(e);o&&(t=o)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var i=this._trackKeys[o],a=this._tracks[i],l=this._getAdditiveTrack(i),s=a.keyframes,c=s.length;if(a.prepare(r,l),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=s[c-1];u&&(t._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new fB({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var o=!1,i=0;i<r.length;i++)if(r[i]._clip){o=!0;break}o||(t._additiveAnimators=null)}for(i=0;i<n.length;i++)n[i].step(t._target,e);var a=t._onframeCbs;if(a)for(i=0;i<a.length;i++)a[i](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return lj(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,o=0;o<e.length;o++){var i=n[e[o]];i&&!i.isFinished()&&(t?i.step(this._target,1):1===this._started&&i.step(this._target,0),i.setFinished())}var a=!0;for(o=0;o<r.length;o++)if(!n[r[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var o=t[r],i=this._tracks[o];if(i&&!i.isFinished()){var a=i.keyframes,l=a[n?0:a.length-1];l&&(e[o]=hH(l.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||dj(e);for(var n=0;n<t.length;n++){var r=t[n],o=this._tracks[r];if(o){var i=o.keyframes;if(i.length>1){var a=i.pop();o.addKeyframe(a.time,e[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();const wH=xH;function SH(){return(new Date).getTime()}var CH=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 MR(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){for(var t=SH()-this._pausedTime,n=t-this._time,r=this._head;r;){var o=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=o):r=o}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Lz(function t(){e._running&&(Lz(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=SH(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=SH(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=SH()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;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 wH(e,t.loop);return this.addAnimator(n),n},t}(SL);const _H=CH;var kH=$R.domSupported,MH=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:["touchstart","touchend","touchmove"],pointer:lj(e,function(e){var n=e.replace("mouse","pointer");return t.hasOwnProperty(n)?n:e})}}(),IH=["mousemove","mouseup"],EH=["pointermove","pointerup"],OH=!1;function $H(e){var t=e.pointerType;return"pen"===t||"touch"===t}function TH(e){e&&(e.zrByTouch=!0)}function PH(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var DH=function(e,t){this.stopPropagation=Gj,this.stopImmediatePropagation=Gj,this.preventDefault=Gj,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},NH={mousedown:function(e){e=zL(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=zL(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=zL(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){PH(this,(e=zL(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){OH=!0,e=zL(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){OH||(e=zL(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){TH(e=zL(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),NH.mousemove.call(this,e),NH.mousedown.call(this,e)},touchmove:function(e){TH(e=zL(this.dom,e)),this.handler.processGesture(e,"change"),NH.mousemove.call(this,e)},touchend:function(e){TH(e=zL(this.dom,e)),this.handler.processGesture(e,"end"),NH.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&NH.click.call(this,e)},pointerdown:function(e){NH.mousedown.call(this,e)},pointermove:function(e){$H(e)||NH.mousemove.call(this,e)},pointerup:function(e){NH.mouseup.call(this,e)},pointerout:function(e){$H(e)||NH.mouseout.call(this,e)}};aj(["click","dblclick","contextmenu"],function(e){NH[e]=function(t){t=zL(this.dom,t),this.trigger(e,t)}});var AH={pointermove:function(e){$H(e)||AH.mousemove.call(this,e)},pointerup:function(e){AH.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function RH(e,t){var n=t.domHandlers;$R.pointerEventsSupported?aj(MH.pointer,function(r){LH(t,r,function(t){n[r].call(e,t)})}):($R.touchEventsSupported&&aj(MH.touch,function(r){LH(t,r,function(o){n[r].call(e,o),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),aj(MH.mouse,function(r){LH(t,r,function(o){o=LL(o),t.touching||n[r].call(e,o)})}))}function jH(e,t){function n(n){LH(t,n,function(r){r=LL(r),PH(e,r.target)||(r=function(e,t){return zL(e.dom,new DH(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}$R.pointerEventsSupported?aj(EH,n):$R.touchEventsSupported||aj(IH,n)}function LH(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,BL(e.domTarget,t,n,r)}function zH(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&HL(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var BH=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t};const HH=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new BH(t,NH),kH&&(r._globalHandlerScope=new BH(document,AH)),RH(r,r._localHandlerScope),r}return MR(t,e),t.prototype.dispose=function(){zH(this._localHandlerScope),kH&&zH(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,kH&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?jH(this,t):zH(t)}},t}(SL);var FH=1;$R.hasGlobalWindow&&(FH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var VH=FH,WH="#333",GH="#ccc",UH=qL,YH=5e-5;function qH(e){return e>YH||e<-5e-5}var XH=[],KH=[],ZH=[1,0,0,1,0,0],QH=Math.abs,JH=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 qH(this.rotation)||qH(this.x)||qH(this.y)||qH(this.scaleX-1)||qH(this.scaleY-1)||qH(this.skewX)||qH(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):UH(n),e&&(t?KL(n,e,n):XL(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(UH(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(XH);var n=XH[0]<0?-1:1,r=XH[1]<0?-1:1,o=((XH[0]-n)*t+n)/XH[0]||0,i=((XH[1]-r)*t+r)/XH[1]||0;e[0]*=o,e[1]*=o,e[2]*=i,e[3]*=i}this.invTransform=this.invTransform||[1,0,0,1,0,0],ez(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),o=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(o),t=Math.sqrt(t),this.skewX=o,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||[1,0,0,1,0,0],KL(KH,e.invTransform,t),t=KH);var n=this.originX,r=this.originY;(n||r)&&(ZH[4]=n,ZH[5]=r,KL(KH,t,ZH),KH[4]-=n,KH[5]-=r,t=KH),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&&gL(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&gL(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&QH(e[0]-1)>1e-10&&QH(e[3]-1)>1e-10?Math.sqrt(QH(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){tF(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,o=e.scaleX,i=e.scaleY,a=e.anchorX,l=e.anchorY,s=e.rotation||0,c=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||l){var f=n+a,h=r+l;t[4]=-f*o-d*h*i,t[5]=-h*i-p*f*o}else t[4]=t[5]=0;return t[0]=o,t[3]=i,t[1]=p*o,t[2]=d*i,s&&QL(t,t,s),t[4]+=n+c,t[5]+=r+u,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}(),eF=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tF(e,t){for(var n=0;n<eF.length;n++){var r=eF[n];e[r]=t[r]}}const nF=JH;var rF={};function oF(e,t){var n=rF[t=t||PR];n||(n=rF[t]=new vB(500));var r=n.get(e);return null==r&&(r=NR.measureText(e,t).width,n.put(e,r)),r}function iF(e,t,n,r){var o=oF(e,t),i=cF(t),a=lF(0,o,n),l=sF(0,i,r);return new fz(a,l,o,i)}function aF(e,t,n,r){var o=((e||"")+"").split("\n");if(1===o.length)return iF(o[0],t,n,r);for(var i=new fz(0,0,0,0),a=0;a<o.length;a++){var l=iF(o[a],t,n,r);0===a?i.copy(l):i.union(l)}return i}function lF(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function sF(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function cF(e){return oF("\u56fd",e)}function uF(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function dF(e,t,n){var r=t.position||"inside",o=null!=t.distance?t.distance:5,i=n.height,a=n.width,l=i/2,s=n.x,c=n.y,u="left",d="top";if(r instanceof Array)s+=uF(r[0],n.width),c+=uF(r[1],n.height),u=null,d=null;else switch(r){case"left":s-=o,c+=l,u="right",d="middle";break;case"right":s+=o+a,c+=l,d="middle";break;case"top":s+=a/2,c-=o,u="center",d="bottom";break;case"bottom":s+=a/2,c+=i+o,u="center";break;case"inside":s+=a/2,c+=l,u="center",d="middle";break;case"insideLeft":s+=o,c+=l,d="middle";break;case"insideRight":s+=a-o,c+=l,u="right",d="middle";break;case"insideTop":s+=a/2,c+=o,u="center";break;case"insideBottom":s+=a/2,c+=i-o,u="center",d="bottom";break;case"insideTopLeft":s+=o,c+=o;break;case"insideTopRight":s+=a-o,c+=o,u="right";break;case"insideBottomLeft":s+=o,c+=i-o,d="bottom";break;case"insideBottomRight":s+=a-o,c+=i-o,u="right",d="bottom"}return(e=e||{}).x=s,e.y=c,e.align=u,e.verticalAlign=d,e}var pF="__zr_normal__",fF=eF.concat(["ignore"]),hF=sj(eF,function(e,t){return e[t]=!0,e},{ignore:!1}),gF={},mF=new fz(0,0,0,0),vF=function(){function e(e){this.id=qR(),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}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,o=t.innerTransformable,i=void 0,a=void 0,l=!1;o.parent=r?this:null;var s=!1;if(o.copyTransform(t),null!=n.position){var c=mF;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gF,n,c):dF(gF,n,c),o.x=gF.x,o.y=gF.y,i=gF.align,a=gF.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var d=void 0,p=void 0;"center"===u?(d=.5*c.width,p=.5*c.height):(d=uF(u[0],c.width),p=uF(u[1],c.height)),s=!0,o.originX=-o.x+d+(r?0:c.x),o.originY=-o.y+p+(r?0:c.y)}}null!=n.rotation&&(o.rotation=n.rotation);var f=n.offset;f&&(o.x+=f[0],o.y+=f[1],s||(o.originX=-f[0],o.originY=-f[1]));var h=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;h&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&i===g.align&&a===g.verticalAlign||(l=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=i,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=Tz,l&&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()?GH:WH},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&$B(t);n||(n=[255,255,255,1]);for(var r=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*r+(o?0:255)*(1-r);return n[3]=1,BB(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||{},JR(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(bj(e))for(var n=dj(e),r=0;r<n.length;r++){var o=n[r];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==pF)){var i=r.targetName,a=i?t[i]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,fF)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];null==e[o]||o in t||(t[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},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(pF,!1,e)},e.prototype.useState=function(e,t,n,r){var o=e===pF;if(this.hasState()||!o){var i=this.currentStates,a=this.stateTransition;if(!(nj(i,e)>=0)||!t&&1!==i.length){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||o){o||this.saveCurrentToNormalState(l);var s=!!(l&&l.hoverLayer||r);s&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,u=this._textGuide;return c&&c.useState(e,t,n,s),u&&u.useState(e,t,n,s),o?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!s&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Tz),l}XR("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],o=this.currentStates,i=e.length,a=i===o.length;if(a)for(var l=0;l<i;l++)if(e[l]!==o[l]){a=!1;break}if(a)return;for(l=0;l<i;l++){var s=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(s,e)),c||(c=this.states[s]),c&&r.push(c)}var u=r[i-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var h=this._textContent,g=this._textGuide;h&&h.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Tz)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=nj(this.currentStates,e);if(t>=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(),o=nj(r,e),i=nj(r,t)>=0;o>=0?i?r.splice(o,1):r[o]=t:n&&!i&&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<e.length;r++){var o=e[r];JR(n,o),o.textConfig&&JR(t=t||{},o.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,o,i){var a=!(t&&r);t&&t.textConfig?(this.textConfig=JR({},r?this.textConfig:n.textConfig),JR(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},s=!1,c=0;c<fF.length;c++){var u=fF[c],d=o&&hF[u];t&&null!=t[u]?d?(s=!0,l[u]=t[u]):this[u]=t[u]:a&&null!=n[u]&&(d?(s=!0,l[u]=n[u]):this[u]=n[u])}if(!o)for(c=0;c<this.animators.length;c++){var p=this.animators[c],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(t||n)[f]:t||n)}s&&this._transitionState(e,l,i)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new nF,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),JR(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Tz;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var o=new wH(r,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=nj(t,e);n>=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,o=[],i=0;i<r;i++){var a=n[i];e&&e!==a.scope?o.push(a):a.stop(t)}return this.animators=o,this},e.prototype.animateTo=function(e,t,n){yF(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){yF(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var o=yF(this,t,n,r),i=0;i<o.length;i++)o[i].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Tz;function n(e,n,r,o){function i(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||i(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[o]=e[1],this[n]=e,i(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function yF(e,t,n,r,o){var i=[];wF(e,"",e,t,n=n||{},r,i,o);var a=i.length,l=!1,s=n.done,c=n.aborted,u=function(){l=!0,--a<=0&&(l?s&&s():c&&c())},d=function(){--a<=0&&(l?s&&s():c&&c())};a||s&&s(),i.length>0&&n.during&&i[0].during(function(e,t){n.during(t)});for(var p=0;p<i.length;p++){var f=i[p];u&&f.done(u),d&&f.aborted(d),n.force&&f.duration(n.duration),f.start(n.easing)}return i}function bF(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function xF(e,t,n){if(ij(t[n]))if(ij(e[n])||(e[n]=[]),wj(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),bF(e[n],t[n],r))}else{var o=t[n],i=e[n],a=o.length;if(ij(o[0]))for(var l=o[0].length,s=0;s<a;s++)i[s]?bF(i[s],o[s],l):i[s]=Array.prototype.slice.call(o[s]);else bF(i,o,a);i.length=o.length}else e[n]=t[n]}function wF(e,t,n,r,o,i,a,l){for(var s=dj(r),c=o.duration,u=o.delay,d=o.additive,p=o.setToFinal,f=!bj(i),h=e.animators,g=[],m=0;m<s.length;m++){var v=s[m],y=r[v];if(null!=y&&null!=n[v]&&(f||i[v]))if(!bj(y)||ij(y)||Cj(y))g.push(v);else{if(t){l||(n[v]=y,e.updateDuringAnimation(t));continue}wF(e,v,n[v],y,o,i&&i[v],a,l)}else l||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var b=g.length;if(!d&&b)for(var x=0;x<h.length;x++){if((S=h[x]).targetName===t)if(S.stopTracks(g)){var w=nj(h,S);h.splice(w,1)}}if(o.force||(g=cj(g,function(e){return t=r[e],o=n[e],!(t===o||ij(t)&&ij(o)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,o));var t,o}),b=g.length),b>0||o.force&&!a.length){var S,C=void 0,_=void 0,k=void 0;if(l){_={},p&&(C={});for(x=0;x<b;x++){_[v=g[x]]=n[v],p?C[v]=r[v]:n[v]=r[v]}}else if(p){k={};for(x=0;x<b;x++){k[v=g[x]]=hH(n[v]),xF(n,r,v)}}(S=new wH(n,!1,!1,d?cj(h,function(e){return e.targetName===t}):null)).targetName=t,o.scope&&(S.scope=o.scope),p&&C&&S.whenWithKeys(0,C,g),k&&S.whenWithKeys(0,k,g),S.whenWithKeys(null==c?500:c,l?_:r,g).delay(u||0),e.addAnimator(S,t),a.push(S)}}oj(vF,SL),oj(vF,nF);const SF=vF;var CF=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return MR(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=nj(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 o=this.__zr;o&&r.removeSelfFromZr(o),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=nj(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var o=n[r];e.call(t,o,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],o=e.call(t,r);r.isGroup&&!o&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new fz(0,0,0,0),n=e||this._children,r=[],o=null,i=0;i<n.length;i++){var a=n[i];if(!a.ignore&&!a.invisible){var l=a.getBoundingRect(),s=a.getLocalTransform(r);s?(fz.applyTransform(t,l,s),(o=o||t.clone()).union(t)):(o=o||l.clone()).union(l)}}return o||t},t}(SF);CF.prototype.type="group";const _F=CF;var kF={},MF={};var IF,EF=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var o=new jz,i=n.renderer||"canvas";kF[i]||(i=dj(kF)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new kF[i](t,o,n,e),l=n.ssr||a.ssrOnly;this.storage=o,this.painter=a;var s,c=$R.node||$R.worker||l?null:new HH(a.getViewportRoot(),a.root),u=n.useCoarsePointer;(null==u||"auto"===u?$R.touchEventsSupported:!!u)&&(s=Ej(n.pointerSize,44)),this.handler=new _z(o,a,c,a.root,s),this.animation=new _H({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"===typeof e)return HB(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,o=0;o<r;o++)n+=HB(t[o].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=SH();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=SH();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(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;t<e.length;t++)e[t]instanceof _F&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete MF[e])},e}();function OF(e,t){var n=new EF(qR(),e,t);return MF[n.id]=n,n}function $F(e){e.dispose()}function TF(){for(var e in MF)MF.hasOwnProperty(e)&&MF[e].dispose();MF={}}function PF(e){return MF[e]}function DF(e,t){kF[e]=t}function NF(e){if("function"===typeof IF)return IF(e)}function AF(e){IF=e}var RF="5.6.1",jF=1e-4,LF=20;function zF(e,t,n,r){var o=t[0],i=t[1],a=n[0],l=n[1],s=i-o,c=l-a;if(0===s)return 0===c?a:(a+l)/2;if(r)if(s>0){if(e<=o)return a;if(e>=i)return l}else{if(e>=o)return a;if(e<=i)return l}else{if(e===o)return a;if(e===i)return l}return(e-o)/s*c+a}function BF(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return mj(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function HF(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),LF),e=(+e).toFixed(t),n?e:+e}function FF(e){return e.sort(function(e,t){return e-t}),e}function VF(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 WF(e)}function WF(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,o=n>0?n:t.length,i=t.indexOf("."),a=i<0?0:o-1-i;return Math.max(0,a-r)}function GF(e,t){var n=Math.log,r=Math.LN10,o=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-o+i,0),20);return isFinite(a)?a:20}function UF(e,t,n){return e[t]&&YF(e,n)[t]||0}function YF(e,t){var n=sj(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(0===n)return[];for(var r=Math.pow(10,t),o=lj(e,function(e){return(isNaN(e)?0:e)/n*r*100}),i=100*r,a=lj(o,function(e){return Math.floor(e)}),l=sj(a,function(e,t){return e+t},0),s=lj(o,function(e,t){return e-a[t]});l<i;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,p=s.length;d<p;++d)s[d]>c&&(c=s[d],u=d);++a[u],s[u]=0,++l}return lj(a,function(e){return e/r})}function qF(e,t){var n=Math.max(VF(e),VF(t)),r=e+t;return n>LF?r:HF(r,n)}var XF=9007199254740991;function KF(e){var t=2*Math.PI;return(e%t+t)%t}function ZF(e){return e>-jF&&e<jF}var QF=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function JF(e){if(e instanceof Date)return e;if(mj(e)){var t=QF.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function eV(e){return Math.pow(10,tV(e))}function tV(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function nV(e,t){var n=tV(e),r=Math.pow(10,n),o=e/r;return e=(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)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function rV(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o}function oV(e){e.sort(function(e,t){return l(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var o=e[r].interval,i=e[r].close,a=0;a<2;a++)o[a]<=t&&(o[a]=t,i[a]=a?1:1-n),t=o[a],n=i[a];o[0]===o[1]&&i[0]*i[1]!==1?e.splice(r,1):r++}return e;function l(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&l(e,t,1))}}function iV(e){var t=parseFloat(e);return t==e&&(0!==t||!mj(e)||e.indexOf("x")<=0)?t:NaN}function aV(e){return!isNaN(iV(e))}function lV(){return Math.round(9*Math.random())}function sV(e,t){return 0===t?e:sV(t,e%t)}function cV(e,t){return null==e?t:null==t?e:e*t/sV(e,t)}function uV(e,t,n){return(t-e)*n+e}var dV="series\0",pV="\0_ec_\0";function fV(e){return e instanceof Array?e:null==e?[]:[e]}function hV(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,o=n.length;r<o;r++){var i=n[r];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var gV=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function mV(e){return!bj(e)||hj(e)||e instanceof Date?e:e.value}function vV(e){return bj(e)&&!(e instanceof Array)}function yV(e,t,n){var r="normalMerge"===n,o="replaceMerge"===n,i="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Bj();aj(t,function(e,n){bj(e)||(t[n]=null)});var l=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var o=0;o<e.length;o++){var i=e[o];i&&null!=i.id&&t.set(i.id,o),r.push({existing:"replaceMerge"===n||CV(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||o)&&function(e,t,n,r){aj(r,function(o,i){if(o&&null!=o.id){var a=xV(o.id),l=n.get(a);if(null!=l){var s=e[l];Pj(!s.newOption,'Duplicated option on id "'+a+'".'),s.newOption=o,s.existing=t[l],r[i]=null}}})}(l,e,a,t),r&&function(e,t){aj(t,function(n,r){if(n&&null!=n.name)for(var o=0;o<e.length;o++){var i=e[o].existing;if(!e[o].newOption&&i&&(null==i.id||null==n.id)&&!CV(n)&&!CV(i)&&bV("name",i,n))return e[o].newOption=n,void(t[r]=null)}})}(l,t),r||o?function(e,t,n){aj(t,function(t){if(t){for(var r,o=0;(r=e[o])&&(r.newOption||CV(r.existing)||r.existing&&null!=t.id&&!bV("id",t,r.existing));)o++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),o++}})}(l,t,o):i&&function(e,t){aj(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(l,t),function(e){var t=Bj();aj(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),aj(e,function(e){var n=e.newOption;Pj(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),aj(e,function(e,n){var r=e.existing,o=e.newOption,i=e.keyInfo;if(bj(o)){if(i.name=null!=o.name?xV(o.name):r?r.name:dV+n,r)i.id=xV(r.id);else if(null!=o.id)i.id=xV(o.id);else{var a=0;do{i.id="\0"+i.name+"\0"+a++}while(t.get(i.id))}t.set(i.id,e)}})}(l),l}function bV(e,t,n){var r=wV(t[e],null),o=wV(n[e],null);return null!=r&&null!=o&&r===o}function xV(e){return wV(e,"")}function wV(e,t){return null==e?t:mj(e)?e:yj(e)||vj(e)?e+"":t}function SV(e){var t=e.name;return!(!t||!t.indexOf(dV))}function CV(e){return e&&null!=e.id&&0===xV(e.id).indexOf(pV)}function _V(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?hj(t.dataIndex)?lj(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?hj(t.name)?lj(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function kV(){var e="__ec_inner_"+MV++;return function(t){return t[e]||(t[e]={})}}var MV=lV();function IV(e,t,n){var r=EV(t,n),o=r.mainTypeSpecified,i=r.queryOptionMap,a=r.others,l=n?n.defaultMainType:null;return!o&&l&&i.set(l,{}),i.each(function(t,r){var o=TV(e,r,t,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=o.models,a[r+"Model"]=o.models[0]}),a}function EV(e,t){var n;if(mj(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=Bj(),i={},a=!1;return aj(n,function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],s=(r[2]||"").toLowerCase();if(l&&s&&!(t&&t.includeMainTypes&&nj(t.includeMainTypes,l)<0))a=a||!!l,(o.get(l)||o.set(l,{}))[s]=e}else i[n]=e}),{mainTypeSpecified:a,queryOptionMap:o,others:i}}var OV={useDefault:!0,enableAll:!1,enableNone:!1},$V={useDefault:!1,enableAll:!0,enableNone:!0};function TV(e,t,n,r){r=r||OV;var o=n.index,i=n.id,a=n.name,l={models:null,specified:null!=o||null!=i||null!=a};if(!l.specified){var s=void 0;return l.models=r.useDefault&&(s=e.getComponent(t))?[s]:[],l}return"none"===o||!1===o?(Pj(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&(Pj(r.enableAll,'`"all"` is not a valid value on index option.'),o=i=a=null),l.models=e.queryComponents({mainType:t,index:o,id:i,name:a}),l)}function PV(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function DV(e,t){var n=Bj(),r=[];return aj(e,function(e){var o=t(e);(n.get(o)||(r.push(o),n.set(o,[]))).push(e)}),{keys:r,buckets:n}}function NV(e,t,n,r,o){var i=null==t||"auto"===t;if(null==r)return r;if(yj(r))return HF(h=uV(n||0,r,o),i?Math.max(VF(n||0),VF(r)):t);if(mj(r))return o<1?n:r;for(var a=[],l=n,s=r,c=Math.max(l?l.length:0,s.length),u=0;u<c;++u){var d=e.getDimensionInfo(u);if(d&&"ordinal"===d.type)a[u]=(o<1&&l?l:s)[u];else{var p=l&&l[u]?l[u]:0,f=s[u],h=uV(p,f,o);a[u]=HF(h,i?Math.max(VF(p),VF(f)):t)}}return a}var AV="___EC__COMPONENT__CONTAINER___",RV="___EC__EXTENDED_CLASS___";function jV(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function LV(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return!function(e){return gj(e)&&/^class\s/.test(Function.prototype.toString.call(e))}(n)?(t=function(){(e.$constructor||n).apply(this,arguments)},rj(t,this)):t=function(e){function t(){return e.apply(this,arguments)||this}return MR(t,e),t}(n),JR(t.prototype,e),t[RV]=!0,t.extend=this.extend,t.superCall=HV,t.superApply=FV,t.superClass=n,t}}function zV(e,t){e.extend=t.extend}var BV=Math.round(10*Math.random());function HV(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function FV(e,t,n){return this.superClass.prototype[t].apply(e,n)}function VV(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){Pj(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var o=jV(r);if(o.sub){if(o.sub!==AV){var i=function(e){var n=t[e.main];n&&n[AV]||((n=t[e.main]={})[AV]=!0);return n}(o);i[o.sub]=e}}else t[o.main]=e}return e},e.getClass=function(e,n,r){var o=t[e];if(o&&o[AV]&&(o=n?o[n]:null),r&&!o)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return o},e.getClassesByMainType=function(e){var n=jV(e),r=[],o=t[n.main];return o&&o[AV]?aj(o,function(e,t){t!==AV&&r.push(e)}):r.push(o),r},e.hasClass=function(e){var n=jV(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return aj(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=jV(e),r=t[n.main];return r&&r[AV]}}function WV(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,o){for(var i={},a=0;a<e.length;a++){var l=e[a][1];if(!(r&&nj(r,l)>=0||o&&nj(o,l)<0)){var s=n.getShallow(l,t);null!=s&&(i[e[a][0]]=s)}}return i}}var GV=WV([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),UV=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return GV(this,e,t)},e}(),YV=new vB(50);function qV(e){if("string"===typeof e){var t=YV.get(e);return t&&t.image}return e}function XV(e,t,n,r,o){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var i=YV.get(e),a={hostEl:n,cb:r,cbPayload:o};return i?!ZV(t=i.image)&&i.pending.push(a):((t=NR.loadImage(e,KV,KV)).__zrImageSrc=e,YV.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function KV(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ZV(e){return e&&e.width&&e.height}var QV=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function JV(e,t,n,r,o){var i={};return eW(i,e,t,n,r,o),i.text}function eW(e,t,n,r,o,i){if(!n)return e.text="",void(e.isTruncated=!1);var a=(t+"").split("\n");i=tW(n,r,o,i);for(var l=!1,s={},c=0,u=a.length;c<u;c++)nW(s,a[c],i),a[c]=s.textLine,l=l||s.isTruncated;e.text=a.join("\n"),e.isTruncated=l}function tW(e,t,n,r){var o=JR({},r=r||{});o.font=t,n=Ej(n,"..."),o.maxIterations=Ej(r.maxIterations,2);var i=o.minChar=Ej(r.minChar,0);o.cnCharWidth=oF("\u56fd",t);var a=o.ascCharWidth=oF("a",t);o.placeholder=Ej(r.placeholder,"");for(var l=e=Math.max(0,e-1),s=0;s<i&&l>=a;s++)l-=a;var c=oF(n,t);return c>l&&(n="",c=0),l=e-c,o.ellipsis=n,o.ellipsisWidth=c,o.contentWidth=l,o.containerWidth=e,o}function nW(e,t,n){var r=n.containerWidth,o=n.font,i=n.contentWidth;if(!r)return e.textLine="",void(e.isTruncated=!1);var a=oF(t,o);if(a<=r)return e.textLine=t,void(e.isTruncated=!1);for(var l=0;;l++){if(a<=i||l>=n.maxIterations){t+=n.ellipsis;break}var s=0===l?rW(t,i,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*i/a):0;a=oF(t=t.substr(0,s),o)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function rW(e,t,n,r){for(var o=0,i=0,a=e.length;i<a&&o<t;i++){var l=e.charCodeAt(i);o+=0<=l&&l<=127?n:r}return i}var oW=function(){},iW=function(e){this.tokens=[],e&&(this.tokens=e)},aW=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function lW(e,t,n,r,o){var i,a,l=""===t,s=o&&n.rich[o]||{},c=e.lines,u=s.font||n.font,d=!1;if(r){var p=s.padding,f=p?p[1]+p[3]:0;if(null!=s.width&&"auto"!==s.width){var h=uF(s.width,r.width)+f;c.length>0&&h+r.accumWidth>r.width&&(i=t.split("\n"),d=!0),r.accumWidth=h}else{var g=uW(t,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+f,a=g.linesWidths,i=g.lines}}else i=t.split("\n");for(var m=0;m<i.length;m++){var v=i[m],y=new oW;if(y.styleName=o,y.text=v,y.isLineHolder=!v&&!l,"number"===typeof s.width?y.width=s.width:y.width=a?a[m]:oF(v,u),m||d)c.push(new iW([y]));else{var b=(c[c.length-1]||(c[0]=new iW)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=y:(v||!x||l)&&b.push(y)}}}var sW=sj(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function cW(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!sW[e]}function uW(e,t,n,r,o){for(var i=[],a=[],l="",s="",c=0,u=0,d=0;d<e.length;d++){var p=e.charAt(d);if("\n"!==p){var f=oF(p,t),h=!r&&!cW(p);(i.length?u+f>n:o+u+f>n)?u?(l||s)&&(h?(l||(l=s,s="",u=c=0),i.push(l),a.push(u-c),s+=p,l="",u=c+=f):(s&&(l+=s,s="",c=0),i.push(l),a.push(u),l=p,u=f)):h?(i.push(s),a.push(c),s=p,c=f):(i.push(p),a.push(f)):(u+=f,h?(s+=p,c+=f):(s&&(l+=s,s="",c=0),l+=p))}else s&&(l+=s,u+=c),i.push(l),a.push(u),l="",s="",c=0,u=0}return i.length||l||(l=e,s="",c=0),s&&(l+=s),l&&(i.push(l),a.push(u)),1===i.length&&(u+=o),{accumWidth:u,lines:i,linesWidths:a}}var dW="__zr_style_"+Math.round(10*Math.random()),pW={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fW={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pW[dW]=!0;var hW=["z","z2","invisible"],gW=["invisible"],mW=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype._init=function(t){for(var n=dj(t),r=0;r<n.length;r++){var o=n[r];"style"===o?this.useStyle(t[o]):e.prototype.attrKV.call(this,o,t[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){vW.copy(e.getBoundingRect()),e.transform&&vW.applyTransform(e.transform);return yW.width=t,yW.height=n,!vW.intersect(yW)}(this,e,t)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var i=0;i<this.__clipPaths.length;++i)if(this.__clipPaths[i].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,o=r.shadowBlur||0,i=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new fz(0,0,0,0)),t?fz.applyTransform(e,n,t):e.copy(n),(o||i||a)&&(e.width+=2*o+Math.abs(i),e.height+=2*o+Math.abs(a),e.x=Math.min(e.x,e.x+i-o),e.y=Math.min(e.y,e.y+a-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new fz(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:JR(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Fj(pW,e)},t.prototype.useStyle=function(e){e[dW]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[dW]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,hW)},t.prototype._applyStateObj=function(t,n,r,o,i,a){e.prototype._applyStateObj.call(this,t,n,r,o,i,a);var l,s=!(n&&o);if(n&&n.style?i?o?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),o?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l)if(i){var c=this.style;if(this.style=this.createStyle(s?{}:c),s)for(var u=dj(c),d=0;d<u.length;d++){(f=u[d])in l&&(l[f]=l[f],this.style[f]=c[f])}var p=dj(l);for(d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:l},a,this.getAnimationStyleProps())}else this.useStyle(l);var h=this.__inHover?gW:hW;for(d=0;d<h.length;d++){f=h[d];n&&null!=n[f]?this[f]=n[f]:s&&null!=r[f]&&(this[f]=r[f])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var i=t[o];i.style&&(n=n||{},this._mergeStyle(n,i.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return JR(e,t),e},t.prototype.getAnimationStyleProps=function(){return fW},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=2|Tz}(),t}(SF),vW=new fz(0,0,0,0),yW=new fz(0,0,0,0);const bW=mW;var xW=Math.min,wW=Math.max,SW=Math.sin,CW=Math.cos,_W=2*Math.PI,kW=Yj(),MW=Yj(),IW=Yj();function EW(e,t,n){if(0!==e.length){for(var r=e[0],o=r[0],i=r[0],a=r[1],l=r[1],s=1;s<e.length;s++)r=e[s],o=xW(o,r[0]),i=wW(i,r[0]),a=xW(a,r[1]),l=wW(l,r[1]);t[0]=o,t[1]=a,n[0]=i,n[1]=l}}function OW(e,t,n,r,o,i){o[0]=xW(e,n),o[1]=xW(t,r),i[0]=wW(e,n),i[1]=wW(t,r)}var $W=[],TW=[];function PW(e,t,n,r,o,i,a,l,s,c){var u=tB,d=Qz,p=u(e,n,o,a,$W);s[0]=1/0,s[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var f=0;f<p;f++){var h=d(e,n,o,a,$W[f]);s[0]=xW(h,s[0]),c[0]=wW(h,c[0])}p=u(t,r,i,l,TW);for(f=0;f<p;f++){var g=d(t,r,i,l,TW[f]);s[1]=xW(g,s[1]),c[1]=wW(g,c[1])}s[0]=xW(e,s[0]),c[0]=wW(e,c[0]),s[0]=xW(a,s[0]),c[0]=wW(a,c[0]),s[1]=xW(t,s[1]),c[1]=wW(t,c[1]),s[1]=xW(l,s[1]),c[1]=wW(l,c[1])}function DW(e,t,n,r,o,i,a,l){var s=lB,c=iB,u=wW(xW(s(e,n,o),1),0),d=wW(xW(s(t,r,i),1),0),p=c(e,n,o,u),f=c(t,r,i,d);a[0]=xW(e,o,p),a[1]=xW(t,i,f),l[0]=wW(e,o,p),l[1]=wW(t,i,f)}function NW(e,t,n,r,o,i,a,l,s){var c=mL,u=vL,d=Math.abs(o-i);if(d%_W<1e-4&&d>1e-4)return l[0]=e-n,l[1]=t-r,s[0]=e+n,void(s[1]=t+r);if(kW[0]=CW(o)*n+e,kW[1]=SW(o)*r+t,MW[0]=CW(i)*n+e,MW[1]=SW(i)*r+t,c(l,kW,MW),u(s,kW,MW),(o%=_W)<0&&(o+=_W),(i%=_W)<0&&(i+=_W),o>i&&!a?i+=_W:o<i&&a&&(o+=_W),a){var p=i;i=o,o=p}for(var f=0;f<i;f+=Math.PI/2)f>o&&(IW[0]=CW(f)*n+e,IW[1]=SW(f)*r+t,c(l,IW,l),u(s,IW,s))}var AW={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},RW=[],jW=[],LW=[],zW=[],BW=[],HW=[],FW=Math.min,VW=Math.max,WW=Math.cos,GW=Math.sin,UW=Math.abs,YW=Math.PI,qW=2*YW,XW="undefined"!==typeof Float32Array,KW=[];function ZW(e){return Math.round(e/YW*1e8)/1e8%2*YW}function QW(e,t){var n=ZW(e[0]);n<0&&(n+=qW);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=qW?o=n+qW:t&&n-o>=qW?o=n-qW:!t&&n>o?o=n+(qW-ZW(n-o)):t&&n<o&&(o=n-(qW-ZW(o-n))),e[0]=n,e[1]=o}var JW=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=UW(n/VH/e)||0,this._uy=UW(n/VH/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(AW.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=UW(e-this._xi),r=UW(t-this._yi),o=n>this._ux||r>this._uy;if(this.addData(AW.L,e,t),this._ctx&&o&&this._ctx.lineTo(e,t),o)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var i=n*n+r*r;i>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,o,i){return this._drawPendingPt(),this.addData(AW.C,e,t,n,r,o,i),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(AW.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,o,i){this._drawPendingPt(),KW[0]=r,KW[1]=o,QW(KW,i),r=KW[0];var a=(o=KW[1])-r;return this.addData(AW.A,e,t,n,n,r,a,0,i?0:1),this._ctx&&this._ctx.arc(e,t,n,r,o,i),this._xi=WW(o)*n+e,this._yi=GW(o)*n+t,this},e.prototype.arcTo=function(e,t,n,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,o),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(AW.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(AW.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||!XW||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,o=0;o<t;o++)n+=e[o].len();XW&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(o=0;o<t;o++)for(var i=e[o].data,a=0;a<i.length;a++)this.data[r++]=i[a];this._len=r},e.prototype.addData=function(e,t,n,r,o,i,a,l,s){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,XW&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){LW[0]=LW[1]=BW[0]=BW[1]=Number.MAX_VALUE,zW[0]=zW[1]=HW[0]=HW[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,o=0,i=0;for(e=0;e<this._len;){var a=t[e++],l=1===e;switch(l&&(o=n=t[e],i=r=t[e+1]),a){case AW.M:n=o=t[e++],r=i=t[e++],BW[0]=o,BW[1]=i,HW[0]=o,HW[1]=i;break;case AW.L:OW(n,r,t[e],t[e+1],BW,HW),n=t[e++],r=t[e++];break;case AW.C:PW(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],BW,HW),n=t[e++],r=t[e++];break;case AW.Q:DW(n,r,t[e++],t[e++],t[e],t[e+1],BW,HW),n=t[e++],r=t[e++];break;case AW.A:var s=t[e++],c=t[e++],u=t[e++],d=t[e++],p=t[e++],f=t[e++]+p;e+=1;var h=!t[e++];l&&(o=WW(p)*u+s,i=GW(p)*d+c),NW(s,c,u,d,p,f,h,BW,HW),n=WW(f)*u+s,r=GW(f)*d+c;break;case AW.R:OW(o=n=t[e++],i=r=t[e++],o+t[e++],i+t[e++],BW,HW);break;case AW.Z:n=o,r=i}mL(LW,LW,BW),vL(zW,zW,HW)}return 0===e&&(LW[0]=LW[1]=zW[0]=zW[1]=0),new fz(LW[0],LW[1],zW[0]-LW[0],zW[1]-LW[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,o=0,i=0,a=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var s=this._pathSegLen,c=0,u=0,d=0;d<t;){var p=e[d++],f=1===d;f&&(a=o=e[d],l=i=e[d+1]);var h=-1;switch(p){case AW.M:o=a=e[d++],i=l=e[d++];break;case AW.L:var g=e[d++],m=(b=e[d++])-i;(UW(O=g-o)>n||UW(m)>r||d===t-1)&&(h=Math.sqrt(O*O+m*m),o=g,i=b);break;case AW.C:var v=e[d++],y=e[d++],b=(g=e[d++],e[d++]),x=e[d++],w=e[d++];h=oB(o,i,v,y,g,b,x,w,10),o=x,i=w;break;case AW.Q:h=uB(o,i,v=e[d++],y=e[d++],g=e[d++],b=e[d++],10),o=g,i=b;break;case AW.A:var S=e[d++],C=e[d++],_=e[d++],k=e[d++],M=e[d++],I=e[d++],E=I+M;d+=1,f&&(a=WW(M)*_+S,l=GW(M)*k+C),h=VW(_,k)*FW(qW,Math.abs(I)),o=WW(E)*_+S,i=GW(E)*k+C;break;case AW.R:a=o=e[d++],l=i=e[d++],h=2*e[d++]+2*e[d++];break;case AW.Z:var O=a-o;m=l-i;h=Math.sqrt(O*O+m*m),o=a,i=l}h>=0&&(s[u++]=h,c+=h)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,r,o,i,a,l,s,c,u,d,p=this.data,f=this._ux,h=this._uy,g=this._len,m=t<1,v=0,y=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),s=this._pathSegLen,c=t*this._pathLen))e:for(var x=0;x<g;){var w=p[x++],S=1===x;switch(S&&(n=o=p[x],r=i=p[x+1]),w!==AW.L&&b>0&&(e.lineTo(u,d),b=0),w){case AW.M:n=o=p[x++],r=i=p[x++],e.moveTo(o,i);break;case AW.L:a=p[x++],l=p[x++];var C=UW(a-o),_=UW(l-i);if(C>f||_>h){if(m){if(v+(q=s[y++])>c){var k=(c-v)/q;e.lineTo(o*(1-k)+a*k,i*(1-k)+l*k);break e}v+=q}e.lineTo(a,l),o=a,i=l,b=0}else{var M=C*C+_*_;M>b&&(u=a,d=l,b=M)}break;case AW.C:var I=p[x++],E=p[x++],O=p[x++],$=p[x++],T=p[x++],P=p[x++];if(m){if(v+(q=s[y++])>c){nB(o,I,O,T,k=(c-v)/q,RW),nB(i,E,$,P,k,jW),e.bezierCurveTo(RW[1],jW[1],RW[2],jW[2],RW[3],jW[3]);break e}v+=q}e.bezierCurveTo(I,E,O,$,T,P),o=T,i=P;break;case AW.Q:I=p[x++],E=p[x++],O=p[x++],$=p[x++];if(m){if(v+(q=s[y++])>c){sB(o,I,O,k=(c-v)/q,RW),sB(i,E,$,k,jW),e.quadraticCurveTo(RW[1],jW[1],RW[2],jW[2]);break e}v+=q}e.quadraticCurveTo(I,E,O,$),o=O,i=$;break;case AW.A:var D=p[x++],N=p[x++],A=p[x++],R=p[x++],j=p[x++],L=p[x++],z=p[x++],B=!p[x++],H=A>R?A:R,F=UW(A-R)>.001,V=j+L,W=!1;if(m)v+(q=s[y++])>c&&(V=j+L*(c-v)/q,W=!0),v+=q;if(F&&e.ellipse?e.ellipse(D,N,A,R,z,j,V,B):e.arc(D,N,H,j,V,B),W)break e;S&&(n=WW(j)*A+D,r=GW(j)*R+N),o=WW(V)*A+D,i=GW(V)*R+N;break;case AW.R:n=o=p[x],r=i=p[x+1],a=p[x++],l=p[x++];var G=p[x++],U=p[x++];if(m){if(v+(q=s[y++])>c){var Y=c-v;e.moveTo(a,l),e.lineTo(a+FW(Y,G),l),(Y-=G)>0&&e.lineTo(a+G,l+FW(Y,U)),(Y-=U)>0&&e.lineTo(a+VW(G-Y,0),l+U),(Y-=G)>0&&e.lineTo(a,l+VW(U-Y,0));break e}v+=q}e.rect(a,l,G,U);break;case AW.Z:if(m){var q;if(v+(q=s[y++])>c){k=(c-v)/q;e.lineTo(o*(1-k)+n*k,i*(1-k)+r*k);break e}v+=q}e.closePath(),o=n,i=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=AW,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const eG=JW;function tG(e,t,n,r,o,i,a){if(0===o)return!1;var l=o,s=0;if(a>t+l&&a>r+l||a<t-l&&a<r-l||i>e+l&&i>n+l||i<e-l&&i<n-l)return!1;if(e===n)return Math.abs(i-e)<=l/2;var c=(s=(t-r)/(e-n))*i-a+(e*r-n*t)/(e-n);return c*c/(s*s+1)<=l/2*l/2}function nG(e,t,n,r,o,i,a,l,s,c,u){if(0===s)return!1;var d=s;return!(u>t+d&&u>r+d&&u>i+d&&u>l+d||u<t-d&&u<r-d&&u<i-d&&u<l-d||c>e+d&&c>n+d&&c>o+d&&c>a+d||c<e-d&&c<n-d&&c<o-d&&c<a-d)&&rB(e,t,n,r,o,i,a,l,c,u,null)<=d/2}function rG(e,t,n,r,o,i,a,l,s){if(0===a)return!1;var c=a;return!(s>t+c&&s>r+c&&s>i+c||s<t-c&&s<r-c&&s<i-c||l>e+c&&l>n+c&&l>o+c||l<e-c&&l<n-c&&l<o-c)&&cB(e,t,n,r,o,i,l,s,null)<=c/2}var oG=2*Math.PI;function iG(e){return(e%=oG)<0&&(e+=oG),e}var aG=2*Math.PI;function lG(e,t,n,r,o,i,a,l,s){if(0===a)return!1;var c=a;l-=e,s-=t;var u=Math.sqrt(l*l+s*s);if(u-c>n||u+c<n)return!1;if(Math.abs(r-o)%aG<1e-4)return!0;if(i){var d=r;r=iG(o),o=iG(d)}else r=iG(r),o=iG(o);r>o&&(o+=aG);var p=Math.atan2(s,l);return p<0&&(p+=aG),p>=r&&p<=o||p+aG>=r&&p+aG<=o}function sG(e,t,n,r,o,i){if(i>t&&i>r||i<t&&i<r)return 0;if(r===t)return 0;var a=(i-t)/(r-t),l=r<t?1:-1;1!==a&&0!==a||(l=r<t?.5:-.5);var s=a*(n-e)+e;return s===o?1/0:s>o?l:0}var cG=eG.CMD,uG=2*Math.PI;var dG=[-1,-1,-1],pG=[-1,-1];function fG(){var e=pG[0];pG[0]=pG[1],pG[1]=e}function hG(e,t,n,r,o,i,a,l,s,c){if(c>t&&c>r&&c>i&&c>l||c<t&&c<r&&c<i&&c<l)return 0;var u=eB(t,r,i,l,c,dG);if(0===u)return 0;for(var d=0,p=-1,f=void 0,h=void 0,g=0;g<u;g++){var m=dG[g],v=0===m||1===m?.5:1;Qz(e,n,o,a,m)<s||(p<0&&(p=tB(t,r,i,l,pG),pG[1]<pG[0]&&p>1&&fG(),f=Qz(t,r,i,l,pG[0]),p>1&&(h=Qz(t,r,i,l,pG[1]))),2===p?m<pG[0]?d+=f<t?v:-v:m<pG[1]?d+=h<f?v:-v:d+=l<h?v:-v:m<pG[0]?d+=f<t?v:-v:d+=l<f?v:-v)}return d}function gG(e,t,n,r,o,i,a,l){if(l>t&&l>r&&l>i||l<t&&l<r&&l<i)return 0;var s=function(e,t,n,r,o){var i=e-2*t+n,a=2*(t-e),l=e-r,s=0;if(Kz(i))Zz(a)&&(u=-l/a)>=0&&u<=1&&(o[s++]=u);else{var c=a*a-4*i*l;if(Kz(c))(u=-a/(2*i))>=0&&u<=1&&(o[s++]=u);else if(c>0){var u,d=Fz(c),p=(-a-d)/(2*i);(u=(-a+d)/(2*i))>=0&&u<=1&&(o[s++]=u),p>=0&&p<=1&&(o[s++]=p)}}return s}(t,r,i,l,dG);if(0===s)return 0;var c=lB(t,r,i);if(c>=0&&c<=1){for(var u=0,d=iB(t,r,i,c),p=0;p<s;p++){var f=0===dG[p]||1===dG[p]?.5:1;iB(e,n,o,dG[p])<a||(dG[p]<c?u+=d<t?f:-f:u+=i<d?f:-f)}return u}f=0===dG[0]||1===dG[0]?.5:1;return iB(e,n,o,dG[0])<a?0:i<t?f:-f}function mG(e,t,n,r,o,i,a,l){if((l-=t)>n||l<-n)return 0;var s=Math.sqrt(n*n-l*l);dG[0]=-s,dG[1]=s;var c=Math.abs(r-o);if(c<1e-4)return 0;if(c>=uG-1e-4){r=0,o=uG;var u=i?1:-1;return a>=dG[0]+e&&a<=dG[1]+e?u:0}if(r>o){var d=r;r=o,o=d}r<0&&(r+=uG,o+=uG);for(var p=0,f=0;f<2;f++){var h=dG[f];if(h+e>a){var g=Math.atan2(l,h);u=i?1:-1;g<0&&(g=uG+g),(g>=r&&g<=o||g+uG>=r&&g+uG<=o)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),p+=u)}}return p}function vG(e,t,n,r,o){for(var i,a,l=e.data,s=e.len(),c=0,u=0,d=0,p=0,f=0,h=0;h<s;){var g=l[h++],m=1===h;switch(g===cG.M&&h>1&&(n||(c+=sG(u,d,p,f,r,o))),m&&(p=u=l[h],f=d=l[h+1]),g){case cG.M:u=p=l[h++],d=f=l[h++];break;case cG.L:if(n){if(tG(u,d,l[h],l[h+1],t,r,o))return!0}else c+=sG(u,d,l[h],l[h+1],r,o)||0;u=l[h++],d=l[h++];break;case cG.C:if(n){if(nG(u,d,l[h++],l[h++],l[h++],l[h++],l[h],l[h+1],t,r,o))return!0}else c+=hG(u,d,l[h++],l[h++],l[h++],l[h++],l[h],l[h+1],r,o)||0;u=l[h++],d=l[h++];break;case cG.Q:if(n){if(rG(u,d,l[h++],l[h++],l[h],l[h+1],t,r,o))return!0}else c+=gG(u,d,l[h++],l[h++],l[h],l[h+1],r,o)||0;u=l[h++],d=l[h++];break;case cG.A:var v=l[h++],y=l[h++],b=l[h++],x=l[h++],w=l[h++],S=l[h++];h+=1;var C=!!(1-l[h++]);i=Math.cos(w)*b+v,a=Math.sin(w)*x+y,m?(p=i,f=a):c+=sG(u,d,i,a,r,o);var _=(r-v)*x/b+v;if(n){if(lG(v,y,x,w,w+S,C,t,_,o))return!0}else c+=mG(v,y,x,w,w+S,C,_,o);u=Math.cos(w+S)*b+v,d=Math.sin(w+S)*x+y;break;case cG.R:if(p=u=l[h++],f=d=l[h++],i=p+l[h++],a=f+l[h++],n){if(tG(p,f,i,f,t,r,o)||tG(i,f,i,a,t,r,o)||tG(i,a,p,a,t,r,o)||tG(p,a,p,f,t,r,o))return!0}else c+=sG(i,f,i,a,r,o),c+=sG(p,a,p,f,r,o);break;case cG.Z:if(n){if(tG(u,d,p,f,t,r,o))return!0}else c+=sG(u,d,p,f,r,o);u=p,d=f}}return n||function(e,t){return Math.abs(e-t)<1e-4}(d,f)||(c+=sG(u,d,p,f,r,o)||0),0!==c}var yG=ej({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pW),bG={style:ej({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fW.style)},xG=eF.concat(["invisible","culling","z","z2","zlevel","parent"]),wG=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(e){n.buildPath(e,n.shape)}),o.silent=!0;var i=o.style;for(var a in r)i[a]!==r[a]&&(i[a]=r[a]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var l=0;l<xG.length;++l)o[xG[l]]=this[xG[l]];o.__dirty|=Tz}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=dj(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var o=0;o<n.length;o++){var i=n[o],a=t[i];"style"===i?this.style?JR(this.style,a):this.useStyle(a):"shape"===i?JR(this.shape,a):e.prototype.attrKV.call(this,i,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(mj(e)){var t=HB(e,0);return t>.5?WH:t>.2?"#eee":GH}if(e)return GH}return WH},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(mj(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===HB(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Pz},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new eG(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var o=this.path;(r||this.__dirty&Pz)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var i=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){i.copy(e);var a=t.strokeNoScale?this.getLineScale():1,l=t.lineWidth;if(!this.hasFill()){var s=this.strokeContainThreshold;l=Math.max(l,null==s?4:s)}a>1e-10&&(i.width+=l/a,i.height+=l/a,i.x-=l/a/2,i.y-=l/a/2)}return i}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),o=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var i=this.path;if(this.hasStroke()){var a=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return vG(e,t,!0,n,r)}(i,a/l,e,t)))return!0}if(this.hasFill())return function(e,t,n){return vG(e,0,!1,t,n)}(i,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Pz,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:JR(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Pz)},t.prototype.createStyle=function(e){return Fj(yG,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=JR({},this.shape))},t.prototype._applyStateObj=function(t,n,r,o,i,a){e.prototype._applyStateObj.call(this,t,n,r,o,i,a);var l,s=!(n&&o);if(n&&n.shape?i?o?l=n.shape:(l=JR({},r.shape),JR(l,n.shape)):(l=JR({},o?this.shape:r.shape),JR(l,n.shape)):s&&(l=r.shape),l)if(i){this.shape=JR({},this.shape);for(var c={},u=dj(l),d=0;d<u.length;d++){var p=u[d];"object"===typeof l[p]?this.shape[p]=l[p]:c[p]=l[p]}this._transitionState(t,{shape:c},a)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),o=0;o<t.length;o++){var i=t[o];i.shape&&(n=n||{},this._mergeStyle(n,i.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return bG},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return MR(n,t),n.prototype.getDefaultStyle=function(){return KR(e.style)},n.prototype.getDefaultShape=function(){return KR(e.shape)},n}(t);for(var r in e)"function"===typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=2|Tz|Pz}(),t}(bW);const SG=wG;var CG=ej({strokeFirst:!0,font:PR,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},yG),_G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Fj(CG,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=aF(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(bW);_G.prototype.type="tspan";const kG=_G;var MG=ej({x:0,y:0},pW),IG={style:ej({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fW.style)};var EG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.createStyle=function(e){return Fj(MG,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,o=(r=t.image)&&"string"!==typeof r&&r.width&&r.height?t.image:this.__image;if(!o)return 0;var i="width"===e?"height":"width",a=t[i];return null==a?o[e]:o[e]/o[i]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return IG},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new fz(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(bW);EG.prototype.type="image";const OG=EG;var $G=Math.round;function TG(e,t,n){if(t){var r=t.x1,o=t.x2,i=t.y1,a=t.y2;e.x1=r,e.x2=o,e.y1=i,e.y2=a;var l=n&&n.lineWidth;return l?($G(2*r)===$G(2*o)&&(e.x1=e.x2=DG(r,l,!0)),$G(2*i)===$G(2*a)&&(e.y1=e.y2=DG(i,l,!0)),e):e}}function PG(e,t,n){if(t){var r=t.x,o=t.y,i=t.width,a=t.height;e.x=r,e.y=o,e.width=i,e.height=a;var l=n&&n.lineWidth;return l?(e.x=DG(r,l,!0),e.y=DG(o,l,!0),e.width=Math.max(DG(r+i,l,!1)-e.x,0===i?0:1),e.height=Math.max(DG(o+a,l,!1)-e.y,0===a?0:1),e):e}}function DG(e,t,n){if(!t)return e;var r=$G(2*e);return(r+$G(t))%2===0?r/2:(r+(n?1:-1))/2}var NG=function(){this.x=0,this.y=0,this.width=0,this.height=0},AG={},RG=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new NG},t.prototype.buildPath=function(e,t){var n,r,o,i;if(this.subPixelOptimize){var a=PG(AG,t,this.style);n=a.x,r=a.y,o=a.width,i=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,o=t.width,i=t.height;t.r?function(e,t){var n,r,o,i,a,l=t.x,s=t.y,c=t.width,u=t.height,d=t.r;c<0&&(l+=c,c=-c),u<0&&(s+=u,u=-u),"number"===typeof d?n=r=o=i=d:d instanceof Array?1===d.length?n=r=o=i=d[0]:2===d.length?(n=o=d[0],r=i=d[1]):3===d.length?(n=d[0],r=i=d[1],o=d[2]):(n=d[0],r=d[1],o=d[2],i=d[3]):n=r=o=i=0,n+r>c&&(n*=c/(a=n+r),r*=c/a),o+i>c&&(o*=c/(a=o+i),i*=c/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),n+i>u&&(n*=u/(a=n+i),i*=u/a),e.moveTo(l+n,s),e.lineTo(l+c-r,s),0!==r&&e.arc(l+c-r,s+r,r,-Math.PI/2,0),e.lineTo(l+c,s+u-o),0!==o&&e.arc(l+c-o,s+u-o,o,0,Math.PI/2),e.lineTo(l+i,s+u),0!==i&&e.arc(l+i,s+u-i,i,Math.PI/2,Math.PI),e.lineTo(l,s+n),0!==n&&e.arc(l+n,s+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,o,i)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(SG);RG.prototype.type="rect";const jG=RG;var LG={fill:"#000"},zG={style:ej({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},fW.style)},BG=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=LG,n.attr(t),n}return MR(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;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,function(e){YG(e),aj(e.rich,YG)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new fz(0,0,0,0),t=this._children,n=[],r=null,o=0;o<t.length;o++){var i=t[o],a=i.getBoundingRect(),l=i.getLocalTransform(n);l?(e.copy(a),e.applyTransform(l),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||LG},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return JR(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=dj(t),r=0;r<n.length;r++){var o=n[r];e[o]=e[o]||{},JR(e[o],t[o])}},t.prototype.getAnimationStyleProps=function(){return zG},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||PR,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,o=t.padding,i=t.font,a="truncate"===r,l=cF(i),s=Ej(t.lineHeight,l),c=!!t.backgroundColor,u="truncate"===t.lineOverflow,d=!1,p=t.width,f=(n=null==p||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?uW(e,t.font,p,"breakAll"===r,0).lines:[]).length*s,h=Ej(t.height,f);if(f>h&&u){var g=Math.floor(h/s);d=d||n.length>g,n=n.slice(0,g)}if(e&&a&&null!=p)for(var m=tW(p,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v={},y=0;y<n.length;y++)nW(v,n[y],m),n[y]=v.textLine,d=d||v.isTruncated;var b=h,x=0;for(y=0;y<n.length;y++)x=Math.max(oF(n[y],i),x);null==p&&(p=x);var w=x;return o&&(b+=o[0]+o[2],w+=o[1]+o[3],p+=o[1]+o[3]),c&&(w=p),{lines:n,height:h,outerWidth:w,outerHeight:b,lineHeight:s,calculatedLineHeight:l,contentWidth:x,contentHeight:f,width:p,isTruncated:d}}(ZG(e),e),o=QG(e),i=!!e.backgroundColor,a=r.outerHeight,l=r.outerWidth,s=r.contentWidth,c=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var p=e.x||0,f=e.y||0,h=e.align||d.align||"left",g=e.verticalAlign||d.verticalAlign||"top",m=p,v=sF(f,r.contentHeight,g);if(o||n){var y=lF(p,l,h),b=sF(f,a,g);o&&this._renderBackground(e,e,y,b,l,a)}v+=u/2,n&&(m=KG(p,h,n),"top"===g?v+=n[0]:"bottom"===g&&(v-=n[2]));for(var x=0,w=!1,S=(XG("fill"in e?e.fill:(w=!0,d.fill))),C=(qG("stroke"in e?e.stroke:i||d.autoStroke&&!w?null:(x=2,d.stroke))),_=e.textShadowBlur>0,k=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,I=0;I<c.length;I++){var E=this._getOrCreateChild(kG),O=E.createStyle();E.useStyle(O),O.text=c[I],O.x=m,O.y=v,h&&(O.textAlign=h),O.textBaseline="middle",O.opacity=e.opacity,O.strokeFirst=!0,_&&(O.shadowBlur=e.textShadowBlur||0,O.shadowColor=e.textShadowColor||"transparent",O.shadowOffsetX=e.textShadowOffsetX||0,O.shadowOffsetY=e.textShadowOffsetY||0),O.stroke=C,O.fill=S,C&&(O.lineWidth=e.lineWidth||x,O.lineDash=e.lineDash,O.lineDashOffset=e.lineDashOffset||0),O.font=t,GG(O,e),v+=u,k&&E.setBoundingRect(new fz(lF(O.x,s,O.textAlign),sF(O.y,M,O.textBaseline),s,M))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new aW;if(null!=e&&(e+=""),!e)return n;for(var r,o=t.width,i=t.height,a=t.overflow,l="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},s=QV.lastIndex=0;null!=(r=QV.exec(e));){var c=r.index;c>s&&lW(n,e.substring(s,c),t,l),lW(n,r[2],t,l,r[1]),s=QV.lastIndex}s<e.length&&lW(n,e.substring(s,e.length),t,l);var u=[],d=0,p=0,f=t.padding,h="truncate"===a,g="truncate"===t.lineOverflow,m={};function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,p=Math.max(p,t)}e:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],x=0,w=0,S=0;S<b.tokens.length;S++){var C=(N=b.tokens[S]).styleName&&t.rich[N.styleName]||{},_=N.textPadding=C.padding,k=_?_[1]+_[3]:0,M=N.font=C.font||t.font;N.contentHeight=cF(M);var I=Ej(C.height,N.contentHeight);if(N.innerHeight=I,_&&(I+=_[0]+_[2]),N.height=I,N.lineHeight=Oj(C.lineHeight,t.lineHeight,I),N.align=C&&C.align||t.align,N.verticalAlign=C&&C.verticalAlign||"middle",g&&null!=i&&d+N.lineHeight>i){var E=n.lines.length;S>0?(b.tokens=b.tokens.slice(0,S),v(b,w,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y),n.isTruncated=n.isTruncated||n.lines.length<E;break e}var O=C.width,$=null==O||"auto"===O;if("string"===typeof O&&"%"===O.charAt(O.length-1))N.percentWidth=O,u.push(N),N.contentWidth=oF(N.text,M);else{if($){var T=C.backgroundColor,P=T&&T.image;P&&ZV(P=qV(P))&&(N.width=Math.max(N.width,P.width*I/P.height))}var D=h&&null!=o?o-w:null;null!=D&&D<N.width?!$||D<k?(N.text="",N.width=N.contentWidth=0):(eW(m,N.text,D-k,M,t.ellipsis,{minChar:t.truncateMinChar}),N.text=m.text,n.isTruncated=n.isTruncated||m.isTruncated,N.width=N.contentWidth=oF(N.text,M)):N.contentWidth=oF(N.text,M)}N.width+=k,w+=N.width,C&&(x=Math.max(x,N.lineHeight))}v(b,w,x)}for(n.outerWidth=n.width=Ej(o,p),n.outerHeight=n.height=Ej(i,d),n.contentHeight=d,n.contentWidth=p,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),y=0;y<u.length;y++){var N,A=(N=u[y]).percentWidth;N.width=parseInt(A,10)/100*n.width}return n}(ZG(e),e),n=t.width,r=t.outerWidth,o=t.outerHeight,i=e.padding,a=e.x||0,l=e.y||0,s=this._defaultStyle,c=e.align||s.align,u=e.verticalAlign||s.verticalAlign;this.isTruncated=!!t.isTruncated;var d=lF(a,r,c),p=sF(l,o,u),f=d,h=p;i&&(f+=i[3],h+=i[0]);var g=f+n;QG(e)&&this._renderBackground(e,e,d,p,r,o);for(var m=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],b=y.tokens,x=b.length,w=y.lineHeight,S=y.width,C=0,_=f,k=g,M=x-1,I=void 0;C<x&&(!(I=b[C]).align||"left"===I.align);)this._placeToken(I,e,w,h,_,"left",m),S-=I.width,_+=I.width,C++;for(;M>=0&&"right"===(I=b[M]).align;)this._placeToken(I,e,w,h,k,"right",m),S-=I.width,k-=I.width,M--;for(_+=(n-(_-f)-(g-k)-S)/2;C<=M;)I=b[C],this._placeToken(I,e,w,h,_+I.width/2,"center",m),_+=I.width,C++;h+=w}},t.prototype._placeToken=function(e,t,n,r,o,i,a){var l=t.rich[e.styleName]||{};l.text=e.text;var s=e.verticalAlign,c=r+n/2;"top"===s?c=r+e.height/2:"bottom"===s&&(c=r+n-e.height/2),!e.isLineHolder&&QG(l)&&this._renderBackground(l,t,"right"===i?o-e.width:"center"===i?o-e.width/2:o,c-e.height/2,e.width,e.height);var u=!!l.backgroundColor,d=e.textPadding;d&&(o=KG(o,i,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(kG),f=p.createStyle();p.useStyle(f);var h=this._defaultStyle,g=!1,m=0,v=XG("fill"in l?l.fill:"fill"in t?t.fill:(g=!0,h.fill)),y=qG("stroke"in l?l.stroke:"stroke"in t?t.stroke:u||a||h.autoStroke&&!g?null:(m=2,h.stroke)),b=l.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=o,f.y=c,b&&(f.shadowBlur=l.textShadowBlur||t.textShadowBlur||0,f.shadowColor=l.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=l.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=l.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=i,f.textBaseline="middle",f.font=e.font||PR,f.opacity=Oj(l.opacity,t.opacity,1),GG(f,l),y&&(f.lineWidth=Oj(l.lineWidth,t.lineWidth,m),f.lineDash=Ej(l.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=y),v&&(f.fill=v);var x=e.contentWidth,w=e.contentHeight;p.setBoundingRect(new fz(lF(f.x,x,f.textAlign),sF(f.y,w,f.textBaseline),x,w))},t.prototype._renderBackground=function(e,t,n,r,o,i){var a,l,s,c=e.backgroundColor,u=e.borderWidth,d=e.borderColor,p=c&&c.image,f=c&&!p,h=e.borderRadius,g=this;if(f||e.lineHeight||u&&d){(a=this._getOrCreateChild(jG)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=o,m.height=i,m.r=h,a.dirtyShape()}if(f)(s=a.style).fill=c||null,s.fillOpacity=Ej(e.fillOpacity,1);else if(p){(l=this._getOrCreateChild(OG)).onload=function(){g.dirtyStyle()};var v=l.style;v.image=c.image,v.x=n,v.y=r,v.width=o,v.height=i}u&&d&&((s=a.style).lineWidth=u,s.stroke=d,s.strokeOpacity=Ej(e.strokeOpacity,1),s.lineDash=e.borderDash,s.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(s.strokeFirst=!0,s.lineWidth*=2));var y=(a||l).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Oj(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return UG(e)&&(t=[e.fontStyle,e.fontWeight,WG(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Dj(t)||e.textFont||e.font},t}(bW),HG={left:!0,right:1,center:1},FG={top:1,bottom:1,middle:1},VG=["fontStyle","fontWeight","fontSize","fontFamily"];function WG(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e}function GG(e,t){for(var n=0;n<VG.length;n++){var r=VG[n],o=t[r];null!=o&&(e[r]=o)}}function UG(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function YG(e){if(e){e.font=BG.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||HG[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||FG[n]?n:"top",e.padding&&(e.padding=Tj(e.padding))}}function qG(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function XG(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function KG(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function ZG(e){var t=e.text;return null!=t&&(t+=""),t}function QG(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const JG=BG;var eU=kV(),tU=function(e,t,n,r){if(r){var o=eU(r);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===r.type&&r.traverse(function(r){var o=eU(r);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"})}},nU=1,rU={},oU=kV(),iU=kV(),aU=["emphasis","blur","select"],lU=["normal","emphasis","blur","select"],sU=10,cU=9,uU="highlight",dU="downplay",pU="select",fU="unselect",hU="toggleSelect";function gU(e){return null!=e&&"none"!==e}function mU(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function vU(e){mU(e,"emphasis",2)}function yU(e){2===e.hoverState&&mU(e,"normal",0)}function bU(e){mU(e,"blur",1)}function xU(e){1===e.hoverState&&mU(e,"normal",0)}function wU(e){e.selected=!0}function SU(e){e.selected=!1}function CU(e,t,n){t(e,n)}function _U(e,t,n){CU(e,t,n),e.isGroup&&e.traverse(function(e){CU(e,t,n)})}function kU(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function MU(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var o=n&&nj(n,"select")>=0,i=!1;if(e instanceof SG){var a=oU(e),l=o&&a.selectFill||a.normalFill,s=o&&a.selectStroke||a.normalStroke;if(gU(l)||gU(s)){var c=(r=r||{}).style||{};"inherit"===c.fill?(i=!0,r=JR({},r),(c=JR({},c)).fill=l):!gU(c.fill)&&gU(l)?(i=!0,r=JR({},r),(c=JR({},c)).fill=WB(l)):!gU(c.stroke)&&gU(s)&&(i||(r=JR({},r),c=JR({},c)),c.stroke=WB(s)),r.style=c}}if(r&&null==r.z2){i||(r=JR({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(null!=u?u:sU)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=nj(e.currentStates,t)>=0,o=e.style.opacity,i=r?null:function(e,t,n,r){for(var o=e.style,i={},a=0;a<t.length;a++){var l=t[a],s=o[l];i[l]=null==s?r&&r[l]:s}for(a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(i,t)}return i}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=JR({},n),a=JR({opacity:r?o:.1*i.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=JR({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:cU)}return n}(this,0,n)}return n}function IU(e){e.stateProxy=MU;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=MU),n&&(n.stateProxy=MU)}function EU(e,t){!RU(e,t)&&!e.__highByOuter&&_U(e,vU)}function OU(e,t){!RU(e,t)&&!e.__highByOuter&&_U(e,yU)}function $U(e,t){e.__highByOuter|=1<<(t||0),_U(e,vU)}function TU(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&_U(e,yU)}function PU(e){_U(e,bU)}function DU(e){_U(e,xU)}function NU(e){_U(e,wU)}function AU(e){_U(e,SU)}function RU(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function jU(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,o){var i=iU(o),a="series"===t,l=a?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!a&&r.push(l),i.isBlured&&(l.group.traverse(function(e){xU(e)}),a&&n.push(o)),i.isBlured=!1}),aj(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function LU(e,t,n,r){var o=r.getModel();function i(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&DU(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=o.getSeriesByIndex(e),l=a.coordinateSystem;l&&l.master&&(l=l.master);var s=[];o.eachSeries(function(e){var o=a===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l:o)||"series"===t&&o)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&o&&"self"===t||bU(e)}),ij(t))i(e.getData(),t);else if(bj(t))for(var u=dj(t),d=0;d<u.length;d++)i(e.getData(u[d]),t[u[d]]);s.push(e),iU(e).isBlured=!0}}),o.eachComponent(function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(s,!0,o)}})}}function zU(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){iU(r).isBlured=!0;var o=n.getViewOfComponentModel(r);o&&o.focusBlurEnabled&&o.group.traverse(function(e){bU(e)})}}}function BU(e,t,n,r){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var i=r.getModel().getComponent(e,t);if(!i)return o;var a=r.getViewOfComponentModel(i);if(!a||!a.findHighDownDispatchers)return o;for(var l,s=a.findHighDownDispatchers(n),c=0;c<s.length;c++)if("self"===eU(s[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:s}}function HU(e){aj(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?NU(t):AU(t)})})}function FU(e){var t=[];return e.eachSeries(function(e){aj(e.getAllData(),function(n){n.data;var r=n.type,o=e.getSelectedDataIndices();if(o.length>0){var i={dataIndex:o,seriesIndex:e.seriesIndex};null!=r&&(i.dataType=r),t.push(i)}})}),t}function VU(e,t,n){XU(e,!0),_U(e,IU),GU(e,t,n)}function WU(e,t,n,r){r?function(e){XU(e,!1)}(e):VU(e,t,n)}function GU(e,t,n){var r=eU(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var UU=["emphasis","blur","select"],YU={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qU(e,t,n,r){n=n||"itemStyle";for(var o=0;o<UU.length;o++){var i=UU[o],a=t.getModel([i,n]);e.ensureState(i).style=r?r(a):a[YU[n]]()}}function XU(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function KU(e){return!(!e||!e.__highDownDispatcher)}function ZU(e){var t=e.type;return t===pU||t===fU||t===hU}function QU(e){var t=e.type;return t===uU||t===dU}var JU=kV();function eY(e,t,n,r,o){var i;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();i=a&&a.animation}var l="update"===e;if(t&&t.isAnimationEnabled()){var s=void 0,c=void 0,u=void 0;return r?(s=Ej(r.duration,200),c=Ej(r.easing,"cubicOut"),u=0):(s=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),u=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(null!=i.duration&&(s=i.duration),null!=i.easing&&(c=i.easing),null!=i.delay&&(u=i.delay)),gj(u)&&(u=u(n,o)),gj(s)&&(s=s(n)),{duration:s||0,delay:u,easing:c}}return null}function tY(e,t,n,r,o,i,a){var l,s=!1;gj(o)?(a=i,i=o,o=null):bj(o)&&(i=o.cb,a=o.during,s=o.isFrom,l=o.removeOpt,o=o.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var u=eY(e,r,o,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,o):null);if(u&&u.duration>0){var d={duration:u.duration,delay:u.delay||0,easing:u.easing,done:i,force:!!i||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),i&&i()}function nY(e,t,n,r,o,i){tY("update",e,t,n,r,o,i)}function rY(e,t,n,r,o,i){tY("enter",e,t,n,r,o,i)}function oY(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function iY(e,t,n,r,o,i){oY(e)||tY("leave",e,t,n,r,o,i)}function aY(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),iY(e,{style:{opacity:0}},t,n,r)}function lY(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||aY(e,t,n,r)}):aY(e,t,n,r)}function sY(e){JU(e).oldStyle=e.style}var cY={};function uY(e,t){for(var n=0;n<aU.length;n++){var r=aU[n],o=t[r],i=e.ensureState(r);i.style=i.style||{},i.style.text=o}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function dY(e,t,n){var r,o=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,l=t.normal;o&&(r=o.getFormattedLabel(i,"normal",null,a,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=gj(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var s={normal:r},c=0;c<aU.length;c++){var u=aU[c],d=t[u];s[u]=Ej(o?o.getFormattedLabel(i,u,null,a,d&&d.get("formatter")):null,r)}return s}function pY(e,t,n,r){n=n||cY;for(var o=e instanceof JG,i=!1,a=0;a<lU.length;a++){if((p=t[lU[a]])&&p.getShallow("show")){i=!0;break}}var l=o?e:e.getTextContent();if(i){o||(l||(l=new JG,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var s=dY(n,t),c=t.normal,u=!!c.getShallow("show"),d=hY(c,r&&r.normal,n,!1,!o);d.text=s.normal,o||e.setTextConfig(gY(c,n,!1));for(a=0;a<aU.length;a++){var p,f=aU[a];if(p=t[f]){var h=l.ensureState(f),g=!!Ej(p.getShallow("show"),u);if(g!==u&&(h.ignore=!g),h.style=hY(p,r&&r[f],n,!0,!o),h.style.text=s[f],!o)e.ensureState(f).textConfig=gY(p,n,!0)}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!u,l.useStyle(d),l.dirty(),n.enableTextSetter&&(wY(l).setLabelText=function(e){var r=dY(n,t,e);uY(l,r)})}else l&&(l.ignore=!0);e.dirty()}function fY(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<aU.length;r++){var o=aU[r];n[o]=e.getModel([o,t])}return n}function hY(e,t,n,r,o){var i={};return function(e,t,n,r,o){n=n||cY;var i,a=t.ecModel,l=a&&a.option.textStyle,s=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||cY).rich;if(n){t=t||{};for(var r=dj(n),o=0;o<r.length;o++){t[r[o]]=1}}e=e.parentModel}return t}(t);if(s)for(var c in i={},s)if(s.hasOwnProperty(c)){var u=t.getModel(["rich",c]);bY(i[c]={},u,l,n,r,o,!1,!0)}i&&(e.rich=i);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("minMargin");null!=p&&(e.margin=p);bY(e,t,l,n,r,o,!0,!1)}(i,e,n,r,o),t&&JR(i,t),i}function gY(e,t,n){t=t||{};var r,o={},i=e.getShallow("rotate"),a=Ej(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(o.position=r),null!=l&&(o.offset=l),null!=i&&(i*=Math.PI/180,o.rotation=i),null!=a&&(o.distance=a),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}var mY=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],vY=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],yY=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bY(e,t,n,r,o,i,a,l){n=!o&&n||cY;var s=r&&r.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),d=Ej(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=s||null),"inherit"!==u&&"auto"!==u||(u=s||null),i||(c=c||n.color,u=u||n.textBorderColor),null!=c&&(e.fill=c),null!=u&&(e.stroke=u);var p=Ej(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var f=Ej(t.getShallow("textBorderType"),n.textBorderType);null!=f&&(e.lineDash=f);var h=Ej(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=h&&(e.lineDashOffset=h),o||null!=d||l||(d=r&&r.defaultOpacity),null!=d&&(e.opacity=d),o||i||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<mY.length;g++){var m=mY[g];null!=(y=Ej(t.getShallow(m),n[m]))&&(e[m]=y)}for(g=0;g<vY.length;g++){m=vY[g];null!=(y=t.getShallow(m))&&(e[m]=y)}if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!r.disableBox){for(g=0;g<yY.length;g++){var y;m=yY[g];null!=(y=t.getShallow(m))&&(e[m]=y)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!s||(e.backgroundColor=s),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!s||(e.borderColor=s)}}function xY(e,t){var n=t&&t.getModel("textStyle");return Dj([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var wY=kV();function SY(e,t,n,r){if(e){var o=wY(e);o.prevValue=o.value,o.value=n;var i=t.normal;o.valueAnimation=i.get("valueAnimation"),o.valueAnimation&&(o.precision=i.get("precision"),o.defaultInterpolatedText=r,o.statesModels=t)}}function CY(e,t,n,r,o){var i=wY(e);if(i.valueAnimation&&i.prevValue!==i.value){var a=i.defaultInterpolatedText,l=Ej(i.interpolatedValue,i.prevValue),s=i.value;e.percent=0,(null==i.prevValue?rY:nY)(e,{percent:1},r,t,null,function(r){var c=NV(n,i.precision,l,s,r);i.interpolatedValue=1===r?null:c;var u=dY({labelDataIndex:t,labelFetcher:o,defaultText:a?a(c):c+""},i.statesModels,c);uY(e,u)})}}var _Y=["textStyle","color"],kY=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],MY=new JG,IY=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(_Y):null)},e.prototype.getFont=function(){return xY({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<kY.length;n++)t[kY[n]]=this.getShallow(kY[n]);return MY.useStyle(t),MY.update(),MY.getBoundingRect()},e}();const EY=IY;var OY=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$Y=WV(OY),TY=function(){function e(){}return e.prototype.getLineStyle=function(e){return $Y(this,e)},e}(),PY=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],DY=WV(PY),NY=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return DY(this,e,t)},e}(),AY=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o]},e.prototype.mergeOption=function(e,t){ZR(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var o=this.parentModel;o&&(r=o.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,o=r?this.parsePath(t):null;return new e(r?this._doGet(o):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(KR(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!$R.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"===typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();LV(AY),function(e){var t=["__\0is_clz",BV++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}(AY),oj(AY,TY),oj(AY,NY),oj(AY,UV),oj(AY,EY);const RY=AY;var jY=Math.round(10*Math.random());function LY(e){return[e||"",jY++].join("_")}function zY(e,t){return ZR(ZR({},e,!0),t,!0)}var BY="ZH",HY="EN",FY=HY,VY={},WY={},GY=$R.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||FY).toUpperCase().indexOf(BY)>-1?BY:FY;function UY(e,t){e=e.toUpperCase(),WY[e]=new RY(t),VY[e]=t}function YY(e){return WY[e]}UY(HY,{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:". "}}}}),UY(BY,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var qY=1e3,XY=6e4,KY=36e5,ZY=864e5,QY=31536e6,JY={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}"},eq="{yyyy}-{MM}-{dd}",tq={year:"{yyyy}",month:"{yyyy}-{MM}",day:eq,hour:eq+" "+JY.hour,minute:eq+" "+JY.minute,second:eq+" "+JY.second,millisecond:JY.none},nq=["year","month","day","hour","minute","second","millisecond"],rq=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function oq(e,t){return"0000".substr(0,t-(e+="").length)+e}function iq(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 aq(e){return e===iq(e)}function lq(e,t,n,r){var o=JF(e),i=o[uq(n)](),a=o[dq(n)]()+1,l=Math.floor((a-1)/3)+1,s=o[pq(n)](),c=o["get"+(n?"UTC":"")+"Day"](),u=o[fq(n)](),d=(u-1)%12+1,p=o[hq(n)](),f=o[gq(n)](),h=o[mq(n)](),g=u>=12?"pm":"am",m=g.toUpperCase(),v=(r instanceof RY?r:YY(r||GY)||WY[FY]).getModel("time"),y=v.get("month"),b=v.get("monthAbbr"),x=v.get("dayOfWeek"),w=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,oq(i%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,oq(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,oq(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,x[c]).replace(/{ee}/g,w[c]).replace(/{e}/g,c+"").replace(/{HH}/g,oq(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,oq(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,oq(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,oq(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,oq(h,3)).replace(/{S}/g,h+"")}function sq(e,t){var n=JF(e),r=n[dq(t)]()+1,o=n[pq(t)](),i=n[fq(t)](),a=n[hq(t)](),l=n[gq(t)](),s=0===n[mq(t)](),c=s&&0===l,u=c&&0===a,d=u&&0===i,p=d&&1===o;return p&&1===r?"year":p?"month":d?"day":u?"hour":c?"minute":s?"second":"millisecond"}function cq(e,t,n){var r=yj(e)?JF(e):e;switch(t=t||sq(e,n)){case"year":return r[uq(n)]();case"half-year":return r[dq(n)]()>=6?1:0;case"quarter":return Math.floor((r[dq(n)]()+1)/4);case"month":return r[dq(n)]();case"day":return r[pq(n)]();case"half-day":return r[fq(n)]()/24;case"hour":return r[fq(n)]();case"minute":return r[hq(n)]();case"second":return r[gq(n)]();case"millisecond":return r[mq(n)]()}}function uq(e){return e?"getUTCFullYear":"getFullYear"}function dq(e){return e?"getUTCMonth":"getMonth"}function pq(e){return e?"getUTCDate":"getDate"}function fq(e){return e?"getUTCHours":"getHours"}function hq(e){return e?"getUTCMinutes":"getMinutes"}function gq(e){return e?"getUTCSeconds":"getSeconds"}function mq(e){return e?"getUTCMilliseconds":"getMilliseconds"}function vq(e){return e?"setUTCFullYear":"setFullYear"}function yq(e){return e?"setUTCMonth":"setMonth"}function bq(e){return e?"setUTCDate":"setDate"}function xq(e){return e?"setUTCHours":"setHours"}function wq(e){return e?"setUTCMinutes":"setMinutes"}function Sq(e){return e?"setUTCSeconds":"setSeconds"}function Cq(e){return e?"setUTCMilliseconds":"setMilliseconds"}function _q(e){if(!aV(e))return mj(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function kq(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 Mq=Tj;function Iq(e,t,n){function r(e){return e&&Dj(e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var i="time"===t,a=e instanceof Date;if(i||a){var l=i?JF(e):e;if(!isNaN(+l))return lq(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return vj(e)?r(e):yj(e)&&o(e)?e+"":"-";var s=iV(e);return o(s)?_q(s):vj(e)?r(e):"boolean"===typeof e?e+"":"-"}var Eq=["a","b","c","d","e","f","g"],Oq=function(e,t){return"{"+e+(null==t?"":t)+"}"};function $q(e,t,n){hj(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],i=0;i<o.length;i++){var a=Eq[i];e=e.replace(Oq(a),Oq(a,0))}for(var l=0;l<r;l++)for(var s=0;s<o.length;s++){var c=t[l][o[s]];e=e.replace(Oq(Eq[s],l),n?PL(c):c)}return e}function Tq(e,t){var n=mj(e)?{color:e,extraCssText:t}:e||{},r=n.color,o=n.type;t=n.extraCssText;var i=n.renderMode||"html";return r?"html"===i?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+PL(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+PL(r)+";"+(t||"")+'"></span>':{renderMode:i,content:"{"+(n.markerId||"markerX")+"|}  ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function Pq(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=JF(t),o=n?"getUTC":"get",i=r[o+"FullYear"](),a=r[o+"Month"]()+1,l=r[o+"Date"](),s=r[o+"Hours"](),c=r[o+"Minutes"](),u=r[o+"Seconds"](),d=r[o+"Milliseconds"]();return e=e.replace("MM",oq(a,2)).replace("M",a).replace("yyyy",i).replace("yy",oq(i%100+"",2)).replace("dd",oq(l,2)).replace("d",l).replace("hh",oq(s,2)).replace("h",s).replace("mm",oq(c,2)).replace("m",c).replace("ss",oq(u,2)).replace("s",u).replace("SSS",oq(d,3))}function Dq(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function Nq(e,t){return t=t||"transparent",mj(e)?e:bj(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Aq(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Rq=aj,jq=["left","right","top","bottom","width","height"],Lq=[["width","left","right"],["height","top","bottom"]];function zq(e,t,n,r,o){var i=0,a=0;null==r&&(r=1/0),null==o&&(o=1/0);var l=0;t.eachChild(function(s,c){var u,d,p=s.getBoundingRect(),f=t.childAt(c+1),h=f&&f.getBoundingRect();if("horizontal"===e){var g=p.width+(h?-h.x+p.x:0);(u=i+g)>r||s.newline?(i=0,u=g,a+=l+n,l=p.height):l=Math.max(l,p.height)}else{var m=p.height+(h?-h.y+p.y:0);(d=a+m)>o||s.newline?(i+=l+n,a=0,d=m,l=p.width):l=Math.max(l,p.width)}s.newline||(s.x=i,s.y=a,s.markRedraw(),"horizontal"===e?i=u+n:a=d+n)})}var Bq=zq;fj(zq,"vertical"),fj(zq,"horizontal");function Hq(e,t,n){n=Mq(n||0);var r=t.width,o=t.height,i=BF(e.left,r),a=BF(e.top,o),l=BF(e.right,r),s=BF(e.bottom,o),c=BF(e.width,r),u=BF(e.height,o),d=n[2]+n[0],p=n[1]+n[3],f=e.aspect;switch(isNaN(c)&&(c=r-l-p-i),isNaN(u)&&(u=o-s-d-a),null!=f&&(isNaN(c)&&isNaN(u)&&(f>r/o?c=.8*r:u=.8*o),isNaN(c)&&(c=f*u),isNaN(u)&&(u=c/f)),isNaN(i)&&(i=r-l-c-p),isNaN(a)&&(a=o-s-u-d),e.left||e.right){case"center":i=r/2-c/2-n[3];break;case"right":i=r-c-p}switch(e.top||e.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-d}i=i||0,a=a||0,isNaN(c)&&(c=r-p-i-(l||0)),isNaN(u)&&(u=o-d-a-(s||0));var h=new fz(i+n[3],a+n[0],c,u);return h.margin=n,h}function Fq(e,t,n,r,o,i){var a,l=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if((i=i||e).x=e.x,i.y=e.y,!l&&!s)return!1;if("raw"===c)a="group"===e.type?new fz(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(a=a.clone()).applyTransform(u)}var d=Hq(ej({width:a.width,height:a.height},t),n,r),p=l?d.x-a.x:0,f=s?d.y-a.y:0;return"raw"===c?(i.x=p,i.y=f):(i.x+=p,i.y+=f),i===e&&e.markRedraw(),!0}function Vq(e){var t=e.layoutMode||e.constructor.layoutMode;return bj(t)?t:t?{type:t}:null}function Wq(e,t,n){var r=n&&n.ignoreSize;!hj(r)&&(r=[r,r]);var o=a(Lq[0],0),i=a(Lq[1],1);function a(n,o){var i={},a=0,c={},u=0;if(Rq(n,function(t){c[t]=e[t]}),Rq(n,function(e){l(t,e)&&(i[e]=c[e]=t[e]),s(i,e)&&a++,s(c,e)&&u++}),r[o])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(2!==u&&a){if(a>=2)return i;for(var d=0;d<n.length;d++){var p=n[d];if(!l(i,p)&&l(e,p)){i[p]=e[p];break}}return i}return c}function l(e,t){return e.hasOwnProperty(t)}function s(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){Rq(e,function(e){t[e]=n[e]})}c(Lq[0],e,o),c(Lq[1],e,i)}function Gq(e){return Uq({},e)}function Uq(e,t){return t&&e&&Rq(jq,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Yq=kV(),qq=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.uid=LY("ec_cpt_model"),o}return MR(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vq(this),r=n?Gq(e):{};ZR(e,t.getTheme().get(this.mainType)),ZR(e,this.getDefaultOption()),n&&Wq(e,r,n)},t.prototype.mergeOption=function(e,t){ZR(this.option,e,!0);var n=Vq(this);n&&Wq(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[RV])}(e))return e.defaultOption;var t=Yq(this);if(!t.defaultOption){for(var n=[],r=e;r;){var o=r.prototype.defaultOption;o&&n.push(o),r=r.superClass}for(var i={},a=n.length-1;a>=0;a--)i=ZR(i,n[a],!0);t.defaultOption=i}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return TV(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}(RY);zV(qq,RY),VV(qq),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=jV(e);t[r.main]=n},e.determineSubType=function(n,r){var o=r.type;if(!o){var i=jV(n).main;e.hasSubTypes(n)&&t[i]&&(o=t[i](r))}return o}}(qq),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,o,i){if(e.length){var a=function(e){var r={},o=[];return aj(e,function(i){var a=n(r,i),l=function(e,t){var n=[];return aj(e,function(e){nj(t,e)>=0&&n.push(e)}),n}(a.originalDeps=t(i),e);a.entryCount=l.length,0===a.entryCount&&o.push(i),aj(l,function(e){nj(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);nj(t.successor,e)<0&&t.successor.push(i)})}),{graph:r,noEntryList:o}}(r),l=a.graph,s=a.noEntryList,c={};for(aj(e,function(e){c[e]=!0});s.length;){var u=s.pop(),d=l[u],p=!!c[u];p&&(o.call(i,u,d.originalDeps.slice()),delete c[u]),aj(d.successor,p?h:f)}aj(c,function(){throw new Error("")})}function f(e){l[e].entryCount--,0===l[e].entryCount&&s.push(e)}function h(e){c[e]=!0,f(e)}}}(qq,function(e){var t=[];aj(qq.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=lj(t,function(e){return jV(e).main}),"dataset"!==e&&nj(t,"dataset")<=0&&t.unshift("dataset");return t});const Xq=qq;var Kq="";"undefined"!==typeof navigator&&(Kq=navigator.platform||"");var Zq="rgba(0, 0, 0, 0.2)";const Qq={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zq,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zq,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zq,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zq,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zq,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zq,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Kq.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jq=Bj(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),eX="original",tX="arrayRows",nX="objectRows",rX="keyedColumns",oX="typedArray",iX="unknown",aX="column",lX="row",sX={Must:1,Might:2,Not:3},cX=kV();function uX(e,t,n){var r={},o=pX(t);if(!o||!e)return r;var i,a,l=[],s=[],c=t.ecModel,u=cX(c).datasetMap,d=o.uid+"_"+n.seriesLayoutBy;aj(e=e.slice(),function(t,n){var o=bj(t)?t:e[n]={name:t};"ordinal"===o.type&&null==i&&(i=n,a=h(o)),r[o.name]=[]});var p=u.get(d)||u.set(d,{categoryWayDim:a,valueWayDim:0});function f(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function h(e){var t=e.dimsDef;return t?t.length:1}return aj(e,function(e,t){var n=e.name,o=h(e);if(null==i){var a=p.valueWayDim;f(r[n],a,o),f(s,a,o),p.valueWayDim+=o}else if(i===t)f(r[n],0,o),f(l,0,o);else{a=p.categoryWayDim;f(r[n],a,o),f(s,a,o),p.categoryWayDim+=o}}),l.length&&(r.itemName=l),s.length&&(r.seriesName=s),r}function dX(e,t,n){var r={};if(!pX(e))return r;var o,i=t.sourceFormat,a=t.dimensionsDefine;i!==nX&&i!==rX||aj(a,function(e,t){"name"===(bj(e)?e.name:e)&&(o=t)});var l=function(){for(var e={},r={},l=[],s=0,c=Math.min(5,n);s<c;s++){var u=hX(t.data,i,t.seriesLayoutBy,a,t.startIndex,s);l.push(u);var d=u===sX.Not;if(d&&null==e.v&&s!==o&&(e.v=s),(null==e.n||e.n===e.v||!d&&l[e.n]===sX.Not)&&(e.n=s),p(e)&&l[e.n]!==sX.Not)return e;d||(u===sX.Might&&null==r.v&&s!==o&&(r.v=s),null!=r.n&&r.n!==r.v||(r.n=s))}function p(e){return null!=e.v&&null!=e.n}return p(e)?e:p(r)?r:null}();if(l){r.value=[l.v];var s=null!=o?o:l.n;r.itemName=[s],r.seriesName=[s]}return r}function pX(e){if(!e.get("data",!0))return TV(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},OV).models[0]}function fX(e,t){return hX(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function hX(e,t,n,r,o,i){var a,l,s;if(wj(e))return sX.Not;if(r){var c=r[i];bj(c)?(l=c.name,s=c.type):mj(c)&&(l=c)}if(null!=s)return"ordinal"===s?sX.Must:sX.Not;if(t===tX){var u=e;if(n===lX){for(var d=u[i],p=0;p<(d||[]).length&&p<5;p++)if(null!=(a=b(d[o+p])))return a}else for(p=0;p<u.length&&p<5;p++){var f=u[o+p];if(f&&null!=(a=b(f[i])))return a}}else if(t===nX){var h=e;if(!l)return sX.Not;for(p=0;p<h.length&&p<5;p++){if((v=h[p])&&null!=(a=b(v[l])))return a}}else if(t===rX){var g=e;if(!l)return sX.Not;if(!(d=g[l])||wj(d))return sX.Not;for(p=0;p<d.length&&p<5;p++)if(null!=(a=b(d[p])))return a}else if(t===eX){var m=e;for(p=0;p<m.length&&p<5;p++){var v,y=mV(v=m[p]);if(!hj(y))return sX.Not;if(null!=(a=b(y[i])))return a}}function b(e){var t=mj(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?sX.Might:sX.Not:t&&"-"!==e?sX.Must:void 0}return sX.Not}var gX=Bj();var mX,vX,yX,bX=kV(),xX=kV(),wX=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=fV(this.get("color",!0)),o=this.get("colorLayer",!0);return CX(this,bX,r,o,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,bX)},e}();function SX(e,t,n,r){var o=fV(e.get(["aria","decal","decals"]));return CX(e,xX,o,null,t,n,r)}function CX(e,t,n,r,o,i,a){var l=t(i=i||e),s=l.paletteIdx||0,c=l.paletteNameMap=l.paletteNameMap||{};if(c.hasOwnProperty(o))return c[o];var u=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if((u=u||n)&&u.length){var d=u[s];return o&&(c[o]=d),l.paletteIdx=(s+1)%u.length,d}}var _X="\0_ec_inner";var kX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.init=function(e,t,n,r,o,i){r=r||{},this.option=null,this._theme=new RY(r),this._locale=new RY(o),this._optionManager=i},t.prototype.setOption=function(e,t,n){var r=EX(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,EX(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var o=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(o,t)):yX(this,o),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var i=r.getTimelineOption(this);i&&(n=!0,this._mergeOption(i,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&aj(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,o=this._componentsCount,i=[],a=Bj(),l=t&&t.replaceMergeMainTypeMap;cX(this).datasetMap=Bj(),aj(e,function(e,t){null!=e&&(Xq.hasClass(t)?t&&(i.push(t),a.set(t,!0)):n[t]=null==n[t]?KR(e):ZR(n[t],e,!0))}),l&&l.each(function(e,t){Xq.hasClass(t)&&!a.get(t)&&(i.push(t),a.set(t,!0))}),Xq.topologicalTravel(i,Xq.getAllClassMainTypes(),function(t){var i=function(e,t,n){var r=gX.get(t);if(!r)return n;var o=r(e);return o?n.concat(o):n}(this,t,fV(e[t])),a=r.get(t),s=a?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=yV(a,i,s);(function(e,t,n){aj(e,function(e){var r=e.newOption;bj(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(c,t,Xq),n[t]=null,r.set(t,null),o.set(t,0);var u,d=[],p=[],f=0;aj(c,function(e,n){var r=e.existing,o=e.newOption;if(o){var i="series"===t,a=Xq.getClass(t,e.keyInfo.subType,!i);if(!a)return;if("tooltip"===t){if(u)return void 0;u=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var l=JR({componentIndex:n},e.keyInfo);JR(r=new a(o,this,this,l),l),e.brandNew&&(r.__requireNewView=!0),r.init(o,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),p.push(r),f++):(d.push(void 0),p.push(void 0))},this),n[t]=d,r.set(t,p),o.set(t,f),"series"===t&&mX(this)},this),this._seriesIndices||mX(this)},t.prototype.getOption=function(){var e=KR(this.option);return aj(e,function(t,n){if(Xq.hasClass(n)){for(var r=fV(t),o=r.length,i=!1,a=o-1;a>=0;a--)r[a]&&!CV(r[a])?i=!0:(r[a]=null,!i&&o--);r.length=o,e[n]=r}}),delete e[_X],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 o=0;o<n.length;o++)if(n[o])return n[o]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,o=e.id,i=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],aj(fV(r),function(e){a[e]&&n.push(a[e])})):n=null!=o?MX("id",o,a):null!=i?MX("name",i,a):cj(a,function(e){return!!e}),IX(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=function(e){var t=n+"Index",r=n+"Id",o=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[o]?null:{mainType:n,index:e[t],id:e[r],name:e[o]}}(t);return function(t){return e.filter?cj(t,e.filter):t}(IX(r?this.queryComponents(r):cj(this._componentsMap.get(n),function(e){return!!e}),e))},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(gj(e)){var o=t,i=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&i.call(o,t,r,r.componentIndex)}})}else for(var a=mj(e)?r.get(e):bj(e)?this.findComponents(e):null,l=0;a&&l<a.length;l++){var s=a[l];s&&t.call(n,s,s.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=wV(e,null);return cj(this._componentsMap.get("series"),function(e){return!!e&&null!=t&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return cj(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return cj(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){vX(this),aj(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){aj(this._componentsMap.get("series"),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){vX(this),aj(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];o.subType===e&&t.call(n,o,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return aj(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return vX(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){vX(this);var n=[];aj(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];e.call(t,o,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=Bj(n)},t.prototype.restoreData=function(e){mX(this);var t=this._componentsMap,n=[];t.each(function(e,t){Xq.hasClass(t)&&n.push(t)}),Xq.topologicalTravel(n,Xq.getAllClassMainTypes(),function(n){aj(t.get(n),function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,o=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=o&&e.name!==o}}(t,e)||t.restoreData()})})},t.internalField=(mX=function(e){var t=e._seriesIndices=[];aj(e._componentsMap.get("series"),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=Bj(t)},vX=function(e){},void(yX=function(e,t){e.option={},e.option[_X]=1,e._componentsMap=Bj({series:[]}),e._componentsCount=Bj();var n=t.aria;bj(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;aj(t,function(t,r){"colorLayer"===r&&n||Xq.hasClass(r)||("object"===typeof t?e[r]=e[r]?ZR(e[r],t,!1):KR(t):null==e[r]&&(e[r]=t))})}(t,e._theme.option),ZR(t,Qq,!1),e._mergeOption(t,null)})),t}(RY);function MX(e,t,n){if(hj(t)){var r=Bj();return aj(t,function(e){null!=e&&(null!=wV(e,null)&&r.set(e,!0))}),cj(n,function(t){return t&&r.get(t[e])})}var o=wV(t,null);return cj(n,function(t){return t&&null!=o&&t[e]===o})}function IX(e,t){return t.hasOwnProperty("subType")?cj(e,function(e){return e&&e.subType===t.subType}):e}function EX(e){var t=Bj();return e&&aj(fV(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}oj(kX,wX);const OX=kX;var $X=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const TX=function(e){aj($X,function(t){this[t]=pj(e[t],e)},this)};var PX={},DX=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];aj(PX,function(r,o){var i=r.create(e,t);n=n.concat(i||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){aj(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){PX[e]=t},e.get=function(e){return PX[e]},e}();const NX=DX;var AX=/^(min|max)?(.+)$/,RX=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(aj(fV(e.series),function(e){e&&e.data&&wj(e.data)&&Aj(e.data)}),aj(fV(e.dataset),function(e){e&&e.source&&wj(e.source)&&Aj(e.source)})),e=KR(e);var r=this._optionBackup,o=function(e,t,n){var r,o,i=[],a=e.baseOption,l=e.timeline,s=e.options,c=e.media,u=!!e.media,d=!!(s||l||a&&a.timeline);a?(o=a).timeline||(o.timeline=l):((d||u)&&(e.options=e.media=null),o=e);u&&hj(c)&&aj(c,function(e){e&&e.option&&(e.query?i.push(e):r||(r=e))});function p(e){aj(t,function(t){t(e,n)})}return p(o),aj(s,function(e){return p(e)}),aj(i,function(e){return p(e.option)}),{baseOption:o,timelineOptions:s||[],mediaDefault:r,mediaList:i}}(e,t,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],KR(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=KR(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),o=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,l=[],s=[];if(!i.length&&!a)return s;for(var c=0,u=i.length;c<u;c++)jX(i[c].query,r,o)&&l.push(c);return!l.length&&a&&(l=[-1]),l.length&&(t=l,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(s=lj(l,function(e){return KR(-1===e?a.option:i[e].option)})),this._currentMediaIndices=l,s},e}();function jX(e,t,n){var r={width:t,height:n,aspectratio:t/n},o=!0;return aj(e,function(e,t){var n=t.match(AX);if(n&&n[1]&&n[2]){var i=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,i)||(o=!1)}}),o}const LX=RX;var zX=aj,BX=bj,HX=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function FX(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=HX.length;n<r;n++){var o=HX[n],i=t.normal,a=t.emphasis;i&&i[o]&&(e[o]=e[o]||{},e[o].normal?ZR(e[o].normal,i[o]):e[o].normal=i[o],i[o]=null),a&&a[o]&&(e[o]=e[o]||{},e[o].emphasis?ZR(e[o].emphasis,a[o]):e[o].emphasis=a[o],a[o]=null)}}function VX(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,o=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,ej(e[t],r)):e[t]=r),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o,o.focus&&(e.emphasis.focus=o.focus),o.blurScope&&(e.emphasis.blurScope=o.blurScope))}}function WX(e){VX(e,"itemStyle"),VX(e,"lineStyle"),VX(e,"areaStyle"),VX(e,"label"),VX(e,"labelLine"),VX(e,"upperLabel"),VX(e,"edgeLabel")}function GX(e,t){var n=BX(e)&&e[t],r=BX(n)&&n.textStyle;if(r){0;for(var o=0,i=gV.length;o<i;o++){var a=gV[o];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function UX(e){e&&(WX(e),GX(e,"label"),e.emphasis&&GX(e.emphasis,"label"))}function YX(e){return hj(e)?e:e?[e]:[]}function qX(e){return(hj(e)?e[0]:e)||{}}function XX(e,t){zX(YX(e.series),function(e){BX(e)&&function(e){if(BX(e)){FX(e),WX(e),GX(e,"label"),GX(e,"upperLabel"),GX(e,"edgeLabel"),e.emphasis&&(GX(e.emphasis,"label"),GX(e.emphasis,"upperLabel"),GX(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(FX(t),UX(t));var n=e.markLine;n&&(FX(n),UX(n));var r=e.markArea;r&&UX(r);var o=e.data;if("graph"===e.type){o=o||e.nodes;var i=e.links||e.edges;if(i&&!wj(i))for(var a=0;a<i.length;a++)UX(i[a]);aj(e.categories,function(e){WX(e)})}if(o&&!wj(o))for(a=0;a<o.length;a++)UX(o[a]);if((t=e.markPoint)&&t.data){var l=t.data;for(a=0;a<l.length;a++)UX(l[a])}if((n=e.markLine)&&n.data){var s=n.data;for(a=0;a<s.length;a++)hj(s[a])?(UX(s[a][0]),UX(s[a][1])):UX(s[a])}"gauge"===e.type?(GX(e,"axisLabel"),GX(e,"title"),GX(e,"detail")):"treemap"===e.type?(VX(e.breadcrumb,"itemStyle"),aj(e.levels,function(e){WX(e)})):"tree"===e.type&&WX(e.leaves)}}(e)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),zX(n,function(t){zX(YX(e[t]),function(e){e&&(GX(e,"axisLabel"),GX(e.axisPointer,"label"))})}),zX(YX(e.parallel),function(e){var t=e&&e.parallelAxisDefault;GX(t,"axisLabel"),GX(t&&t.axisPointer,"label")}),zX(YX(e.calendar),function(e){VX(e,"itemStyle"),GX(e,"dayLabel"),GX(e,"monthLabel"),GX(e,"yearLabel")}),zX(YX(e.radar),function(e){GX(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),zX(YX(e.geo),function(e){BX(e)&&(UX(e),zX(YX(e.regions),function(e){UX(e)}))}),zX(YX(e.timeline),function(e){UX(e),VX(e,"label"),VX(e,"itemStyle"),VX(e,"controlStyle",!0);var t=e.data;hj(t)&&aj(t,function(e){bj(e)&&(VX(e,"label"),VX(e,"itemStyle"))})}),zX(YX(e.toolbox),function(e){VX(e,"iconStyle"),zX(e.feature,function(e){VX(e,"iconStyle")})}),GX(qX(e.axisPointer),"label"),GX(qX(e.tooltip).axisPointer,"label")}function KX(e){e&&aj(ZX,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var ZX=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],QX=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],JX=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function eK(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<JX.length;n++){var r=JX[n][1],o=JX[n][0];null!=t[r]&&(t[o]=t[r])}}function tK(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function nK(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function rK(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&rK(e[n].children,t)}function oK(e,t){XX(e,t),e.series=fV(e.series),aj(e.series,function(e){if(bj(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),tK(e.label),(o=e.data)&&!wj(o))for(var n=0;n<o.length;n++)tK(o[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,o=0;o<n.length&&null!=(r=r&&r[n[o]]);o++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var o,i=t.split(","),a=e,l=0;l<i.length-1;l++)null==a[o=i[l]]&&(a[o]={}),a=a[o];(r||null==a[i[l]])&&(a[i[l]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var o;if(eK(e),eK(e.backgroundStyle),eK(e.emphasis),(o=e.data)&&!wj(o))for(n=0;n<o.length;n++)"object"===typeof o[n]&&(eK(o[n]),eK(o[n]&&o[n].emphasis))}else if("sunburst"===t){var i=e.highlightPolicy;i&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=i)),nK(e),rK(e.data,nK)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ej(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),KX(e)}}),e.dataRange&&(e.visualMap=e.dataRange),aj(QX,function(t){var n=e[t];n&&(hj(n)||(n=[n]),aj(n,function(e){KX(e)}))})}function iK(e){aj(e,function(t,n){var r=[],o=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],a=t.data,l=t.isStackedByIndex,s=t.seriesModel.get("stackStrategy")||"samesign";a.modify(i,function(i,c,u){var d,p,f=a.get(t.stackedDimension,u);if(isNaN(f))return o;l?p=a.getRawIndex(u):d=a.get(t.stackedByDimension,u);for(var h=NaN,g=n-1;g>=0;g--){var m=e[g];if(l||(p=m.data.rawIndexOf(m.stackedByDimension,d)),p>=0){var v=m.data.getByRawIndex(m.stackResultDimension,p);if("all"===s||"positive"===s&&v>0||"negative"===s&&v<0||"samesign"===s&&f>=0&&v>0||"samesign"===s&&f<=0&&v<0){f=qF(f,v),h=v;break}}}return r[0]=f,r[1]=h,r})})}var aK,lK,sK,cK,uK,dK=function(e){this.data=e.data||(e.sourceFormat===rX?{}:[]),this.sourceFormat=e.sourceFormat||iX,this.seriesLayoutBy=e.seriesLayoutBy||aX,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;n<t.length;n++){var r=t[n];null==r.type&&fX(this,n)===sX.Must&&(r.type="ordinal")}};function pK(e){return e instanceof dK}function fK(e,t,n){n=n||gK(e);var r=t.seriesLayoutBy,o=function(e,t,n,r,o){var i,a;if(!e)return{dimensionsDefine:mK(o),startIndex:a,dimensionsDetectedCount:i};if(t===tX){var l=e;"auto"===r||null==r?vK(function(e){null!=e&&"-"!==e&&(mj(e)?null==a&&(a=1):a=0)},n,l,10):a=yj(r)?r:r?1:0,o||1!==a||(o=[],vK(function(e,t){o[t]=null!=e?e+"":""},n,l,1/0)),i=o?o.length:n===lX?l.length:l[0]?l[0].length:null}else if(t===nX)o||(o=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t)return dj(t)}(e));else if(t===rX)o||(o=[],aj(e,function(e,t){o.push(t)}));else if(t===eX){var s=mV(e[0]);i=hj(s)&&s.length||1}return{startIndex:a,dimensionsDefine:mK(o),dimensionsDetectedCount:i}}(e,n,r,t.sourceHeader,t.dimensions);return new dK({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:KR(t)})}function hK(e){return new dK({data:e,sourceFormat:wj(e)?oX:eX})}function gK(e){var t=iX;if(wj(e))t=oX;else if(hj(e)){0===e.length&&(t=tX);for(var n=0,r=e.length;n<r;n++){var o=e[n];if(null!=o){if(hj(o)||wj(o)){t=tX;break}if(bj(o)){t=nX;break}}}}else if(bj(e))for(var i in e)if(Wj(e,i)&&ij(e[i])){t=rX;break}return t}function mK(e){if(e){var t=Bj();return lj(e,function(e,n){var r={name:(e=bj(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function vK(e,t,n,r){if(t===lX)for(var o=0;o<n.length&&o<r;o++)e(n[o]?n[o][0]:null,o);else{var i=n[0]||[];for(o=0;o<i.length&&o<r;o++)e(i[o],o)}}function yK(e){var t=e.sourceFormat;return t===nX||t===rX}var bK=function(){function e(e,t){var n=pK(e)?e:hK(e);this._source=n;var r=this._data=n.data;n.sourceFormat===oX&&(this._offset=0,this._dimSize=t,this._data=r),uK(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;uK=function(e,o,i){var a=i.sourceFormat,l=i.seriesLayoutBy,s=i.startIndex,c=i.dimensionsDefine;if(JR(e,cK[OK(a,l)]),a===oX)e.getItem=t,e.count=r,e.fillStorage=n;else{var u=SK(a,l);e.getItem=pj(u,null,o,s,c);var d=kK(a,l);e.count=pj(d,null,o,s,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,o=r*e,i=0;i<r;i++)t[i]=n[o+i];return t},n=function(e,t,n,r){for(var o=this._data,i=this._dimSize,a=0;a<i;a++){for(var l=r[a],s=null==l[0]?1/0:l[0],c=null==l[1]?-1/0:l[1],u=t-e,d=n[a],p=0;p<u;p++){var f=o[p*i+a];d[e+p]=f,f<s&&(s=f),f>c&&(c=f)}l[0]=s,l[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function o(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[tX+"_"+aX]={pure:!0,appendData:o},e[tX+"_"+lX]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[nX]={pure:!0,appendData:o},e[rX]={pure:!0,appendData:function(e){var t=this._data;aj(e,function(e,n){for(var r=t[n]||(t[n]=[]),o=0;o<(e||[]).length;o++)r.push(e[o])})}},e[eX]={appendData:o},e[oX]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},cK=e}(),e}(),xK=function(e,t,n,r){return e[r]},wK=((aK={})[tX+"_"+aX]=function(e,t,n,r){return e[r+t]},aK[tX+"_"+lX]=function(e,t,n,r,o){r+=t;for(var i=o||[],a=e,l=0;l<a.length;l++){var s=a[l];i[l]=s?s[r]:null}return i},aK[nX]=xK,aK[rX]=function(e,t,n,r,o){for(var i=o||[],a=0;a<n.length;a++){0;var l=e[n[a].name];i[a]=l?l[r]:null}return i},aK[eX]=xK,aK);function SK(e,t){return wK[OK(e,t)]}var CK=function(e,t,n){return e.length},_K=((lK={})[tX+"_"+aX]=function(e,t,n){return Math.max(0,e.length-t)},lK[tX+"_"+lX]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},lK[nX]=CK,lK[rX]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},lK[eX]=CK,lK);function kK(e,t){return _K[OK(e,t)]}var MK=function(e,t,n){return e[t]},IK=((sK={})[tX]=MK,sK[nX]=function(e,t,n){return e[n]},sK[rX]=MK,sK[eX]=function(e,t,n){var r=mV(e);return r instanceof Array?r[t]:r},sK[oX]=MK,sK);function EK(e){return IK[e]}function OK(e,t){return e===tX?e+"_"+t:e}function $K(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var o=e.getStore(),i=o.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),l=o.getDimensionProperty(a);return EK(i)(r,a,l)}var s=r;return i===eX&&(s=mV(r)),s}}}var TK=/\{@(.+?)\}/g,PK=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),o=n.getRawIndex(e),i=n.getName(e),a=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),s=l&&l[n.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,u=this.mainType,d="series"===u,p=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:i,dataIndex:o,data:a,dataType:t,value:r,color:s,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,o,i){t=t||"normal";var a=this.getData(n),l=this.getDataParams(e,n);(i&&(l.value=i.interpolatedValue),null!=r&&hj(l.value)&&(l.value=l.value[r]),o)||(o=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return gj(o)?(l.status=t,l.dimensionIndex=r,o(l)):mj(o)?$q(o,l).replace(TK,function(t,n){var r=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(r-1)&&(o=+o.slice(1,r-1));var l=$K(a,e,o);if(i&&hj(i.interpolatedValue)){var s=a.getDimensionIndex(o);s>=0&&(l=i.interpolatedValue[s])}return null!=l?l+"":""}):void 0},e.prototype.getRawValue=function(e,t){return $K(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function DK(e){var t,n;return bj(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function NK(e){return new AK(e)}var AK=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 o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var i,a=u(this._modBy),l=this._modDataCount||0,s=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}a===s&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,i=this._doReset(r)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(i||p<f)){var h=this._progress;if(hj(h))for(var g=0;g<h.length;g++)this._doProgress(h[g],p,f,s,c);else this._doProgress(h,p,f,s,c)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,o){RK.reset(t,n,r,o),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:RK.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),hj(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),RK=function(){var e,t,n,r,o,i={reset:function(s,c,u,d){t=s,e=c,n=u,r=d,o=Math.ceil(r/n),i.next=n>1&&r>0?l:a}};return i;function a(){return t<e?t++:null}function l(){var i=t%o*n+Math.ceil(t/o),a=t>=e?null:i<r?i:t;return t++,a}}();"undefined"!==typeof console&&console.warn&&console.log;function jK(e){0}function LK(e){throw new Error(e)}function zK(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||yj(e)||null==e||"-"===e||(e=+JF(e)),null==e||""===e?NaN:Number(e))}var BK=Bj({number:function(e){return parseFloat(e)},time:function(e){return+JF(e)},trim:function(e){return mj(e)?Dj(e):e}});function HK(e){return BK.get(e)}var FK={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},VK=function(){function e(e,t){if(!yj(t)){0,LK("")}this._opFn=FK[e],this._rvalFloat=iV(t)}return e.prototype.evaluate=function(e){return yj(e)?this._opFn(e,this._rvalFloat):this._opFn(iV(e),this._rvalFloat)},e}(),WK=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=yj(e)?e:iV(e),r=yj(t)?t:iV(t),o=isNaN(n),i=isNaN(r);if(o&&(n=this._incomparable),i&&(r=this._incomparable),o&&i){var a=mj(e),l=mj(t);a&&(n=l?e:0),l&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),GK=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=iV(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=iV(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function UK(e,t){return"eq"===e||"ne"===e?new GK("eq"===e,t):Wj(FK,e)?new VK(e,t):null}var YK=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 zK(e,t)},e}();function qK(e){if(!eZ(e.sourceFormat)){0,LK("")}return e.data}function XK(e){var t=e.sourceFormat,n=e.data;if(!eZ(t)){0,LK("")}if(t===tX){for(var r=[],o=0,i=n.length;o<i;o++)r.push(n[o].slice());return r}if(t===nX){for(r=[],o=0,i=n.length;o<i;o++)r.push(JR({},n[o]));return r}}function KK(e,t,n){if(null!=n)return yj(n)||!isNaN(n)&&!Wj(t,n)?e[n]:Wj(t,n)?t[n]:void 0}function ZK(e){return KR(e)}var QK=Bj();function JK(e,t,n,r){t.length||LK(""),bj(e)||LK("");var o=e.type,i=QK.get(o);i||LK("");var a=lj(t,function(e){return function(e,t){var n=new YK,r=e.data,o=n.sourceFormat=e.sourceFormat,i=e.startIndex;e.seriesLayoutBy!==aX&&LK("");var a=[],l={},s=e.dimensionsDefine;if(s)aj(s,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(Wj(l,n)&&LK(""),l[n]=r)});else for(var c=0;c<e.dimensionsDetectedCount;c++)a.push({index:c});var u=SK(o,aX);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,i,a,e)},n.getRawData=pj(qK,null,e)),n.cloneRawData=pj(XK,null,e);var d=kK(o,aX);n.count=pj(d,null,r,i,a);var p=EK(o);n.retrieveValue=function(e,t){var n=u(r,i,a,e);return f(n,t)};var f=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?p(e,t,n.name):void 0}};return n.getDimensionInfo=pj(KK,null,a,l),n.cloneAllDimensionInfo=pj(ZK,null,a),n}(e,i)});return lj(fV(i.transform({upstream:a[0],upstreamList:a,config:KR(e.config)})),function(e,n){var r;bj(e)||LK(""),e.data||LK(""),eZ(gK(e.data))||LK("");var o=t[0];if(o&&0===n&&!e.dimensions){var i=o.startIndex;i&&(e.data=o.data.slice(0,i).concat(e.data)),r={seriesLayoutBy:aX,sourceHeader:i,dimensions:o.metaRawOption.dimensions}}else r={seriesLayoutBy:aX,sourceHeader:0,dimensions:e.dimensions};return fK(e.data,r,null)})}function eZ(e){return e===tX||e===nX}var tZ,nZ="undefined",rZ=typeof Uint32Array===nZ?Array:Uint32Array,oZ=typeof Uint16Array===nZ?Array:Uint16Array,iZ=typeof Int32Array===nZ?Array:Int32Array,aZ=typeof Float64Array===nZ?Array:Float64Array,lZ={float:aZ,int:iZ,ordinal:Array,number:Array,time:aZ};function sZ(e){return e>65535?rZ:oZ}function cZ(){return[1/0,-1/0]}function uZ(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function dZ(e,t,n,r,o){var i=lZ[n||"float"];if(o){var a=e[t],l=a&&a.length;if(l!==r){for(var s=new i(r),c=0;c<l;c++)s[c]=a[c];e[t]=s}}else e[t]=new i(r)}var pZ=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Bj()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),o=this.defaultDimValueGetter=tZ[r.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];yK(r);this._dimensions=lj(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,o=n.get(e);if(null!=o){if(r[o].type===t)return o}else o=r.length;return r[o]={type:t},n.set(e,o),this._chunks[o]=new lZ[t||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],o=this._rawExtent,i=r.ordinalOffset||0,a=n.length;0===i&&(o[e]=[1/0,-1/0]);for(var l=o[e],s=i;s<a;s++){var c=n[s]=t.parseAndCollect(n[s]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,o=r.length,i=this._rawExtent,a=this.count(),l=a+Math.max(e.length,t||0),s=0;s<o;s++){dZ(n,s,(f=r[s]).type,l,!0)}for(var c=[],u=a;u<l;u++)for(var d=u-a,p=0;p<o;p++){var f=r[p],h=tZ.arrayRows.call(this,e[d]||c,f.property,d,p);n[p][u]=h;var g=i[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}return this._rawCount=this._count=l,{start:a,end:l}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,o=this._chunks,i=this._dimensions,a=i.length,l=this._rawExtent,s=lj(i,function(e){return e.property}),c=0;c<a;c++){var u=i[c];l[c]||(l[c]=cZ()),dZ(o,c,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,o,l);else for(var d=[],p=e;p<t;p++){d=r.getItem(p,d);for(var f=0;f<a;f++){var h=o[f],g=this._dimValueGetter(d,s[f],p,f);h[p]=g;var m=l[f];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!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<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=e;o=0;for(var i=r.length;o<i;o++)n.push(this.get(r[o],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var o=this.get(e,n);isNaN(o)||(t+=o)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,o=this._count-1;r<=o;){var i=(r+o)/2|0;if(t[i]<e)r=i+1;else{if(!(t[i]>e))return i;o=i-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var i=1/0,a=-1,l=0,s=0,c=this.count();s<c;s++){var u=t-r[this.getRawIndex(s)],d=Math.abs(u);d<=n&&((d<i||d===i&&u>=0&&a<0)&&(i=d,a=u,l=0),u===a&&(o[l++]=s))}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 o=0;o<r;o++)e[o]=t[o]}else e=new n(t.buffer,0,r)}else{e=new(n=sZ(this._rawCount))(this.count());for(o=0;o<e.length;o++)e[o]=o}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),o=new(sZ(n._rawCount))(r),i=[],a=e.length,l=0,s=e[0],c=n._chunks,u=0;u<r;u++){var d=void 0,p=n.getRawIndex(u);if(0===a)d=t(u);else if(1===a){d=t(c[s][p],u)}else{for(var f=0;f<a;f++)i[f]=c[e[f]][p];i[f]=u,d=t.apply(null,i)}d&&(o[l++]=p)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=dj(e),o=r.length;if(!o)return this;var i=t.count(),a=new(sZ(t._rawCount))(i),l=0,s=r[0],c=e[s][0],u=e[s][1],d=t._chunks,p=!1;if(!t._indices){var f=0;if(1===o){for(var h=d[r[0]],g=0;g<n;g++){((b=h[g])>=c&&b<=u||isNaN(b))&&(a[l++]=f),f++}p=!0}else if(2===o){h=d[r[0]];var m=d[r[1]],v=e[r[1]][0],y=e[r[1]][1];for(g=0;g<n;g++){var b=h[g],x=m[g];(b>=c&&b<=u||isNaN(b))&&(x>=v&&x<=y||isNaN(x))&&(a[l++]=f),f++}p=!0}}if(!p)if(1===o)for(g=0;g<i;g++){var w=t.getRawIndex(g);((b=d[r[0]][w])>=c&&b<=u||isNaN(b))&&(a[l++]=w)}else for(g=0;g<i;g++){for(var S=!0,C=(w=t.getRawIndex(g),0);C<o;C++){var _=r[C];((b=d[_][w])<e[_][0]||b>e[_][1])&&(S=!1)}S&&(a[l++]=t.getRawIndex(g))}return l<i&&(t._indices=a),t._count=l,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,o=[],i=t.length,a=e.count(),l=[],s=e._rawExtent,c=0;c<t.length;c++)s[t[c]]=cZ();for(var u=0;u<a;u++){for(var d=e.getRawIndex(u),p=0;p<i;p++)l[p]=r[t[p]][d];l[i]=u;var f=n&&n.apply(null,l);if(null!=f){"object"!==typeof f&&(o[0]=f,f=o);for(c=0;c<f.length;c++){var h=t[c],g=f[c],m=s[h],v=r[h];v&&(v[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,o,i=this.clone([e],!0),a=i._chunks[e],l=this.count(),s=0,c=Math.floor(1/t),u=this.getRawIndex(0),d=new(sZ(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[s++]=u;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),h=Math.min(p+2*c,l),g=(h+f)/2,m=0,v=f;v<h;v++){var y=a[k=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=h-f;var b=p,x=Math.min(p+c,l),w=p-1,S=a[u];n=-1,o=b;var C=-1,_=0;for(v=b;v<x;v++){var k;y=a[k=this.getRawIndex(v)];isNaN(y)?(_++,C<0&&(C=k)):(r=Math.abs((w-g)*(y-S)-(w-v)*(m-S)))>n&&(n=r,o=k)}_>0&&_<x-b&&(d[s++]=Math.min(C,o),o=Math.max(C,o)),d[s++]=o,u=o}return d[s++]=this.getRawIndex(l-1),i._count=s,i._indices=d,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,o=Math.floor(1/t),i=r[e],a=this.count(),l=new(sZ(this._rawCount))(2*Math.ceil(a/o)),s=0,c=0;c<a;c+=o){var u=c,d=i[this.getRawIndex(u)],p=c,f=i[this.getRawIndex(p)],h=o;c+o>a&&(h=a-c);for(var g=0;g<h;g++){var m=i[this.getRawIndex(c+g)];m<d&&(d=m,u=c+g),m>f&&(f=m,p=c+g)}var v=this.getRawIndex(u),y=this.getRawIndex(p);u<p?(l[s++]=v,l[s++]=y):(l[s++]=y,l[s++]=v)}return n._count=s,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var o=this.clone([e],!0),i=o._chunks,a=[],l=Math.floor(1/t),s=i[e],c=this.count(),u=o._rawExtent[e]=[1/0,-1/0],d=new(sZ(this._rawCount))(Math.ceil(c/l)),p=0,f=0;f<c;f+=l){l>c-f&&(l=c-f,a.length=l);for(var h=0;h<l;h++){var g=this.getRawIndex(f+h);a[h]=s[g]}var m=n(a),v=this.getRawIndex(Math.min(f+r(a,m)||0,c-1));s[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),d[p++]=v}return o._count=p,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,o=0,i=this.count();o<i;o++){var a=this.getRawIndex(o);switch(n){case 0:t(o);break;case 1:t(r[e[0]][a],o);break;case 2:t(r[e[0]][a],r[e[1]][a],o);break;default:for(var l=0,s=[];l<n;l++)s[l]=r[e[l]][a];s[l]=o,t.apply(null,s)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,o=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var i=(r=n)[0],a=r[1],l=0;l<o;l++){var s=t[this.getRawIndex(l)];s<i&&(i=s),s>a&&(a=s)}return r=[i,a],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,o=0;o<r.length;o++)n.push(r[o][t]);return n},e.prototype.clone=function(t,n){var r=new e,o=this._chunks,i=t&&sj(t,function(e,t){return e[t]=!0,e},{});if(i)for(var a=0;a<o.length;a++)r._chunks[a]=i[a]?uZ(o[a]):o[a];else r._chunks=o;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=KR(this._extent),e._rawExtent=KR(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=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 zK(e[r],this._dimensions[r])}tZ={arrayRows:e,objectRows:function(e,t,n,r){return zK(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var o=e&&(null==e.value?e:e.value);return zK(o instanceof Array?o[r]:o,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}();const fZ=pZ;var hZ=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(),o=!!r.length;if(mZ(n)){var i=n,a=void 0,l=void 0,s=void 0;if(o){var c=r[0];c.prepareSource(),a=(s=c.getSource()).data,l=s.sourceFormat,t=[c._getVersionSign()]}else l=wj(a=i.get("data",!0))?oX:eX,t=[];var u=this._getSourceMetaRawOption()||{},d=s&&s.metaRawOption||{},p=Ej(u.seriesLayoutBy,d.seriesLayoutBy)||null,f=Ej(u.sourceHeader,d.sourceHeader),h=Ej(u.dimensions,d.dimensions);e=p!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||h?[fK(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:h},l)]:[]}else{var g=n;if(o){var m=this._applyTransform(r);e=m.sourceList,t=m.upstreamSignList}else{e=[fK(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(null!=o){1!==e.length&&vZ("")}var i,a=[],l=[];return aj(e,function(e){e.prepareSource();var t=e.getSource(o||0);null==o||t||vZ(""),a.push(t),l.push(e._getVersionSign())}),r?t=function(e,t){var n=fV(e),r=n.length;r||LK("");for(var o=0,i=r;o<i;o++)t=JK(n[o],t),o!==i-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=o&&(t=[(i=a[0],new dK({data:i.data,sourceFormat:i.sourceFormat,seriesLayoutBy:i.seriesLayoutBy,dimensionsDefine:KR(i.dimensionsDefine),startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,o=r[0];o||(o=r[0]={});var i=o[n];if(!i){var a=this._getUpstreamSourceManagers()[0];mZ(this._sourceHost)&&a?i=a._innerGetDataStore(e,t,n):(i=new fZ).initData(new bK(t,e.length),e),o[n]=i}return i},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(mZ(e)){var t=pX(e);return t?[t.getSourceManager()]:[]}return lj(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?TV(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},OV).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(mZ(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;e=o.get("seriesLayoutBy",!0),t=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function gZ(e){e.option.transform&&Aj(e.option.transform)}function mZ(e){return"series"===e.mainType}function vZ(e){throw new Error(e)}function yZ(e){var t=e.lineHeight;return null==t?"line-height:1":"line-height:"+PL(t+"")+"px"}function bZ(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,o=e.fontWeight||"400",i=e.color||"#464646",a=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+PL(r+"")+"px;color:"+PL(n)+";font-weight:"+PL(o+""),valueStyle:"font-size:"+PL(a+"")+"px;color:"+PL(i)+";font-weight:"+PL(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:i,fontWeight:l}}}var xZ=[0,10,20,30],wZ=["","\n","\n\n","\n\n\n"];function SZ(e,t){return t.type=e,t}function CZ(e){return"section"===e.type}function _Z(e){return CZ(e)?MZ:IZ}function kZ(e){if(CZ(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return aj(e.blocks,function(e){var n=kZ(e);n>=t&&(t=n+ +(r&&(!n||CZ(e)&&!e.noHeader)))}),t}return 0}function MZ(e,t,n,r){var o,i=t.noHeader,a=(o=kZ(t),{html:xZ[o],richText:wZ[o]}),l=[],s=t.blocks||[];Pj(!s||hj(s)),s=s||[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Wj(u,c)){var d=new WK(u[c],null);s.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else"seriesDesc"===c&&s.reverse()}aj(s,function(n,o){var i=t.valueFormatter,s=_Z(n)(i?JR(JR({},e),{valueFormatter:i}):e,n,o>0?a.html:0,r);null!=s&&l.push(s)});var p="richText"===e.renderMode?l.join(a.richText):OZ(r,l.join(""),i?n:a.html);if(i)return p;var f=Iq(t.header,"ordinal",e.useUTC),h=bZ(r,e.renderMode).nameStyle,g=yZ(r);return"richText"===e.renderMode?$Z(e,f,h)+a.richText+p:OZ(r,'<div style="'+h+";"+g+';">'+PL(f)+"</div>"+p,n)}function IZ(e,t,n,r){var o=e.renderMode,i=t.noName,a=t.noValue,l=!t.markerType,s=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return lj(e=hj(e)?e:[e],function(e,t){return Iq(e,hj(f)?f[t]:f,c)})};if(!i||!a){var d=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),p=i?"":Iq(s,"ordinal",c),f=t.valueType,h=a?[]:u(t.value,t.dataIndex),g=!l||!i,m=!l&&i,v=bZ(r,o),y=v.nameStyle,b=v.valueStyle;return"richText"===o?(l?"":d)+(i?"":$Z(e,p,y))+(a?"":function(e,t,n,r,o){var i=[o],a=r?10:20;return n&&i.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(hj(t)?t.join("  "):t,i)}(e,h,g,m,b)):OZ(r,(l?"":d)+(i?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+PL(e)+"</span>"}(p,!l,y))+(a?"":function(e,t,n,r){var o=n?"10px":"20px",i=t?"float:right;margin-left:"+o:"";return e=hj(e)?e:[e],'<span style="'+i+";"+r+'">'+lj(e,function(e){return PL(e)}).join("&nbsp;&nbsp;")+"</span>"}(h,g,m,b)),n)}}function EZ(e,t,n,r,o,i){if(e)return _Z(e)({useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,i)}function OZ(e,t,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+yZ(e)+';">'+t+'<div style="clear:both"></div></div>'}function $Z(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function TZ(e,t){return Nq(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function PZ(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var DZ=function(){function e(){this.richTextStyles={},this._nextStyleNameId=lV()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,o=Tq({color:t,type:e,renderMode:n,markerId:r});return mj(o)?o:(this.richTextStyles[r]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};hj(t)?aj(t,function(e){return JR(n,e)}):JR(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function NZ(e){var t,n,r,o,i=e.series,a=e.dataIndex,l=e.multipleSeries,s=i.getData(),c=s.mapDimensionsAll("defaultedTooltip"),u=c.length,d=i.getRawValue(a),p=hj(d),f=TZ(i,a);if(u>1||p&&!u){var h=function(e,t,n,r,o){var i=t.getData(),a=sj(e,function(e,t,n){var r=i.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName},!1),l=[],s=[],c=[];function u(e,t){var n=i.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?c.push(SZ("nameValue",{markerType:"subItem",markerColor:o,name:n.displayName,value:e,valueType:n.type})):(l.push(e),s.push(n.type)))}return r.length?aj(r,function(e){u($K(i,n,e),e)}):aj(e,u),{inlineValues:l,inlineValueTypes:s,blocks:c}}(d,i,a,c,f);t=h.inlineValues,n=h.inlineValueTypes,r=h.blocks,o=h.inlineValues[0]}else if(u){var g=s.getDimensionInfo(c[0]);o=t=$K(s,a,c[0]),n=g.type}else o=t=p?d[0]:d;var m=SV(i),v=m&&i.name||"",y=s.getName(a),b=l?v:y;return SZ("section",{header:v,noHeader:l||!m,sortParam:o,blocks:[SZ("nameValue",{markerType:"item",markerColor:f,name:b,noName:!Dj(b),value:t,valueType:n,dataIndex:a})].concat(r||[])})}var AZ=kV();function RZ(e,t){return e.getName(t)||e.getId(t)}var jZ="__universalTransitionEnabled",LZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return MR(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=NK({count:BZ,reset:HZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(AZ(this).sourceManager=new hZ(this)).prepareSource();var r=this.getInitialData(e,n);VZ(r,this),this.dataTask.context.data=r,AZ(this).dataBeforeProcessed=r,zZ(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Vq(this),r=n?Gq(e):{},o=this.subType;Xq.hasClass(o)&&(o+="Series"),ZR(e,t.getTheme().get(this.subType)),ZR(e,this.getDefaultOption()),hV(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Wq(e,r,n)},t.prototype.mergeOption=function(e,t){e=ZR(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Vq(this);n&&Wq(this.option,e,n);var r=AZ(this).sourceManager;r.dirty(),r.prepareSource();var o=this.getInitialData(e,t);VZ(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,AZ(this).dataBeforeProcessed=o,zZ(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!wj(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&hV(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=GZ(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return AZ(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=GZ(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}AZ(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Bj(e)},t.prototype.getSourceManager=function(){return AZ(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return AZ(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return NZ({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if($R.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,o=wX.prototype.getColorFromPalette.call(this,e,t,n);return o||(o=r.getColorFromPalette(e,t,n)),o},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,o=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var i=0;i<e.length;i++){var a=RZ(o,e[i]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=dj(e),n=[],r=0;r<t.length;r++){var o=e[t[r]];o>=0&&n.push(o)}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[RZ(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[jZ])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,o=this.option,i=o.selectedMode,a=t.length;if(i&&a)if("series"===i)o.selectedMap="all";else if("multiple"===i){bj(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,s=0;s<a;s++){var c=t[s];l[d=RZ(e,c)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(c)}}else if("single"===i||!0===i){var u=t[a-1],d=RZ(e,u);o.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(u),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Xq.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}(Xq);function zZ(e){var t=e.name;SV(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return aj(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(" ")}(e)||t)}function BZ(e){return e.model.getRawData().count()}function HZ(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),FZ}function FZ(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function VZ(e,t){aj(Hj(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,fj(WZ,t))})}function WZ(e,t){var n=GZ(e);return n&&n.setOutputEnd((t||this).count()),t}function GZ(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var o=r.agentStubMap;o&&(r=o.get(e.uid))}return r}}oj(LZ,PK),oj(LZ,wX),zV(LZ,Xq);const UZ=LZ;var YZ=function(){function e(){this.group=new _F,this.uid=LY("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}();LV(YZ),VV(YZ);const qZ=YZ;function XZ(){var e=kV();return function(t){var n=e(t),r=t.pipelineContext,o=!!n.large,i=!!n.progressiveRender,a=n.large=!(!r||!r.large),l=n.progressiveRender=!(!r||!r.progressiveRender);return!(o===a&&i===l)&&"reset"}}var KZ=eG.CMD,ZZ=[[],[],[]],QZ=Math.sqrt,JZ=Math.atan2;function eQ(e,t){if(t){var n,r,o,i,a,l,s=e.data,c=e.len(),u=KZ.M,d=KZ.C,p=KZ.L,f=KZ.R,h=KZ.A,g=KZ.Q;for(o=0,i=0;o<c;){switch(n=s[o++],i=o,r=0,n){case u:case p:r=1;break;case d:r=3;break;case g:r=2;break;case h:var m=t[4],v=t[5],y=QZ(t[0]*t[0]+t[1]*t[1]),b=QZ(t[2]*t[2]+t[3]*t[3]),x=JZ(-t[1]/b,t[0]/y);s[o]*=y,s[o++]+=m,s[o]*=b,s[o++]+=v,s[o++]*=y,s[o++]*=b,s[o++]+=x,s[o++]+=x,i=o+=2;break;case f:l[0]=s[o++],l[1]=s[o++],gL(l,l,t),s[i++]=l[0],s[i++]=l[1],l[0]+=s[o++],l[1]+=s[o++],gL(l,l,t),s[i++]=l[0],s[i++]=l[1]}for(a=0;a<r;a++){var w=ZZ[a];w[0]=s[o++],w[1]=s[o++],gL(w,w,t),s[i++]=w[0],s[i++]=w[1]}}e.increaseVersion()}}var tQ=Math.sqrt,nQ=Math.sin,rQ=Math.cos,oQ=Math.PI;function iQ(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function aQ(e,t){return(e[0]*t[0]+e[1]*t[1])/(iQ(e)*iQ(t))}function lQ(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(aQ(e,t))}function sQ(e,t,n,r,o,i,a,l,s,c,u){var d=s*(oQ/180),p=rQ(d)*(e-n)/2+nQ(d)*(t-r)/2,f=-1*nQ(d)*(e-n)/2+rQ(d)*(t-r)/2,h=p*p/(a*a)+f*f/(l*l);h>1&&(a*=tQ(h),l*=tQ(h));var g=(o===i?-1:1)*tQ((a*a*(l*l)-a*a*(f*f)-l*l*(p*p))/(a*a*(f*f)+l*l*(p*p)))||0,m=g*a*f/l,v=g*-l*p/a,y=(e+n)/2+rQ(d)*m-nQ(d)*v,b=(t+r)/2+nQ(d)*m+rQ(d)*v,x=lQ([1,0],[(p-m)/a,(f-v)/l]),w=[(p-m)/a,(f-v)/l],S=[(-1*p-m)/a,(-1*f-v)/l],C=lQ(w,S);if(aQ(w,S)<=-1&&(C=oQ),aQ(w,S)>=1&&(C=0),C<0){var _=Math.round(C/oQ*1e6)/1e6;C=2*oQ+_%2*oQ}u.addData(c,y,b,a,l,x,C,d,i)}var cQ=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,uQ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var dQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.applyTransform=function(e){},t}(SG);function pQ(e){return null!=e.setData}function fQ(e,t){var n=function(e){var t=new eG;if(!e)return t;var n,r=0,o=0,i=r,a=o,l=eG.CMD,s=e.match(cQ);if(!s)return t;for(var c=0;c<s.length;c++){for(var u=s[c],d=u.charAt(0),p=void 0,f=u.match(uQ)||[],h=f.length,g=0;g<h;g++)f[g]=parseFloat(f[g]);for(var m=0;m<h;){var v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=void 0,_=r,k=o,M=void 0,I=void 0;switch(d){case"l":r+=f[m++],o+=f[m++],p=l.L,t.addData(p,r,o);break;case"L":r=f[m++],o=f[m++],p=l.L,t.addData(p,r,o);break;case"m":r+=f[m++],o+=f[m++],p=l.M,t.addData(p,r,o),i=r,a=o,d="l";break;case"M":r=f[m++],o=f[m++],p=l.M,t.addData(p,r,o),i=r,a=o,d="L";break;case"h":r+=f[m++],p=l.L,t.addData(p,r,o);break;case"H":r=f[m++],p=l.L,t.addData(p,r,o);break;case"v":o+=f[m++],p=l.L,t.addData(p,r,o);break;case"V":o=f[m++],p=l.L,t.addData(p,r,o);break;case"C":p=l.C,t.addData(p,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),r=f[m-2],o=f[m-1];break;case"c":p=l.C,t.addData(p,f[m++]+r,f[m++]+o,f[m++]+r,f[m++]+o,f[m++]+r,f[m++]+o),r+=f[m-2],o+=f[m-1];break;case"S":v=r,y=o,M=t.len(),I=t.data,n===l.C&&(v+=r-I[M-4],y+=o-I[M-3]),p=l.C,_=f[m++],k=f[m++],r=f[m++],o=f[m++],t.addData(p,v,y,_,k,r,o);break;case"s":v=r,y=o,M=t.len(),I=t.data,n===l.C&&(v+=r-I[M-4],y+=o-I[M-3]),p=l.C,_=r+f[m++],k=o+f[m++],r+=f[m++],o+=f[m++],t.addData(p,v,y,_,k,r,o);break;case"Q":_=f[m++],k=f[m++],r=f[m++],o=f[m++],p=l.Q,t.addData(p,_,k,r,o);break;case"q":_=f[m++]+r,k=f[m++]+o,r+=f[m++],o+=f[m++],p=l.Q,t.addData(p,_,k,r,o);break;case"T":v=r,y=o,M=t.len(),I=t.data,n===l.Q&&(v+=r-I[M-4],y+=o-I[M-3]),r=f[m++],o=f[m++],p=l.Q,t.addData(p,v,y,r,o);break;case"t":v=r,y=o,M=t.len(),I=t.data,n===l.Q&&(v+=r-I[M-4],y+=o-I[M-3]),r+=f[m++],o+=f[m++],p=l.Q,t.addData(p,v,y,r,o);break;case"A":b=f[m++],x=f[m++],w=f[m++],S=f[m++],C=f[m++],sQ(_=r,k=o,r=f[m++],o=f[m++],S,C,b,x,w,p=l.A,t);break;case"a":b=f[m++],x=f[m++],w=f[m++],S=f[m++],C=f[m++],sQ(_=r,k=o,r+=f[m++],o+=f[m++],S,C,b,x,w,p=l.A,t)}}"z"!==d&&"Z"!==d||(p=l.Z,t.addData(p),r=i,o=a),n=p}return t.toStatic(),t}(e),r=JR({},t);return r.buildPath=function(e){if(pQ(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){eQ(n,e),this.dirtyShape()},r}function hQ(e,t){return new dQ(fQ(e,t))}function gQ(e,t){t=t||{};var n=new SG;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?eQ(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var mQ=function(){this.cx=0,this.cy=0,this.r=0},vQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new mQ},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(SG);vQ.prototype.type="circle";const yQ=vQ;var bQ=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},xQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new bQ},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,o=t.cy,i=t.rx,a=t.ry,l=i*n,s=a*n;e.moveTo(r-i,o),e.bezierCurveTo(r-i,o-s,r-l,o-a,r,o-a),e.bezierCurveTo(r+l,o-a,r+i,o-s,r+i,o),e.bezierCurveTo(r+i,o+s,r+l,o+a,r,o+a),e.bezierCurveTo(r-l,o+a,r-i,o+s,r-i,o),e.closePath()},t}(SG);xQ.prototype.type="ellipse";const wQ=xQ;var SQ=Math.PI,CQ=2*SQ,_Q=Math.sin,kQ=Math.cos,MQ=Math.acos,IQ=Math.atan2,EQ=Math.abs,OQ=Math.sqrt,$Q=Math.max,TQ=Math.min,PQ=1e-4;function DQ(e,t,n,r,o,i,a){var l=e-n,s=t-r,c=(a?i:-i)/OQ(l*l+s*s),u=c*s,d=-c*l,p=e+u,f=t+d,h=n+u,g=r+d,m=(p+h)/2,v=(f+g)/2,y=h-p,b=g-f,x=y*y+b*b,w=o-i,S=p*g-h*f,C=(b<0?-1:1)*OQ($Q(0,w*w*x-S*S)),_=(S*b-y*C)/x,k=(-S*y-b*C)/x,M=(S*b+y*C)/x,I=(-S*y+b*C)/x,E=_-m,O=k-v,$=M-m,T=I-v;return E*E+O*O>$*$+T*T&&(_=M,k=I),{cx:_,cy:k,x0:-u,y0:-d,x1:_*(o/w-1),y1:k*(o/w-1)}}function NQ(e,t){var n,r=$Q(t.r,0),o=$Q(t.r0||0,0),i=r>0;if(i||o>0){if(i||(r=o,o=0),o>r){var a=r;r=o,o=a}var l=t.startAngle,s=t.endAngle;if(!isNaN(l)&&!isNaN(s)){var c=t.cx,u=t.cy,d=!!t.clockwise,p=EQ(s-l),f=p>CQ&&p%CQ;if(f>PQ&&(p=f),r>PQ)if(p>CQ-PQ)e.moveTo(c+r*kQ(l),u+r*_Q(l)),e.arc(c,u,r,l,s,!d),o>PQ&&(e.moveTo(c+o*kQ(s),u+o*_Q(s)),e.arc(c,u,o,s,l,d));else{var h=void 0,g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0,C=void 0,_=void 0,k=void 0,M=void 0,I=void 0,E=void 0,O=void 0,$=r*kQ(l),T=r*_Q(l),P=o*kQ(s),D=o*_Q(s),N=p>PQ;if(N){var A=t.cornerRadius;A&&(n=function(e){var t;if(hj(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}(A),h=n[0],g=n[1],m=n[2],v=n[3]);var R=EQ(r-o)/2;if(y=TQ(R,m),b=TQ(R,v),x=TQ(R,h),w=TQ(R,g),_=S=$Q(y,b),k=C=$Q(x,w),(S>PQ||C>PQ)&&(M=r*kQ(s),I=r*_Q(s),E=o*kQ(l),O=o*_Q(l),p<SQ)){var j=function(e,t,n,r,o,i,a,l){var s=n-e,c=r-t,u=a-o,d=l-i,p=d*s-u*c;if(!(p*p<PQ))return[e+(p=(u*(t-i)-d*(e-o))/p)*s,t+p*c]}($,T,E,O,M,I,P,D);if(j){var L=$-j[0],z=T-j[1],B=M-j[0],H=I-j[1],F=1/_Q(MQ((L*B+z*H)/(OQ(L*L+z*z)*OQ(B*B+H*H)))/2),V=OQ(j[0]*j[0]+j[1]*j[1]);_=TQ(S,(r-V)/(F+1)),k=TQ(C,(o-V)/(F-1))}}}if(N)if(_>PQ){var W=TQ(m,_),G=TQ(v,_),U=DQ(E,O,$,T,r,W,d),Y=DQ(M,I,P,D,r,G,d);e.moveTo(c+U.cx+U.x0,u+U.cy+U.y0),_<S&&W===G?e.arc(c+U.cx,u+U.cy,_,IQ(U.y0,U.x0),IQ(Y.y0,Y.x0),!d):(W>0&&e.arc(c+U.cx,u+U.cy,W,IQ(U.y0,U.x0),IQ(U.y1,U.x1),!d),e.arc(c,u,r,IQ(U.cy+U.y1,U.cx+U.x1),IQ(Y.cy+Y.y1,Y.cx+Y.x1),!d),G>0&&e.arc(c+Y.cx,u+Y.cy,G,IQ(Y.y1,Y.x1),IQ(Y.y0,Y.x0),!d))}else e.moveTo(c+$,u+T),e.arc(c,u,r,l,s,!d);else e.moveTo(c+$,u+T);if(o>PQ&&N)if(k>PQ){W=TQ(h,k),U=DQ(P,D,M,I,o,-(G=TQ(g,k)),d),Y=DQ($,T,E,O,o,-W,d);e.lineTo(c+U.cx+U.x0,u+U.cy+U.y0),k<C&&W===G?e.arc(c+U.cx,u+U.cy,k,IQ(U.y0,U.x0),IQ(Y.y0,Y.x0),!d):(G>0&&e.arc(c+U.cx,u+U.cy,G,IQ(U.y0,U.x0),IQ(U.y1,U.x1),!d),e.arc(c,u,o,IQ(U.cy+U.y1,U.cx+U.x1),IQ(Y.cy+Y.y1,Y.cx+Y.x1),d),W>0&&e.arc(c+Y.cx,u+Y.cy,W,IQ(Y.y1,Y.x1),IQ(Y.y0,Y.x0),!d))}else e.lineTo(c+P,u+D),e.arc(c,u,o,s,l,d);else e.lineTo(c+P,u+D)}else e.moveTo(c,u);e.closePath()}}}var AQ=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},RQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new AQ},t.prototype.buildPath=function(e,t){NQ(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(SG);RQ.prototype.type="sector";const jQ=RQ;var LQ=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},zQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new LQ},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,o,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,o,!0)},t}(SG);zQ.prototype.type="ring";const BQ=zQ;function HQ(e,t,n){var r=t.smooth,o=t.points;if(o&&o.length>=2){if(r){var i=function(e,t,n,r){var o,i,a,l,s=[],c=[],u=[],d=[];if(r){a=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=e.length;p<f;p++)mL(a,a,e[p]),vL(l,l,e[p]);mL(a,a,r[0]),vL(l,l,r[1])}for(p=0,f=e.length;p<f;p++){var h=e[p];if(n)o=e[p?p-1:f-1],i=e[(p+1)%f];else{if(0===p||p===f-1){s.push(Xj(e[p]));continue}o=e[p-1],i=e[p+1]}Jj(c,i,o),lL(c,c,t);var g=cL(h,o),m=cL(h,i),v=g+m;0!==v&&(g/=v,m/=v),lL(u,c,-g),lL(d,c,m);var y=Zj([],h,u),b=Zj([],h,d);r&&(vL(y,y,a),mL(y,y,l),vL(b,b,a),mL(b,b,l)),s.push(y),s.push(b)}return n&&s.push(s.shift()),s}(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var a=o.length,l=0;l<(n?a:a-1);l++){var s=i[2*l],c=i[2*l+1],u=o[(l+1)%a];e.bezierCurveTo(s[0],s[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l<d;l++)e.lineTo(o[l][0],o[l][1])}n&&e.closePath()}}var FQ=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},VQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new FQ},t.prototype.buildPath=function(e,t){HQ(e,t,!0)},t}(SG);VQ.prototype.type="polygon";const WQ=VQ;var GQ=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},UQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GQ},t.prototype.buildPath=function(e,t){HQ(e,t,!1)},t}(SG);UQ.prototype.type="polyline";const YQ=UQ;var qQ={},XQ=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},KQ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new XQ},t.prototype.buildPath=function(e,t){var n,r,o,i;if(this.subPixelOptimize){var a=TG(qQ,t,this.style);n=a.x1,r=a.y1,o=a.x2,i=a.y2}else n=t.x1,r=t.y1,o=t.x2,i=t.y2;var l=t.percent;0!==l&&(e.moveTo(n,r),l<1&&(o=n*(1-l)+o*l,i=r*(1-l)+i*l),e.lineTo(o,i))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(SG);KQ.prototype.type="line";const ZQ=KQ;var QQ=[],JQ=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function eJ(e,t,n){var r=e.cpx2,o=e.cpy2;return null!=r||null!=o?[(n?Jz:Qz)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Jz:Qz)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?aB:iB)(e.x1,e.cpx1,e.x2,t),(n?aB:iB)(e.y1,e.cpy1,e.y2,t)]}var tJ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JQ},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=t.cpx1,l=t.cpy1,s=t.cpx2,c=t.cpy2,u=t.percent;0!==u&&(e.moveTo(n,r),null==s||null==c?(u<1&&(sB(n,a,o,u,QQ),a=QQ[1],o=QQ[2],sB(r,l,i,u,QQ),l=QQ[1],i=QQ[2]),e.quadraticCurveTo(a,l,o,i)):(u<1&&(nB(n,a,s,o,u,QQ),a=QQ[1],s=QQ[2],o=QQ[3],nB(r,l,c,i,u,QQ),l=QQ[1],c=QQ[2],i=QQ[3]),e.bezierCurveTo(a,l,s,c,o,i)))},t.prototype.pointAt=function(e){return eJ(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=eJ(this.shape,e,!0);return sL(t,t)},t}(SG);tJ.prototype.type="bezier-curve";const nJ=tJ;var rJ=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},oJ=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rJ},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=Math.max(t.r,0),i=t.startAngle,a=t.endAngle,l=t.clockwise,s=Math.cos(i),c=Math.sin(i);e.moveTo(s*o+n,c*o+r),e.arc(n,r,o,i,a,!l)},t}(SG);oJ.prototype.type="arc";const iJ=oJ;var aJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return MR(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),SG.prototype.getBoundingRect.call(this)},t}(SG);const lJ=aJ;var sJ=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();const cJ=sJ;var uJ=function(e){function t(t,n,r,o,i,a){var l=e.call(this,i)||this;return l.x=null==t?0:t,l.y=null==n?0:n,l.x2=null==r?1:r,l.y2=null==o?0:o,l.type="linear",l.global=a||!1,l}return MR(t,e),t}(cJ);const dJ=uJ;var pJ=function(e){function t(t,n,r,o,i){var a=e.call(this,o)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=i||!1,a}return MR(t,e),t}(cJ);const fJ=pJ;var hJ=[0,0],gJ=[0,0],mJ=new rz,vJ=new rz,yJ=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rz;for(n=0;n<2;n++)this._axes[n]=new rz;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,o=e.x,i=e.y,a=o+e.width,l=i+e.height;if(n[0].set(o,i),n[1].set(a,i),n[2].set(a,l),n[3].set(o,l),t)for(var s=0;s<4;s++)n[s].transform(t);rz.sub(r[0],n[1],n[0]),rz.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(s=0;s<2;s++)this._origin[s]=r[s].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return mJ.set(1/0,1/0),vJ.set(0,0),!this._intersectCheckOneSide(this,e,mJ,vJ,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,mJ,vJ,r,-1)&&(n=!1,r)||r||rz.copy(t,n?mJ:vJ),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,o,i){for(var a=!0,l=0;l<2;l++){var s=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,hJ),this._getProjMinMaxOnAxis(l,t._corners,gJ),hJ[1]<gJ[0]||hJ[0]>gJ[1]){if(a=!1,o)return a;var c=Math.abs(gJ[0]-hJ[1]),u=Math.abs(hJ[0]-gJ[1]);Math.min(c,u)>r.len()&&(c<u?rz.scale(r,s,-c*i):rz.scale(r,s,u*i))}else if(n){c=Math.abs(gJ[0]-hJ[1]),u=Math.abs(hJ[0]-gJ[1]);Math.min(c,u)<n.len()&&(c<u?rz.scale(n,s,c*i):rz.scale(n,s,-u*i))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],o=this._origin,i=t[0].dot(r)+o[e],a=i,l=i,s=1;s<t.length;s++){var c=t[s].dot(r)+o[e];a=Math.min(c,a),l=Math.max(c,l)}n[0]=a,n[1]=l},e}();const bJ=yJ;var xJ=[],wJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return MR(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new fz(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(xJ)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(bW);const SJ=wJ;var CJ=Math.max,_J=Math.min,kJ={};function MJ(e){return SG.extend(e)}var IJ=function(e,t){var n=fQ(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return MR(t,e),t}(dQ)};function EJ(e,t){return IJ(e,t)}function OJ(e,t){kJ[e]=t}function $J(e){if(kJ.hasOwnProperty(e))return kJ[e]}function TJ(e,t,n,r){var o=hQ(e,t);return n&&("center"===r&&(n=DJ(n,o.getBoundingRect())),AJ(o,n)),o}function PJ(e,t,n){var r=new OG({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var o={width:e.width,height:e.height};r.setStyle(DJ(t,o))}}});return r}function DJ(e,t){var n,r=t.width/t.height,o=e.height*r;return n=o<=e.width?e.height:(o=e.width)/r,{x:e.x+e.width/2-o/2,y:e.y+e.height/2-n/2,width:o,height:n}}var NJ=function(e,t){for(var n=[],r=e.length,o=0;o<r;o++){var i=e[o];n.push(i.getUpdatedPathProxy(!0))}var a=new SG(t);return a.createPathProxy(),a.buildPath=function(e){if(pQ(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function AJ(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function RJ(e,t){return TG(e,e,{lineWidth:t}),e}function jJ(e){return PG(e.shape,e.shape,e.style),e}var LJ=DG;function zJ(e,t){for(var n=qL([]);e&&e!==t;)KL(n,e.getLocalTransform(),n),e=e.parent;return n}function BJ(e,t,n){return t&&!ij(t)&&(t=nF.getLocalTransform(t)),n&&(t=ez([],t)),gL([],e,t)}function HJ(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),i=["left"===e?-r:"right"===e?r:0,"top"===e?-o:"bottom"===e?o:0];return i=BJ(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function FJ(e){return!e.isGroup}function VJ(e,t,n){if(e&&t){var r=function(e){var t={};return e.traverse(function(e){FJ(e)&&e.anid&&(t[e.anid]=e)}),t}(e);t.traverse(function(e){if(FJ(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),nY(e,i,n,eU(e).dataIndex)}}})}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=JR({},e.shape)),t}}function WJ(e,t){return lj(e,function(e){var n=e[0];n=CJ(n,t.x),n=_J(n,t.x+t.width);var r=e[1];return r=CJ(r,t.y),[n,r=_J(r,t.y+t.height)]})}function GJ(e,t){var n=CJ(e.x,t.x),r=_J(e.x+e.width,t.x+t.width),o=CJ(e.y,t.y),i=_J(e.y+e.height,t.y+t.height);if(r>=n&&i>=o)return{x:n,y:o,width:r-n,height:i-o}}function UJ(e,t,n){var r=JR({rectHover:!0},t),o=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(o.image=e.slice(8),ej(o,n),new OG(r)):TJ(e.replace("path://",""),r,n,"center")}function YJ(e,t,n,r,o){for(var i=0,a=o[o.length-1];i<o.length;i++){var l=o[i];if(qJ(e,t,n,r,l[0],l[1],a[0],a[1]))return!0;a=l}}function qJ(e,t,n,r,o,i,a,l){var s,c=n-e,u=r-t,d=a-o,p=l-i,f=XJ(d,p,c,u);if((s=f)<=1e-6&&s>=-1e-6)return!1;var h=e-o,g=t-i,m=XJ(h,g,c,u)/f;if(m<0||m>1)return!1;var v=XJ(h,g,d,p)/f;return!(v<0||v>1)}function XJ(e,t,n,r){return e*r-n*t}function KJ(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=mj(t)?{formatter:t}:t,i=n.mainType,a=n.componentIndex,l={componentType:i,name:r,$vars:["name"]};l[i+"Index"]=a;var s=e.formatterParamsExtra;s&&aj(dj(s),function(e){Wj(l,e)||(l[e]=s[e],l.$vars.push(e))});var c=eU(e.el);c.componentMainType=i,c.componentIndex=a,c.tooltipConfig={name:r,option:ej({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function ZJ(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function QJ(e,t){if(e)if(hj(e))for(var n=0;n<e.length;n++)ZJ(e[n],t);else ZJ(e,t)}OJ("circle",yQ),OJ("ellipse",wQ),OJ("sector",jQ),OJ("ring",BQ),OJ("polygon",WQ),OJ("polyline",YQ),OJ("rect",jG),OJ("line",ZQ),OJ("bezierCurve",nJ),OJ("arc",iJ);var JJ=kV(),e0=XZ(),t0=function(){function e(){this.group=new _F,this.uid=LY("viewChart"),this.renderTask=NK({plan:o0,reset:i0}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var o=e.getData(r&&r.dataType);o&&r0(o,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var o=e.getData(r&&r.dataType);o&&r0(o,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){QJ(this.group,e)},e.markUpdateMethod=function(e,t){JJ(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function n0(e,t,n){e&&KU(e)&&("emphasis"===t?$U:TU)(e,n)}function r0(e,t,n){var r=_V(e,t),o=t&&null!=t.highlightKey?function(e){var t=rU[e];return null==t&&nU<=32&&(t=rU[e]=nU++),t}(t.highlightKey):null;null!=r?aj(fV(r),function(t){n0(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(e){n0(e,n,o)})}function o0(e){return e0(e.model)}function i0(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,i=t.pipelineContext.progressiveRender,a=e.view,l=o&&JJ(o).updateMethod,s=i?"incrementalPrepareRender":l&&a[l]?l:"render";return"render"!==s&&a[s](t,n,r,o),a0[s]}LV(t0),VV(t0);var a0={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const l0=t0;var s0="\0__throttleOriginMethod",c0="\0__throttleRate",u0="\0__throttleType";function d0(e,t,n){var r,o,i,a,l,s=0,c=0,u=null;function d(){c=(new Date).getTime(),u=null,e.apply(i,a||[])}t=t||0;var p=function(){for(var e=[],p=0;p<arguments.length;p++)e[p]=arguments[p];r=(new Date).getTime(),i=this,a=e;var f=l||t,h=l||n;l=null,o=r-(h?s:c)-f,clearTimeout(u),h?u=setTimeout(d,f):o>=0?d():u=setTimeout(d,-o),s=r};return p.clear=function(){u&&(clearTimeout(u),u=null)},p.debounceNextCall=function(e){l=e},p}function p0(e,t,n,r){var o=e[t];if(o){var i=o[s0]||o,a=o[u0];if(o[c0]!==n||a!==r){if(null==n||!r)return e[t]=i;(o=e[t]=d0(i,n,"debounce"===r))[s0]=i,o[u0]=r,o[c0]=n}return o}}function f0(e,t){var n=e[t];n&&n[s0]&&(n.clear&&n.clear(),e[t]=n[s0])}var h0=kV(),g0={itemStyle:WV(PY,!0),lineStyle:WV(OY,!0)},m0={lineStyle:"stroke",itemStyle:"fill"};function v0(e,t){var n=e.visualStyleMapper||g0[t];return n||(console.warn("Unknown style type '"+t+"'."),g0.itemStyle)}function y0(e,t){var n=e.visualDrawType||m0[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var b0={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),i=v0(e,r)(o),a=o.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var l=y0(e,r),s=i[l],c=gj(s)?s:null,u="auto"===i.fill||"auto"===i.stroke;if(!i[l]||c||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=d,n.setVisual("colorFromPalette",!0)),i.fill="auto"===i.fill||gj(i.fill)?d:i.fill,i.stroke="auto"===i.stroke||gj(i.stroke)?d:i.stroke}if(n.setVisual("style",i),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),o=JR({},i);o[l]=c(r),t.setItemVisual(n,"style",o)}}}},x0=new RY,w0={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=v0(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){x0.option=n[r];var a=o(x0);JR(e.ensureUniqueItemVisual(t,"style"),a),x0.option.decal&&(e.setItemVisual(t,"decal",x0.option.decal),x0.option.decal.dirty=!0),i in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},S0={performRawSeries:!0,overallReset:function(e){var t=Bj();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,o=t.get(r);o||(o={},t.set(r,o)),h0(e).scope=o}}),e.eachSeries(function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},o=t.getData(),i=h0(t).scope,a=t.visualStyleAccessPath||"itemStyle",l=y0(t,a);o.each(function(e){var t=o.getRawIndex(e);r[t]=e}),n.each(function(e){var a=r[e];if(o.getItemVisual(a,"colorFromPalette")){var s=o.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",u=n.count();s[l]=t.getColorFromPalette(c,i,u)}})}})}},C0=Math.PI;var _0=function(){function e(e,t,n,r){this._stageTaskMap=Bj(),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,o=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,i=r&&r.modDataCount;return{step:o,modBy:null!=i?Math.ceil(i/o):null,modDataCount:i}}},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().count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,i=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:i}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Bj();e.eachSeries(function(e){var r=e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;aj(this._allHandlers,function(r){var o=e.get(r.uid)||e.set(r.uid,{});Pj(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,o,t,n),r.overallReset&&this._createOverallStageTask(r,o,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var o=e.renderTask,i=o.context;i.model=t,i.ecModel=n,i.api=r,o.__block=!e.incrementalPrepareRender,this._pipe(t,o)},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 o=!1,i=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}aj(e,function(e,l){if(!r.visualType||r.visualType===e.visualType){var s=i._stageTaskMap.get(e.uid),c=s.seriesTaskMap,u=s.overallTask;if(u){var d,p=u.agentStubMap;p.each(function(e){a(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),i.updatePayload(u,n);var f=i.getPerformArgs(u,r.block);p.each(function(e){e.perform(f)}),u.perform(f)&&(o=!0)}else c&&c.each(function(l,s){a(r,l)&&l.dirty();var c=i.getPerformArgs(l,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(l.context.model),i.updatePayload(l,n),l.perform(c)&&(o=!0)})}}),this.unfinished=o||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 o=this,i=t.seriesTaskMap,a=t.seriesTaskMap=Bj(),l=e.seriesType,s=e.getTargetSeries;function c(t){var l=t.uid,s=a.set(l,i&&i.get(l)||NK({plan:O0,reset:$0,count:D0}));s.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(t,s)}e.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):s&&s(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var o=this,i=t.overallTask=t.overallTask||NK({reset:k0});i.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:o};var a=i.agentStubMap,l=i.agentStubMap=Bj(),s=e.seriesType,c=e.getTargetSeries,u=!0,d=!1;function p(e){var t=e.uid,n=l.set(t,a&&a.get(t)||(d=!0,NK({reset:M0,onDirty:E0})));n.context={model:e,overallProgress:u},n.agent=i,n.__block=u,o._pipe(e,n)}Pj(!e.createOnAllSeries,""),s?n.eachRawSeriesByType(s,p):c?c(n,r).each(p):(u=!1,aj(n.getSeries(),p)),d&&i.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 gj(e)&&(e={overallReset:e,seriesType:N0(e)}),e.uid=LY("stageHandler"),t&&(e.visualType=t),e},e}();function k0(e){e.overallReset(e.ecModel,e.api,e.payload)}function M0(e){return e.overallProgress&&I0}function I0(){this.agent.dirty(),this.getDownstream().dirty()}function E0(){this.agent&&this.agent.dirty()}function O0(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function $0(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=fV(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?lj(t,function(e,t){return P0(t)}):T0}var T0=P0(0);function P0(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var i=t.start;i<t.end;i++)o.dataEach(r,i);else o&&o.progress&&o.progress(t,r)}}function D0(e){return e.data.count()}function N0(e){A0=null;try{e(R0,j0)}catch(vDe){}return A0}var A0,R0={},j0={};function L0(e,t){for(var n in t.prototype)e[n]=Gj}L0(R0,OX),L0(j0,TX),R0.eachSeriesByType=R0.eachRawSeriesByType=function(e){A0=e},R0.eachComponent=function(e){"series"===e.mainType&&e.subType&&(A0=e.subType)};const z0=_0;var B0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const H0={color:B0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],B0]};var F0="#B9B8CE",V0="#100C2A",W0=function(){return{axisLine:{lineStyle:{color:F0}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},G0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],U0={darkMode:!0,color:G0,backgroundColor:V0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:F0},pageTextStyle:{color:F0}},textStyle:{color:F0},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:F0}},dataZoom:{borderColor:"#71708A",textStyle:{color:F0},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:F0}},timeline:{lineStyle:{color:F0},label:{color:F0},controlStyle:{color:F0,borderColor:F0}},calendar:{itemStyle:{color:V0},dayLabel:{color:F0},monthLabel:{color:F0},yearLabel:{color:F0}},timeAxis:W0(),logAxis:W0(),valueAxis:W0(),categoryAxis:W0(),line:{symbol:"circle"},graph:{color:G0},gauge:{title:{color:F0},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:F0},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};U0.categoryAxis.splitLine.show=!1;const Y0=U0;var q0=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(mj(e)){var o=jV(e);t.mainType=o.main||null,t.subType=o.sub||null}else{var i=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};aj(e,function(e,o){for(var l=!1,s=0;s<i.length;s++){var c=i[s],u=o.lastIndexOf(c);if(u>0&&u===o.length-c.length){var d=o.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,l=!0)}}a.hasOwnProperty(o)&&(n[o]=e,l=!0),l||(r[o]=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,o=n.packedEvent,i=n.model,a=n.view;if(!i||!a)return!0;var l=t.cptQuery,s=t.dataQuery;return c(l,i,"mainType")&&c(l,i,"subType")&&c(l,i,"index","componentIndex")&&c(l,i,"name")&&c(l,i,"id")&&c(s,o,"name")&&c(s,o,"dataIndex")&&c(s,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,o));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),X0=["symbol","symbolSize","symbolRotate","symbolOffset"],K0=X0.concat(["symbolKeepAspect"]),Z0={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={},o={},i=!1,a=0;a<X0.length;a++){var l=X0[a],s=e.get(l);gj(s)?(i=!0,o[l]=s):r[l]=s}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(JR({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=dj(o);return{dataEach:i?function(t,n){for(var r=e.getRawValue(n),i=e.getDataParams(n),a=0;a<c.length;a++){var l=c[a];t.setItemVisual(n,l,o[l](r,i))}}:null}}}}},Q0={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<K0.length;r++){var o=K0[r],i=n.getShallow(o,!0);null!=i&&e.setItemVisual(t,o,i)}}:null}}};function J0(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function e1(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function t1(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r)}}function n1(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}aj([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(e){t(e[0],function(t,r,o){t=JR({},t),o.dispatchAction(JR(t,{type:e[1],seriesIndex:n(r,t)}))})})}function r1(e,t,n,r,o){var i=e+t;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=o.selected,l=0;l<a.length;l++)if(a[l].seriesIndex===t){var s=e.getData(),c=_V(s,o.fromActionPayload);n.trigger(i,{type:i,seriesId:e.id,name:hj(c)?s.getName(c[0]):s.getName(c),selected:mj(r)?r:JR({},r)})}})}function o1(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var i1=Math.round(9*Math.random()),a1="function"===typeof Object.defineProperty;const l1=function(){function e(){this._id="__ec_inner_"+i1++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return a1?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();var s1=SG.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,o=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+o,r+i),e.lineTo(n-o,r+i),e.closePath()}}),c1=SG.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,o=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+o,r),e.lineTo(n,r+i),e.lineTo(n-o,r),e.closePath()}}),u1=SG.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,o=t.width/5*3,i=Math.max(o,t.height),a=o/2,l=a*a/(i-a),s=r-i+a+l,c=Math.asin(l/a),u=Math.cos(c)*a,d=Math.sin(c),p=Math.cos(c),f=.6*a,h=.7*a;e.moveTo(n-u,s+l),e.arc(n,s,a,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-d*f,s+l+p*f,n,r-h,n,r),e.bezierCurveTo(n,r-h,n-u+d*f,s+l+p*f,n-u,s+l),e.closePath()}}),d1=SG.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,o=t.x,i=t.y,a=r/3*2;e.moveTo(o,i),e.lineTo(o+a,i+n),e.lineTo(o,i+n/4*3),e.lineTo(o-a,i+n),e.lineTo(o,i),e.closePath()}}),p1={line:function(e,t,n,r,o){o.x1=e,o.y1=t+r/2,o.x2=e+n,o.y2=t+r/2},rect:function(e,t,n,r,o){o.x=e,o.y=t,o.width=n,o.height=r},roundRect:function(e,t,n,r,o){o.x=e,o.y=t,o.width=n,o.height=r,o.r=Math.min(n,r)/4},square:function(e,t,n,r,o){var i=Math.min(n,r);o.x=e,o.y=t,o.width=i,o.height=i},circle:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.r=Math.min(n,r)/2},diamond:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.width=n,o.height=r},pin:function(e,t,n,r,o){o.x=e+n/2,o.y=t+r/2,o.width=n,o.height=r},arrow:function(e,t,n,r,o){o.x=e+n/2,o.y=t+r/2,o.width=n,o.height=r},triangle:function(e,t,n,r,o){o.cx=e+n/2,o.cy=t+r/2,o.width=n,o.height=r}},f1={};aj({line:ZQ,rect:jG,roundRect:jG,square:jG,circle:yQ,diamond:c1,pin:u1,arrow:d1,triangle:s1},function(e,t){f1[t]=new e});var h1=SG.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=dF(e,t,n),o=this.shape;return o&&"pin"===o.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var o=f1[r];o||(o=f1[r="rect"]),p1[r](t.x,t.y,t.width,t.height,o.shape),o.buildPath(e,o.shape,n)}}});function g1(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function m1(e,t,n,r,o,i,a){var l,s=0===e.indexOf("empty");return s&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(l=0===e.indexOf("image://")?PJ(e.slice(8),new fz(t,n,r,o),a?"center":"cover"):0===e.indexOf("path://")?TJ(e.slice(7),{},new fz(t,n,r,o),a?"center":"cover"):new h1({shape:{symbolType:e,x:t,y:n,width:r,height:o}})).__isEmptyBrush=s,l.setColor=g1,i&&l.setColor(i),l}function v1(e){return hj(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function y1(e,t){if(null!=e)return hj(e)||(e=[e,e]),[BF(e[0],t[0])||0,BF(Ej(e[1],e[0]),t[1])||0]}function b1(e){return isFinite(e)}function x1(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,o=n.height,i=Math.min(r,o),a=null==t.x?.5:t.x,l=null==t.y?.5:t.y,s=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,l=l*o+n.y,s*=i),a=b1(a)?a:.5,l=b1(l)?l:.5,s=s>=0&&b1(s)?s:.5,e.createRadialGradient(a,l,0,a,l,s)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,o=null==t.x2?1:t.x2,i=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,o=o*n.width+n.x,i=i*n.height+n.y,a=a*n.height+n.y),r=b1(r)?r:0,o=b1(o)?o:1,i=b1(i)?i:0,a=b1(a)?a:0,e.createLinearGradient(r,i,o,a)}(e,t,n),o=t.colorStops,i=0;i<o.length;i++)r.addColorStop(o[i].offset,o[i].color);return r}function w1(e){return parseInt(e,10)}function S1(e,t,n){var r=["width","height"][t],o=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var l=document.defaultView.getComputedStyle(e);return(e[o]||w1(l[r])||w1(e.style[r]))-(w1(l[i])||0)-(w1(l[a])||0)|0}function C1(e){var t,n,r=e.style,o=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:yj(t)?[t]:hj(t)?t:null:null),i=r.lineDashOffset;if(o){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(o=lj(o,function(e){return e/a}),i/=a)}return[o,i]}var _1=new eG(!0);function k1(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function M1(e){return"string"===typeof e&&"none"!==e}function I1(e){var t=e.fill;return null!=t&&"none"!==t}function E1(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 O1(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 $1(e,t,n){var r=XV(t.image,t.__image,n);if(ZV(r)){var o=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&o&&o.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Uj),i.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(i)}return o}}var T1=["shadowBlur","shadowOffsetX","shadowOffsetY"],P1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function D1(e,t,n,r,o){var i=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){B1(e,o),i=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?pW.opacity:a}(r||t.blend!==n.blend)&&(i||(B1(e,o),i=!0),e.globalCompositeOperation=t.blend||pW.blend);for(var l=0;l<T1.length;l++){var s=T1[l];(r||t[s]!==n[s])&&(i||(B1(e,o),i=!0),e[s]=e.dpr*(t[s]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(B1(e,o),i=!0),e.shadowColor=t.shadowColor||pW.shadowColor),i}function N1(e,t,n,r,o){var i=H1(t,o.inHover),a=r?null:n&&H1(n,o.inHover)||{};if(i===a)return!1;var l=D1(e,i,a,r,o);if((r||i.fill!==a.fill)&&(l||(B1(e,o),l=!0),M1(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==a.stroke)&&(l||(B1(e,o),l=!0),M1(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==a.opacity)&&(l||(B1(e,o),l=!0),e.globalAlpha=null==i.opacity?1:i.opacity),t.hasStroke()){var s=i.lineWidth/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==s&&(l||(B1(e,o),l=!0),e.lineWidth=s)}for(var c=0;c<P1.length;c++){var u=P1[c],d=u[0];(r||i[d]!==a[d])&&(l||(B1(e,o),l=!0),e[d]=i[d]||u[1])}return l}function A1(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}var R1=1,j1=2,L1=3,z1=4;function B1(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function H1(e,t){return t&&e.__hoverStyle||e.style}function F1(e,t){V1(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function V1(e,t,n,r){var o=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~Tz,void(t.__isRendered=!1);var i=t.__clipPaths,a=n.prevElClipPaths,l=!1,s=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(i,a)||(a&&a.length&&(B1(e,n),e.restore(),s=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(B1(e,n),e.save(),function(e,t,n){for(var r=!1,o=0;o<e.length;o++){var i=e[o];r=r||i.isZeroArea(),A1(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}(i,e,n),l=!0),n.prevElClipPaths=i),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(s=l=!0);var u,d,p=t instanceof SG&&t.autoBatch&&function(e){var t=I1(e),n=k1(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);l||(u=o,d=c.transform,u&&d?u[0]!==d[0]||u[1]!==d[1]||u[2]!==d[2]||u[3]!==d[3]||u[4]!==d[4]||u[5]!==d[5]:u||d)?(B1(e,n),A1(e,t)):p||B1(e,n);var f=H1(t,n.inHover);t instanceof SG?(n.lastDrawType!==R1&&(s=!0,n.lastDrawType=R1),N1(e,t,c,s,n),p&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var o,i=k1(n),a=I1(n),l=n.strokePercent,s=l<1,c=!t.path;t.silent&&!s||!c||t.createPathProxy();var u=t.path||_1,d=t.__dirty;if(!r){var p=n.fill,f=n.stroke,h=a&&!!p.colorStops,g=i&&!!f.colorStops,m=a&&!!p.image,v=i&&!!f.image,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0;(h||g)&&(S=t.getBoundingRect()),h&&(y=d?x1(e,p,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=d?x1(e,f,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(x=d||!t.__canvasFillPattern?$1(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(w=d||!t.__canvasStrokePattern?$1(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),h?e.fillStyle=y:m&&(x?e.fillStyle=x:a=!1),g?e.strokeStyle=b:v&&(w?e.strokeStyle=w:i=!1)}var C,_,k=t.getGlobalScale();u.setScale(k[0],k[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(C=(o=C1(t))[0],_=o[1]);var M=!0;(c||d&Pz)&&(u.setDPR(e.dpr),s?u.setContext(null):(u.setContext(e),M=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),M&&u.rebuildPath(e,s?l:1),C&&(e.setLineDash(C),e.lineDashOffset=_),r||(n.strokeFirst?(i&&O1(e,n),a&&E1(e,n)):(a&&E1(e,n),i&&O1(e,n))),C&&e.setLineDash([])}(e,t,f,p),p&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof kG?(n.lastDrawType!==L1&&(s=!0,n.lastDrawType=L1),N1(e,t,c,s,n),function(e,t,n){var r,o=n.text;if(null!=o&&(o+=""),o){e.font=n.font||PR,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=(r=C1(t))[0],a=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=a),n.strokeFirst?(k1(n)&&e.strokeText(o,n.x,n.y),I1(n)&&e.fillText(o,n.x,n.y)):(I1(n)&&e.fillText(o,n.x,n.y),k1(n)&&e.strokeText(o,n.x,n.y)),i&&e.setLineDash([])}}(e,t,f)):t instanceof OG?(n.lastDrawType!==j1&&(s=!0,n.lastDrawType=j1),function(e,t,n,r,o){D1(e,H1(t,o.inHover),n&&H1(n,o.inHover),r,o)}(e,t,c,s,n),function(e,t,n){var r=t.__image=XV(n.image,t.__image,t,t.onload);if(r&&ZV(r)){var o=n.x||0,i=n.y||0,a=t.getWidth(),l=t.getHeight(),s=r.width/r.height;if(null==a&&null!=l?a=l*s:null==l&&null!=a?l=a/s:null==a&&null==l&&(a=r.width,l=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(r,c,u,n.sWidth,n.sHeight,o,i,a,l)}else if(n.sx&&n.sy){var d=a-(c=n.sx),p=l-(u=n.sy);e.drawImage(r,c,u,d,p,o,i,a,l)}else e.drawImage(r,o,i,a,l)}}(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==z1&&(s=!0,n.lastDrawType=z1),function(e,t,n){var r=t.getDisplayables(),o=t.getTemporalDisplayables();e.save();var i,a,l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(i=t.getCursor(),a=r.length;i<a;i++){(u=r[i]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),V1(e,u,l,i===a-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}for(var s=0,c=o.length;s<c;s++){var u;(u=o[s]).beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),V1(e,u,l,s===c-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),l.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),p&&r&&B1(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var W1=new l1,G1=new vB(100),U1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Y1(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),o="svg"===r.painter.type;e.dirty&&W1.delete(e);var i=W1.get(e);if(i)return i;var a=ej(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var l={repeat:"repeat"};return function(e){for(var t,i=[n],l=!0,s=0;s<U1.length;++s){var c=a[U1[s]];if(null!=c&&!hj(c)&&!mj(c)&&!yj(c)&&"boolean"!==typeof c){l=!1;break}i.push(c)}if(l){t=i.join(",")+(o?"-svg":"");var u=G1.get(t);u&&(o?e.svgElement=u:e.image=u)}var d,p=X1(a.dashArrayX),f=function(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(yj(e)){var t=Math.ceil(e);return[t,t]}var n=lj(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(a.dashArrayY),h=q1(a.symbol),g=(x=p,lj(x,function(e){return K1(e)})),m=K1(f),v=!o&&NR.createCanvas(),y=o&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=cV(e,g[t]);var r=1;for(t=0,n=h.length;t<n;++t)r=cV(r,h[t].length);e*=r;var o=m*g.length*h.length;0;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();var x;v&&(v.width=b.width*n,v.height=b.height*n,d=v.getContext("2d"));(function(){d&&(d.clearRect(0,0,v.width,v.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;var i=-m,l=0,s=0,c=0;for(;i<b.height;){if(l%2===0){for(var u=s/2%h.length,g=0,x=0,w=0;g<2*b.width;){var S=0;for(t=0;t<p[c].length;++t)S+=p[c][t];if(S<=0)break;if(x%2===0){var C=.5*(1-a.symbolSize),_=g+p[c][x]*C,k=i+f[l]*C,M=p[c][x]*a.symbolSize,I=f[l]*a.symbolSize,E=w/2%h[u].length;O(_,k,M,I,h[u][E])}g+=p[c][x],++w,++x===p[c].length&&(x=0)}++c===p.length&&(c=0)}i+=f[l],++s,++l===f.length&&(l=0)}function O(e,t,i,l,s){var c=o?1:n,u=m1(s,e*c,t*c,i*c,l*c,a.color,a.symbolKeepAspect);if(o){var p=r.painter.renderOneToVNode(u);p&&y.children.push(p)}else F1(d,u)}})(),l&&G1.put(t,v||y);e.image=v,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}(l),l.rotation=a.rotation,l.scaleX=l.scaleY=o?1:1/n,W1.set(e,l),e.dirty=!1,l}function q1(e){if(!e||0===e.length)return[["rect"]];if(mj(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!mj(e[n])){t=!1;break}if(t)return q1([e]);var r=[];for(n=0;n<e.length;++n)mj(e[n])?r.push([e[n]]):r.push(e[n]);return r}function X1(e){if(!e||0===e.length)return[[0,0]];if(yj(e))return[[o=Math.ceil(e),o]];for(var t=!0,n=0;n<e.length;++n)if(!yj(e[n])){t=!1;break}if(t)return X1([e]);var r=[];for(n=0;n<e.length;++n)if(yj(e[n])){var o=Math.ceil(e[n]);r.push([o,o])}else{o=lj(e[n],function(e){return Math.ceil(e)});o.length%2===1?r.push(o.concat(o)):r.push(o)}return r}function K1(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}const Z1=new SL;var Q1={};function J1(e){return Q1[e]}var e2="5.6.0",t2={zrender:"5.6.1"},n2=2e3,r2=1e3,o2=2e3,i2=3e3,a2=4500,l2={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:r2,PROGRESSIVE_LAYOUT:1100,GLOBAL:o2,CHART:i2,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:a2,ARIA:6e3,DECAL:7e3}},s2="__flagInMainProcess",c2="__pendingUpdate",u2="__needsUpdateStatus",d2=/^[a-zA-Z0-9_]+$/,p2="__connectUpdateStatus";function f2(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return g2(this,e,t);z2(this.id)}}function h2(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return g2(this,e,t)}}function g2(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),SL.prototype[t].apply(e,n)}var m2,v2,y2,b2,x2,w2,S2,C2,_2,k2,M2,I2,E2,O2,$2,T2,P2,D2,N2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t}(SL),A2=N2.prototype;A2.on=h2("on"),A2.off=h2("off");var R2=function(e){function t(t,n,r){var o=e.call(this,new q0)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},mj(n)&&(n=G2[n]),o._dom=t;r.ssr&&AF(function(e){var t=eU(e),n=t.dataIndex;if(null!=n){var r=Bj();return r.set("series_index",t.seriesIndex),r.set("data_index",n),t.ssrType&&r.set("ssr_type",t.ssrType),r}});var i=o._zr=OF(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Ej(r.useDirtyRect,!1),useCoarsePointer:Ej(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=d0(pj(i.flush,i),17),(n=KR(n))&&oK(n,!0),o._theme=n,o._locale=function(e){if(mj(e)){var t=VY[e.toUpperCase()]||{};return e===BY||e===HY?KR(t):ZR(KR(t),KR(VY[FY]),!1)}return ZR(KR(e),KR(VY[FY]),!1)}(r.locale||GY),o._coordSysMgr=new NX;var a=o._api=$2(o);function l(e,t){return e.__prio-t.__prio}return $z(W2,l),$z(F2,l),o._scheduler=new z0(o,a,F2,W2),o._messageCenter=new N2,o._initEvents(),o.resize=pj(o.resize,o),i.animation.on("frame",o._onframe,o),k2(i,o),M2(i,o),Aj(o),o}return MR(t,e),t.prototype._onframe=function(){if(!this._disposed){D2(this);var e=this._scheduler;if(this[c2]){var t=this[c2].silent;this[s2]=!0;try{m2(this),b2.update.call(this,null,this[c2].updateParams)}catch(vDe){throw this[s2]=!1,this[c2]=null,vDe}this._zr.flush(),this[s2]=!1,this[c2]=null,C2.call(this,t),_2.call(this,t)}else if(e.unfinished){var n=1,r=this._model,o=this._api;e.unfinished=!1;do{var i=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),w2(this,r),e.performVisualTasks(r),O2(this,this._model,o,"remain",{}),n-=+new Date-i}while(n>0&&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[s2])if(this._disposed)z2(this.id);else{var r,o,i;if(bj(t)&&(n=t.lazyUpdate,r=t.silent,o=t.replaceMerge,i=t.transition,t=t.notMerge),this[s2]=!0,!this._model||t){var a=new LX(this._api),l=this._theme,s=this._model=new OX;s.scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,l,this._locale,a)}this._model.setOption(e,{replaceMerge:o},V2);var c={seriesTransition:i,optionChanged:!0};if(n)this[c2]={silent:r,updateParams:c},this[s2]=!1,this.getZr().wakeUp();else{try{m2(this),b2.update.call(this,null,c)}catch(vDe){throw this[c2]=null,this[s2]=!1,vDe}this._ssr||this._zr.flush(),this[c2]=null,this[s2]=!1,C2.call(this,r),_2.call(this,r)}}},t.prototype.setTheme=function(){jK()},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||$R.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if($R.svgSupported){var e=this._zr;return aj(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],o=this;aj(t,function(e){n.eachComponent({mainType:e},function(e){var t=o._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var i="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return aj(r,function(e){e.group.ignore=!1}),i}z2(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max,i=1/0;if(q2[n]){var a=i,l=i,s=-1/0,c=-1/0,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();aj(Y2,function(i,d){if(i.group===n){var p=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(KR(e)),f=i.getDom().getBoundingClientRect();a=r(f.left,a),l=r(f.top,l),s=o(f.right,s),c=o(f.bottom,c),u.push({dom:p,left:f.left,top:f.top})}});var p=(s*=d)-(a*=d),f=(c*=d)-(l*=d),h=NR.createCanvas(),g=OF(h,{renderer:t?"svg":"canvas"});if(g.resize({width:p,height:f}),t){var m="";return aj(u,function(e){var t=e.left-a,n=e.top-l;m+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new jG({shape:{x:0,y:0,width:p,height:f},style:{fill:e.connectedBackgroundColor}})),aj(u,function(e){var t=new OG({style:{x:e.left*d-a,y:e.top*d-l,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}z2(this.id)},t.prototype.convertToPixel=function(e,t){return x2(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return x2(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return aj(IV(this._model,e),function(e,r){r.indexOf("Models")>=0&&aj(e,function(e){var o=e.coordinateSystem;if(o&&o.containPoint)n=n||!!o.containPoint(t);else if("seriesModels"===r){var i=this._chartsMap[e.__viewId];i&&i.containPoint&&(n=n||i.containPoint(t,e))}else 0},this)},this),!!n;z2(this.id)},t.prototype.getVisual=function(e,t){var n=IV(this._model,e,{defaultMainType:"series"});var r=n.seriesModel.getData(),o=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=o?J0(r,o,t):e1(r,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;aj(L2,function(t){var n=function(n){var r,o=e.getModel(),i=n.target;if("globalout"===t?r={}:i&&o1(i,function(e){var t=eU(e);if(t&&null!=t.dataIndex){var n=t.dataModel||o.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return r=JR({},t.eventData),!0},!0),r){var a=r.componentType,l=r.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",l=r.seriesIndex);var s=a&&null!=l&&o.getComponent(a,l),c=s&&e["series"===s.mainType?"_chartsMap":"_componentsMap"][s.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:r,model:s,view:c},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)}),aj(H2,function(t,n){e._messageCenter.on(n,function(e){this.trigger(n,e)},e)}),aj(["selectchanged"],function(t){e._messageCenter.on(t,function(e){this.trigger(t,e)},e)}),function(e,t,n){e.on("selectchanged",function(e){var r=n.getModel();e.isFromClick?(r1("map","selectchanged",t,r,e),r1("pie","selectchanged",t,r,e)):"select"===e.fromAction?(r1("map","selected",t,r,e),r1("pie","selected",t,r,e)):"unselect"===e.fromAction&&(r1("map","unselected",t,r,e),r1("pie","unselected",t,r,e))})}(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?z2(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)z2(this.id);else{this._disposed=!0,this.getDom()&&PV(this.getDom(),Z2,"");var e=this,t=e._api,n=e._model;aj(e._componentsViews,function(e){e.dispose(n,t)}),aj(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Y2[e.id]}},t.prototype.resize=function(e){if(!this[s2])if(this._disposed)z2(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[c2]&&(null==r&&(r=this[c2].silent),n=!0,this[c2]=null),this[s2]=!0;try{n&&m2(this),b2.update.call(this,{type:"resize",animation:JR({duration:0},e&&e.animation)})}catch(vDe){throw this[s2]=!1,vDe}this[s2]=!1,C2.call(this,r),_2.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)z2(this.id);else if(bj(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),U2[e]){var n=U2[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?z2(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=JR({},e);return t.type=H2[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)z2(this.id);else if(bj(t)||(t={silent:!!t}),B2[e.type]&&this._model)if(this[s2])this._pendingActions.push(e);else{var n=t.silent;S2.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&$R.browser.weChat&&this._throttledZrFlush(),C2.call(this,n),_2.call(this,n)}},t.prototype.updateLabelLayout=function(){Z1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)z2(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var o=n[r];"emphasis"!==o&&"blur"!==o&&"select"!==o&&t.push(o)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,o=e.get("zlevel")||0;t.eachRendered(function(e){return r(e,n,o,-1/0),!0})}}function r(e,t,n,o){var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var l=e.childrenRef(),s=0;s<l.length;s++)o=Math.max(r(l[s],t,n,o),o);else e.z=t,e.zlevel=n,o=Math.max(e.z2,o);if(i&&(i.z=t,i.zlevel=n,isFinite(o)&&(i.z2=o+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(o)&&(a.z2=o+(c&&c.showAbove?1:-1))}return o}function o(e,t){t.eachRendered(function(e){if(!oY(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function i(e,n){var r=e.getModel("stateAnimation"),o=e.isAnimationEnabled(),i=r.get("duration"),a=i>0?{duration:i,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(oY(e))return;if(e instanceof SG&&function(e){var t=oU(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(o){e.stateTransition=a;var r=e.getTextContent(),i=e.getTextGuideLine();r&&(r.stateTransition=a),i&&(i.stateTransition=a)}e.__dirty&&t(e)}})}m2=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),v2(e,!0),v2(e,!1),t.plan()},v2=function(e,t){for(var n=e._model,r=e._scheduler,o=t?e._componentsViews:e._chartsViews,i=t?e._componentsMap:e._chartsMap,a=e._zr,l=e._api,s=0;s<o.length;s++)o[s].__alive=!1;function c(e){var s=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,u=!s&&i[c];if(!u){var d=jV(e.type);0,(u=new(t?qZ.getClass(d.main,d.sub):l0.getClass(d.sub))).init(n,l),i[c]=u,o.push(u),a.add(u.group)}e.__viewId=u.__id=c,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,l)}t?n.eachComponent(function(e,t){"series"!==e&&c(t)}):n.eachSeries(c);for(s=0;s<o.length;){var u=o[s];u.__alive?s++:(!t&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,l),o.splice(s,1),i[u.__id]===u&&delete i[u.__id],u.__id=u.group.__ecComponentInfo=null)}},y2=function(e,t,n,r,o){var i=e._model;if(i.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var l={mainType:r,query:a};o&&(l.subType=o);var s,c=n.excludeSeriesId;null!=c&&(s=Bj(),aj(fV(c),function(e){var t=wV(e,null);null!=t&&s.set(t,!0)})),i&&i.eachComponent(l,function(t){if(!(s&&null!=s.get(t.id)))if(QU(n))if(t instanceof UZ)n.type!==uU||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,o=e.getData(t.dataType);if(o){var i=_V(o,t);i=(hj(i)?i[0]:i)||0;var a=o.getItemGraphicEl(i);if(!a)for(var l=o.count(),s=0;!a&&s<l;)a=o.getItemGraphicEl(s++);if(a){var c=eU(a);LU(r,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=u&&LU(r,u,d,n)}}}(t,n,e._api);else{var r=BU(t.mainType,t.componentIndex,n.name,e._api),o=r.focusSelf,i=r.dispatchers;n.type===uU&&o&&!n.notBlur&&zU(t.mainType,t.componentIndex,e._api),i&&aj(i,function(e){n.type===uU?$U(e):TU(e)})}else ZU(n)&&t instanceof UZ&&(!function(e,t){if(ZU(t)){var n=t.dataType,r=_V(e.getData(n),t);hj(r)||(r=[r]),e[t.type===hU?"toggleSelect":t.type===pU?"select":"unselect"](r,n)}}(t,n,e._api),HU(t),P2(e))},e),i&&i.eachComponent(l,function(t){s&&null!=s.get(t.id)||u(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])},e)}else aj([].concat(e._componentsViews).concat(e._chartsViews),u);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,i,e._api,n)}},b2={prepareAndUpdate:function(e){m2(this),b2.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,o=this._api,i=this._zr,a=this._coordSysMgr,l=this._scheduler;if(r){r.setUpdatePayload(t),l.restoreData(r,t),l.performSeriesTasks(r),a.create(r,o),l.performDataProcessorTasks(r,t),w2(this,r),a.update(r,o),e(r),l.performVisualTasks(r,t),I2(this,r,o,t,n);var s=r.get("backgroundColor")||"transparent",c=r.get("darkMode");i.setBackgroundColor(s),null!=c&&"auto"!==c&&i.setDarkMode(c),Z1.trigger("afterupdate",r,o)}},updateTransform:function(t){var n=this,r=this._model,o=this._api;if(r){r.setUpdatePayload(t);var i=[];r.eachComponent(function(e,a){if("series"!==e){var l=n.getViewOfComponentModel(a);if(l&&l.__alive)if(l.updateTransform){var s=l.updateTransform(a,r,o,t);s&&s.update&&i.push(l)}else i.push(l)}});var a=Bj();r.eachSeries(function(e){var i=n._chartsMap[e.__viewId];if(i.updateTransform){var l=i.updateTransform(e,r,o,t);l&&l.update&&a.set(e.uid,1)}else a.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),O2(this,r,o,t,{},a),Z1.trigger("afterupdate",r,o)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),l0.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),I2(this,n,this._api,t,{}),Z1.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),l0.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent(function(e,o){if("series"!==e){var i=n.getViewOfComponentModel(o);i&&i.__alive&&i.updateVisual(o,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),Z1.trigger("afterupdate",r,this._api))},updateLayout:function(e){b2.update.call(this,e)}},x2=function(e,t,n,r){if(e._disposed)z2(e.id);else{for(var o,i=e._model,a=e._coordSysMgr.getCoordinateSystems(),l=IV(i,n),s=0;s<a.length;s++){var c=a[s];if(c[t]&&null!=(o=c[t](i,l,r)))return o}0}},w2=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},S2=function(e,t){var n=this,r=this.getModel(),o=e.type,i=e.escapeConnect,a=B2[o],l=a.actionInfo,s=(l.update||"update").split(":"),c=s.pop(),u=null!=s[0]&&jV(s[0]);this[s2]=!0;var d=[e],p=!1;e.batch&&(p=!0,d=lj(e.batch,function(t){return(t=ej(JR({},t),e)).batch=null,t}));var f,h=[],g=ZU(e),m=QU(e);if(m&&jU(this._api),aj(d,function(t){if((f=(f=a.action(t,n._model,n._api))||JR({},t)).type=l.event||f.type,h.push(f),m){var r=EV(e),o=r.queryOptionMap,i=r.mainTypeSpecified?o.keys()[0]:"series";y2(n,c,t,i),P2(n)}else g?(y2(n,c,t,"series"),P2(n)):u&&y2(n,c,t,u.main,u.sub)}),"none"!==c&&!m&&!g&&!u)try{this[c2]?(m2(this),b2.update.call(this,e),this[c2]=null):b2[c].call(this,e)}catch(vDe){throw this[s2]=!1,vDe}if(f=p?{type:l.event||o,escapeConnect:i,batch:h}:h[0],this[s2]=!1,!t){var v=this._messageCenter;if(v.trigger(f.type,f),g){var y={type:"selectchanged",escapeConnect:i,selected:FU(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(y.type,y)}}},C2=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();S2.call(this,n,e)}},_2=function(e){!e&&this.trigger("updated")},k2=function(e,t){e.on("rendered",function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[c2]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")})},M2=function(e,t){e.on("mouseover",function(e){var n=o1(e.target,KU);n&&(!function(e,t,n){var r=eU(e),o=BU(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=o.dispatchers,a=o.focusSelf;i?(a&&zU(r.componentMainType,r.componentIndex,n),aj(i,function(e){return EU(e,t)})):(LU(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&zU(r.componentMainType,r.componentIndex,n),EU(e,t))}(n,e,t._api),P2(t))}).on("mouseout",function(e){var n=o1(e.target,KU);n&&(!function(e,t,n){jU(n);var r=eU(e),o=BU(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;o?aj(o,function(e){return OU(e,t)}):OU(e,t)}(n,e,t._api),P2(t))}).on("click",function(e){var n=o1(e.target,function(e){return null!=eU(e).dataIndex},!0);if(n){var r=n.selected?"unselect":"select",o=eU(n);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}})},I2=function(e,t,n,r,o){!function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,o){var i=o.get("zlevel")||0,a=o.get("z")||0,l=o.getZLevelKey();r=r||!!l,("series"===e?n:t).push({zlevel:i,z:a,idx:o.componentIndex,type:e,key:l})}),r){var o,i,a=t.concat(n);$z(a,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),aj(a,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=o&&(r=Math.max(o,r)),a?(r===o&&a!==i&&r++,i=a):i&&(r===o&&r++,i=""),o=r,n.setZLevel(r)})}}(t),E2(e,t,n,r,o),aj(e._chartsViews,function(e){e.__alive=!1}),O2(e,t,n,r,o),aj(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},E2=function(e,t,r,a,l,s){aj(s||e._componentsViews,function(e){var l=e.__model;o(l,e),e.render(l,t,r,a),n(l,e),i(l,e)})},O2=function(e,t,r,a,l,s){var c=e._scheduler;l=JR(l||{},{updatedSeries:t.getSeries()}),Z1.trigger("series:beforeupdate",t,r,l);var u=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;c.updatePayload(r,a),o(t,n),s&&s.get(t.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(u=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),HU(t)}),c.unfinished=u||c.unfinished,Z1.trigger("series:layoutlabels",t,r,l),Z1.trigger("series:transition",t,r,l),t.eachSeries(function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)}),function(e,t){var n=e._zr,r=n.storage,o=0;r.traverse(function(e){e.isGroup||o++}),o>t.get("hoverLayerThreshold")&&!$R.node&&!$R.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}(e,t),Z1.trigger("series:afterupdate",t,r,l)},P2=function(e){e[u2]=!0,e.getZr().wakeUp()},D2=function(e){e[u2]&&(e.getZr().storage.traverse(function(e){oY(e)||t(e)}),e[u2]=!1)},$2=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return MR(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){$U(t,n),P2(e)},n.prototype.leaveEmphasis=function(t,n){TU(t,n),P2(e)},n.prototype.enterBlur=function(t){PU(t),P2(e)},n.prototype.leaveBlur=function(t){DU(t),P2(e)},n.prototype.enterSelect=function(t){NU(t),P2(e)},n.prototype.leaveSelect=function(t){AU(t),P2(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(TX))(e)},T2=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][p2]=t}}aj(H2,function(n,r){e._messageCenter.on(r,function(n){if(q2[e.group]&&0!==e[p2]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),o=[];aj(Y2,function(t){t!==e&&t.group===e.group&&o.push(t)}),t(o,0),aj(o,function(e){1!==e[p2]&&e.dispatchAction(r)}),t(o,2)}})})}}(),t}(SL),j2=R2.prototype;j2.on=f2("on"),j2.off=f2("off"),j2.one=function(e,t,n){var r=this;jK(),this.on.call(this,e,function n(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t&&t.apply&&t.apply(this,o),r.off(e,n)},n)};var L2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function z2(e){0}var B2={},H2={},F2=[],V2=[],W2=[],G2={},U2={},Y2={},q2={},X2=+new Date-0,K2=+new Date-0,Z2="_echarts_instance_";function Q2(e,t,n){var r=!(n&&n.ssr);if(r){0;var o=r4(e);if(o)return o;0}var i=new R2(e,t,n);return i.id="ec_"+X2++,Y2[i.id]=i,r&&PV(e,Z2,i.id),T2(i),Z1.trigger("afterinit",i),i}function J2(e){if(hj(e)){var t=e;e=null,aj(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+K2++,aj(t,function(t){t.group=e})}return q2[e]=!0,e}function e4(e){q2[e]=!1}var t4=e4;function n4(e){mj(e)?e=Y2[e]:e instanceof R2||(e=r4(e)),e instanceof R2&&!e.isDisposed()&&e.dispose()}function r4(e){return Y2[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,Z2)]}function o4(e){return Y2[e]}function i4(e,t){G2[e]=t}function a4(e){nj(V2,e)<0&&V2.push(e)}function l4(e,t){v4(F2,e,t,n2)}function s4(e){u4("afterinit",e)}function c4(e){u4("afterupdate",e)}function u4(e,t){Z1.on(e,t)}function d4(e,t,n){gj(t)&&(n=t,t="");var r=bj(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,H2[t]||(Pj(d2.test(r)&&d2.test(t)),B2[r]||(B2[r]={action:n,actionInfo:e}),H2[t]=r)}function p4(e,t){NX.register(e,t)}function f4(e){var t=NX.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function h4(e,t){v4(W2,e,t,r2,"layout")}function g4(e,t){v4(W2,e,t,i2,"visual")}var m4=[];function v4(e,t,n,r,o){if((gj(t)||bj(t))&&(n=t,t=r),!(nj(m4,n)>=0)){m4.push(n);var i=z0.wrapStageHandler(n,o);i.__prio=t,i.__raw=n,e.push(i)}}function y4(e,t){U2[e]=t}function b4(e){AR({createCanvas:e})}function x4(e,t,n){var r=J1("registerMap");r&&r(e,t,n)}function w4(e){var t=J1("getMap");return t&&t(e)}var S4=function(e){var t=(e=KR(e)).type;t||LK("");var n=t.split(":");2!==n.length&&LK("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,QK.set(t,e)};g4(o2,b0),g4(a2,w0),g4(a2,S0),g4(o2,Z0),g4(a2,Q0),g4(7e3,function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Y1(n,t))});var o=r.getVisual("decal");if(o)r.getVisual("style").decal=Y1(o,t)}})}),a4(oK),l4(900,function(e){var t=Bj();e.eachSeries(function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),o=e.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!i.stackedDimension||!i.isStackedByIndex&&!i.stackedByDimension)return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(i)}}),t.each(iK)}),y4("default",function(e,t){ej(t=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 _F,r=new jG({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o,i=new JG({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 jG({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((o=new iJ({shape:{startAngle:-C0/2,endAngle:-C0/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*C0/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*C0/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,s=(e.getWidth()-2*l-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:s,cy:c}),a.setShape({x:s-l,y:c-l,width:2*l,height:2*l}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),d4({type:uU,event:uU,update:uU},Gj),d4({type:dU,event:dU,update:dU},Gj),d4({type:pU,event:pU,update:pU},Gj),d4({type:fU,event:fU,update:fU},Gj),d4({type:hU,event:hU,update:hU},Gj),i4("light",H0),i4("dark",Y0);var C4={},_4=[],k4={registerPreprocessor:a4,registerProcessor:l4,registerPostInit:s4,registerPostUpdate:c4,registerUpdateLifecycle:u4,registerAction:d4,registerCoordinateSystem:p4,registerLayout:h4,registerVisual:g4,registerTransform:S4,registerLoading:y4,registerMap:x4,registerImpl:function(e,t){Q1[e]=t},PRIORITY:l2,ComponentModel:Xq,ComponentView:qZ,SeriesModel:UZ,ChartView:l0,registerComponentModel:function(e){Xq.registerClass(e)},registerComponentView:function(e){qZ.registerClass(e)},registerSeriesModel:function(e){UZ.registerClass(e)},registerChartView:function(e){l0.registerClass(e)},registerSubTypeDefaulter:function(e,t){Xq.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){DF(e,t)}};function M4(e){hj(e)?aj(e,function(e){M4(e)}):nj(_4,e)>=0||(_4.push(e),gj(e)&&(e={install:e}),e.install(k4))}function I4(e){return null==e?0:e.length||1}function E4(e){return e}var O4=function(){function e(e,t,n,r,o,i){this._old=e,this._new=t,this._oldKeyGetter=n||E4,this._newKeyGetter=r||E4,this.context=o,this._diffModeMultiple="multiple"===i}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),o=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var i=0;i<e.length;i++){var a=r[i],l=n[a],s=I4(l);if(s>1){var c=l.shift();1===l.length&&(n[a]=l[0]),this._update&&this._update(c,i)}else 1===s?(n[a]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},o=[],i=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var a=0;a<o.length;a++){var l=o[a],s=n[l],c=r[l],u=I4(s),d=I4(c);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,s),r[l]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,s),r[l]=null;else if(1===u&&1===d)this._update&&this._update(c,s),r[l]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,s),r[l]=null;else if(u>1)for(var p=0;p<u;p++)this._remove&&this._remove(s[p]);else this._remove&&this._remove(s)}this._performRestAdd(i,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=t[r],i=I4(o);if(i>1)for(var a=0;a<i;a++)this._add&&this._add(o[a]);else 1===i&&this._add&&this._add(o);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var o=this._diffModeMultiple,i=0;i<e.length;i++){var a="_ec_"+this[r](e[i],i);if(o||(n[i]=a),t){var l=t[a],s=I4(l);0===s?(t[a]=i,o&&n.push(a)):1===s?t[a]=[l,i]:l.push(i)}}},e}();const $4=O4;var T4=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function P4(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function D4(e){return"category"===e?"ordinal":"time"===e?"time":"float"}const N4=function(e){this.otherDims={},null!=e&&JR(this,e)};var A4=kV(),R4={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},j4=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=B4(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Ej(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=yK(this.source),n=!H4(e),r="",o=[],i=0,a=0;i<e;i++){var l=void 0,s=void 0,c=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===i)l=t?u.name:null,s=u.type,c=u.ordinalMeta,a++;else{var d=this.getSourceDimension(i);d&&(l=t?d.name:null,s=d.type)}o.push({property:l,type:s,ordinalMeta:c}),!t||null==l||u&&u.isCalculationCoord||(r+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=R4[s]||"f",c&&(r+=c.uid),r+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===t)o.isCalculationCoord||(r=o.name),n++;else{var i=this.getSourceDimension(t);i&&(r=i.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function L4(e){return e instanceof j4}function z4(e){for(var t=Bj(),n=0;n<(e||[]).length;n++){var r=e[n],o=bj(r)?r.name:r;null!=o&&null==t.get(o)&&t.set(o,n)}return t}function B4(e){var t=A4(e);return t.dimNameMap||(t.dimNameMap=z4(e.dimensionsDefine))}function H4(e){return e>30}var F4,V4,W4,G4,U4,Y4,q4,X4=bj,K4=lj,Z4="undefined"===typeof Int32Array?Array:Int32Array,Q4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],J4=["_approximateExtent"],e3=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;L4(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var o={},i=[],a={},l=!1,s={},c=0;c<n.length;c++){var u=n[c],d=mj(u)?new N4({name:u}):u instanceof N4?u:new N4(u),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};i.push(p),o[p]=d,null!=s[p]&&(l=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),r&&(d.storeDimIndex=c)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var h=this._dimIdxToName=Bj();aj(i,function(e){h.set(o[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(yj(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,o=this;if(e instanceof fZ&&(r=e),!r){var i=this.dimensions,a=pK(e)||ij(e)?new bK(e,i.length):e;r=new fZ;var l=K4(i,function(e){return{type:o._dimInfos[e].type,property:e}});r.initData(a,l,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},o=Bj(),i=[],a=[],l={};aj(e.dimensions,function(t){var n,s=e.getDimensionInfo(t),c=s.coordDim;if(c){var u=s.coordDimIndex;P4(r,c)[u]=t,s.isExtraCoord||(o.set(c,1),"ordinal"!==(n=s.type)&&"time"!==n&&(i[0]=t),P4(l,c)[u]=e.getDimensionIndex(s.name)),s.defaultTooltip&&a.push(t)}Jq.each(function(e,t){var n=P4(r,t),o=s.otherDims[t];null!=o&&!1!==o&&(n[o]=s.name)})});var s=[],c={};o.each(function(e,t){var n=r[t];c[t]=n[0],s=s.concat(n)}),n.dataDimsOnCoord=s,n.dataDimIndicesOnCoord=lj(s,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=c;var u=r.label;u&&u.length&&(i=u.slice());var d=r.tooltip;return d&&d.length?a=d.slice():a.length||(a=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=a,n.userOutput=new T4(l,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,o=n.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<o;a++){var l=a-r;this._nameList[a]=t[l],i&&q4(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==oX&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===eX&&!n.pure)for(var i=[],a=e;a<t;a++){var l=n.getItem(a,i);if(!this.hasItemOption&&vV(l)&&(this.hasItemOption=!0),l){var s=l.name;null==r[a]&&null!=s&&(r[a]=wV(s,null));var c=l.id;null==o[a]&&null!=c&&(o[a]=wV(c,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)q4(this,a);F4(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){X4(e)?JR(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=W4(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return V4(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return hj(e)?r.getValues(K4(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var r=n&&n[t];return null==r||isNaN(r)?-1:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){gj(e)&&(n=t,t=e,e=[]);var r=n||this,o=K4(G4(e),this._getStoreDimIndex,this);this._store.each(o,r?pj(t,r):t)},e.prototype.filterSelf=function(e,t,n){gj(e)&&(n=t,t=e,e=[]);var r=n||this,o=K4(G4(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?pj(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=dj(e),o=[];return aj(r,function(r){var i=t._getStoreDimIndex(r);n[i]=e[r],o.push(i)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){gj(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var o=n||r||this,i=K4(G4(e),this._getStoreDimIndex,this),a=Y4(this);return a._store=this._store.map(i,o?pj(t,o):t),a},e.prototype.modify=function(e,t,n,r){var o=n||r||this;var i=K4(G4(e),this._getStoreDimIndex,this);this._store.modify(i,o?pj(t,o):t)},e.prototype.downSample=function(e,t,n,r){var o=Y4(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),o},e.prototype.minmaxDownSample=function(e,t){var n=Y4(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Y4(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new RY(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new $4(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return V4(e,t)},function(e){return V4(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},X4(e)?JR(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var o=r[t];return null==o&&(hj(o=this.getVisual(t))?o=o.slice():X4(o)&&(o=JR({},o)),r[t]=o),o},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,X4(t)?JR(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){X4(e)?JR(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?JR(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;tU(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){aj(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:K4(this.dimensions,this._getDimInfo,this),this.hostModel)),U4(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];gj(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat($j(arguments)))})},e.internalField=(F4=function(e){var t=e._invertedIndicesMap;aj(t,function(n,r){var o=e._dimInfos[r],i=o.ordinalMeta,a=e._store;if(i){n=t[r]=new Z4(i.categories.length);for(var l=0;l<n.length;l++)n[l]=-1;for(l=0;l<a.count();l++)n[a.get(o.storeDimIndex,l)]=l}})},W4=function(e,t,n){return wV(e._getCategory(t,n),null)},V4=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=W4(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},G4=function(e){return hj(e)||(e=null!=e?[e]:[]),e},Y4=function(t){var n=new e(t._schema?t._schema:K4(t.dimensions,t._getDimInfo,t),t.hostModel);return U4(n,t),n},U4=function(e,t){aj(Q4.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,aj(J4,function(n){e[n]=KR(t[n])}),e._calculationInfo=JR({},t._calculationInfo)},void(q4=function(e,t){var n=e._nameList,r=e._idList,o=e._nameDimIdx,i=e._idDimIdx,a=n[t],l=r[t];if(null==a&&null!=o&&(n[t]=a=W4(e,o,t)),null==l&&null!=i&&(r[t]=l=W4(e,i,t)),null==l&&null!=a){var s=e._nameRepeatCount,c=s[a]=(s[a]||0)+1;l=a,c>1&&(l+="__ec__"+c),r[t]=l}})),e}();const t3=e3;function n3(e,t){return r3(e,t).dimensions}function r3(e,t){pK(e)||(e=hK(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=Bj(),i=[],a=function(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return aj(t,function(e){var t;bj(e)&&(t=e.dimsDef)&&(o=Math.max(o,t.length))}),o}(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&H4(a),s=r===e.dimensionsDefine,c=s?B4(e):z4(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var d=Bj(u),p=new iZ(a),f=0;f<p.length;f++)p[f]=-1;function h(e){var t=p[e];if(t<0){var n=r[e],o=bj(n)?n:{name:n},a=new N4,l=o.name;null!=l&&null!=c.get(l)&&(a.name=a.displayName=l),null!=o.type&&(a.type=o.type),null!=o.displayName&&(a.displayName=o.displayName);var s=i.length;return p[e]=s,a.storeDimIndex=e,i.push(a),a}return i[t]}if(!l)for(f=0;f<a;f++)h(f);d.each(function(e,t){var n=fV(e).slice();if(1===n.length&&!mj(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);aj(n,function(e,n){var o=mj(e)?c.get(e):e;null!=o&&o<a&&(r[n]=o,m(h(o),t,n))})}});var g=0;function m(e,t,n){null!=Jq.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,o.set(t,!0))}aj(n,function(e){var t,n,r,o;if(mj(e))t=e,o={};else{t=(o=e).name;var i=o.ordinalMeta;o.ordinalMeta=null,(o=JR({},o)).ordinalMeta=i,n=o.dimsDef,r=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null}var l=d.get(t);if(!1!==l){if(!(l=fV(l)).length)for(var c=0;c<(n&&n.length||1);c++){for(;g<a&&null!=h(g).coordDim;)g++;g<a&&l.push(g++)}aj(l,function(e,i){var a=h(e);if(s&&null!=o.type&&(a.type=o.type),m(ej(a,o),t,i),null==a.name&&n){var l=n[i];!bj(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}r&&ej(a.otherDims,r)})}});var v=t.generateCoord,y=t.generateCoordCount,b=null!=y;y=v?y||1:0;var x=v||"value";function w(e){null==e.name&&(e.name=e.coordDim)}if(l)aj(i,function(e){w(e)}),i.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<a;S++){var C=h(S);null==C.coordDim&&(C.coordDim=o3(x,o,b),C.coordDimIndex=0,(!v||y<=0)&&(C.isExtraCoord=!0),y--),w(C),null!=C.type||fX(e,S)!==sX.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return function(e){for(var t=Bj(),n=0;n<e.length;n++){var r=e[n],o=r.name,i=t.get(o)||0;i>0&&(r.name=o+(i-1)),i++,t.set(o,i)}}(i),new j4({source:e,dimensions:i,fullDimensionCount:a,dimensionOmitted:l})}function o3(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var i3=function(e){this.coordSysDims=[],this.axisMap=Bj(),this.categoryAxisMap=Bj(),this.coordSysName=e};var a3={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",OV).models[0],i=e.getReferringComponents("yAxis",OV).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",i),l3(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),l3(i)&&(r.set("y",i),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",OV).models[0];t.coordSysDims=["single"],n.set("single",o),l3(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",OV).models[0],i=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",a),l3(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),l3(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 o=e.ecModel,i=o.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=i.dimensions.slice();aj(i.parallelAxisIndex,function(e,i){var l=o.getComponent("parallelAxis",e),s=a[i];n.set(s,l),l3(l)&&(r.set(s,l),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))})}};function l3(e){return"category"===e.get("type")}function s3(e,t,n){var r,o,i,a=(n=n||{}).byIndex,l=n.stackedCoordDimension;!function(e){return!L4(e.schema)}(t)?(o=t.schema,r=o.dimensions,i=t.store):r=t;var s,c,u,d,p=!(!e||!e.get("stack"));if(aj(r,function(e,t){mj(e)&&(r[t]=e={name:e}),p&&!e.isExtraCoord&&(a||s||!e.ordinalMeta||(s=e),c||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(c=e))}),!c||a||s||(a=!0),c){u="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,s&&(s.createInvertedIndices=!0);var f=c.coordDim,h=c.type,g=0;aj(r,function(e){e.coordDim===f&&g++});var m={name:u,coordDim:f,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:d,coordDim:d,coordDimIndex:g+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};o?(i&&(m.storeDimIndex=i.ensureCalculationDimension(d,h),v.storeDimIndex=i.ensureCalculationDimension(u,h)),o.appendCalculationDimension(m),o.appendCalculationDimension(v)):(r.push(m),r.push(v))}return{stackedDimension:c&&c.name,stackedByDimension:s&&s.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:u}}function c3(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function u3(e,t){return c3(e,t)?e.getCalculationInfo("stackResultDimension"):t}const d3=function(e,t,n){n=n||{};var r,o=t.getSourceManager(),i=!1;e?(i=!0,r=hK(e)):i=(r=o.getSource()).sourceFormat===eX;var a=function(e){var t=e.get("coordinateSystem"),n=new i3(t),r=a3[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),l=function(e,t){var n,r=e.get("coordinateSystem"),o=NX.get(r);return t&&t.coordSysDims&&(n=lj(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);if(r){var o=r.get("type");n.type=D4(o)}return n})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(t,a),s=n.useEncodeDefaulter,c=gj(s)?s:s?fj(uX,l,t):null,u=r3(r,{coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!i}),d=function(e,t,n){var r,o;return n&&aj(e,function(e,i){var a=e.coordDim,l=n.categoryAxisMap.get(a);l&&(null==r&&(r=i),e.ordinalMeta=l.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)}),o||null==r||(e[r].otherDims.itemName=0),r}(u.dimensions,n.createInvertedIndices,a),p=i?null:o.getSharedDataStore(u),f=s3(t,{schema:u,store:p}),h=new t3(u,t);h.setCalculationInfo(f);var g=null!=d&&function(e){if(e.sourceFormat===eX){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!hj(mV(t))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(i?r:p,null,g),h};var p3=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[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}();VV(p3);const f3=p3;var h3=0,g3=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++h3}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&lj(r,m3);return new e({categories:o,needCollect:!o,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(!mj(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(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=Bj(this.categories))},e}();function m3(e){return bj(e)&&null!=e.value?e.value:e+""}const v3=g3;function y3(e){return"interval"===e.type||"log"===e.type}function b3(e,t,n,r){var o={},i=e[1]-e[0],a=o.interval=nV(i/t,!0);null!=n&&a<n&&(a=o.interval=n),null!=r&&a>r&&(a=o.interval=r);var l=o.intervalPrecision=w3(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),S3(e,0,t),S3(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(o.niceTickExtent=[HF(Math.ceil(e[0]/a)*a,l),HF(Math.floor(e[1]/a)*a,l)],e),o}function x3(e){var t=Math.pow(10,tV(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,HF(n*t)}function w3(e){return VF(e)+2}function S3(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function C3(e,t){return e>=t[0]&&e<=t[1]}function _3(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function k3(e,t){return e*(t[1]-t[0])+t[0]}var M3=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new v3({})),hj(r)&&(r=new v3({categories:lj(r,function(e){return bj(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return MR(t,e),t.prototype.parse=function(e){return null==e?NaN:mj(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return C3(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return _3(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(k3(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];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=[],o=0,i=this._ordinalMeta.categories.length,a=Math.min(i,t.length);o<a;++o){var l=t[o];n[o]=l,r[l]=o}for(var s=0;o<i;++o){for(;null!=r[s];)s++;n.push(s),r[s]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(f3);f3.registerClass(M3);const I3=M3;var E3=HF,O3=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 MR(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return C3(e,this._extent)},t.prototype.normalize=function(e){return _3(e,this._extent)},t.prototype.scale=function(e){return k3(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[0]&&(t[0]=e[0]),e[1]>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=w3(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,o=this._intervalPrecision,i=[];if(!t)return i;n[0]<r[0]&&(e?i.push({value:E3(r[0]-t,o)}):i.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(i.push({value:a}),(a=E3(a+t,o))!==i[i.length-1].value);)if(i.length>1e4)return[];var l=i.length?i[i.length-1].value:r[1];return n[1]>l&&(e?i.push({value:E3(l+t,o)}):i.push({value:n[1]})),i},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),o=1;o<t.length;o++){for(var i=t[o],a=t[o-1],l=0,s=[],c=(i.value-a.value)/e;l<e-1;){var u=E3(a.value+(l+1)*c);u>r[0]&&u<r[1]&&s.push(u),l++}n.push(s)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=VF(e.value)||0:"auto"===n&&(n=this._intervalPrecision),_q(E3(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,o=r[1]-r[0];if(isFinite(o)){o<0&&(o=-o,r.reverse());var i=b3(r,e,t,n);this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(t[0]=E3(Math.floor(t[0]/o)*o)),e.fixMax||(t[1]=E3(Math.ceil(t[1]/o)*o))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(f3);f3.registerClass(O3);const $3=O3;var T3="undefined"!==typeof Float32Array,P3=T3?Float32Array:Array;function D3(e){return hj(e)?T3?new Float32Array(e):e:new P3(e)}var N3="__ec_stack_";function A3(e){return e.get("stack")||N3+e.seriesIndex}function R3(e){return e.dim+e.index}function j3(e,t){var n=[];return t.eachSeriesByType(e,function(e){F3(e)&&n.push(e)}),n}function L3(e){var t=function(e){var t={};aj(e,function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),o=n.dim+"_"+n.index,i=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),l=0,s=a.count();l<s;++l){var c=a.get(i,l);t[o]?t[o].push(c):t[o]=[c]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort(function(e,t){return e-t});for(var i=null,a=1;a<o.length;++a){var l=o[a]-o[a-1];l>0&&(i=null===i?l:Math.min(i,l))}n[r]=i}}return n}(e),n=[];return aj(e,function(e){var r,o=e.coordinateSystem.getBaseAxis(),i=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var a=o.dim+"_"+o.index,l=t[a],s=Math.abs(i[1]-i[0]),c=o.scale.getExtent(),u=Math.abs(c[1]-c[0]);r=l?s/u*l:s}else{var d=e.getData();r=Math.abs(i[1]-i[0])/d.count()}var p=BF(e.get("barWidth"),r),f=BF(e.get("barMaxWidth"),r),h=BF(e.get("barMinWidth")||(V3(e)?.5:1),r),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:f,barMinWidth:h,barGap:g,barCategoryGap:m,axisKey:R3(o),stackId:A3(e)})}),z3(n)}function z3(e){var t={};aj(e,function(e,n){var r=e.axisKey,o=e.bandWidth,i=t[r]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=i.stacks;t[r]=i;var l=e.stackId;a[l]||i.autoWidthCount++,a[l]=a[l]||{width:0,maxWidth:0};var s=e.barWidth;s&&!a[l].width&&(a[l].width=s,s=Math.min(i.remainedWidth,s),i.remainedWidth-=s);var c=e.barMaxWidth;c&&(a[l].maxWidth=c);var u=e.barMinWidth;u&&(a[l].minWidth=u);var d=e.barGap;null!=d&&(i.gap=d);var p=e.barCategoryGap;null!=p&&(i.categoryGap=p)});var n={};return aj(t,function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,i=e.categoryGap;if(null==i){var a=dj(r).length;i=Math.max(35-4*a,15)+"%"}var l=BF(i,o),s=BF(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-l)/(u+(u-1)*s);d=Math.max(d,0),aj(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,c-=r+s*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,c)),n&&n>r&&(r=n),r!==d&&(e.width=r,c-=r+s*r,u--)}}),d=(c-l)/(u+(u-1)*s),d=Math.max(d,0);var p,f=0;aj(r,function(e,t){e.width||(e.width=d),p=e,f+=e.width*(1+s)}),p&&(f-=p.width*s);var h=-f/2;aj(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:h,width:e.width},h+=e.width*(1+s)})}),n}function B3(e,t){var n=j3(e,t),r=L3(n);aj(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),o=A3(e),i=r[R3(n)][o],a=i.offset,l=i.width;t.setLayout({bandWidth:i.bandWidth,offset:a,size:l})})}function H3(e){return{seriesType:e,plan:XZ(),reset:function(e){if(F3(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=n.getOtherAxis(r),i=t.getDimensionIndex(t.mapDimension(o.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),l=e.get("showBackground",!0),s=t.mapDimension(o.dim),c=t.getCalculationInfo("stackResultDimension"),u=c3(t,s)&&!!t.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),p=function(e,t){var n=t.model.get("startValue");n||(n=0);return t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}(0,o),f=V3(e),h=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){for(var r,o=e.count,s=f&&D3(3*o),c=f&&l&&D3(3*o),y=f&&D3(o),b=n.master.getRect(),x=d?b.width:b.height,w=t.getStore(),S=0;null!=(r=e.next());){var C=w.get(u?g:i,r),_=w.get(a,r),k=p,M=void 0;u&&(M=+C-w.get(i,r));var I=void 0,E=void 0,O=void 0,$=void 0;if(d){var T=n.dataToPoint([C,_]);if(u)k=n.dataToPoint([M,_])[0];I=k,E=T[1]+v,O=T[0]-k,$=m,Math.abs(O)<h&&(O=(O<0?-1:1)*h)}else{T=n.dataToPoint([_,C]);if(u)k=n.dataToPoint([_,M])[1];I=T[0]+v,E=k,O=m,$=T[1]-k,Math.abs($)<h&&($=($<=0?-1:1)*h)}f?(s[S]=I,s[S+1]=E,s[S+2]=d?O:$,c&&(c[S]=d?b.x:I,c[S+1]=d?E:b.y,c[S+2]=x),y[r]=r):t.setItemLayout(r,{x:I,y:E,width:O,height:$}),S+=3}f&&t.setLayout({largePoints:s,largeDataIndices:y,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function F3(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function V3(e){return e.pipelineContext&&e.pipelineContext.large}var W3=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return MR(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return lq(e.value,tq[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(iq(this._minLevelUnit))]||tq.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,o){var i=null;if(mj(n))i=n;else if(gj(n))i=n(e.value,t,{level:e.level});else{var a=JR({},JY);if(e.level>0)for(var l=0;l<nq.length;++l)a[nq[l]]="{primary|"+a[nq[l]]+"}";var s=n?!1===n.inherit?n:ej(n,a):a,c=sq(e.value,o);if(s[c])i=s[c];else if(s.inherit){for(l=rq.indexOf(c)-1;l>=0;--l)if(s[c]){i=s[c];break}i=i||a.none}if(hj(i)){var u=null==e.level?0:e.level>=0?e.level:i.length+e.level;i=i[u=Math.min(u,i.length-1)]}}return lq(new Date(e.value),i,o,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),o=function(e,t,n,r){var o=1e4,i=rq,a=0;function l(e,t,n,o,i,a,l){for(var s=new Date(t),c=t,u=s[o]();c<n&&c<=r[1];)l.push({value:c}),u+=e,s[i](u),c=s.getTime();l.push({value:c,notAdd:!0})}function s(e,o,i){var a=[],s=!o.length;if(!function(e,t,n,r){var o=JF(t),i=JF(n),a=function(e){return cq(o,e,r)===cq(i,e,r)},l=function(){return a("year")},s=function(){return l()&&a("month")},c=function(){return s()&&a("day")},u=function(){return c()&&a("hour")},d=function(){return u()&&a("minute")},p=function(){return d()&&a("second")},f=function(){return p()&&a("millisecond")};switch(e){case"year":return l();case"month":return s();case"day":return c();case"hour":return u();case"minute":return d();case"second":return p();case"millisecond":return f()}}(iq(e),r[0],r[1],n)){s&&(o=[{value:Z3(new Date(r[0]),e,n)},{value:r[1]}]);for(var c=0;c<o.length-1;c++){var u=o[c].value,d=o[c+1].value;if(u!==d){var p=void 0,f=void 0,h=void 0,g=!1;switch(e){case"year":p=Math.max(1,Math.round(t/ZY/365)),f=uq(n),h=vq(n);break;case"half-year":case"quarter":case"month":p=Y3(t),f=dq(n),h=yq(n);break;case"week":case"half-week":case"day":p=U3(t,31),f=pq(n),h=bq(n),g=!0;break;case"half-day":case"quarter-day":case"hour":p=q3(t),f=fq(n),h=xq(n);break;case"minute":p=X3(t,!0),f=hq(n),h=wq(n);break;case"second":p=X3(t,!1),f=gq(n),h=Sq(n);break;case"millisecond":p=K3(t),f=mq(n),h=Cq(n)}l(p,u,d,f,h,g,a),"year"===e&&i.length>1&&0===c&&i.unshift({value:i[0].value-p})}}for(c=0;c<a.length;c++)i.push(a[c]);return a}}for(var c=[],u=[],d=0,p=0,f=0;f<i.length&&a++<o;++f){var h=iq(i[f]);if(aq(i[f]))if(s(i[f],c[c.length-1]||[],u),h!==(i[f+1]?iq(i[f+1]):null)){if(u.length){p=d,u.sort(function(e,t){return e.value-t.value});for(var g=[],m=0;m<u.length;++m){var v=u[m].value;0!==m&&u[m-1].value===v||(g.push(u[m]),v>=r[0]&&v<=r[1]&&d++)}var y=(r[1]-r[0])/t;if(d>1.5*y&&p>y/1.5)break;if(c.push(g),d>y||e===i[f])break}u=[]}}0;var b=cj(lj(c,function(e){return cj(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=[],w=b.length-1;for(f=0;f<b.length;++f)for(var S=b[f],C=0;C<S.length;++C)x.push({value:S[C].value,level:w-f});x.sort(function(e,t){return e.value-t.value});var _=[];for(f=0;f<x.length;++f)0!==f&&x[f].value===x[f-1].value||_.push(x[f]);return _}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(o)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=ZY,t[1]+=ZY),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-ZY}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,o=r[1]-r[0];this._approxInterval=o/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var i=G3.length,a=Math.min(function(e,t,n,r){for(;n<r;){var o=n+r>>>1;e[o][1]<t?n=o+1:r=o}return n}(G3,this._approxInterval,0,i),i-1);this._interval=G3[a][1],this._minLevelUnit=G3[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return yj(e)?e:+JF(e)},t.prototype.contain=function(e){return C3(this.parse(e),this._extent)},t.prototype.normalize=function(e){return _3(this.parse(e),this._extent)},t.prototype.scale=function(e){return k3(e,this._extent)},t.type="time",t}($3),G3=[["second",qY],["minute",XY],["hour",KY],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",QY/2],["year",QY]];function U3(e,t){return(e/=ZY)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Y3(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function q3(e){return(e/=KY)>12?12:e>6?6:e>3.5?4:e>2?2:1}function X3(e,t){return(e/=t?XY:qY)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function K3(e){return nV(e,!0)}function Z3(e,t,n){var r=new Date(e);switch(iq(t)){case"year":case"month":r[yq(n)](0);case"day":r[bq(n)](1);case"hour":r[xq(n)](0);case"minute":r[wq(n)](0);case"second":r[Sq(n)](0),r[Cq(n)](0)}return r.getTime()}f3.registerClass(W3);const Q3=W3;var J3=f3.prototype,e5=$3.prototype,t5=HF,n5=Math.floor,r5=Math.ceil,o5=Math.pow,i5=Math.log,a5=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new $3,t._interval=0,t}return MR(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return lj(e5.getTicks.call(this,e),function(e){var t=e.value,o=HF(o5(this.base,t));return o=t===n[0]&&this._fixMin?s5(o,r[0]):o,{value:o=t===n[1]&&this._fixMax?s5(o,r[1]):o}},this)},t.prototype.setExtent=function(e,t){var n=i5(this.base);e=i5(Math.max(0,e))/n,t=i5(Math.max(0,t))/n,e5.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=J3.getExtent.call(this);t[0]=o5(e,t[0]),t[1]=o5(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=s5(t[0],n[0])),this._fixMax&&(t[1]=s5(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=i5(e[0])/i5(t),e[1]=i5(e[1])/i5(t),J3.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=eV(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var o=[HF(r5(t[0]/r)*r),HF(n5(t[1]/r)*r)];this._interval=r,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){e5.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 C3(e=i5(e)/i5(this.base),this._extent)},t.prototype.normalize=function(e){return _3(e=i5(e)/i5(this.base),this._extent)},t.prototype.scale=function(e){return e=k3(e,this._extent),o5(this.base,e)},t.type="log",t}(f3),l5=a5.prototype;function s5(e,t){return t5(e,VF(t))}l5.getMinorTicks=e5.getMinorTicks,l5.getLabel=e5.getLabel,f3.registerClass(a5);const c5=a5;var u5=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var o=t.get("min",!0);null==o&&(o=t.get("startValue",!0));var i=this._modelMinRaw=o;gj(i)?this._modelMinNum=h5(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=h5(e,i));var a=this._modelMaxRaw=t.get("max",!0);if(gj(a)?this._modelMaxNum=h5(e,a({min:n[0],max:n[1]})):"dataMax"!==a&&(this._modelMaxNum=h5(e,a)),r)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),s=hj(l)?l:[l||0,l||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[uF(s[0],1),uF(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,i=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,s=null!=a,c=null!=l;null==a&&(a=e?r?0:NaN:t-o[0]*i),null==l&&(l=e?r?r-1:NaN:n+o[1]*i),(null==a||!isFinite(a))&&(a=NaN),(null==l||!isFinite(l))&&(l=NaN);var u=Mj(a)||Mj(l)||e&&!r;this._needCrossZero&&(a>0&&l>0&&!s&&(a=0),a<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,s=!0),null!=p&&(l=p,c=!0),{min:a,max:l,minFixed:s,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[p5[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[d5[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),d5={min:"_determinedMin",max:"_determinedMax"},p5={min:"_dataMin",max:"_dataMax"};function f5(e,t,n){var r=e.rawExtentInfo;return r||(r=new u5(e,t,n),e.rawExtentInfo=r,r)}function h5(e,t){return null==t?null:Mj(t)?NaN:e.parse(t)}function g5(e,t){var n=e.type,r=f5(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,i=r.max,a=t.ecModel;if(a&&"time"===n){var l=j3("bar",a),s=!1;if(aj(l,function(e){s=s||e.getBaseAxis()===t.axis}),s){var c=L3(l),u=function(e,t,n,r){var o=n.axis.getExtent(),i=Math.abs(o[1]-o[0]),a=function(e,t,n){if(e&&t){var r=e[R3(t)];return null!=r&&null!=n?r[A3(n)]:r}}(r,n.axis);if(void 0===a)return{min:e,max:t};var l=1/0;aj(a,function(e){l=Math.min(e.offset,l)});var s=-1/0;aj(a,function(e){s=Math.max(e.offset+e.width,s)}),l=Math.abs(l),s=Math.abs(s);var c=l+s,u=t-e,d=u/(1-(l+s)/i)-u;return t+=d*(s/c),e-=d*(l/c),{min:e,max:t}}(o,i,t,c);o=u.min,i=u.max}}return{extent:[o,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function m5(e,t){var n=t,r=g5(e,n),o=r.extent,i=n.get("splitNumber");e instanceof c5&&(e.base=n.get("logBase"));var a=e.type,l=n.get("interval"),s="interval"===a||"time"===a;e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:s?n.get("minInterval"):null,maxInterval:s?n.get("maxInterval"):null}),null!=l&&e.setInterval&&e.setInterval(l)}function v5(e,t){if(t=t||e.get("type"))switch(t){case"category":return new I3({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Q3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(f3.getClass(t)||$3)}}function y5(e){var t,n,r=e.getLabelModel().get("formatter"),o="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):mj(r)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):gj(r)?(t=r,function(n,r){return null!=o&&(r=n.value-o),t(b5(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function b5(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function x5(e,t){var n=t*Math.PI/180,r=e.width,o=e.height,i=r*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n));return new fz(e.x,e.y,i,a)}function w5(e){var t=e.get("interval");return null==t?"auto":t}function S5(e){return"category"===e.type&&0===w5(e.getLabelModel())}function C5(e,t){var n={};return aj(e.mapDimensionsAll(t),function(t){n[u3(e,t)]=!0}),dj(n)}var _5=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();function k5(e){return d3(null,e)}var M5={isDimensionStacked:c3,enableDataStack:s3,getStackedDimension:u3};function I5(e,t){var n=t;t instanceof RY||(n=new RY(t));var r=v5(n);return r.setExtent(e[0],e[1]),m5(r,n),r}function E5(e){oj(e,_5)}function O5(e,t){return hY(e,null,null,"normal"!==(t=t||{}).state)}function $5(e,t){return Math.abs(e-t)<1e-8}function T5(e,t,n){var r=0,o=e[0];if(!o)return!1;for(var i=1;i<e.length;i++){var a=e[i];r+=sG(o[0],o[1],a[0],a[1],t,n),o=a}var l=e[0];return $5(o[0],l[0])&&$5(o[1],l[1])||(r+=sG(o[0],o[1],l[0],l[1],t,n)),0!==r}var P5=[];function D5(e,t){for(var n=0;n<e.length;n++)gL(e[n],e[n],t)}function N5(e,t,n,r){for(var o=0;o<e.length;o++){var i=e[o];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(mL(t,t,i),vL(n,n,i))}}var A5=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),R5=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},j5=function(e){this.type="linestring",this.points=e},L5=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.type="geoJSON",o.geometries=n,o._center=r&&[r[0],r[1]],o}return MR(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var o=t[r],i=o.exterior,a=i&&i.length;a>n&&(e=o,n=a)}if(e)return function(e){for(var t=0,n=0,r=0,o=e.length,i=e[o-1][0],a=e[o-1][1],l=0;l<o;l++){var s=e[l][0],c=e[l][1],u=i*c-s*a;t+=u,n+=(i+s)*u,r+=(a+c)*u,i=s,a=c}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var l=this.getBoundingRect();return[l.x+l.width/2,l.y+l.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];return aj(this.geometries,function(t){"polygon"===t.type?N5(t.exterior,n,r,e):aj(t.points,function(t){N5(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 fz(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,o=n.length;r<o;r++){var i=n[r];if("polygon"===i.type){var a=i.exterior,l=i.interiors;if(T5(a,e[0],e[1])){for(var s=0;s<(l?l.length:0);s++)if(T5(l[s],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var o=this.getBoundingRect(),i=o.width/o.height;n?r||(r=n/i):n=i*r;for(var a=new fz(e,t,n,r),l=o.calculateTransform(a),s=this.geometries,c=0;c<s.length;c++){var u=s[c];"polygon"===u.type?(D5(u.exterior,l),aj(u.interiors,function(e){D5(e,l)})):aj(u.points,function(e){D5(e,l)})}(o=this._rect).copy(a),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(A5),z5=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return MR(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=qL(P5),o=e;o&&!o.isGeoSVGGraphicRoot;)KL(r,o.getLocalTransform(),r),o=o.parent;return ez(r,r),gL(n,n,r),n},t}(A5);function B5(e,t,n){for(var r=0;r<e.length;r++)e[r]=H5(e[r],t[r],n)}function H5(e,t,n){for(var r=[],o=t[0],i=t[1],a=0;a<e.length;a+=2){var l=e.charCodeAt(a)-64,s=e.charCodeAt(a+1)-64;l=l>>1^-(1&l),s=s>>1^-(1&s),o=l+=o,i=s+=i,r.push([l/n,s/n])}return r}function F5(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;return null==n&&(n=1024),aj(t.features,function(e){var t=e.geometry,r=t.encodeOffsets,o=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=H5(o,r,n);break;case"Polygon":case"MultiLineString":B5(o,r,n);break;case"MultiPolygon":aj(o,function(e,t){return B5(e,r[t],n)})}}),t.UTF8Encoding=!1,t}(e),lj(cj(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var i=r.coordinates;o.push(new R5(i[0],i.slice(1)));break;case"MultiPolygon":aj(r.coordinates,function(e){e[0]&&o.push(new R5(e[0],e.slice(1)))});break;case"LineString":o.push(new j5([r.coordinates]));break;case"MultiLineString":o.push(new j5(r.coordinates))}var a=new L5(n[t||"name"],o,n.cp);return a.properties=n,a})}function V5(e,t,n,r,o,i,a,l){return new JG({style:{text:e,font:t,align:n,verticalAlign:r,padding:o,rich:i,overflow:a?"truncate":null,lineHeight:l}}).getBoundingRect()}var W5=kV();function G5(e,t){var n=lj(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 U5(e){var t=e.getLabelModel().get("customValues");if(t){var n=y5(e),r=e.scale.getExtent();return{labels:lj(cj(G5(e,t),function(e){return e>=r[0]&&e<=r[1]}),function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return"category"===e.type?function(e){var t=e.getLabelModel(),n=q5(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=y5(e);return{labels:lj(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}(e)}function Y5(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent();return{ticks:cj(G5(e,n),function(e){return e>=r[0]&&e<=r[1]})}}return"category"===e.type?function(e,t){var n,r,o=X5(e,"ticks"),i=w5(t),a=K5(o,i);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(gj(i))n=J5(e,i,!0);else if("auto"===i){var l=q5(e,e.getLabelModel());r=l.labelCategoryInterval,n=lj(l.labels,function(e){return e.tickValue})}else n=Q5(e,r=i,!0);return Z5(o,i,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:lj(e.scale.getTicks(),function(e){return e.value})}}function q5(e,t){var n,r,o=X5(e,"labels"),i=w5(t),a=K5(o,i);return a||(gj(i)?n=J5(e,i):(r="auto"===i?function(e){var t=W5(e).autoInterval;return null!=t?t:W5(e).autoInterval=e.calculateCategoryInterval()}(e):i,n=Q5(e,r)),Z5(o,i,{labels:n,labelCategoryInterval:r}))}function X5(e,t){return W5(e)[t]||(W5(e)[t]=[])}function K5(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Z5(e,t,n){return e.push({key:t,value:n}),n}function Q5(e,t,n){var r=y5(e),o=e.scale,i=o.getExtent(),a=e.getLabelModel(),l=[],s=Math.max((t||0)+1,1),c=i[0],u=o.count();0!==c&&s>1&&u/s>2&&(c=Math.round(Math.ceil(c/s)*s));var d=S5(e),p=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;p&&c!==i[0]&&g(i[0]);for(var h=c;h<=i[1];h+=s)g(h);function g(e){var t={value:e};l.push(n?e:{formattedLabel:r(t),rawLabel:o.getLabel(t),tickValue:e})}return f&&h-s!==i[1]&&g(i[1]),l}function J5(e,t,n){var r=e.scale,o=y5(e),i=[];return aj(r.getTicks(),function(e){var a=r.getLabel(e),l=e.value;t(e.value,a)&&i.push(n?l:{formattedLabel:o(e),rawLabel:a,tickValue:l})}),i}var e6=[0,1],t6=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 GF(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&&n6(n=n.slice(),r.count()),zF(e,e6,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&n6(n=n.slice(),r.count());var o=zF(e,n,e6,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=lj(Y5(this,t).ticks,function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this);return function(e,t,n,r){var o=t.length;if(!e.onBand||n||!o)return;var i,a,l=e.getExtent();if(1===o)t[0].coord=l[0],i=t[1]={coord:l[1],tickValue:t[0].tickValue};else{var s=t[o-1].tickValue-t[0].tickValue,c=(t[o-1].coord-t[0].coord)/s;aj(t,function(e){e.coord-=c/2});var u=e.scale.getExtent();a=1+u[1]-t[o-1].tickValue,i={coord:t[o-1].coord+c*a,tickValue:u[1]+1},t.push(i)}var d=l[0]>l[1];p(t[0].coord,l[0])&&(r?t[0].coord=l[0]:t.shift());r&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]});p(l[1],i.coord)&&(r?i.coord=l[1]:t.pop());r&&p(i.coord,l[1])&&t.push({coord:l[1]});function p(e,t){return e=HF(e),t=HF(t),d?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),lj(this.scale.getMinorTicks(e),function(e){return lj(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return U5(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 function(e){var t=function(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()}}(e),n=y5(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,i=o.getExtent(),a=o.count();if(i[1]-i[0]<1)return 0;var l=1;a>40&&(l=Math.max(1,Math.floor(a/40)));for(var s=i[0],c=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(c*Math.cos(r)),d=Math.abs(c*Math.sin(r)),p=0,f=0;s<=i[1];s+=l){var h,g,m=aF(n({value:s}),t.font,"center","top");h=1.3*m.width,g=1.3*m.height,p=Math.max(p,h,7),f=Math.max(f,g,7)}var v=p/u,y=f/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),x=W5(e.model),w=e.getExtent(),S=x.lastAutoInterval,C=x.lastTickCount;return null!=S&&null!=C&&Math.abs(S-b)<=1&&Math.abs(C-a)<=1&&S>b&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?b=S:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=w[0],x.axisExtent1=w[1]),b}(this)},e}();function n6(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}const r6=t6;function o6(e){var t=Xq.extend(e);return Xq.registerClass(t),t}function i6(e){var t=qZ.extend(e);return qZ.registerClass(t),t}function a6(e){var t=UZ.extend(e);return UZ.registerClass(t),t}function l6(e){var t=l0.extend(e);return l0.registerClass(t),t}var s6=2*Math.PI,c6=eG.CMD,u6=["top","right","bottom","left"];function d6(e,t,n,r,o){var i=n.width,a=n.height;switch(e){case"top":r.set(n.x+i/2,n.y-t),o.set(0,-1);break;case"bottom":r.set(n.x+i/2,n.y+a+t),o.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),o.set(-1,0);break;case"right":r.set(n.x+i+t,n.y+a/2),o.set(1,0)}}function p6(e,t,n,r,o,i,a,l,s){a-=e,l-=t;var c=Math.sqrt(a*a+l*l),u=(a/=c)*n+e,d=(l/=c)*n+t;if(Math.abs(r-o)%s6<1e-4)return s[0]=u,s[1]=d,c-n;if(i){var p=r;r=iG(o),o=iG(p)}else r=iG(r),o=iG(o);r>o&&(o+=s6);var f=Math.atan2(l,a);if(f<0&&(f+=s6),f>=r&&f<=o||f+s6>=r&&f+s6<=o)return s[0]=u,s[1]=d,c-n;var h=n*Math.cos(r)+e,g=n*Math.sin(r)+t,m=n*Math.cos(o)+e,v=n*Math.sin(o)+t,y=(h-a)*(h-a)+(g-l)*(g-l),b=(m-a)*(m-a)+(v-l)*(v-l);return y<b?(s[0]=h,s[1]=g,Math.sqrt(y)):(s[0]=m,s[1]=v,Math.sqrt(b))}function f6(e,t,n,r,o,i,a,l){var s=o-e,c=i-t,u=n-e,d=r-t,p=Math.sqrt(u*u+d*d),f=(s*(u/=p)+c*(d/=p))/p;l&&(f=Math.min(Math.max(f,0),1)),f*=p;var h=a[0]=e+f*u,g=a[1]=t+f*d;return Math.sqrt((h-o)*(h-o)+(g-i)*(g-i))}function h6(e,t,n,r,o,i,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var l=e+n,s=t+r,c=a[0]=Math.min(Math.max(o,e),l),u=a[1]=Math.min(Math.max(i,t),s);return Math.sqrt((c-o)*(c-o)+(u-i)*(u-i))}var g6=[];function m6(e,t,n){var r=h6(t.x,t.y,t.width,t.height,e.x,e.y,g6);return n.set(g6[0],g6[1]),r}function v6(e,t,n){for(var r,o,i=0,a=0,l=0,s=0,c=1/0,u=t.data,d=e.x,p=e.y,f=0;f<u.length;){var h=u[f++];1===f&&(l=i=u[f],s=a=u[f+1]);var g=c;switch(h){case c6.M:i=l=u[f++],a=s=u[f++];break;case c6.L:g=f6(i,a,u[f],u[f+1],d,p,g6,!0),i=u[f++],a=u[f++];break;case c6.C:g=rB(i,a,u[f++],u[f++],u[f++],u[f++],u[f],u[f+1],d,p,g6),i=u[f++],a=u[f++];break;case c6.Q:g=cB(i,a,u[f++],u[f++],u[f],u[f+1],d,p,g6),i=u[f++],a=u[f++];break;case c6.A:var m=u[f++],v=u[f++],y=u[f++],b=u[f++],x=u[f++],w=u[f++];f+=1;var S=!!(1-u[f++]);r=Math.cos(x)*y+m,o=Math.sin(x)*b+v,f<=1&&(l=r,s=o),g=p6(m,v,b,x,x+w,S,(d-m)*b/y+m,p,g6),i=Math.cos(x+w)*y+m,a=Math.sin(x+w)*b+v;break;case c6.R:g=h6(l=i=u[f++],s=a=u[f++],u[f++],u[f++],d,p,g6);break;case c6.Z:g=f6(i,a,l,s,d,p,g6,!0),i=l,a=s}g<c&&(c=g,n.set(g6[0],g6[1]))}return c}var y6=new rz,b6=new rz,x6=new rz,w6=new rz,S6=new rz;function C6(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var o=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],a=o.candidates||u6,l=r.getBoundingRect().clone();l.applyTransform(r.getComputedTransform());var s=1/0,c=o.anchor,u=e.getComputedTransform(),d=u&&ez([],u),p=t.get("length2")||0;c&&x6.copy(c);for(var f=0;f<a.length;f++){d6(a[f],0,l,y6,w6),rz.scaleAndAdd(b6,y6,w6,p),b6.transform(d);var h=e.getBoundingRect(),g=c?c.distance(b6):e instanceof SG?v6(b6,e.path,x6):m6(b6,h,x6);g<s&&(s=g,b6.transform(u),x6.transform(u),x6.toArray(i[0]),b6.toArray(i[1]),y6.toArray(i[2]))}M6(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var _6=[],k6=new rz;function M6(e,t){if(t<=180&&t>0){t=t/180*Math.PI,y6.fromArray(e[0]),b6.fromArray(e[1]),x6.fromArray(e[2]),rz.sub(w6,y6,b6),rz.sub(S6,x6,b6);var n=w6.len(),r=S6.len();if(!(n<.001||r<.001)){w6.scale(1/n),S6.scale(1/r);var o=w6.dot(S6);if(Math.cos(t)<o){var i=f6(b6.x,b6.y,x6.x,x6.y,y6.x,y6.y,_6,!1);k6.fromArray(_6),k6.scaleAndAdd(S6,i/Math.tan(Math.PI-t));var a=x6.x!==b6.x?(k6.x-b6.x)/(x6.x-b6.x):(k6.y-b6.y)/(x6.y-b6.y);if(isNaN(a))return;a<0?rz.copy(k6,b6):a>1&&rz.copy(k6,x6),k6.toArray(e[1])}}}}function I6(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,y6.fromArray(e[0]),b6.fromArray(e[1]),x6.fromArray(e[2]),rz.sub(w6,b6,y6),rz.sub(S6,x6,b6);var r=w6.len(),o=S6.len();if(!(r<.001||o<.001))if(w6.scale(1/r),S6.scale(1/o),w6.dot(t)<Math.cos(n)){var i=f6(b6.x,b6.y,x6.x,x6.y,y6.x,y6.y,_6,!1);k6.fromArray(_6);var a=Math.PI/2,l=a+Math.acos(S6.dot(t))-n;if(l>=a)rz.copy(k6,x6);else{k6.scaleAndAdd(S6,i/Math.tan(Math.PI/2-l));var s=x6.x!==b6.x?(k6.x-b6.x)/(x6.x-b6.x):(k6.y-b6.y)/(x6.y-b6.y);if(isNaN(s))return;s<0?rz.copy(k6,b6):s>1&&rz.copy(k6,x6)}k6.toArray(e[1])}}}function E6(e,t,n,r){var o="normal"===n,i=o?e:e.ensureState(n);i.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),i.shape=i.shape||{},a>0&&(i.shape.smooth=a);var l=r.getModel("lineStyle").getLineStyle();o?e.useStyle(l):i.style=l}function O6(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 o=uL(r[0],r[1]),i=uL(r[1],r[2]);if(!o||!i)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(o,i)*n,l=hL([],r[1],r[0],a/o),s=hL([],r[1],r[2],a/i),c=hL([],l,s,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],c[0],c[1]),e.bezierCurveTo(s[0],s[1],s[0],s[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function $6(e,t,n){var r=e.getTextGuideLine(),o=e.getTextContent();if(o){for(var i=t.normal,a=i.get("show"),l=o.ignore,s=0;s<lU.length;s++){var c=lU[s],u=t[c],d="normal"===c;if(u){var p=u.get("show");if((d?l:Ej(o.states[c]&&o.states[c].ignore,l))||!Ej(p,a)){var f=d?r:r&&r.states[c];f&&(f.ignore=!0),r&&E6(r,!0,c,u);continue}r||(r=new YQ,e.setTextGuideLine(r),d||!l&&a||E6(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),E6(r,!1,c,u)}}if(r){ej(r.style,n),r.style.fill=null;var h=i.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=h||!1,r.buildPath=O6}}else r&&e.removeTextGuideLine()}function T6(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<aU.length;r++){var o=aU[r];n[o]=e.getModel([o,t])}return n}function P6(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var o=r.label,i=o.getComputedTransform(),a=o.getBoundingRect(),l=!i||i[1]<1e-5&&i[2]<1e-5,s=o.style.margin||0,c=a.clone();c.applyTransform(i),c.x-=s/2,c.y-=s/2,c.width+=s,c.height+=s;var u=l?new bJ(a,i):null;t.push({label:o,labelLine:r.labelLine,rect:c,localRect:a,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:i})}}return t}function D6(e,t,n,r,o,i){var a=e.length;if(!(a<2)){e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var l,s=0,c=!1,u=[],d=0,p=0;p<a;p++){var f=e[p],h=f.rect;(l=h[t]-s)<0&&(h[t]-=l,f.label[t]-=l,c=!0);var g=Math.max(-l,0);u.push(g),d+=g,s=h[t]+h[n]}d>0&&i&&S(-d/a,0,a);var m,v,y=e[0],b=e[a-1];return x(),m<0&&C(-m,.8),v<0&&C(v,.8),x(),w(m,v,1),w(v,m,-1),x(),m<0&&_(-m),v<0&&_(v),c}function x(){m=y.rect[t]-r,v=o-b.rect[t]-b.rect[n]}function w(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var o=r+e;o<0&&C(-o*n,1)}else C(-e*n,1)}}function S(n,r,o){0!==n&&(c=!0);for(var i=r;i<o;i++){var a=e[i];a.rect[t]+=n,a.label[t]+=n}}function C(r,o){for(var i=[],l=0,s=1;s<a;s++){var c=e[s-1].rect,u=Math.max(e[s].rect[t]-c[t]-c[n],0);i.push(u),l+=u}if(l){var d=Math.min(Math.abs(r)/l,o);if(r>0)for(s=0;s<a-1;s++){S(i[s]*d,0,s+1)}else for(s=a-1;s>0;s--){S(-(i[s-1]*d),s,a)}}}function _(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),(e-=n)<=0)return}}function N6(e,t,n,r){return D6(e,"y","height",t,n,r)}function A6(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new fz(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 o=0;o<e.length;o++){var i=e[o],a=i.axisAligned,l=i.localRect,s=i.transform,c=i.label,u=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=i.obb,p=!1,f=0;f<t.length;f++){var h=t[f];if(n.intersect(h.rect)){if(a&&h.axisAligned){p=!0;break}if(h.obb||(h.obb=new bJ(h.localRect,h.transform)),d||(d=new bJ(l,s)),d.intersect(h.obb)){p=!0;break}}}p?(r(c),u&&r(u)):(c.attr("ignore",i.defaultAttr.ignore),u&&u.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function R6(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function j6(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:R6(r&&r.shape.points)}}var L6=["align","verticalAlign","width","height","fontSize"],z6=new nF,B6=kV(),H6=kV();function F6(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];null!=t[o]&&(e[o]=t[o])}}var V6=["x","y","rotation"],W6=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,o){var i=r.style,a=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),s=r.getBoundingRect().plain();fz.applyTransform(s,s,l),l?z6.setLocalTransform(l):(z6.x=z6.y=z6.rotation=z6.originX=z6.originY=0,z6.scaleX=z6.scaleY=1),z6.rotation=iG(z6.rotation);var c,u=r.__hostTarget;if(u){c=u.getBoundingRect().plain();var d=u.getComputedTransform();fz.applyTransform(c,c,d)}var p=c&&u.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:s,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:z6.x,y:z6.y,scaleX:z6.scaleX,scaleY:z6.scaleY,rotation:z6.rotation,style:{x:i.x,y:i.y,align:i.align,verticalAlign:i.verticalAlign,width:i.width,height:i.height,fontSize:i.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(gj(r)||dj(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var o=e.getTextContent(),i=eU(e);o&&!o.disableLabelLayout&&t._addLabel(i.dataIndex,i.dataType,n,o,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){C6(e,t)}}for(var o=0;o<this._labelList.length;o++){var i=this._labelList[o],a=i.label,l=a.__hostTarget,s=i.defaultAttr,c=void 0;c=(c=gj(i.layoutOption)?i.layoutOption(j6(i,l)):i.layoutOption)||{},i.computedLayoutOption=c;var u=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:s.attachedPos,rotation:null!=c.rotate?c.rotate*u:s.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(null!=c.x?(a.x=BF(c.x,t),a.setStyle("x",0),d=!0):(a.x=s.x,a.setStyle("x",s.style.x)),null!=c.y?(a.y=BF(c.y,n),a.setStyle("y",0),d=!0):(a.y=s.y,a.setStyle("y",s.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}B6(a).needsUpdateLabelLine=d,a.rotation=null!=c.rotate?c.rotate*u:s.rotation,a.scaleX=s.scaleX,a.scaleY=s.scaleY;for(var f=0;f<L6.length;f++){var h=L6[f];a.setStyle(h,null!=c[h]?c[h]:s.style[h])}if(c.draggable){if(a.draggable=!0,a.cursor="move",l){var g=i.seriesModel;if(null!=i.dataIndex)g=i.seriesModel.getData(i.dataType).getItemModel(i.dataIndex);a.on("drag",r(l,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=s.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=P6(this._labelList),o=cj(r,function(e){return"shiftX"===e.layoutOption.moveOverlap}),i=cj(r,function(e){return"shiftY"===e.layoutOption.moveOverlap});!function(e,t,n,r){D6(e,"x","width",t,n,r)}(o,0,t),N6(i,0,n),A6(cj(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;aj(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,o=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var i=!r,a=t.getTextContent();!i&&a&&(i=B6(a).needsUpdateLabelLine),i&&e._updateLabelLine(t,n),o&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=eU(e),o=r.dataIndex;if(n&&null!=o){var i=t.getData(r.dataType),a=i.getItemModel(o),l={},s=i.getItemVisual(o,"style");if(s){var c=i.getVisual("drawType");l.stroke=s[c]}var u=a.getModel("labelLine");$6(e,T6(a),l),C6(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!oY(e))){var o=(f=B6(n)).oldLayout,i=eU(e),a=i.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},s=t.getData(i.dataType);if(o){n.attr(o);var c=e.prevStates;c&&(nj(c,"select")>=0&&n.attr(f.oldLayoutSelect),nj(c,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),nY(n,l,t,a)}else if(n.attr(l),!wY(n).valueAnimation){var u=Ej(n.style.opacity,1);n.style.opacity=0,rY(n,{style:{opacity:u}},t,a)}if(f.oldLayout=l,n.states.select){var d=f.oldLayoutSelect={};F6(d,l,V6),F6(d,n.states.select,V6)}if(n.states.emphasis){var p=f.oldLayoutEmphasis={};F6(p,l,V6),F6(p,n.states.emphasis,V6)}CY(n,a,s,t,t)}if(r&&!r.ignore&&!r.invisible){o=(f=H6(r)).oldLayout;var f,h={points:r.shape.points};o?(r.attr({shape:o}),nY(r,{shape:h},t)):(r.setShape(h),r.style.strokePercent=0,rY(r,{style:{strokePercent:1}},t)),f.oldLayout=h}},e}();const G6=W6;var U6=kV();function Y6(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){var r=U6(t).labelManager;r||(r=U6(t).labelManager=new G6),r.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(e,t,n){var r=U6(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}function q6(e,t,n){var r=NR.createCanvas(),o=t.getWidth(),i=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=o+"px",a.height=i+"px",r.setAttribute("data-zr-dom-id",e)),r.width=o*n,r.height=i*n,r}M4(Y6);var X6=function(e){function t(t,n,r){var o,i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null,r=r||VH,"string"===typeof t?o=q6(t,n,r):bj(t)&&(t=(o=t).id),i.id=t,i.dom=o;var a=o.style;return a&&(Vj(o),o.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),i.painter=n,i.dpr=r,i}return MR(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=q6("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 o,i=[],a=this.maxRepaintRectCount,l=!1,s=new fz(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===i.length){(t=new fz(0,0,0,0)).copy(e),i.push(t)}else{for(var t,n=!1,r=1/0,o=0,c=0;c<i.length;++c){var u=i[c];if(u.intersect(e)){var d=new fz(0,0,0,0);d.copy(u),d.union(e),i[c]=d,n=!0;break}if(l){s.copy(e),s.union(u);var p=e.width*e.height,f=u.width*u.height,h=s.width*s.height-p-f;h<r&&(r=h,o=c)}}if(l&&(i[o].union(e),n=!0),!n)(t=new fz(0,0,0,0)).copy(e),i.push(t);l||(l=i.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){if(f=e[u]){var d=f.shouldBePainted(n,r,!0,!0);(h=f.__isRendered&&(f.__dirty&Tz||!d)?f.getPrevPaintRect():null)&&c(h);var p=d&&(f.__dirty&Tz||!f.__isRendered)?f.getPaintRect():null;p&&c(p)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var f,h;d=(f=t[u])&&f.shouldBePainted(n,r,!0,!0);if(f&&(!d||!f.__zr)&&f.__isRendered)(h=f.getPrevPaintRect())&&c(h)}do{o=!1;for(u=0;u<i.length;)if(i[u].isZero())i.splice(u,1);else{for(var g=u+1;g<i.length;)i[u].intersect(i[g])?(o=!0,i[u].union(i[g]),i.splice(g,1)):g++;u++}}while(o);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,o=r.style,i=this.domBack;o&&(o.width=e+"px",o.height=t+"px"),r.width=e*n,r.height=t*n,i&&(i.width=e*n,i.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,o=this.ctx,i=r.width,a=r.height;t=t||this.clearColor;var l=this.motionBlur&&!e,s=this.lastFrameAlpha,c=this.dpr,u=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,i/c,a/c));var d=this.domBack;function p(e,n,r,i){if(o.clearRect(e,n,r,i),t&&"transparent"!==t){var a=void 0;if(Cj(t))a=(t.global||t.__width===r&&t.__height===i)&&t.__canvasGradient||x1(o,t,{x:0,y:0,width:r,height:i}),t.__canvasGradient=a,t.__width=r,t.__height=i;else _j(t)&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,a=$1(o,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}}));o.save(),o.fillStyle=a||t,o.fillRect(e,n,r,i),o.restore()}l&&(o.save(),o.globalAlpha=s,o.drawImage(d,e,n,r,i),o.restore())}!n||l?p(0,0,i,a):n.length&&aj(n,function(e){p(e.x*c,e.y*c,e.width*c,e.height*c)})},t}(SL);const K6=X6;var Z6=1e5,Q6=314159,J6=.01;var e8=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=JR({},n||{}),this.dpr=n.devicePixelRatio||VH,this._singleCanvas=o,this.root=e,e.style&&(Vj(e),e.innerHTML=""),this.storage=t;var i=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(o){var l=e,s=l.width,c=l.height;null!=n.width&&(s=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=s*this.dpr,l.height=c*this.dpr,this._width=s,this._height=c;var u=new K6(l,this,this.dpr);u.__builtin__=!0,u.initContext(),a[314159]=u,u.zlevel=Q6,i.push(Q6),this._domRoot=e}else{this._width=S1(e,0,n),this._height=S1(e,1,n);var d=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var o=0;o<r.length;o++){var i=r[o],a=this._layers[i];if(!a.__builtin__&&a.refresh){var l=0===o?this._backgroundColor:null;a.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},i=0;i<t;i++){var a=e[i];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Z6)),r||(r=n.ctx).save(),V1(r,a,o,i===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Z6)},e.prototype.paintOne=function(e,t){F1(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,t,n),i=o.finished,a=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),i)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var l=this;Lz(function(){l._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(Q6).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,o=[],i=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var l=this._zlevelList[a],s=this._layers[l];s.__builtin__&&s!==this._hoverlayer&&(s.__dirty||n)&&o.push(s)}for(var c=!0,u=!1,d=function(a){var l,s=o[a],d=s.ctx,f=i&&s.createRepaintRects(e,t,p._width,p._height),h=n?s.__startIndex:s.__drawIndex,g=!n&&s.incremental&&Date.now,m=g&&Date.now(),v=s.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,v,f);else if(h===s.__startIndex){var y=e[h];y.incremental&&y.notClear&&!n||s.clear(!1,v,f)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=s.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(l=h;l<s.__endIndex;l++){var o=e[l];if(o.__inHover&&(u=!0),r._doPaintEl(o,s,i,t,n,l===s.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&d.restore()};if(f)if(0===f.length)l=s.__endIndex;else for(var x=p.dpr,w=0;w<f.length;++w){var S=f[w];d.save(),d.beginPath(),d.rect(S.x*x,S.y*x,S.width*x,S.height*x),d.clip(),b(S),d.restore()}else d.save(),b(),d.restore();s.__drawIndex=l,s.__drawIndex<s.__endIndex&&(c=!1)},p=this,f=0;f<o.length;f++)d(f);return $R.wxa&&aj(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:c,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,o,i){var a=t.ctx;if(n){var l=e.getPaintRect();(!r||l&&l.intersect(r))&&(V1(a,e,o,i),e.setPrevPaintRect(l))}else V1(a,e,o,i)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Q6);var n=this._layers[e];return n||((n=new K6("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?ZR(n,this._layerConfig[e],!0):this._layerConfig[e-J6]&&ZR(n,this._layerConfig[e-J6],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,o=r.length,i=this._domRoot,a=null,l=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}(t)){if(o>0&&e>r[0]){for(l=0;l<o-1&&!(r[l]<e&&r[l+1]>e);l++);a=n[r[l]]}if(r.splice(l+1,0,e),n[e]=t,!t.virtual)if(a){var s=a.dom;s.nextSibling?i.insertBefore(t.dom,s.nextSibling):i.appendChild(t.dom)}else i.firstChild?i.insertBefore(t.dom,i.firstChild):i.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var o=n[r];e.call(t,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var o=n[r],i=this._layers[o];i.__builtin__&&e.call(t,i,o)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var o=n[r],i=this._layers[o];i.__builtin__||e.call(t,i,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1}),this._singleCanvas)for(var n=1;n<e.length;n++){if((l=e[n]).zlevel!==e[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var r,o,i=null,a=0;for(o=0;o<e.length;o++){var l,s=(l=e[o]).zlevel,c=void 0;r!==s&&(r=s,a=0),l.incremental?((c=this.getLayer(s+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(s+(a>0?J6:0),this._needsManuallyCompositing),c.__builtin__||XR("ZLevel "+s+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,t(o),i=c),l.__dirty&Tz&&!l.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__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,aj(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?ZR(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];if(o===e||o===e+J6)ZR(this._layers[o],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(nj(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,o=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=S1(o,0,r),t=S1(o,1,r),n.style.display="",this._width!==e||t!==this._height){for(var i in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(Q6).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new K6("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,o=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,o):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),l=0,s=a.length;l<s;l++){var c=a[l];V1(n,c,i,l===s-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const t8=e8;var n8=Math.sin,r8=Math.cos,o8=Math.PI,i8=2*Math.PI,a8=180/o8,l8=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,o,i){this._add("C",e,t,n,r,o,i)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,o,i){this.ellipse(e,t,n,n,0,r,o,i)},e.prototype.ellipse=function(e,t,n,r,o,i,a,l){var s=a-i,c=!l,u=Math.abs(s),d=qB(u-i8)||(c?s>=i8:-s>=i8),p=s>0?s%i8:s%i8+i8,f=!1;f=!!d||!qB(u)&&p>=o8===!!c;var h=e+n*r8(i),g=t+r*n8(i);this._start&&this._add("M",h,g);var m=Math.round(o*a8);if(d){var v=1/this._p,y=(c?1:-1)*(i8-v);this._add("A",n,r,m,1,+c,e+n*r8(i+y),t+r*n8(i+y)),v>.01&&this._add("A",n,r,m,0,+c,h,g)}else{var b=e+n*r8(a),x=t+r*n8(a);this._add("A",n,r,m,+f,+c,b,x)}},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,o,i,a,l,s){for(var c=[],u=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p))return void(this._invalid=!0);c.push(Math.round(p*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const s8=l8;var c8="none",u8=Math.round;var d8=["lineCap","miterLimit","lineJoin"],p8=lj(d8,function(e){return"stroke-"+e.toLowerCase()});function f8(e,t,n,r){var o=null==t.opacity?1:t.opacity;if(n instanceof OG)e("opacity",o);else{if(function(e){var t=e.fill;return null!=t&&t!==c8}(t)){var i=UB(t.fill);e("fill",i.color);var a=null!=t.fillOpacity?t.fillOpacity*i.opacity*o:i.opacity*o;(r||a<1)&&e("fill-opacity",a)}else e("fill",c8);if(function(e){var t=e.stroke;return null!=t&&t!==c8}(t)){var l=UB(t.stroke);e("stroke",l.color);var s=t.strokeNoScale?n.getLineScale():1,c=s?(t.lineWidth||0)/s:0,u=null!=t.strokeOpacity?t.strokeOpacity*l.opacity*o:l.opacity*o,d=t.strokeFirst;if((r||1!==c)&&e("stroke-width",c),(r||d)&&e("paint-order",d?"stroke":"fill"),(r||u<1)&&e("stroke-opacity",u),t.lineDash){var p=C1(n),f=p[0],h=p[1];f&&(h=u8(h||0),e("stroke-dasharray",f.join(",")),(h||r)&&e("stroke-dashoffset",h))}else r&&e("stroke-dasharray",c8);for(var g=0;g<d8.length;g++){var m=d8[g];if(r||t[m]!==yG[m]){var v=t[m]||yG[m];v&&e(p8[g],v)}}}else r&&e("stroke",c8)}}var h8="http://www.w3.org/2000/svg",g8="http://www.w3.org/1999/xlink",m8="ecmeta_";function v8(e){return document.createElementNS(h8,e)}function y8(e,t,n,r,o){return{tag:e,attrs:n||{},children:r,text:o,key:t}}function b8(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var r=t.children,o=t.tag,i=t.attrs,a=t.text;return function(e,t){var n=[];if(t)for(var r in t){var o=t[r],i=r;!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+e+" "+n.join(" ")+">"}(o,i)+("style"!==o?PL(a):a||"")+(r?""+n+lj(r,function(t){return e(t)}).join(n)+n:"")+("</"+o+">")}(e)}function x8(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function w8(e,t,n,r){return y8("svg","root",{width:e,height:t,xmlns:h8,"xmlns:xlink":g8,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var S8=0;function C8(){return S8++}var _8={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"},k8="transform-origin";function M8(e,t,n){var r=JR({},e.shape);JR(r,t),e.buildPath(n,r);var o=new s8;return o.reset(oH(e)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function I8(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[k8]=n+"px "+r+"px")}var E8={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function O8(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function $8(e){return mj(e)?_8[e]?"cubic-bezier("+_8[e]+")":pB(e)?e:"":""}function T8(e,t,n,r){var o=e.animators,i=o.length,a=[];if(e instanceof lJ){var l=function(e,t,n){var r,o,i=e.shape.paths,a={};if(aj(i,function(e){var t=x8(n.zrId);t.animation=!0,T8(e,{},t,!0);var i=t.cssAnims,l=t.cssNodes,s=dj(i),c=s.length;if(c){var u=i[o=s[c-1]];for(var d in u){var p=u[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var f in l){var h=l[f].animation;h.indexOf(o)>=0&&(r=h)}}}),r){t.d=!1;var l=O8(a,n);return r.replace(o,l)}}(e,t,n);if(l)a.push(l);else if(!i)return}else if(!i)return;for(var s={},c=0;c<i;c++){var u=o[c],d=[u.getMaxTime()/1e3+"s"],p=$8(u.getClip().easing),f=u.getDelay();p?d.push(p):d.push("linear"),f&&d.push(f/1e3+"s"),u.getLoop()&&d.push("infinite");var h=d.join(" ");s[h]=s[h]||[h,[]],s[h][1].push(u)}function g(o){var i,a=o[1],l=a.length,s={},c={},u={},d="animation-timing-function";function p(e,t,n){for(var r=e.getTracks(),o=e.getMaxTime(),i=0;i<r.length;i++){var a=r[i];if(a.needsAnimate()){var l=a.keyframes,s=a.propName;if(n&&(s=n(s)),s)for(var c=0;c<l.length;c++){var u=l[c],p=Math.round(u.time/o*100)+"%",f=$8(u.easing),h=u.rawValue;(mj(h)||yj(h))&&(t[p]=t[p]||{},t[p][s]=u.rawValue,f&&(t[p][d]=f))}}}}for(var f=0;f<l;f++){(C=(S=a[f]).targetName)?"shape"===C&&p(S,c):!r&&p(S,s)}for(var h in s){var g={};tF(g,e),JR(g,s[h]);var m=iH(g),v=s[h][d];u[h]=m?{transform:m}:{},I8(u[h],g),v&&(u[h][d]=v)}var y=!0;for(var h in c){u[h]=u[h]||{};var b=!i;v=c[h][d];b&&(i=new eG);var x=i.len();i.reset(),u[h].d=M8(e,c[h],i);var w=i.len();if(!b&&x!==w){y=!1;break}v&&(u[h][d]=v)}if(!y)for(var h in u)delete u[h].d;if(!r)for(f=0;f<l;f++){var S,C;"style"===(C=(S=a[f]).targetName)&&p(S,u,function(e){return E8[e]})}var _,k=dj(u),M=!0;for(f=1;f<k.length;f++){var I=k[f-1],E=k[f];if(u[I][k8]!==u[E][k8]){M=!1;break}_=u[I][k8]}if(M&&_){for(var h in u)u[h][k8]&&delete u[h][k8];t[k8]=_}if(cj(k,function(e){return dj(u[e]).length>0}).length)return O8(u,n)+" "+o[0]+" both"}for(var m in s){(l=g(s[m]))&&a.push(l)}if(a.length){var v=n.zrId+"-cls-"+C8();n.cssNodes["."+v]={animation:a.join(",")},t.class=v}}function P8(e,t,n,r){var o=JSON.stringify(e),i=n.cssStyleCache[o];i||(i=n.zrId+"-cls-"+C8(),n.cssStyleCache[o]=i,n.cssNodes["."+i+(r?":hover":"")]=e),t.class=t.class?t.class+" "+i:i}var D8=Math.round;function N8(e){return e&&mj(e.src)}function A8(e){return e&&gj(e.toDataURL)}function R8(e,t,n,r){f8(function(o,i){var a="fill"===o||"stroke"===o;a&&nH(i)?G8(t,e,o,r):a&&JB(i)?U8(n,e,o,r):e[o]=i,a&&r.ssr&&"none"===i&&(e["pointer-events"]="visible")},t,n,!1),function(e,t,n){var r=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(r)){var o=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),i=n.shadowCache,a=i[o];if(!a){var l=e.getGlobalScale(),s=l[0],c=l[1];if(!s||!c)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,p=r.shadowBlur,f=UB(r.shadowColor),h=f.opacity,g=f.color,m=p/2/s+" "+p/2/c;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=y8("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[y8("feDropShadow","",{dx:u/s,dy:d/c,stdDeviation:m,"flood-color":g,"flood-opacity":h})]),i[o]=a}t.filter=rH(a)}}(n,e,r)}function j8(e,t){var n=NF(t);n&&(n.each(function(t,n){null!=t&&(e[(m8+n).toLowerCase()]=t+"")}),t.isSilent()&&(e[m8+"silent"]="true"))}function L8(e){return qB(e[0]-1)&&qB(e[1])&&qB(e[2])&&qB(e[3]-1)}function z8(e,t,n){if(t&&(!function(e){return qB(e[4])&&qB(e[5])}(t)||!L8(t))){var r=n?10:1e4;e.transform=L8(t)?"translate("+D8(t[4]*r)/r+" "+D8(t[5]*r)/r+")":function(e){return"matrix("+XB(e[0])+","+XB(e[1])+","+XB(e[2])+","+XB(e[3])+","+KB(e[4])+","+KB(e[5])+")"}(t)}}function B8(e,t,n){for(var r=e.points,o=[],i=0;i<r.length;i++)o.push(D8(r[i][0]*n)/n),o.push(D8(r[i][1]*n)/n);t.points=o.join(" ")}function H8(e){return!e.smooth}var F8={circle:[function(e){var t=lj(e,function(e){return"string"===typeof e?[e,e]:e});return function(e,n,r){for(var o=0;o<t.length;o++){var i=t[o],a=e[i[0]];null!=a&&(n[i[1]]=D8(a*r)/r)}}}(["cx","cy","r"])],polyline:[B8,H8],polygon:[B8,H8]};function V8(e,t){var n=e.style,r=e.shape,o=F8[e.type],i={},a=t.animation,l="path",s=e.style.strokePercent,c=t.compress&&oH(e)||4;if(!o||t.willUpdate||o[1]&&!o[1](r)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||s<1){var u=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;u&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var p=d.getVersion(),f=e,h=f.__svgPathBuilder;f.__svgPathVersion===p&&h&&s===f.__svgPathStrokePercent||(h||(h=f.__svgPathBuilder=new s8),h.reset(c),d.rebuildPath(h,s),h.generateStr(),f.__svgPathVersion=p,f.__svgPathStrokePercent=s),i.d=h.getStr()}else{l=e.type;var g=Math.pow(10,c);o[0](r,i,g)}return z8(i,e.transform),R8(i,n,e,t),j8(i,e),t.animation&&T8(e,i,t),t.emphasis&&function(e,t,n){if(!e.ignore)if(e.isSilent())P8(c={"pointer-events":"none"},t,n,!0);else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=r.fill;if(!o){var i=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&a||i;l&&(o=WB(l))}var s=r.lineWidth;s&&(s/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var c={cursor:"pointer"};o&&(c.fill=o),r.stroke&&(c.stroke=r.stroke),s&&(c["stroke-width"]=s),P8(c,t,n,!0)}}(e,i,t),y8(l,e.id+"",i)}function W8(e,t){return e instanceof SG?V8(e,t):e instanceof OG?function(e,t){var n=e.style,r=n.image;if(r&&!mj(r)&&(N8(r)?r=r.src:A8(r)&&(r=r.toDataURL())),r){var o=n.x||0,i=n.y||0,a={href:r,width:n.width,height:n.height};return o&&(a.x=o),i&&(a.y=i),z8(a,e.transform),R8(a,n,e,t),j8(a,e),t.animation&&T8(e,a,t),y8("image",e.id+"",a)}}(e,t):e instanceof kG?function(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var o=n.font||PR,i=n.x||0,a=function(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}(n.y||0,cF(o),n.textBaseline),l={"dominant-baseline":"central","text-anchor":ZB[n.textAlign]||n.textAlign};if(UG(n)){var s="",c=n.fontStyle,u=WG(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||TR,p=n.fontWeight;s+="font-size:"+u+";font-family:"+d+";",c&&"normal"!==c&&(s+="font-style:"+c+";"),p&&"normal"!==p&&(s+="font-weight:"+p+";"),l.style=s}else l.style="font: "+o;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),a&&(l.y=a),z8(l,e.transform),R8(l,n,e,t),j8(l,e),t.animation&&T8(e,l,t),y8("text",e.id+"",l,void 0,r)}}(e,t):void 0}function G8(e,t,n,r){var o,i=e[n],a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(eH(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else{if(!tH(i))return void 0;o="radialGradient",a.cx=Ej(i.x,.5),a.cy=Ej(i.y,.5),a.r=Ej(i.r,.5)}for(var l=i.colorStops,s=[],c=0,u=l.length;c<u;++c){var d=100*KB(l[c].offset)+"%",p=UB(l[c].color),f=p.color,h=p.opacity,g={offset:d};g["stop-color"]=f,h<1&&(g["stop-opacity"]=h),s.push(y8("stop",c+"",g))}var m=b8(y8(o,"",a,s)),v=r.gradientCache,y=v[m];y||(y=r.zrId+"-g"+r.gradientIdx++,v[m]=y,a.id=y,r.defs[y]=y8(o,y,a,s)),t[n]=rH(y)}function U8(e,t,n,r){var o,i=e.style[n],a=e.getBoundingRect(),l={},s=i.repeat,c="no-repeat"===s,u="repeat-x"===s,d="repeat-y"===s;if(QB(i)){var p=i.imageWidth,f=i.imageHeight,h=void 0,g=i.image;if(mj(g)?h=g:N8(g)?h=g.src:A8(g)&&(h=g.toDataURL()),"undefined"===typeof Image){var m="Image width/height must been given explictly in svg-ssr renderer.";Pj(p,m),Pj(f,m)}else if(null==p||null==f){var v=function(e,t){if(e){var n=e.elm,r=p||t.width,o=f||t.height;"pattern"===e.tag&&(u?(o=1,r/=a.width):d&&(r=1,o/=a.height)),e.attrs.width=r,e.attrs.height=o,n&&(n.setAttribute("width",r),n.setAttribute("height",o))}},y=XV(h,null,e,function(e){c||v(S,e),v(o,e)});y&&y.width&&y.height&&(p=p||y.width,f=f||y.height)}o=y8("image","img",{href:h,width:p,height:f}),l.width=p,l.height=f}else i.svgElement&&(o=KR(i.svgElement),l.width=i.svgWidth,l.height=i.svgHeight);if(o){var b,x;c?b=x=1:u?(x=1,b=l.width/a.width):d?(b=1,x=l.height/a.height):l.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(l.width=b),null==x||isNaN(x)||(l.height=x);var w=iH(i);w&&(l.patternTransform=w);var S=y8("pattern","",l,[o]),C=b8(S),_=r.patternCache,k=_[C];k||(k=r.zrId+"-p"+r.patternIdx++,_[C]=k,l.id=k,S=r.defs[k]=y8("pattern",k,l,[o])),t[n]=rH(k)}}function Y8(e,t,n){var r=n.clipPathCache,o=n.defs,i=r[e.id];if(!i){var a={id:i=n.zrId+"-c"+n.clipPathIdx++};r[e.id]=i,o[i]=y8("clipPath",i,a,[V8(e,n)])}t["clip-path"]=rH(i)}function q8(e){return document.createTextNode(e)}function X8(e,t,n){e.insertBefore(t,n)}function K8(e,t){e.removeChild(t)}function Z8(e,t){e.appendChild(t)}function Q8(e){return e.parentNode}function J8(e){return e.nextSibling}function e7(e,t){e.textContent=t}var t7=y8("","");function n7(e){return void 0===e}function r7(e){return void 0!==e}function o7(e,t,n){for(var r={},o=t;o<=n;++o){var i=e[o].key;void 0!==i&&(r[i]=o)}return r}function i7(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function a7(e){var t,n=e.children,r=e.tag;if(r7(r)){var o=e.elm=v8(r);if(c7(t7,e),hj(n))for(t=0;t<n.length;++t){var i=n[t];null!=i&&Z8(o,a7(i))}else r7(e.text)&&!bj(e.text)&&Z8(o,q8(e.text))}else e.elm=q8(e.text);return e.elm}function l7(e,t,n,r,o){for(;r<=o;++r){var i=n[r];null!=i&&X8(e,a7(i),t)}}function s7(e,t,n,r){for(;n<=r;++n){var o=t[n];if(null!=o)if(r7(o.tag))K8(Q8(o.elm),o.elm);else K8(e,o.elm)}}function c7(e,t){var n,r=t.elm,o=e&&e.attrs||{},i=t.attrs||{};if(o!==i){for(n in i){var a=i[n];o[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):"style"===n?r.style.cssText=a:120!==n.charCodeAt(0)?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?r.setAttributeNS(g8,n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}function u7(e,t){var n=t.elm=e.elm,r=e.children,o=t.children;e!==t&&(c7(e,t),n7(t.text)?r7(r)&&r7(o)?r!==o&&function(e,t,n){for(var r,o,i,a=0,l=0,s=t.length-1,c=t[0],u=t[s],d=n.length-1,p=n[0],f=n[d];a<=s&&l<=d;)null==c?c=t[++a]:null==u?u=t[--s]:null==p?p=n[++l]:null==f?f=n[--d]:i7(c,p)?(u7(c,p),c=t[++a],p=n[++l]):i7(u,f)?(u7(u,f),u=t[--s],f=n[--d]):i7(c,f)?(u7(c,f),X8(e,c.elm,J8(u.elm)),c=t[++a],f=n[--d]):i7(u,p)?(u7(u,p),X8(e,u.elm,c.elm),u=t[--s],p=n[++l]):(n7(r)&&(r=o7(t,a,s)),n7(o=r[p.key])||(i=t[o]).tag!==p.tag?X8(e,a7(p),c.elm):(u7(i,p),t[o]=void 0,X8(e,i.elm,c.elm)),p=n[++l]);(a<=s||l<=d)&&(a>s?l7(e,null==n[d+1]?null:n[d+1].elm,n,l,d):s7(e,t,a,s))}(n,r,o):r7(o)?(r7(e.text)&&e7(n,""),l7(n,null,o,0,o.length-1)):r7(r)?s7(n,r,0,r.length-1):r7(e.text)&&e7(n,""):e.text!==t.text&&(r7(r)&&s7(n,r,0,r.length-1),e7(n,t.text)))}var d7=0,p7=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=t,this._opts=n=JR({},n),this.root=e,this._id="zr"+d7++,this._oldVNode=w8(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=v8("svg");c7(null,this._oldVNode),r.appendChild(o),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",function(e,t){if(i7(e,t))u7(e,t);else{var n=e.elm,r=Q8(n);a7(t),null!==r&&(X8(r,t.elm,J8(n)),s7(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return W8(e,x8(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,o=x8(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis,o.ssr=this._opts.ssr;var i=[],a=this._bgVNode=function(e,t,n,r){var o;if(n&&"none"!==n)if(o=y8("rect","bg",{width:e,height:t,x:"0",y:"0"}),nH(n))G8({fill:n},o.attrs,"fill",r);else if(JB(n))U8({style:{fill:n},dirty:Gj,getBoundingRect:function(){return{width:e,height:t}}},o.attrs,"fill",r);else{var i=UB(n),a=i.color,l=i.opacity;o.attrs.fill=a,l<1&&(o.attrs["fill-opacity"]=l)}return o}(n,r,this._backgroundColor,o);a&&i.push(a);var l=e.compress?null:this._mainVNode=y8("g","main",{},[]);this._paintList(t,o,l?l.children:i),l&&i.push(l);var s=lj(dj(o.defs),function(e){return o.defs[e]});if(s.length&&i.push(y8("defs","defs",{},s)),e.animation){var c=function(e,t,n){var r=(n=n||{}).newline?"\n":"",o=" {"+r,i=r+"}",a=lj(dj(e),function(t){return t+o+lj(dj(e[t]),function(n){return n+":"+e[t][n]+";"}).join(r)+i}).join(r),l=lj(dj(t),function(e){return"@keyframes "+e+o+lj(dj(t[e]),function(n){return n+o+lj(dj(t[e][n]),function(r){var o=t[e][n][r];return"d"===r&&(o='path("'+o+'")'),r+":"+o+";"}).join(r)+i}).join(r)+i}).join(r);return a||l?["<![CDATA[",a,l,"]]>"].join(r):""}(o.cssNodes,o.cssAnims,{newline:!0});if(c){var u=y8("style","stl",{},[],c);i.push(u)}}return w8(n,r,i,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},b8(this.renderToVNode({animation:Ej(e.cssAnimation,!0),emphasis:Ej(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ej(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,o,i=e.length,a=[],l=0,s=0,c=0;c<i;c++){var u=e[c];if(!u.invisible){var d=u.__clipPaths,p=d&&d.length||0,f=o&&o.length||0,h=void 0;for(h=Math.max(p-1,f-1);h>=0&&(!d||!o||d[h]!==o[h]);h--);for(var g=f-1;g>h;g--)r=a[--l-1];for(var m=h+1;m<p;m++){var v={};Y8(d[m],v,t);var y=y8("g","clip-g-"+s++,v,[]);(r?r.children:n).push(y),a[l++]=y,r=y}o=d;var b=W8(u,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,o=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&o&&(o.style.display="none",e=S1(r,0,n),t=S1(r,1,n),o.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,o){var i=o.style;i.width=e+"px",i.height=t+"px"}if(JB(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=aH(t))&&n+"base64,"+t:n+"charset=UTF-8,"+encodeURIComponent(t)},e}();const f7=p7;var h7=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return MR(t,e),t.prototype.getInitialData=function(e){return d3(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new _F,n=m1("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),i="none"===r?"circle":r,a=.8*e.itemHeight,l=m1(i,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(l),l.setStyle(e.itemStyle);var s="inherit"===e.iconRotate?o:e.iconRotate||0;return l.rotation=s*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),i.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.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}(UZ);const g7=h7;function m7(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var o=$K(e,t,n[0]);return null!=o?o+"":null}if(r){for(var i=[],a=0;a<n.length;a++)i.push($K(e,t,n[a]));return i.join(" ")}}function v7(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!hj(t))return t+"";for(var r=[],o=0;o<n.length;o++){var i=e.getDimensionIndex(n[o]);i>=0&&r.push(t[i])}return r.join(" ")}var y7=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.updateData(t,n,r,o),i}return MR(t,e),t.prototype._createSymbol=function(e,t,n,r,o){this.removeAll();var i=m1(e,-1,-1,2,2,null,o);i.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),i.drift=b7,this._symbolType=e,this.add(i)},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(){$U(this.childAt(0))},t.prototype.downplay=function(){TU(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,o){this.silent=!1;var i=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,l=t.getSymbolSize(e,n),s=i!==this._symbolType,c=o&&o.disableAnimation;if(s){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,e,n,l,u)}else{(p=this.childAt(0)).silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):nY(p,d,a,n),sY(p)}if(this._updateCommon(e,n,l,r,o),s){var p=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,rY(p,d,a,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,o){var i,a,l,s,c,u,d,p,f,h=this.childAt(0),g=e.hostModel;if(r&&(i=r.emphasisItemStyle,a=r.blurItemStyle,l=r.selectItemStyle,s=r.focus,c=r.blurScope,d=r.labelStatesModels,p=r.hoverScale,f=r.cursorStyle,u=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),v=m.getModel("emphasis");i=v.getModel("itemStyle").getItemStyle(),l=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),s=v.get("focus"),c=v.get("blurScope"),u=v.get("disabled"),d=fY(m),p=v.getShallow("scale"),f=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");h.attr("rotation",(y||0)*Math.PI/180||0);var b=y1(e.getItemVisual(t,"symbolOffset"),n);b&&(h.x=b[0],h.y=b[1]),f&&h.attr("cursor",f);var x=e.getItemVisual(t,"style"),w=x.fill;if(h instanceof OG){var S=h.style;h.useStyle(JR({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else h.__isEmptyBrush?h.useStyle(JR({},x)):h.useStyle(x),h.style.decal=null,h.setColor(w,o&&o.symbolInnerColor),h.style.strokeNoScale=!0;var C=e.getItemVisual(t,"liftZ"),_=this._z2;null!=C?null==_&&(this._z2=h.z2,h.z2+=C):null!=_&&(h.z2=_,this._z2=null);var k=o&&o.useNameLabel;pY(h,d,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return k?e.getName(t):m7(e,t)},inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=h.ensureState("emphasis");M.style=i,h.ensureState("select").style=l,h.ensureState("blur").style=a;var I=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),WU(this,s,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),o=eU(this).dataIndex,i=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&iY(a,{style:{opacity:0}},t,{dataIndex:o,removeOpt:i,cb:function(){r.removeTextContent()}})}else r.removeTextContent();iY(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:o,cb:e,removeOpt:i})},t.getSymbolSize=function(e,t){return v1(e.getItemVisual(t,"symbolSize"))},t}(_F);function b7(e,t){this.parent.drift(e,t)}const x7=y7;function w7(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 S7(e){return null==e||bj(e)||(e={isIgnore:e}),e||{}}function C7(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:fY(t),cursorStyle:t.get("cursor")}}var _7=function(){function e(e){this.group=new _F,this._SymbolCtor=e||x7}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=S7(t);var n=this.group,r=e.hostModel,o=this._data,i=this._SymbolCtor,a=t.disableAnimation,l=C7(e),s={disableAnimation:a},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};o||n.removeAll(),e.diff(o).add(function(r){var o=c(r);if(w7(e,o,r,t)){var a=new i(e,r,l,s);a.setPosition(o),e.setItemGraphicEl(r,a),n.add(a)}}).update(function(u,d){var p=o.getItemGraphicEl(d),f=c(u);if(w7(e,f,u,t)){var h=e.getItemVisual(u,"symbol")||"circle",g=p&&p.getSymbolType&&p.getSymbolType();if(!p||g&&g!==h)n.remove(p),(p=new i(e,u,l,s)).setPosition(f);else{p.updateData(e,u,l,s);var m={x:f[0],y:f[1]};a?p.attr(m):nY(p,m,r)}n.add(p),e.setItemGraphicEl(u,p)}else n.remove(p)}).remove(function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=c,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=C7(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=S7(n);for(var o=e.start;o<e.end;o++){var i=t.getItemLayout(o);if(w7(t,i,o,n)){var a=new this._SymbolCtor(t,o,this._seriesScope);a.traverse(r),a.setPosition(i),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){QJ(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();const k7=_7;function M7(e,t,n){var r=e.getBaseAxis(),o=e.getOtherAxis(r),i=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:yj(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(o,n),a=r.dim,l=o.dim,s=t.mapDimension(l),c=t.mapDimension(a),u="x"===l||"radius"===l?1:0,d=lj(e.dimensions,function(e){return t.mapDimension(e)}),p=!1,f=t.getCalculationInfo("stackResultDimension");return c3(t,d[0])&&(p=!0,d[0]=f),c3(t,d[1])&&(p=!0,d[1]=f),{dataDimsForPoint:d,valueStart:i,valueAxisDim:l,baseAxisDim:a,stacked:!!p,valueDim:s,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function I7(e,t,n,r){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(o)&&(o=e.valueStart);var i=e.baseDataOffset,a=[];return a[i]=n.get(e.baseDim,r),a[1-i]=o,t.dataToPoint(a)}var E7=Math.min,O7=Math.max;function $7(e,t){return isNaN(e)||isNaN(t)}function T7(e,t,n,r,o,i,a,l,s){for(var c,u,d,p,f,h,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=o||g<0)break;if($7(v,y)){if(s){g+=i;continue}break}if(g===n)e[i>0?"moveTo":"lineTo"](v,y),d=v,p=y;else{var b=v-c,x=y-u;if(b*b+x*x<.5){g+=i;continue}if(a>0){for(var w=g+i,S=t[2*w],C=t[2*w+1];S===v&&C===y&&m<r;)m++,g+=i,S=t[2*(w+=i)],C=t[2*w+1],b=(v=t[2*g])-c,x=(y=t[2*g+1])-u;var _=m+1;if(s)for(;$7(S,C)&&_<r;)_++,S=t[2*(w+=i)],C=t[2*w+1];var k=.5,M=0,I=0,E=void 0,O=void 0;if(_>=r||$7(S,C))f=v,h=y;else{M=S-c,I=C-u;var $=v-c,T=S-v,P=y-u,D=C-y,N=void 0,A=void 0;if("x"===l){var R=M>0?1:-1;f=v-R*(N=Math.abs($))*a,h=y,E=v+R*(A=Math.abs(T))*a,O=y}else if("y"===l){var j=I>0?1:-1;f=v,h=y-j*(N=Math.abs(P))*a,E=v,O=y+j*(A=Math.abs(D))*a}else N=Math.sqrt($*$+P*P),f=v-M*a*(1-(k=(A=Math.sqrt(T*T+D*D))/(A+N))),h=y-I*a*(1-k),O=y+I*a*k,E=E7(E=v+M*a*k,O7(S,v)),O=E7(O,O7(C,y)),E=O7(E,E7(S,v)),h=y-(I=(O=O7(O,E7(C,y)))-y)*N/A,f=E7(f=v-(M=E-v)*N/A,O7(c,v)),h=E7(h,O7(u,y)),E=v+(M=v-(f=O7(f,E7(c,v))))*A/N,O=y+(I=y-(h=O7(h,E7(u,y))))*A/N}e.bezierCurveTo(d,p,f,h,v,y),d=E,p=O}else e.lineTo(v,y)}c=v,u=y,g+=i}return m}var P7=function(){this.smooth=0,this.smoothConstraint=!0},D7=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new P7},t.prototype.buildPath=function(e,t){var n=t.points,r=0,o=n.length/2;if(t.connectNulls){for(;o>0&&$7(n[2*o-2],n[2*o-1]);o--);for(;r<o&&$7(n[2*r],n[2*r+1]);r++);}for(;r<o;)r+=T7(e,n,r,o,o,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,o=this.path.data,i=eG.CMD,a="x"===t,l=[],s=0;s<o.length;){var c=void 0,u=void 0,d=void 0,p=void 0,f=void 0,h=void 0,g=void 0;switch(o[s++]){case i.M:n=o[s++],r=o[s++];break;case i.L:if(c=o[s++],u=o[s++],(g=a?(e-n)/(c-n):(e-r)/(u-r))<=1&&g>=0){var m=a?(u-r)*g+r:(c-n)*g+n;return a?[e,m]:[m,e]}n=c,r=u;break;case i.C:c=o[s++],u=o[s++],d=o[s++],p=o[s++],f=o[s++],h=o[s++];var v=a?eB(n,c,d,f,e,l):eB(r,u,p,h,e,l);if(v>0)for(var y=0;y<v;y++){var b=l[y];if(b<=1&&b>=0){m=a?Qz(r,u,p,h,b):Qz(n,c,d,f,b);return a?[e,m]:[m,e]}}n=f,r=h}}},t}(SG),N7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t}(P7),A7=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new N7},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,o=0,i=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;i>0&&$7(n[2*i-2],n[2*i-1]);i--);for(;o<i&&$7(n[2*o],n[2*o+1]);o++);}for(;o<i;){var l=T7(e,n,o,i,i,1,t.smooth,a,t.connectNulls);T7(e,r,o+l-1,l,i,-1,t.stackedOnSmooth,a,t.connectNulls),o+=l+1,e.closePath()}},t}(SG);function R7(e,t,n,r,o){var i=e.getArea(),a=i.x,l=i.y,s=i.width,c=i.height,u=n.get(["lineStyle","width"])||0;a-=u/2,l-=u/2,s+=u,c+=u,s=Math.ceil(s),a!==Math.floor(a)&&(a=Math.floor(a),s++);var d=new jG({shape:{x:a,y:l,width:s,height:c}});if(t){var p=e.getBaseAxis(),f=p.isHorizontal(),h=p.inverse;f?(h&&(d.shape.x+=s),d.shape.width=0):(h||(d.shape.y+=c),d.shape.height=0);var g=gj(o)?function(e){o(e,d)}:null;rY(d,{shape:{width:s,height:c,x:a,y:l}},n,null,r,g)}return d}function j7(e,t,n){var r=e.getArea(),o=HF(r.r0,1),i=HF(r.r,1),a=new jQ({shape:{cx:HF(e.cx,1),cy:HF(e.cy,1),r0:o,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=o,rY(a,{shape:{endAngle:r.endAngle,r:i}},n));return a}function L7(e,t,n,r,o){return e?"polar"===e.type?j7(e,t,n):"cartesian2d"===e.type?R7(e,t,n,r,o):null:null}function z7(e,t){return e.type===t}function B7(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function H7(e){for(var t=1/0,n=1/0,r=-1/0,o=-1/0,i=0;i<e.length;){var a=e[i++],l=e[i++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(l)||(n=Math.min(l,n),o=Math.max(l,o))}return[[t,n],[r,o]]}function F7(e,t){var n=H7(e),r=n[0],o=n[1],i=H7(t),a=i[0],l=i[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(o[0]-l[0]),Math.abs(o[1]-l[1]))}function V7(e){return yj(e)?e:e?.5:0}function W7(e,t,n,r,o){var i=n.getBaseAxis(),a="x"===i.dim||"radius"===i.dim?0:1,l=[],s=0,c=[],u=[],d=[],p=[];if(o){for(s=0;s<e.length;s+=2){var f=t||e;isNaN(f[s])||isNaN(f[s+1])||p.push(e[s],e[s+1])}e=p}for(s=0;s<e.length-2;s+=2)switch(d[0]=e[s+2],d[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],l.push(u[0],u[1]),r){case"end":c[a]=d[a],c[1-a]=u[1-a],l.push(c[0],c[1]);break;case"middle":var h=(u[a]+d[a])/2,g=[];c[a]=g[a]=h,c[1-a]=u[1-a],g[1-a]=d[1-a],l.push(c[0],c[1]),l.push(g[0],g[1]);break;default:c[a]=u[a],c[1-a]=d[1-a],l.push(c[0],c[1])}return l.push(e[s++],e[s++]),l}function G7(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var o,i,a=r.length-1;a>=0;a--){var l=e.getDimensionInfo(r[a].dimension);if("x"===(o=l&&l.coordDim)||"y"===o){i=r[a];break}}if(i){var s=t.getAxis(o),c=lj(i.stops,function(e){return{coord:s.toGlobalCoord(s.dataToCoord(e.value)),color:e.color}}),u=c.length,d=i.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var p=function(e,t){var n,r,o=[],i=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:RB((n-r)/(t.coord-r),[e.color,t.color])}}for(var l=0;l<i;l++){var s=e[l],c=s.coord;if(c<0)n=s;else{if(c>t){r?o.push(a(r,s,t)):n&&o.push(a(n,s,0),a(n,s,t));break}n&&(o.push(a(n,s,0)),n=null),o.push(s),r=s}}return o}(c,"x"===o?n.getWidth():n.getHeight()),f=p.length;if(!f&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var h=p[0].coord-10,g=p[f-1].coord+10,m=g-h;if(m<.001)return"transparent";aj(p,function(e){e.offset=(e.coord-h)/m}),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var v=new dJ(0,0,0,0,p,!0);return v[o]=h,v[o+"2"]=g,v}}}function U7(e,t,n){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var i=n.getAxesByScale("ordinal")[0];if(i&&(!o||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var o=t.count(),i=Math.max(1,Math.round(o/5)),a=0;a<o;a+=i)if(1.5*x7.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(i,t))){var a=t.mapDimension(i.dim),l={};return aj(i.getViewLabels(),function(e){var t=i.scale.getRawOrdinalNumber(e.tickValue);l[t]=1}),function(e){return!l.hasOwnProperty(t.get(a,e))}}}}function Y7(e,t){return isNaN(e)||isNaN(t)}function q7(e,t){return[e[2*t],e[2*t+1]]}function X7(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<aU.length;t++)if(e.get([aU[t],"endLabel","show"]))return!0;return!1}function K7(e,t,n,r){if(z7(t,"cartesian2d")){var o=r.getModel("endLabel"),i=o.get("valueAnimation"),a=r.getData(),l={lastFrameIndex:0},s=X7(r)?function(n,r){e._endLabelOnDuring(n,r,a,l,i,o,t)}:null,c=t.getBaseAxis().isHorizontal(),u=R7(t,n,r,function(){var t=e._endLabel;t&&n&&null!=l.originalX&&t.attr({x:l.originalX,y:l.originalY})},s);if(!r.get("clip",!0)){var d=u.shape,p=Math.max(d.width,d.height);c?(d.y-=p,d.height+=2*p):(d.x-=p,d.width+=2*p)}return s&&s(1,u),u}return j7(t,n,r)}var Z7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.init=function(){var e=new _F,t=new k7;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=pj(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,o=this.group,i=e.getData(),a=e.getModel("lineStyle"),l=e.getModel("areaStyle"),s=i.getLayout("points")||[],c="polar"===r.type,u=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,h=this._lineGroup,g=!t.ssr&&e.get("animation"),m=!l.isEmpty(),v=l.get("origin"),y=M7(r,i,v),b=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),o=D3(2*r),i=0;i<r;i++){var a=I7(n,e,t,i);o[2*i]=a[0],o[2*i+1]=a[1]}return o}(r,i,y),x=e.get("showSymbol"),w=e.get("connectNulls"),S=x&&!c&&U7(e,i,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(o.remove(e),C.setItemGraphicEl(t,null))}),x||d.remove(),o.add(h);var _,k=!c&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(null!=(_=r.getArea()).width?(_.x-=.1,_.y-=.1,_.width+=.2,_.height+=.2):_.r0&&(_.r0-=.5,_.r+=.5)),this._clipShapeForSymbol=_;var M=G7(i,r,n)||i.getVisual("style")[i.getVisual("drawType")];if(p&&u.type===r.type&&k===this._step){m&&!f?f=this._newPolygon(s,b):f&&!m&&(h.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Nq(M));var I=h.getClipPath();if(I)rY(I,{shape:K7(this,r,!1,e).shape},e);else h.setClipPath(K7(this,r,!0,e));x&&d.updateData(i,{isIgnore:S,clipShape:_,disableAnimation:!0,getSymbolPoint:function(e){return[s[2*e],s[2*e+1]]}}),B7(this._stackedOnPoints,b)&&B7(this._points,s)||(g?this._doUpdateAnimation(i,b,r,n,k,v,w):(k&&(b&&(b=W7(b,s,r,k,w)),s=W7(s,null,r,k,w)),p.setShape({points:s}),f&&f.setShape({points:s,stackedOnPoints:b})))}else x&&d.updateData(i,{isIgnore:S,clipShape:_,disableAnimation:!0,getSymbolPoint:function(e){return[s[2*e],s[2*e+1]]}}),g&&this._initSymbolLabelAnimation(i,r,_),k&&(b&&(b=W7(b,s,r,k,w)),s=W7(s,null,r,k,w)),p=this._newPolyline(s),m?f=this._newPolygon(s,b):f&&(h.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(e,r,Nq(M)),h.setClipPath(K7(this,r,!0,e));var E=e.getModel("emphasis"),O=E.get("focus"),$=E.get("blurScope"),T=E.get("disabled");(p.useStyle(ej(a.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),qU(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);eU(p).seriesIndex=e.seriesIndex,WU(p,O,$,T);var P=V7(e.get("smooth")),D=e.get("smoothMonotone");if(p.setShape({smooth:P,smoothMonotone:D,connectNulls:w}),f){var N=i.getCalculationInfo("stackedOnSeries"),A=0;f.useStyle(ej(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:i.getVisual("style").decal})),N&&(A=V7(N.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:A,smoothMonotone:D,connectNulls:w}),qU(f,e,"areaStyle"),eU(f).seriesIndex=e.seriesIndex,WU(f,O,$,T)}var R=this._changePolyState;i.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=i,this._coordSys=r,this._stackedOnPoints=b,this._points=s,this._step=k,this._valueOrigin=v,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){eU(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 o=e.getData(),i=_V(o,r);if(this._changePolyState("emphasis"),!(i instanceof Array)&&null!=i&&i>=0){var a=o.getLayout("points"),l=o.getItemGraphicEl(i);if(!l){var s=a[2*i],c=a[2*i+1];if(isNaN(s)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;(l=new x7(o,i)).x=s,l.y=c,l.setZ(u,d);var p=l.getSymbolPath().getTextContent();p&&(p.zlevel=u,p.z=d,p.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(i,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else l0.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var o=e.getData(),i=_V(o,r);if(this._changePolyState("normal"),null!=i&&i>=0){var a=o.getItemGraphicEl(i);a&&(a.__temp?(o.setItemGraphicEl(i,null),this.group.remove(a)):a.downplay())}else l0.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;kU(this._polyline,e),t&&kU(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new D7({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 A7({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,o,i=t.getBaseAxis(),a=i.inverse;"cartesian2d"===t.type?(r=i.isHorizontal(),o=!1):"polar"===t.type&&(r="angle"===i.dim,o=!0);var l=e.hostModel,s=l.get("animationDuration");gj(s)&&(s=s(null));var c=l.get("animationDelay")||0,u=gj(c)?c(null):c;e.eachItemGraphicEl(function(e,i){var l=e;if(l){var d=[e.x,e.y],p=void 0,f=void 0,h=void 0;if(n)if(o){var g=n,m=t.pointToCoord(d);r?(p=g.startAngle,f=g.endAngle,h=-m[1]/180*Math.PI):(p=g.r0,f=g.r,h=m[0])}else{var v=n;r?(p=v.x,f=v.x+v.width,h=e.x):(p=v.y+v.height,f=v.y,h=e.y)}var y=f===p?0:(h-p)/(f-p);a&&(y=1-y);var b=gj(c)?c(i):s*y+u,x=l.getSymbolPath(),w=x.getTextContent();l.attr({scaleX:0,scaleY:0}),l.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(X7(e)){var o=e.getData(),i=this._polyline,a=o.getLayout("points");if(!a)return i.removeTextContent(),void(this._endLabel=null);var l=this._endLabel;l||((l=this._endLabel=new JG({z2:200})).ignoreClip=!0,i.setTextContent(this._endLabel),i.disableLabelAnimation=!0);var s=function(e){for(var t=e.length/2;t>0&&Y7(e[2*t-2],e[2*t-1]);t--);return t-1}(a);s>=0&&(pY(i,fY(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:s,defaultText:function(e,t,n){return null!=n?v7(o,n):m7(o,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),o=n.inverse,i=r?o?"right":"left":"center",a=r?"middle":o?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),i.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,o,i,a){var l=this._endLabel,s=this._polyline;if(l){e<1&&null==r.originalX&&(r.originalX=l.x,r.originalY=l.y);var c=n.getLayout("points"),u=n.hostModel,d=u.get("connectNulls"),p=i.get("precision"),f=i.get("distance")||0,h=a.getBaseAxis(),g=h.isHorizontal(),m=h.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?f:0)*(m?-1:1),x=(g?0:-f)*(m?-1:1),w=g?"x":"y",S=function(e,t,n){for(var r,o,i=e.length/2,a="x"===n?0:1,l=0,s=-1,c=0;c<i;c++)if(o=e[2*c+a],!isNaN(o)&&!isNaN(e[2*c+1-a]))if(0!==c){if(r<=t&&o>=t||r>=t&&o<=t){s=c;break}l=c,r=o}else r=o;return{range:[l,s],t:(t-r)/(o-r)}}(c,y,w),C=S.range,_=C[1]-C[0],k=void 0;if(_>=1){if(_>1&&!d){var M=q7(c,C[0]);l.attr({x:M[0]+b,y:M[1]+x}),o&&(k=u.getRawValue(C[0]))}else{(M=s.getPointOn(y,w))&&l.attr({x:M[0]+b,y:M[1]+x});var I=u.getRawValue(C[0]),E=u.getRawValue(C[1]);o&&(k=NV(n,p,I,E,S.t))}r.lastFrameIndex=C[0]}else{var O=1===e||r.lastFrameIndex>0?C[0]:0;M=q7(c,O);o&&(k=u.getRawValue(O)),l.attr({x:M[0]+b,y:M[1]+x})}if(o){var $=wY(l);"function"===typeof $.setLabelText&&$.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,o,i,a){var l=this._polyline,s=this._polygon,c=e.hostModel,u=function(e,t,n,r,o,i,a){for(var l=function(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}(e,t),s=[],c=[],u=[],d=[],p=[],f=[],h=[],g=M7(o,t,a),m=e.getLayout("points")||[],v=t.getLayout("points")||[],y=0;y<l.length;y++){var b=l[y],x=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=2*b.idx,S=2*b.idx1;var C=m[w],_=m[w+1],k=v[S],M=v[S+1];(isNaN(C)||isNaN(_))&&(C=k,_=M),s.push(C,_),c.push(k,M),u.push(n[w],n[w+1]),d.push(r[S],r[S+1]),h.push(t.getRawIndex(b.idx1));break;case"+":var I=b.idx,E=g.dataDimsForPoint,O=o.dataToPoint([t.get(E[0],I),t.get(E[1],I)]);S=2*I,s.push(O[0],O[1]),c.push(v[S],v[S+1]);var $=I7(g,o,t,I);u.push($[0],$[1]),d.push(r[S],r[S+1]),h.push(t.getRawIndex(I));break;case"-":x=!1}x&&(p.push(b),f.push(f.length))}f.sort(function(e,t){return h[e]-h[t]});var T=s.length,P=D3(T),D=D3(T),N=D3(T),A=D3(T),R=[];for(y=0;y<f.length;y++){var j=f[y],L=2*y,z=2*j;P[L]=s[z],P[L+1]=s[z+1],D[L]=c[z],D[L+1]=c[z+1],N[L]=u[z],N[L+1]=u[z+1],A[L]=d[z],A[L+1]=d[z+1],R[y]=p[j]}return{current:P,next:D,stackedOnCurrent:N,stackedOnNext:A,status:R}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=u.current,p=u.stackedOnCurrent,f=u.next,h=u.stackedOnNext;if(o&&(p=W7(u.stackedOnCurrent,u.current,n,o,a),d=W7(u.current,null,n,o,a),h=W7(u.stackedOnNext,u.next,n,o,a),f=W7(u.next,null,n,o,a)),F7(d,f)>3e3||s&&F7(p,h)>3e3)return l.stopAnimation(),l.setShape({points:f}),void(s&&(s.stopAnimation(),s.setShape({points:f,stackedOnPoints:h})));l.shape.__points=u.current,l.shape.points=d;var g={shape:{points:f}};u.current!==d&&(g.shape.__points=u.next),l.stopAnimation(),nY(l,g,c),s&&(s.setShape({points:d,stackedOnPoints:p}),s.stopAnimation(),nY(s,{shape:{stackedOnPoints:h}},c),l.shape.points!==s.shape.points&&(s.shape.points=l.shape.points));for(var m=[],v=u.status,y=0;y<v.length;y++){if("="===v[y].cmd){var b=e.getItemGraphicEl(v[y].idx1);b&&m.push({el:b,ptIdx:y})}}l.animators&&l.animators.length&&l.animators[0].during(function(){s&&s.dirtyShape();for(var e=l.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(l0);const Q7=Z7;function J7(e,t){return{seriesType:e,plan:XZ(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,o=e.pipelineContext,i=t||o.large;if(r){var a=lj(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),l=a.length,s=n.getCalculationInfo("stackResultDimension");c3(n,a[0])&&(a[0]=s),c3(n,a[1])&&(a[1]=s);var c=n.getStore(),u=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return l&&{progress:function(e,t){for(var n=e.end-e.start,o=i&&D3(n*l),a=[],s=[],p=e.start,f=0;p<e.end;p++){var h=void 0;if(1===l){var g=c.get(u,p);h=r.dataToPoint(g,null,s)}else a[0]=c.get(u,p),a[1]=c.get(d,p),h=r.dataToPoint(a,null,s);i?(o[f++]=h[0],o[f++]=h[1]):t.setItemLayout(p,h.slice())}i&&t.setLayout("points",o)}}}}}}var e9={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},t9=function(e){return Math.round(e.length/2)};function n9(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),o=e.get("sampling"),i=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===i.type&&o){var l=i.getBaseAxis(),s=i.getOtherAxis(l),c=l.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(u||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===o?e.setData(r.lttbDownSample(r.mapDimension(s.dim),1/p)):"minmax"===o&&e.setData(r.minmaxDownSample(r.mapDimension(s.dim),1/p));var f=void 0;mj(o)?f=e9[o]:gj(o)&&(f=o),f&&e.setData(r.downSample(r.mapDimension(s.dim),1/p,f,t9))}}}}}var r9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.getInitialData=function(e,t){return d3(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var o=r.clampData(e),i=r.dataToPoint(o);if(n)aj(r.getAxes(),function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),l=o[n],s="x1"===t[n]||"y1"===t[n];if(s&&!a&&(l+=1),r.length<2)return;if(2===r.length)return void(i[n]=e.toGlobalCoord(e.getExtent()[s?1:0]));for(var c=void 0,u=void 0,d=1,p=0;p<r.length;p++){var f=r[p].coord,h=p===r.length-1?r[p-1].tickValue+d:r[p].tickValue;if(h===l){u=f;break}if(h<l)c=f;else if(null!=c&&h>l){u=(f+c)/2;break}1===p&&(d=h-r[0].tickValue)}null==u&&(c?c&&(u=r[r.length-1].coord):u=r[0].coord),i[n]=e.toGlobalCoord(u)}});else{var a=this.getData(),l=a.getLayout("offset"),s=a.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;i[c]+=l+s/2}return i}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}(UZ);UZ.registerClass(r9);const o9=r9;var i9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.getInitialData=function(){return d3(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=zY(o9.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}(o9);const a9=i9;var l9=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},s9=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new l9},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,o=Math.max(t.r0||0,0),i=Math.max(t.r,0),a=.5*(i-o),l=o+a,s=t.startAngle,c=t.endAngle,u=t.clockwise,d=2*Math.PI,p=u?c-s<d:s-c<d;p||(s=c-(u?d:-d));var f=Math.cos(s),h=Math.sin(s),g=Math.cos(c),m=Math.sin(c);p?(e.moveTo(f*o+n,h*o+r),e.arc(f*l+n,h*l+r,a,-Math.PI+s,s,!u)):e.moveTo(f*i+n,h*i+r),e.arc(n,r,i,s,c,!u),e.arc(g*l+n,m*l+r,a,c-2*Math.PI,c-Math.PI,!u),0!==o&&e.arc(n,r,o,c,s,u)},t}(SG);const c9=s9;function u9(e,t,n){return t*Math.sin(e)*(n?-1:1)}function d9(e,t,n){return t*Math.cos(e)*(n?1:-1)}function p9(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;hj(r)||(r=[r,r,r,r]);var o=Math.abs(t.r||0-t.r0||0);return{cornerRadius:lj(r,function(e){return uF(e,o)})}}var f9=Math.max,h9=Math.min;var g9=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return MR(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(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){QJ(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 o,i=this.group,a=e.getData(),l=this._data,s=e.coordinateSystem,c=s.getBaseAxis();"cartesian2d"===s.type?o=c.isHorizontal():"polar"===s.type&&(o="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,s);d&&this._enableRealtimeSort(d,a,n);var p=e.get("clip",!0)||d,f=function(e,t){var n=e.getArea&&e.getArea();if(z7(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var o=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=o,n.width+=2*o):(n.y-=o,n.height+=2*o)}}return n}(s,a);i.removeClipPath();var h=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,x=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function S(e){var t=C9[s.type](a,e),n=function(e,t,n){var r="polar"===e.type?jQ:jG;return new r({shape:$9(t,n,e),silent:!0,z2:0})}(s,o,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===s.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(l).add(function(t){var n=a.getItemModel(t),r=C9[s.type](a,t,n);if(g&&S(t),a.hasValue(t)&&S9[s.type](r)){var l=!1;p&&(l=m9[s.type](f,r));var m=v9[s.type](e,a,t,r,o,u,c.model,!1,h);d&&(m.forceLabelAnimation=!0),k9(m,a,t,n,r,e,o,"polar"===s.type),x?m.attr({shape:r}):d?y9(d,u,m,r,t,o,!1,!1):rY(m,{shape:r},e,t),a.setItemGraphicEl(t,m),i.add(m),m.ignore=l}}).update(function(t,n){var r=a.getItemModel(t),C=C9[s.type](a,t,r);if(g){var _=void 0;0===b.length?_=S(n):((_=b[n]).useStyle(m.getItemStyle()),"cartesian2d"===s.type?_.setShape("r",v):_.setShape("cornerRadius",v),y[t]=_);var k=C9[s.type](a,t);nY(_,{shape:$9(o,k,s)},u,t)}var M=l.getItemGraphicEl(n);if(a.hasValue(t)&&S9[s.type](C)){var I=!1;if(p&&(I=m9[s.type](f,C))&&i.remove(M),M?sY(M):M=v9[s.type](e,a,t,C,o,u,c.model,!!M,h),d&&(M.forceLabelAnimation=!0),w){var E=M.getTextContent();if(E){var O=wY(E);null!=O.prevValue&&(O.prevValue=O.value)}}else k9(M,a,t,r,C,e,o,"polar"===s.type);x?M.attr({shape:C}):d?y9(d,u,M,C,t,o,!0,w):nY(M,{shape:C},e,t,null),a.setItemGraphicEl(t,M),M.ignore=I,i.add(M)}else i.remove(M)}).remove(function(t){var n=l.getItemGraphicEl(t);n&&lY(n,e,t)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new _F);C.removeAll();for(var _=0;_<y.length;++_)C.add(y[_]);i.add(C),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),E9(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),E9(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&L7(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var i=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(o.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,i,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var o=n(t);o=null==o?NaN:o,r.push({dataIndex:t,mappedValue:o,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:lj(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,o=e.mapDimension(n.dim),i=Number.MAX_VALUE,a=0,l=r.getOrdinalMeta().categories.length;a<l;++a){var s=e.rawIndexOf(o,r.getRawOrdinalNumber(a)),c=s<0?Number.MIN_VALUE:t(e.indexOfRawIndex(s));if(c>i)return!0;i=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),o=Math.max(0,r[0]),i=Math.min(r[1],n.getOrdinalMeta().categories.length-1);o<=i;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var o=this._dataSort(e,n,t);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,o=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:o})},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){lY(t,e,eU(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}(l0),m9={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 o=e.x+e.width,i=e.y+e.height,a=f9(t.x,e.x),l=h9(t.x+t.width,o),s=f9(t.y,e.y),c=h9(t.y+t.height,i),u=l<a,d=c<s;return t.x=u&&a>o?l:a,t.y=d&&s>i?c:s,t.width=u?0:l-a,t.height=d?0:c-s,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||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 o=h9(t.r,e.r),i=f9(t.r0,e.r0);t.r=o,t.r0=i;var a=o-i<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},v9={cartesian2d:function(e,t,n,r,o,i,a,l,s){var c=new jG({shape:JR({},r),z2:1});(c.__dataIndex=n,c.name="item",i)&&(c.shape[o?"height":"width"]=0);return c},polar:function(e,t,n,r,o,i,a,l,s){var c=!o&&s?c9:jQ,u=new c({shape:r,z2:1});u.name="item";var d=_9(o);if(u.calculateTextPosition=function(e,t){var n=(t=t||{}).isRoundCap;return function(t,r,o){var i=r.position;if(!i||i instanceof Array)return dF(t,r,o);var a=e(i),l=null!=r.distance?r.distance:5,s=this.shape,c=s.cx,u=s.cy,d=s.r,p=s.r0,f=(d+p)/2,h=s.startAngle,g=s.endAngle,m=(h+g)/2,v=n?Math.abs(d-p)/2:0,y=Math.cos,b=Math.sin,x=c+d*y(h),w=u+d*b(h),S="left",C="top";switch(a){case"startArc":x=c+(p-l)*y(m),w=u+(p-l)*b(m),S="center",C="top";break;case"insideStartArc":x=c+(p+l)*y(m),w=u+(p+l)*b(m),S="center",C="bottom";break;case"startAngle":x=c+f*y(h)+u9(h,l+v,!1),w=u+f*b(h)+d9(h,l+v,!1),S="right",C="middle";break;case"insideStartAngle":x=c+f*y(h)+u9(h,-l+v,!1),w=u+f*b(h)+d9(h,-l+v,!1),S="left",C="middle";break;case"middle":x=c+f*y(m),w=u+f*b(m),S="center",C="middle";break;case"endArc":x=c+(d+l)*y(m),w=u+(d+l)*b(m),S="center",C="bottom";break;case"insideEndArc":x=c+(d-l)*y(m),w=u+(d-l)*b(m),S="center",C="top";break;case"endAngle":x=c+f*y(g)+u9(g,l+v,!0),w=u+f*b(g)+d9(g,l+v,!0),S="left",C="middle";break;case"insideEndAngle":x=c+f*y(g)+u9(g,-l+v,!0),w=u+f*b(g)+d9(g,-l+v,!0),S="right",C="middle";break;default:return dF(t,r,o)}return(t=t||{}).x=x,t.y=w,t.align=S,t.verticalAlign=C,t}}(d,{isRoundCap:c===c9}),i){var p=o?"r":"endAngle",f={};u.shape[p]=o?r.r0:r.startAngle,f[p]=r[p],(l?nY:rY)(u,{shape:f},i)}return u}};function y9(e,t,n,r,o,i,a,l){var s,c;i?(c={x:r.x,width:r.width},s={y:r.y,height:r.height}):(c={y:r.y,height:r.height},s={x:r.x,width:r.width}),l||(a?nY:rY)(n,{shape:s},t,o,null),(a?nY:rY)(n,{shape:c},t?e.baseAxis.model:null,o)}function b9(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var x9=["x","y","width","height"],w9=["cx","cy","r","startAngle","endAngle"],S9={cartesian2d:function(e){return!b9(e,x9)},polar:function(e){return!b9(e,w9)}},C9={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),o=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,o,i)}(n,r):0,i=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+i*o/2,y:r.y+a*o/2,width:r.width-i*o,height:r.height-a*o}},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 _9(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 k9(e,t,n,r,o,i,a,l){var s=t.getItemVisual(n,"style");if(l){if(!i.get("roundCap")){var c=e.shape;JR(c,p9(r.getModel("itemStyle"),c,!0)),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(s);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var p=l?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=fY(r);pY(e,f,{labelFetcher:i,labelDataIndex:n,defaultText:m7(i.getData(),n),inheritColor:s.fill,defaultOpacity:s.opacity,defaultOutsidePosition:p});var h=e.getTextContent();if(l&&h){var g=r.get(["label","position"]);e.textConfig.inside="middle"===g||null,function(e,t,n,r){if(yj(r))e.setTextConfig({rotation:r});else if(hj(t))e.setTextConfig({rotation:0});else{var o,i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,l=i.clockwise?i.endAngle:i.startAngle,s=(a+l)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=s;break;case"startAngle":case"insideStartAngle":o=a;break;case"endAngle":case"insideEndAngle":o=l;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-o;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}(e,"outside"===g?p:g,_9(a),r.get(["label","rotate"]))}SY(h,f,i.getRawValue(n),function(e){return v7(t,e)});var m=r.getModel(["emphasis"]);WU(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),qU(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(o)&&(e.style.fill="none",e.style.stroke="none",aj(e.states,function(e){e.style&&(e.style.fill=e.style.stroke="none")}))}var M9=function(){},I9=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new M9},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,o=1-this.baseDimIdx,i=[],a=[],l=this.barWidth,s=0;s<n.length;s+=3)a[r]=l,a[o]=n[s+2],i[r]=n[s+r],i[o]=n[s+o],e.rect(i[0],i[1],a[0],a[1])},t}(SG);function E9(e,t,n,r){var o=e.getData(),i=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),l=o.getLayout("size"),s=e.getModel("backgroundStyle"),c=o.getLayout("largeBackgroundPoints");if(c){var u=new I9({shape:{points:c},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=i,u.largeDataIndices=a,u.barWidth=l,u.useStyle(s.getItemStyle()),t.add(u),n&&n.push(u)}var d=new I9({shape:{points:o.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=i,d.largeDataIndices=a,d.barWidth=l,t.add(d),d.useStyle(o.getVisual("style")),d.style.stroke=null,eU(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",O9),d.on("mousemove",O9)),n&&n.push(d)}var O9=d0(function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,o=1-r,i=e.shape.points,a=e.largeDataIndices,l=[],s=[],c=e.barWidth,u=0,d=i.length/3;u<d;u++){var p=3*u;if(s[r]=c,s[o]=i[p+2],l[r]=i[p+r],l[o]=i[p+o],s[o]<0&&(l[o]+=s[o],s[o]=-s[o]),t>=l[0]&&t<=l[0]+s[0]&&n>=l[1]&&n<=l[1]+s[1])return a[u]}return-1}(this,e.offsetX,e.offsetY);eU(this).dataIndex=t>=0?t:null},30,!1);function $9(e,t,n){if(z7(n,"cartesian2d")){var r=t,o=n.getArea();return{x:e?r.x:o.x,y:e?o.y:r.y,width:e?r.width:o.width,height:e?o.height:r.height}}var i=t;return{cx:(o=n.getArea()).cx,cy:o.cy,r0:e?o.r0:i.r0,r:e?o.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:2*Math.PI}}const T9=g9;var P9=2*Math.PI,D9=Math.PI/180;function N9(e,t){return Hq(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A9(e,t){var n=N9(e,t),r=e.get("center"),o=e.get("radius");hj(o)||(o=[0,o]);var i,a,l=BF(n.width,t.getWidth()),s=BF(n.height,t.getHeight()),c=Math.min(l,s),u=BF(o[0],c/2),d=BF(o[1],c/2),p=e.coordinateSystem;if(p){var f=p.dataToPoint(r);i=f[0]||0,a=f[1]||0}else hj(r)||(r=[r,r]),i=BF(r[0],l)+n.x,a=BF(r[1],s)+n.y;return{cx:i,cy:a,r0:u,r:d}}function R9(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension("value"),o=N9(e,n),i=A9(e,n),a=i.cx,l=i.cy,s=i.r,c=i.r0,u=-e.get("startAngle")*D9,d=e.get("endAngle"),p=e.get("padAngle")*D9;d="auto"===d?u-P9:-d*D9;var f=e.get("minAngle")*D9+p,h=0;t.each(r,function(e){!isNaN(e)&&h++});var g=t.getSum(r),m=Math.PI/(g||h)*2,v=e.get("clockwise"),y=e.get("roseType"),b=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var w=v?1:-1,S=[u,d],C=w*p/2;QW(S,!v),u=S[0],d=S[1];var _=j9(e);_.startAngle=u,_.endAngle=d,_.clockwise=v;var k=Math.abs(d-u),M=k,I=0,E=u;if(t.setLayout({viewRect:o,r:s}),t.each(r,function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:l,r0:c,r:y?NaN:s});else{(r="area"!==y?0===g&&b?m:e*m:k/h)<f?(r=f,M-=f):I+=e;var o=E+w*r,i=0,u=0;p>r?u=i=E+w*r/2:(i=E+C,u=o-C),t.setItemLayout(n,{angle:r,startAngle:i,endAngle:u,clockwise:v,cx:a,cy:l,r0:c,r:y?zF(e,x,[c,s]):s}),E=o}}),M<P9&&h)if(M<=.001){var O=k/h;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=O;var o=0,i=0;O<p?i=o=u+w*(n+.5)*O:(o=u+w*n*O+C,i=u+w*(n+1)*O-C),r.startAngle=o,r.endAngle=i}})}else m=M/I,E=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),o=r.angle===f?f:e*m,i=0,a=0;o<p?a=i=E+w*o/2:(i=E+C,a=E+w*o-C),r.startAngle=i,r.endAngle=a,E+=w*o}})})}var j9=kV();function L9(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),o=0;o<n.length;o++)if(!n[o].isSelected(t))return!1;return!0})}}}}var z9=Math.PI/180;function B9(e,t,n,r,o,i,a,l,s,c){if(!(e.length<2)){for(var u=e.length,d=0;d<u;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var p=e[d].label.x-c;e[d].linePoints[1][0]+=p,e[d].label.x=c}N6(e,s,s+a)&&function(e){for(var i={list:[],maxY:0},a={list:[],maxY:0},l=0;l<e.length;l++)if("none"===e[l].labelAlignTo){var s=e[l],c=s.label.y>n?a:i,u=Math.abs(s.label.y-n);if(u>=c.maxY){var d=s.label.x-t-s.len2*o,p=r+s.len,h=Math.abs(d)<p?Math.sqrt(u*u/(1-d*d/p/p)):p;c.rB=h,c.maxY=u}c.list.push(s)}f(i),f(a)}(e)}function f(e){for(var i=e.rB,a=i*i,l=0;l<e.list.length;l++){var s=e.list[l],c=Math.abs(s.label.y-n),u=r+s.len,d=u*u,p=Math.sqrt(Math.abs((1-c*c/a)*d)),f=t+(p+s.len2)*o,h=f-s.label.x;H9(s,s.targetTextWidth-h*o,!0),s.label.x=f}}}function H9(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,o=r.style,i=e.rect,a=o.backgroundColor,l=o.padding,s=l?l[1]+l[3]:0,c=o.overflow,u=i.width+(a?0:s);if(t<u||n){var d=i.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-s);var p=r.getBoundingRect();r.setStyle("width",Math.ceil(p.width)),r.setStyle("backgroundColor",a)}else{var f=t-s,h=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle("width",h)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function F9(e){return"center"===e.position}function V9(e){var t,n,r=e.getData(),o=[],i=!1,a=(e.get("minShowLabelAngle")||0)*z9,l=r.getLayout("viewRect"),s=r.getLayout("r"),c=l.width,u=l.x,d=l.y,p=l.height;function f(e){e.ignore=!0}r.each(function(e){var l=r.getItemGraphicEl(e),d=l.shape,p=l.getTextContent(),h=l.getTextGuideLine(),g=r.getItemModel(e),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),b=m.get("alignTo"),x=BF(m.get("edgeDistance"),c),w=m.get("bleedMargin"),S=g.getModel("labelLine"),C=S.get("length");C=BF(C,c);var _=S.get("length2");if(_=BF(_,c),Math.abs(d.endAngle-d.startAngle)<a)return aj(p.states,f),p.ignore=!0,void(h&&(aj(h.states,f),h.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(p)){var k,M,I,E,O=(d.startAngle+d.endAngle)/2,$=Math.cos(O),T=Math.sin(O);t=d.cx,n=d.cy;var P="inside"===v||"inner"===v;if("center"===v)k=d.cx,M=d.cy,E="center";else{var D=(P?(d.r+d.r0)/2*$:d.r*$)+t,N=(P?(d.r+d.r0)/2*T:d.r*T)+n;if(k=D+3*$,M=N+3*T,!P){var A=D+$*(C+s-d.r),R=N+T*(C+s-d.r),j=A+($<0?-1:1)*_;k="edge"===b?$<0?u+x:u+c-x:j+($<0?-y:y),M=R,I=[[D,N],[A,R],[j,R]]}E=P?"center":"edge"===b?$>0?"right":"left":$>0?"left":"right"}var L=Math.PI,z=0,B=m.get("rotate");if(yj(B))z=B*(L/180);else if("center"===v)z=0;else if("radial"===B||!0===B){z=$<0?-O+L:-O}else if("tangential"===B&&"outside"!==v&&"outer"!==v){var H=Math.atan2($,T);H<0&&(H=2*L+H),T>0&&(H=L+H),z=H-L}if(i=!!z,p.x=k,p.y=M,p.rotation=z,p.setStyle({verticalAlign:"middle"}),P){p.setStyle({align:E});var F=p.states.select;F&&(F.x+=p.x,F.y+=p.y)}else{var V=p.getBoundingRect().clone();V.applyTransform(p.getComputedTransform());var W=(p.style.margin||0)+2.1;V.y-=W/2,V.height+=W,o.push({label:p,labelLine:h,position:v,len:C,len2:_,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new rz($,T),linePoints:I,textAlign:E,labelDistance:y,labelAlignTo:b,edgeDistance:x,bleedMargin:w,rect:V,unconstrainedWidth:V.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:P})}}),!i&&e.get("avoidLabelOverlap")&&function(e,t,n,r,o,i,a,l){for(var s=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=0;p<e.length;p++){var f=e[p].label;F9(e[p])||(f.x<t?(u=Math.min(u,f.x),s.push(e[p])):(d=Math.max(d,f.x),c.push(e[p])))}for(p=0;p<e.length;p++)if(!F9(m=e[p])&&m.linePoints){if(null!=m.labelStyleWidth)continue;f=m.label;var h=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?f.x<t?h[2][0]-m.labelDistance-a-m.edgeDistance:a+o-m.edgeDistance-h[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?f.x<t?u-a-m.bleedMargin:a+o-d-m.bleedMargin:f.x<t?f.x-a-m.bleedMargin:a+o-f.x-m.bleedMargin,m.targetTextWidth=g,H9(m,g)}for(B9(c,t,n,r,1,0,i,0,l,d),B9(s,t,n,r,-1,0,i,0,l,u),p=0;p<e.length;p++){var m;if(!F9(m=e[p])&&m.linePoints){f=m.label,h=m.linePoints;var v="edge"===m.labelAlignTo,y=f.style.padding,b=y?y[1]+y[3]:0,x=f.style.backgroundColor?0:b,w=m.rect.width+x,S=h[1][0]-h[2][0];v?f.x<t?h[2][0]=a+m.edgeDistance+w+m.labelDistance:h[2][0]=a+o-m.edgeDistance-w-m.labelDistance:(f.x<t?h[2][0]=f.x+m.labelDistance:h[2][0]=f.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=f.y}}}(o,t,n,s,c,p,u,d);for(var h=0;h<o.length;h++){var g=o[h],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&(aj(m.states,f),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(v){var x=g.linePoints;y||!x?(aj(v.states,f),v.ignore=!0):(M6(x,g.minTurnAngle),I6(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new rz(x[0][0],x[0][1])})}}}var W9=function(e){function t(t,n,r){var o=e.call(this)||this;o.z2=2;var i=new JG;return o.setTextContent(i),o.updateData(t,n,r,!0),o}return MR(t,e),t.prototype.updateData=function(e,t,n,r){var o=this,i=e.hostModel,a=e.getItemModel(t),l=a.getModel("emphasis"),s=e.getItemLayout(t),c=JR(p9(a.getModel("itemStyle"),s,!0),s);if(isNaN(c.startAngle))o.setShape(c);else{if(r){o.setShape(c);var u=i.getShallow("animationType");i.ecModel.ssr?(rY(o,{scaleX:0,scaleY:0},i,{dataIndex:t,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):"scale"===u?(o.shape.r=s.r0,rY(o,{shape:{r:s.r}},i,t)):null!=n?(o.setShape({startAngle:n,endAngle:n}),rY(o,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,t)):(o.shape.endAngle=s.startAngle,nY(o,{shape:{endAngle:s.endAngle}},i,t))}else sY(o),nY(o,{shape:c},i,t);o.useStyle(e.getItemVisual(t,"style")),qU(o,a);var d=(s.startAngle+s.endAngle)/2,p=i.get("selectedOffset"),f=Math.cos(d)*p,h=Math.sin(d)*p,g=a.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(i,e,t),o.ensureState("emphasis").shape=JR({r:s.r+(l.get("scale")&&l.get("scaleSize")||0)},p9(l.getModel("itemStyle"),s)),JR(o.ensureState("select"),{x:f,y:h,shape:p9(a.getModel(["select","itemStyle"]),s)}),JR(o.ensureState("blur"),{shape:p9(a.getModel(["blur","itemStyle"]),s)});var m=o.getTextGuideLine(),v=o.getTextContent();m&&JR(m.ensureState("select"),{x:f,y:h}),JR(v.ensureState("select"),{x:f,y:h}),WU(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=this,o=t.getItemModel(n),i=o.getModel("labelLine"),a=t.getItemVisual(n,"style"),l=a&&a.fill,s=a&&a.opacity;pY(r,fY(o),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:s,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=r.getTextContent();r.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new YQ,this.setTextGuideLine(d)),$6(this,T6(o),{stroke:l,opacity:Oj(i.get(["lineStyle","opacity"]),s,1)})}},t}(jQ),G9=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return MR(t,e),t.prototype.render=function(e,t,n,r){var o,i=e.getData(),a=this._data,l=this.group;if(!a&&i.count()>0){for(var s=i.getItemLayout(0),c=1;isNaN(s&&s.startAngle)&&c<i.count();++c)s=i.getItemLayout(c);s&&(o=s.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===i.count()&&e.get("showEmptyCircle")){var u=j9(e),d=new jQ({shape:JR(A9(e,n),u)});d.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}i.diff(a).add(function(e){var t=new W9(i,e,o);i.setItemGraphicEl(e,t),l.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,o),n.off("click"),l.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){lY(a.getItemGraphicEl(t),e,t)}).execute(),V9(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,o=e[1]-n.cy,i=Math.sqrt(r*r+o*o);return i<=n.r&&i>=n.r0}},t.type="pie",t}(l0);const U9=G9;function Y9(e,t,n){t=hj(t)&&{coordDimensions:t}||JR({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=r3(r,t).dimensions,i=new t3(o,e);return i.initData(r,n),i}var q9=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){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}();const X9=q9;var K9=kV(),Z9=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new X9(pj(this.getData,this),pj(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Y9(this,{coordDimensions:["value"],encodeDefaulter:fj(dX,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=K9(n),o=r.seats;if(!o){var i=[];n.each(n.mapDimension("value"),function(e){i.push(e)}),o=r.seats=YF(i,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=o[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){hV(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}(UZ);const Q9=Z9;var J9=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return MR(t,e),t.prototype.getInitialData=function(e,t){return d3(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}(UZ);const eee=J9;var tee=function(){},nee=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return MR(t,e),t.prototype.getDefaultShape=function(){return new tee},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,o=t.size,i=this.symbolProxy,a=i.shape,l=e.getContext?e.getContext():e,s=l&&o[0]<4,c=this.softClipShape;if(s)this._ctx=l;else{for(this._ctx=null,n=this._off;n<r.length;){var u=r[n++],d=r[n++];isNaN(u)||isNaN(d)||(c&&!c.contain(u,d)||(a.x=u-o[0]/2,a.y=d-o[1]/2,a.width=o[0],a.height=o[1],i.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,o=this._ctx,i=this.softClipShape;if(o){for(e=this._off;e<n.length;){var a=n[e++],l=n[e++];isNaN(a)||isNaN(l)||(i&&!i.contain(a,l)||o.fillRect(a-r[0]/2,l-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,o=n.size,i=Math.max(o[0],4),a=Math.max(o[1],4),l=r.length/2-1;l>=0;l--){var s=2*l,c=r[s]-i/2,u=r[s+1]-a/2;if(e>=c&&t>=u&&e<=c+i&&t<=u+a)return l}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(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,o=r[0],i=r[1],a=1/0,l=1/0,s=-1/0,c=-1/0,u=0;u<n.length;){var d=n[u++],p=n[u++];a=Math.min(d,a),s=Math.max(d,s),l=Math.min(p,l),c=Math.max(p,c)}e=this._rect=new fz(a-o/2,l-i/2,s-a+o,c-l+i)}return e},t}(SG),ree=function(){function e(){this.group=new _F}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()})},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],o=t.getLayout("points"),i=r&&r.shape.points;if(i&&i.length<2e4){var a=i.length,l=new Float32Array(a+o.length);l.set(i),l.set(o,a),r.endIndex=e.end,r.setShape({points:l})}else{this._newAdded=[];var s=this._create();s.startIndex=e.start,s.endIndex=e.end,s.incremental=!0,s.setShape({points:o}),this._setCommon(s,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new nee({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=m1(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var i=e.shape.size[0]<4;e.useStyle(r.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),l=a&&a.fill;l&&e.setColor(l);var s=eU(e);s.seriesIndex=r.seriesIndex,e.on("mousemove",function(t){s.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(s.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const oee=ree;var iee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).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 o=J7("").reset(e,t,n);o.progress&&o.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.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new oee:new k7,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(l0);const aee=iee;const lee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(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}(Xq);var see=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",OV).models[0]},t.type="cartesian2dAxis",t}(Xq);oj(see,_5);var cee={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)"]}}},uee=ZR({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},cee),dee=ZR({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}}},cee);const pee={category:uee,value:dee,time:ZR({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},dee),log:ej({logBase:10},dee)};var fee={value:1,category:1,time:1,log:1};function hee(e,t,n,r){aj(fee,function(o,i){var a=ZR(ZR({},pee[i],!0),r,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+i,n}return MR(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Vq(this),r=n?Gq(e):{};ZR(e,t.getTheme().get(i+"Axis")),ZR(e,this.getDefaultOption()),e.type=gee(e),n&&Wq(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=v3.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."+i,n.defaultOption=a,n}(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",gee)}function gee(e){return e.type||(e.data?"category":"value")}var mee=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 lj(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),cj(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}();var vee=["x","y"];function yee(e){return"interval"===e.type||"time"===e.type}var bee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=vee,t}return MR(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(yee(e)&&yee(t)){var n=e.getExtent(),r=t.getExtent(),o=this.dataToPoint([n[0],r[0]]),i=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],l=r[1]-r[0];if(a&&l){var s=(i[0]-o[0])/a,c=(i[1]-o[1])/l,u=o[0]-n[0]*s,d=o[1]-r[0]*c,p=this._transform=[s,0,0,c,u,d];this._invTransform=ez([],p)}}},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),o=this.getArea(),i=new fz(n[0],n[1],r[0]-n[0],r[1]-n[1]);return o.intersect(i)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],o=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o))return gL(n,e,this._transform);var i=this.getAxis("x"),a=this.getAxis("y");return n[0]=i.toGlobalCoord(i.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(o,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,o=n.getExtent(),i=r.getExtent(),a=n.parse(e[0]),l=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t[1]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return gL(n,e,this._invTransform);var r=this.getAxis("x"),o=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=o.coordToData(o.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,o=Math.min(n[0],n[1])-e,i=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-o+e;return new fz(r,o,i,a)},t}(mee);const xee=bee;var wee=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=o||"value",a.position=i||"bottom",a}return MR(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}(r6);const See=wee;function Cee(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,i={},a=o.getAxesOnZeroOf()[0],l=o.position,s=a?"onZero":l,c=o.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,h="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));h[p.onZero]=Math.max(Math.min(g,h[1]),h[0])}i.position=["y"===c?h[p[s]]:d[0],"x"===c?h[p[s]]:d[3]],i.rotation=Math.PI/2*("x"===c?0:1);i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[l],i.labelOffset=a?h[p[l]]-h[p.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ij(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-m:m,i.z2=1,i}function _ee(e){return"cartesian2d"===e.get("coordinateSystem")}function kee(e){var t={xAxisModel:null,yAxisModel:null};return aj(t,function(n,r){var o=r.replace(/Model$/,""),i=e.getReferringComponents(o,OV).models[0];t[r]=i}),t}var Mee=Math.log;function Iee(e,t,n){var r=$3.prototype,o=r.getTicks.call(n),i=r.getTicks.call(n,!0),a=o.length-1,l=r.getInterval.call(n),s=g5(e,t),c=s.extent,u=s.fixMin,d=s.fixMax;if("log"===e.type){var p=Mee(e.base);c=[Mee(c[0])/p,Mee(c[1])/p]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var f=r.getExtent.call(e);u&&(c[0]=f[0]),d&&(c[1]=f[1]);var h=r.getInterval.call(e),g=c[0],m=c[1];if(u&&d)h=(m-g)/a;else if(u)for(m=c[0]+h*a;m<c[1]&&isFinite(m)&&isFinite(c[1]);)h=x3(h),m=c[0]+h*a;else if(d)for(g=c[1]-h*a;g>c[0]&&isFinite(g)&&isFinite(c[0]);)h=x3(h),g=c[1]-h*a;else{e.getTicks().length-1>a&&(h=x3(h));var v=h*a;(g=HF((m=Math.ceil(c[1]/h)*h)-v))<0&&c[0]>=0?(g=0,m=HF(v)):m>0&&c[1]<=0&&(m=0,g=-HF(v))}var y=(o[0].value-i[0].value)/l,b=(o[a].value-i[a].value)/l;r.setExtent.call(e,g+h*y,m+h*b),r.setInterval.call(e,h),(y||b)&&r.setNiceExtent.call(e,g+h,m-h)}var Eee=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vee,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=dj(e),r=n.length;if(r){for(var o=[],i=r-1;i>=0;i--){var a=e[+n[i]],l=a.model,s=a.scale;y3(s)&&l.get("alignTicks")&&null==l.get("interval")?o.push(a):(m5(s,l),y3(s)&&(t=a))}o.length&&(t||m5((t=o.pop()).scale,t.model),aj(o,function(e){Iee(e.scale,e.model,t.scale)}))}}this._updateScale(e,this.model),r(n.x),r(n.y);var o={};aj(n.x,function(e){$ee(n,"y",e,o)}),aj(n.y,function(e){$ee(n,"x",e,o)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),o=!n&&e.get("containLabel"),i=Hq(r,{width:t.getWidth(),height:t.getHeight()});this._rect=i;var a=this._axesList;function l(){aj(a,function(e){var t=e.isHorizontal(),n=t?[0,i.width]:[0,i.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?i.x:i.y)})}l(),o&&(aj(a,function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,o,i=n.getExtent();o=n instanceof I3?n.count():(r=n.getTicks()).length;var a,l=e.getLabelModel(),s=y5(e),c=1;o>40&&(c=Math.ceil(o/40));for(var u=0;u<o;u+=c){var d=s(r?r[u]:{value:i[0]+u},u),p=x5(l.getTextRect(d),l.get("rotate")||0);a?a.union(p):a=p}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);i[n]-=t[n]+r,"top"===e.position?i.y+=t.height+r:"left"===e.position&&(i.x+=t.width+r)}}}),l()),aj(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]}bj(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===e||o[r].getAxis("y").index===t)return o[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,o=e.xAxisModel||r&&r.getReferringComponents("xAxis",OV).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",OV).models[0],a=e.gridModel,l=this._coordsList;if(r)nj(l,t=r.coordinateSystem)<0&&(t=null);else if(o&&i)t=this.getCartesian(o.componentIndex,i.componentIndex);else if(o)n=this.getAxis("x",o.componentIndex);else if(i)n=this.getAxis("y",i.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,o=this,i={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function s(t){return function(n,r){if(Oee(n,e)){var s=n.get("position");"x"===t?"top"!==s&&"bottom"!==s&&(s=i.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=i.left?"right":"left"),i[s]=!0;var c=new See(t,v5(n),[0,0],n.get("type"),s),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=o,c.index=r,o._axesList.push(c),a[t][r]=c,l[t]++}}}this._axesMap=a,aj(a.x,function(t,n){aj(a.y,function(o,i){var a="x"+n+"y"+i,l=new xee(a);l.master=r,l.model=e,r._coordsMap[a]=l,r._coordsList.push(l),l.addAxis(t),l.addAxis(o)})})},e.prototype._updateScale=function(e,t){function n(e,t){aj(C5(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}aj(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if(_ee(e)){var r=kee(e),o=r.xAxisModel,i=r.yAxisModel;if(!Oee(o,t)||!Oee(i,t))return;var a=this.getCartesian(o.componentIndex,i.componentIndex),l=e.getData(),s=a.getAxis("x"),c=a.getAxis("y");n(l,s),n(l,c)}},this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return aj(this.getCartesians(),function(r){var o=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),i=r.getOtherAxis(o);nj(t,o)<0&&t.push(o),nj(n,i)<0&&n.push(i)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(o,i){var a=new e(o,t,n);a.name="grid_"+i,a.resize(o,n,!0),o.coordinateSystem=a,r.push(a)}),t.eachSeries(function(e){if(_ee(e)){var t=kee(e),n=t.xAxisModel,r=t.yAxisModel;0;var o=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=vee,e}();function Oee(e,t){return e.getCoordSysModel()===t}function $ee(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,i=e[t],a=n.model,l=a.get(["axisLine","onZero"]),s=a.get(["axisLine","onZeroAxisIndex"]);if(l){if(null!=s)Tee(i[s])&&(o=i[s]);else for(var c in i)if(i.hasOwnProperty(c)&&Tee(i[c])&&!r[u(i[c])]){o=i[c];break}o&&(r[u(o)]=!0)}function u(e){return e.dim+"_"+e.index}}function Tee(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}const Pee=Eee;var Dee=Math.PI,Nee=function(){function e(e,t){this.group=new _F,this.opt=t,this.axisModel=e,ej(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _F({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!Aee[e]},e.prototype.add=function(e){Aee[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,o,i=KF(t-e);return ZF(i)?(o=n>0?"top":"bottom",r="center"):ZF(i-Dee)?(o=n>0?"bottom":"top",r="center"):(o="middle",r=i>0&&i<Dee?n>0?"right":"left":n>0?"left":"right"),{rotation:i,textAlign:r,textVerticalAlign:o}},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}(),Aee={axisLine:function(e,t,n,r){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var i=t.axis.getExtent(),a=r.transform,l=[i[0],0],s=[i[1],0],c=l[0]>s[0];a&&(gL(l,l,a),gL(s,s,a));var u=JR({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new ZQ({shape:{x1:l[0],y1:l[1],x2:s[0],y2:s[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});RJ(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=t.get(["axisLine","symbol"]);if(null!=p){var f=t.get(["axisLine","symbolSize"]);mj(p)&&(p=[p,p]),(mj(f)||yj(f))&&(f=[f,f]);var h=y1(t.get(["axisLine","symbolOffset"])||0,f),g=f[0],m=f[1];aj([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((l[0]-s[0])*(l[0]-s[0])+(l[1]-s[1])*(l[1]-s[1]))}],function(t,r){if("none"!==p[r]&&null!=p[r]){var o=m1(p[r],-g/2,-m/2,g,m,u.stroke,!0),i=t.r+t.offset,a=c?s:l;o.attr({rotation:t.rotate,x:a[0]+i*Math.cos(e.rotation),y:a[1]-i*Math.sin(e.rotation),silent:!0,z2:11}),n.add(o)}})}}},axisTickLabel:function(e,t,n,r){var o=function(e,t,n,r){var o=n.axis,i=n.getModel("axisTick"),a=i.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||o.scale.isBlank())return;for(var l=i.getModel("lineStyle"),s=r.tickDirection*i.get("length"),c=zee(o.getTicksCoords(),t.transform,s,ej(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<c.length;u++)e.add(c[u]);return c}(n,r,t,e),i=function(e,t,n,r){var o=n.axis,i=Ij(r.axisLabelShow,n.get(["axisLabel","show"]));if(!i||o.scale.isBlank())return;var a=n.getModel("axisLabel"),l=a.get("margin"),s=o.getViewLabels(),c=(Ij(r.labelRotate,a.get("rotate"))||0)*Dee/180,u=Nee.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],f=Nee.isLabelSilent(n),h=n.get("triggerEvent");return aj(s,function(i,c){var g="ordinal"===o.scale.type?o.scale.getRawOrdinalNumber(i.tickValue):i.tickValue,m=i.formattedLabel,v=i.rawLabel,y=a;if(d&&d[g]){var b=d[g];bj(b)&&b.textStyle&&(y=new RY(b.textStyle,a,n.ecModel))}var x=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=o.dataToCoord(g),S=y.getShallow("align",!0)||u.textAlign,C=Ej(y.getShallow("alignMinLabel",!0),S),_=Ej(y.getShallow("alignMaxLabel",!0),S),k=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||u.textVerticalAlign,M=Ej(y.getShallow("verticalAlignMinLabel",!0),k),I=Ej(y.getShallow("verticalAlignMaxLabel",!0),k),E=new JG({x:w,y:r.labelOffset+r.labelDirection*l,rotation:u.rotation,silent:f,z2:10+(i.level||0),style:hY(y,{text:m,align:0===c?C:c===s.length-1?_:S,verticalAlign:0===c?M:c===s.length-1?I:k,fill:gj(x)?x("category"===o.type?v:"value"===o.type?g+"":g,c):x})});if(E.anid="label_"+g,KJ({el:E,componentModel:n,itemName:m,formatterParamsExtra:{isTruncated:function(){return E.isTruncated},value:v,tickIndex:c}}),h){var O=Nee.makeAxisEventDataBase(n);O.targetType="axisLabel",O.value=v,O.tickIndex=c,"category"===o.type&&(O.dataIndex=g),eU(E).eventData=O}t.add(E),E.updateTransform(),p.push(E),e.add(E),E.decomposeTransform()}),p}(n,r,t,e);(function(e,t,n){if(S5(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],a=t[1],l=t[t.length-1],s=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],p=n[n.length-2];!1===r?(Ree(i),Ree(c)):jee(i,a)&&(r?(Ree(a),Ree(u)):(Ree(i),Ree(c)));!1===o?(Ree(l),Ree(d)):jee(s,l)&&(o?(Ree(s),Ree(p)):(Ree(l),Ree(d)))}(t,i,o),function(e,t,n,r){var o=n.axis,i=n.getModel("minorTick");if(!i.get("show")||o.scale.isBlank())return;var a=o.getMinorTicksCoords();if(!a.length)return;for(var l=i.getModel("lineStyle"),s=r*i.get("length"),c=ej(l.getLineStyle(),ej(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var d=zee(a[u],t.transform,s,c,"minorticks_"+u),p=0;p<d.length;p++)e.add(d[p])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&A6(P6(lj(i,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var o=Ij(e.axisName,t.get("name"));if(o){var i,a,l=t.get("nameLocation"),s=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,d=t.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===l?d[0]-p*u:"end"===l?d[1]+p*u:(d[0]+d[1])/2,Lee(l)?e.labelOffset+s*u:0],h=t.get("nameRotate");null!=h&&(h=h*Dee/180),Lee(l)?i=Nee.innerTextLayout(e.rotation,null!=h?h:e.rotation,s):(i=function(e,t,n,r){var o,i,a=KF(n-e),l=r[0]>r[1],s="start"===t&&!l||"start"!==t&&l;ZF(a-Dee/2)?(i=s?"bottom":"top",o="center"):ZF(a-1.5*Dee)?(i=s?"top":"bottom",o="center"):(i="middle",o=a<1.5*Dee&&a>Dee/2?s?"left":"right":s?"right":"left");return{rotation:a,textAlign:o,textVerticalAlign:i}}(e.rotation,l,h||0,d),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(i.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=Ij(e.nameTruncateMaxWidth,m.maxWidth,a),b=new JG({x:f[0],y:f[1],rotation:i.rotation,silent:Nee.isLabelSilent(t),style:hY(c,{text:o,font:g,overflow:"truncate",width:y,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||i.textAlign,verticalAlign:c.get("verticalAlign")||i.textVerticalAlign}),z2:1});if(KJ({el:b,componentModel:t,itemName:o}),b.__fullText=o,b.anid="name",t.get("triggerEvent")){var x=Nee.makeAxisEventDataBase(t);x.targetType="axisName",x.name=o,eU(b).eventData=x}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Ree(e){e&&(e.ignore=!0)}function jee(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var o=qL([]);return QL(o,o,-e.rotation),n.applyTransform(KL([],o,e.getLocalTransform())),r.applyTransform(KL([],o,t.getLocalTransform())),n.intersect(r)}}function Lee(e){return"middle"===e||"center"===e}function zee(e,t,n,r,o){for(var i=[],a=[],l=[],s=0;s<e.length;s++){var c=e[s].coord;a[0]=c,a[1]=0,l[0]=c,l[1]=n,t&&(gL(a,a,t),gL(l,l,t));var u=new ZQ({shape:{x1:a[0],y1:a[1],x2:l[0],y2:l[1]},style:r,z2:2,autoBatch:!0,silent:!0});RJ(u.shape,u.style.lineWidth),u.anid=o+"_"+e[s].tickValue,i.push(u)}return i}const Bee=Nee;function Hee(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),o=t.getComponent("axisPointer"),i=o.get("link",!0)||[],a=[];aj(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var l=Gee(n.model),s=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=n;var c=n.model.getModel("tooltip",r);if(aj(n.getAxes(),fj(f,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var u="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(u||d)&&aj(p.baseAxes,fj(f,!d||"cross",u)),d&&aj(p.otherAxes,fj(f,"cross",!1))}}function f(r,l,u){var d=u.model.getModel("axisPointer",o),p=d.get("show");if(p&&("auto"!==p||r||Wee(d))){null==l&&(l=d.get("triggerTooltip")),d=r?function(e,t,n,r,o,i){var a=t.getModel("axisPointer"),l={};aj(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(e){l[e]=KR(a.get(e))}),l.snap="category"!==e.type&&!!i,"cross"===a.get("type")&&(l.type="line");var s=l.label||(l.label={});if(null==s.show&&(s.show=!1),"cross"===o){var c=a.get(["label","show"]);if(s.show=null==c||c,!i){var u=l.lineStyle=a.get("crossStyle");u&&ej(s,u.textStyle)}}return e.model.getModel("axisPointer",new RY(l,n,r))}(u,c,o,t,r,l):d;var f=d.get("snap"),h=d.get("triggerEmphasis"),g=Gee(u.model),m=l||f||"category"===u.type,v=e.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:l,triggerEmphasis:h,involveSeries:m,snap:f,useHandle:Wee(d),seriesModels:[],linkGroup:null};s[g]=v,e.seriesInvolved=e.seriesInvolved||m;var y=function(e,t){for(var n=t.model,r=t.dim,o=0;o<e.length;o++){var i=e[o]||{};if(Fee(i[r+"AxisId"],n.id)||Fee(i[r+"AxisIndex"],n.componentIndex)||Fee(i[r+"AxisName"],n.name))return o}}(i,u);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=i[y].mapper,v.linkGroup=b}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),o=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==o&&!1!==t.get(["axisPointer","show"],!0)&&aj(e.coordSysAxesInfo[Gee(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}(n,e),n}function Fee(e,t){return"all"===e||hj(e)&&nj(e,t)>=0||e===t}function Vee(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Gee(e)]}function Wee(e){return!!e.get(["handle","show"])}function Gee(e){return e.type+"||"+e.id}var Uee={},Yee=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(t,n,r,o){this.axisPointerClass&&function(e){var t=Vee(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,o=n.option,i=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var l=Wee(n);null==i&&(o.status=l?"show":"hide");var s=r.getExtent().slice();s[0]>s[1]&&s.reverse(),(null==a||a>s[1])&&(a=s[1]),a<s[0]&&(a=s[0]),o.value=a,l&&(o.status=t.axis.scale.isBlank()?"hide":"show")}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var i=function(e){var t=Vee(e);return t&&t.axisPointerModel}(e);i?(this._axisPointer||(this._axisPointer=new o)).render(e,i,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){Uee[e]=t},t.getAxisPointerClass=function(e){return e&&Uee[e]},t.type="axis",t}(qZ);const qee=Yee;var Xee=kV();function Kee(e,t,n,r){var o=n.axis;if(!o.scale.isBlank()){var i=n.getModel("splitArea"),a=i.getModel("areaStyle"),l=a.get("color"),s=r.coordinateSystem.getRect(),c=o.getTicksCoords({tickModel:i,clamp:!0});if(c.length){var u=l.length,d=Xee(e).splitAreaColors,p=Bj(),f=0;if(d)for(var h=0;h<c.length;h++){var g=d.get(c[h].tickValue);if(null!=g){f=(g+(u-1)*h)%u;break}}var m=o.toGlobalCoord(c[0].coord),v=a.getAreaStyle();l=hj(l)?l:[l];for(h=1;h<c.length;h++){var y=o.toGlobalCoord(c[h].coord),b=void 0,x=void 0,w=void 0,S=void 0;o.isHorizontal()?(b=m,x=s.y,w=y-b,S=s.height,m=b+w):(b=s.x,x=m,w=s.width,m=x+(S=y-x));var C=c[h-1].tickValue;null!=C&&p.set(C,f),t.add(new jG({anid:null!=C?"area_"+C:null,shape:{x:b,y:x,width:w,height:S},style:ej({fill:l[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%u}Xee(e).splitAreaColors=p}}}function Zee(e){Xee(e).splitAreaColors=null}var Qee=["axisLine","axisTickLabel","axisName"],Jee=["splitArea","splitLine","minorSplitLine"],ete=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return MR(t,e),t.prototype.render=function(t,n,r,o){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new _F,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),l=Cee(a,t),s=new Bee(t,JR({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(y3(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},l));aj(Qee,s.add,s),this._axisGroup.add(s.getGroup()),aj(Jee,function(e){t.get([e,"show"])&&tte[e](this,this._axisGroup,t,a)},this),o&&"changeAxisOrder"===o.type&&o.isInitSort||VJ(i,this._axisGroup,t),e.prototype.render.call(this,t,n,r,o)}},t.prototype.remove=function(){Zee(this)},t.type="cartesianAxis",t}(qee),tte={splitLine:function(e,t,n,r){var o=n.axis;if(!o.scale.isBlank()){var i=n.getModel("splitLine"),a=i.getModel("lineStyle"),l=a.get("color"),s=!1!==i.get("showMinLine"),c=!1!==i.get("showMaxLine");l=hj(l)?l:[l];for(var u=r.coordinateSystem.getRect(),d=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:i}),h=[],g=[],m=a.getLineStyle(),v=0;v<f.length;v++){var y=o.toGlobalCoord(f[v].coord);if((0!==v||s)&&(v!==f.length-1||c)){var b=f[v].tickValue;d?(h[0]=y,h[1]=u.y,g[0]=y,g[1]=u.y+u.height):(h[0]=u.x,h[1]=y,g[0]=u.x+u.width,g[1]=y);var x=p++%l.length,w=new ZQ({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:ej({stroke:l[x]},m),silent:!0});RJ(w.shape,m.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,r){var o=n.axis,i=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),l=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var c=[],u=[],d=i.getLineStyle(),p=0;p<s.length;p++)for(var f=0;f<s[p].length;f++){var h=o.toGlobalCoord(s[p][f].coord);l?(c[0]=h,c[1]=a.y,u[0]=h,u[1]=a.y+a.height):(c[0]=a.x,c[1]=h,u[0]=a.x+a.width,u[1]=h);var g=new ZQ({anid:"minor_line_"+s[p][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:d,silent:!0});RJ(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){Kee(e,t,n,r)}},nte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="xAxis",t}(ete),rte=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=nte.type,t}return MR(t,e),t.type="yAxis",t}(ete);var ote=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return MR(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new jG({shape:e.coordinateSystem.getRect(),style:ej({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(qZ),ite={offset:0};function ate(e){e.registerComponentView(ote),e.registerComponentModel(lee),e.registerCoordinateSystem("cartesian2d",Pee),hee(e,"x",see,ite),hee(e,"y",see,ite),e.registerComponentView(nte),e.registerComponentView(rte),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function lte(e){e.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var o=r.getIndicatorAxes();aj(o,function(e,i){t.each(t.mapDimension(o[i].dim),function(e,t){n[t]=n[t]||[];var o=r.dataToPoint(e,i);n[t][i]=ste(o)?o:cte(r)})}),t.each(function(e){var o=uj(n[e],function(e){return ste(e)})||cte(r);n[e].push(o.slice()),t.setItemLayout(e,n[e])})}})}function ste(e){return!isNaN(e[0])&&!isNaN(e[1])}function cte(e){return[e.cx,e.cy]}function ute(e){var t=e.polar;if(t){hj(t)||(t=[t]);var n=[];aj(t,function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],hj(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)}),e.polar=n}aj(e.series,function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)})}var dte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,o=this.group,i=e.getData(),a=this._data;function s(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=v1(e.getItemVisual(t,"symbolSize")),o=m1(n,-1,-1,2,2),i=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:i*Math.PI/180||0}),o}}function c(t,n,r,o,i,a){r.removeAll();for(var c=0;c<n.length-1;c++){var u=s(o,i);u&&(u.__dimIdx=c,t[c]?(u.setPosition(t[c]),l[a?"initProps":"updateProps"](u,{x:n[c][0],y:n[c][1]},e,i)):u.setPosition(n[c]),r.add(u))}}function u(e){return lj(e,function(e){return[r.cx,r.cy]})}i.diff(a).add(function(t){var n=i.getItemLayout(t);if(n){var r=new WQ,o=new YQ,a={shape:{points:n}};r.shape.points=u(n),o.shape.points=u(n),rY(r,a,e,t),rY(o,a,e,t);var l=new _F,s=new _F;l.add(o),l.add(r),l.add(s),c(o.shape.points,n,s,i,t,!0),i.setItemGraphicEl(t,l)}}).update(function(t,n){var r=a.getItemGraphicEl(n),o=r.childAt(0),l=r.childAt(1),s=r.childAt(2),u={shape:{points:i.getItemLayout(t)}};u.shape.points&&(c(o.shape.points,u.shape.points,s,i,t,!1),sY(l),sY(o),nY(o,u,e),nY(l,u,e),i.setItemGraphicEl(t,r))}).remove(function(e){o.remove(a.getItemGraphicEl(e))}).execute(),i.eachItemGraphicEl(function(e,t){var n=i.getItemModel(t),r=e.childAt(0),a=e.childAt(1),l=e.childAt(2),s=i.getItemVisual(t,"style"),c=s.fill;o.add(e),r.useStyle(ej(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),qU(r,n,"lineStyle"),qU(a,n,"areaStyle");var u=n.getModel("areaStyle"),d=u.isEmpty()&&u.parentModel.isEmpty();a.ignore=d,aj(["emphasis","select","blur"],function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=r&&d}),a.useStyle(ej(u.getAreaStyle(),{fill:c,opacity:.7,decal:s.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();l.eachChild(function(e){if(e instanceof OG){var r=e.style;e.useStyle(JR({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},s))}else e.useStyle(s),e.setColor(c),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=KR(f);var o=i.getStore().get(i.getDimensionIndex(e.__dimIdx),t);(null==o||isNaN(o))&&(o=""),pY(e,fY(n),{labelFetcher:i.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:o,inheritColor:c,defaultOpacity:s.opacity})}),WU(e,p.get("focus"),p.get("blurScope"),p.get("disabled"))}),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(l0);const pte=dte;var fte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return MR(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new X9(pj(this.getData,this),pj(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Y9(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),i=this.getData().getName(e),a=""===i?this.name:i,l=TZ(this,e);return SZ("section",{header:a,sortBlocks:!0,blocks:lj(o,function(t){var n=r.get(r.mapDimension(t.dim),e);return SZ("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})})})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(lj(n.dimensions,function(e){return t.mapDimension(e)}),e),o=0,i=r.length;o<i;o++)if(!isNaN(r[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(r[o]),o)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(UZ);const hte=fte;var gte=pee.value;function mte(e,t){return ej({show:t},e)}var vte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),i=this.get("axisLabel"),a=this.get("axisName"),l=this.get(["axisName","show"]),s=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),d=lj(this.get("indicator")||[],function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=ej({color:d.color},a));var f=ZR(KR(d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:o,axisLabel:i,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:u},!1);if(mj(s)){var h=f.name;f.name=s.replace("{value}",null!=h?h:"")}else gj(s)&&(f.name=s(f.name,f));var g=new RY(f,null,this.ecModel);return oj(g,_5.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},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:ZR({lineStyle:{color:"#bbb"}},gte.axisLine),axisLabel:mte(gte.axisLabel,!1),axisTick:mte(gte.axisTick,!1),splitLine:mte(gte.splitLine,!0),splitArea:mte(gte.splitArea,!0),indicator:[]},t}(Xq);const yte=vte;var bte=["axisLine","axisTickLabel","axisName"],xte=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem;aj(lj(t.getIndicatorAxes(),function(e){var n=e.model.get("showName")?e.name:"";return new Bee(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(e){aj(bte,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"),o=e.getModel("splitLine"),i=e.getModel("splitArea"),a=o.getModel("lineStyle"),l=i.getModel("areaStyle"),s=o.get("show"),c=i.get("show"),u=a.get("color"),d=l.get("color"),p=hj(u)?u:[u],f=hj(d)?d:[d],h=[],g=[];if("circle"===r)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,b=0;b<m.length;b++){if(s)h[I(h,p,b)].push(new yQ({shape:{cx:v,cy:y,r:m[b].coord}}));if(c&&b<m.length-1)g[I(g,f,b)].push(new BQ({shape:{cx:v,cy:y,r0:m[b].coord,r:m[b+1].coord}}))}else{var x,w=lj(n,function(e,n){var r=e.getTicksCoords();return x=null==x?r.length-1:Math.min(r.length-1,x),lj(r,function(e){return t.coordToPoint(e.coord,n)})}),S=[];for(b=0;b<=x;b++){for(var C=[],_=0;_<n.length;_++)C.push(w[_][b]);if(C[0]&&C.push(C[0].slice()),s)h[I(h,p,b)].push(new YQ({shape:{points:C}}));if(c&&S)g[I(g,f,b-1)].push(new WQ({shape:{points:C.concat(S)}}));S=C.slice().reverse()}}var k=a.getLineStyle(),M=l.getAreaStyle();aj(g,function(e,t){this.group.add(NJ(e,{style:ej({stroke:"none",fill:f[t%f.length]},M),silent:!0}))},this),aj(h,function(e,t){this.group.add(NJ(e,{style:ej({fill:"none",stroke:p[t%p.length]},k),silent:!0}))},this)}function I(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(qZ);const wte=xte;var Ste=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type="value",o.angle=0,o.name="",o}return MR(t,e),t}(r6);const Cte=Ste;var _te=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=lj(e.getIndicatorModels(),function(e,t){var n="indicator_"+t,r=new Cte(n,new $3);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r},this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var o,i=Math.atan2(-n,t),a=1/0,l=-1,s=0;s<this._indicatorAxes.length;s++){var c=this._indicatorAxes[s],u=Math.abs(i-c.angle);u<a&&(o=c,l=s,a=u)}return[l,+(o&&o.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),o=t.getHeight(),i=Math.min(r,o)/2;this.cx=BF(n[0],r),this.cy=BF(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(mj(a)||yj(a))&&(a=[0,a]),this.r0=BF(a[0],i),this.r=BF(a[1],i),aj(this._indicatorAxes,function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n},this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;aj(n,function(e){e.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var i=t.getData();aj(n,function(e){e.scale.unionExtentFromData(i,i.mapDimension(e.dim))})}},this);var o=r.get("splitNumber"),i=new $3;i.setExtent(0,o),i.setInterval(1),aj(n,function(e,t){Iee(e.scale,e.model,i)})},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(o){var i=new e(o,t,n);r.push(i),o.coordinateSystem=i}),t.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])}),r},e.dimensions=[],e}();const kte=_te;function Mte(e){e.registerCoordinateSystem("radar",kte),e.registerComponentModel(yte),e.registerComponentView(wte),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(e){t.setItemVisual(e,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var Ite="\0_ec_interaction_mutex";function Ete(e,t){return!!Ote(e)[t]}function Ote(e){return e[Ite]||(e[Ite]={})}d4({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Gj);var $te=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=pj(n._mousedownHandler,n),o=pj(n._mousemoveHandler,n),i=pj(n._mouseupHandler,n),a=pj(n._mousewheelHandler,n),l=pj(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=ej(KR(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",l))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",o),t.off("mouseup",i),t.off("mousewheel",a),t.off("pinch",l)},n}return MR(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!VL(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Dte("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!Ete(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,o=this._y,i=t-r,a=n-o;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&FL(e.event),Pte(this,"pan","moveOnMouseMove",e,{dx:i,dy:a,oldX:r,oldY:o,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){VL(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=Dte("zoomOnMouseWheel",e,this._opt),n=Dte("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,o=Math.abs(r),i=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var l=o>3?1.4:o>1?1.2:1.1;Tte(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?l:1/l,originX:i,originY:a,isAvailableBehavior:null})}if(n){var s=Math.abs(r);Tte(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(s>3?.4:s>1?.15:.05),originX:i,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){Ete(this._zr,"globalPan")||Tte(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(SL);function Tte(e,t,n,r,o){e.pointerChecker&&e.pointerChecker(r,o.originX,o.originY)&&(FL(r.event),Pte(e,t,n,r,o))}function Pte(e,t,n,r,o){o.isAvailableBehavior=pj(Dte,null,n,r),e.trigger(t,o)}function Dte(e,t,n){var r=n[e];return!e||r&&(!mj(r)||t.event[r+"Key"])}const Nte=$te;function Ate(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function Rte(e,t,n,r){var o=e.target,i=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,i){var l=i.min||0,s=i.max||1/0;a=Math.max(Math.min(s,a),l)}var c=a/e.zoom;e.zoom=a,o.x-=(n-o.x)*(c-1),o.y-=(r-o.y)*(c-1),o.scaleX*=c,o.scaleY*=c,o.dirty()}var jte,Lte={axisPointer:1,tooltip:1,brush:1};function zte(e,t,n){var r=t.getComponentByElement(e.topTarget),o=r&&r.coordinateSystem;return r&&r!==n&&!Lte.hasOwnProperty(r.mainType)&&o&&o.model!==n}function Bte(e){mj(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Hte={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"},Fte=dj(Hte),Vte={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Wte=dj(Vte),Gte=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Bte(e);this._defsUsePending=[];var r=new _F;this._root=r;var o=[],i=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(l)&&(l=null),Zte(n,r,null,!0,!1);for(var s,c,u=n.firstChild;u;)this._parseNode(u,r,o,null,!1,!1),u=u.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],i){var d=tne(i);d.length>=4&&(s={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(s&&null!=a&&null!=l&&(c=ane(s,{x:0,y:0,width:a,height:l}),!t.ignoreViewBox)){var p=r;(r=new _F).add(p),p.scaleX=p.scaleY=c.scale,p.x=c.x,p.y=c.y}return t.ignoreRootClip||null==a||null==l||r.setClipPath(new jG({shape:{x:0,y:0,width:a,height:l}})),{root:r,width:a,height:l,viewBoxRect:s,viewBoxTransform:c,named:o}},e.prototype._parseNode=function(e,t,n,r,o,i){var a,l=e.nodeName.toLowerCase(),s=r;if("defs"===l&&(o=!0),"text"===l&&(i=!0),"defs"===l||"switch"===l)a=t;else{if(!o){var c=jte[l];if(c&&Wj(jte,l)){a=c.call(this,e,t);var u=e.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:l,el:a};n.push(d),"g"===l&&(s=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:l,el:a});t.add(a)}}var p=Ute[l];if(p&&Wj(Ute,l)){var f=p.call(this,e),h=e.getAttribute("id");h&&(this._defs[h]=f)}}if(a&&a.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,s,o,i):3===g.nodeType&&i&&this._parseText(g,a),g=g.nextSibling},e.prototype._parseText=function(e,t){var n=new kG({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Xte(t,n),Zte(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,o=r;r&&"auto"!==r?"baseline"===r?o="alphabetic":"before-edge"===r||"text-before-edge"===r?o="top":"after-edge"===r||"text-after-edge"===r?o="bottom":"central"!==r&&"mathematical"!==r||(o="middle"):o="alphabetic",e.style.textBaseline=o}var i=t.__inheritedStyle;if(i){var a=i.textAlign,l=a;a&&("middle"===a&&(l="center"),e.style.textAlign=l)}}(n,t);var r=n.style,o=r.fontSize;o&&o<9&&(r.fontSize=9,n.scaleX*=o/9,n.scaleY*=o/9);var i=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=i;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(jte={g:function(e,t){var n=new _F;return Xte(t,n),Zte(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new jG;return Xte(t,n),Zte(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 yQ;return Xte(t,n),Zte(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 ZQ;return Xte(t,n),Zte(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 wQ;return Xte(t,n),Zte(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=Kte(r));var o=new WQ({shape:{points:n||[]},silent:!0});return Xte(t,o),Zte(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=Kte(r));var o=new YQ({shape:{points:n||[]},silent:!0});return Xte(t,o),Zte(e,o,this._defsUsePending,!1,!1),o},image:function(e,t){var n=new OG;return Xte(t,n),Zte(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",o=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(i);var a=new _F;return Xte(t,a),Zte(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 o=e.getAttribute("dx")||"0",i=e.getAttribute("dy")||"0",a=new _F;return Xte(t,a),Zte(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(i),a},path:function(e,t){var n=hQ(e.getAttribute("d")||"");return Xte(t,n),Zte(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),Ute={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),o=parseInt(e.getAttribute("y2")||"0",10),i=new dJ(t,n,r,o);return Yte(e,i),qte(e,i),i},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),o=new fJ(t,n,r);return Yte(e,o),qte(e,o),o}};function Yte(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function qte(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),o=void 0;o=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var i={};ine(n,i,i);var a=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:o,color:a})}n=n.nextSibling}}function Xte(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ej(t.__inheritedStyle,e.__inheritedStyle))}function Kte(e){for(var t=tne(e),n=[],r=0;r<t.length;r+=2){var o=parseFloat(t[r]),i=parseFloat(t[r+1]);n.push([o,i])}return n}function Zte(e,t,n,r,o){var i=t,a=i.__inheritedStyle=i.__inheritedStyle||{},l={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],o=null;n.replace(nne,function(e,t,n){return r.push(t,n),""});for(var i=r.length-1;i>0;i-=2){var a=r[i],l=r[i-1],s=tne(a);switch(o=o||YL(),l){case"translate":ZL(o,o,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":JL(o,o,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":QL(o,o,-parseFloat(s[0])*rne,[parseFloat(s[1]||"0"),parseFloat(s[2]||"0")]);break;case"skewX":KL(o,[1,0,Math.tan(parseFloat(s[0])*rne),1,0,0],o);break;case"skewY":KL(o,[1,Math.tan(parseFloat(s[0])*rne),0,1,0,0],o);break;case"matrix":o[0]=parseFloat(s[0]),o[1]=parseFloat(s[1]),o[2]=parseFloat(s[2]),o[3]=parseFloat(s[3]),o[4]=parseFloat(s[4]),o[5]=parseFloat(s[5])}}t.setLocalTransform(o)}}(e,t),ine(e,a,l),r||function(e,t,n){for(var r=0;r<Fte.length;r++){var o=Fte[r];null!=(i=e.getAttribute(o))&&(t[Hte[o]]=i)}for(r=0;r<Wte.length;r++){var i;o=Wte[r];null!=(i=e.getAttribute(o))&&(n[Vte[o]]=i)}}(e,a,l)),i.style=i.style||{},null!=a.fill&&(i.style.fill=Jte(i,"fill",a.fill,n)),null!=a.stroke&&(i.style.stroke=Jte(i,"stroke",a.stroke,n)),aj(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(e){null!=a[e]&&(i.style[e]=parseFloat(a[e]))}),aj(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(e){null!=a[e]&&(i.style[e]=a[e])}),o&&(i.__selfStyle=l),a.lineDash&&(i.style.lineDash=lj(tne(a.lineDash),function(e){return parseFloat(e)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(i.invisible=!0),"none"===a.display&&(i.ignore=!0)}var Qte=/^url\(\s*#(.*?)\)/;function Jte(e,t,n,r){var o=n&&n.match(Qte);if(!o)return"none"===n&&(n=null),n;var i=Dj(o[1]);r.push([e,t,i])}var ene=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function tne(e){return e.match(ene)||[]}var nne=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,rne=Math.PI/180;var one=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ine(e,t,n){var r,o=e.getAttribute("style");if(o)for(one.lastIndex=0;null!=(r=one.exec(o));){var i=r[1],a=Wj(Hte,i)?Hte[i]:null;a&&(t[a]=r[2]);var l=Wj(Vte,i)?Vte[i]:null;l&&(n[l]=r[2])}}function ane(e,t){var n=t.width/e.width,r=t.height/e.height,o=Math.min(n,r);return{scale:o,x:-(e.x+e.width/2)*o+(t.x+t.width/2),y:-(e.y+e.height/2)*o+(t.y+t.height/2)}}var lne=Bj(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),sne=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Bj(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Bte(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=Bj();return aj(e,function(e){if(null==e.namedFrom){var r=new z5(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,o;try{Pj(null!=(n=(t=e&&(r=e,o={ignoreViewBox:!0,ignoreRootClip:!0},(new Gte).parse(r,o))||{}).root))}catch(vDe){throw new Error("Invalid svg format\n"+vDe.message)}var i=new _F;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,l=t.height,s=t.viewBoxRect,c=this._boundingRect;if(!c){var u=void 0,d=void 0,p=void 0,f=void 0;if(null!=a?(u=0,p=a):s&&(u=s.x,p=s.width),null!=l?(d=0,f=l):s&&(d=s.y,f=s.height),null==u||null==d){var h=n.getBoundingRect();null==u&&(u=h.x,p=h.width),null==d&&(d=h.y,f=h.height)}c=this._boundingRect=new fz(u,d,p,f)}if(s){var g=ane(s,c);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}i.setClipPath(new jG({shape:c.plain()}));var m=[];return aj(t.named,function(e){var t;null!=lne.get(e.svgNodeTagLower)&&(m.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1}))}),{root:i,boundingRect:c,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var cne=[126,25],une="\u5357\u6d77\u8bf8\u5c9b",dne=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],pne=0;pne<dne.length;pne++)for(var fne=0;fne<dne[pne].length;fne++)dne[pne][fne][0]/=10.5,dne[pne][fne][1]/=-14,dne[pne][fne][0]+=cne[0],dne[pne][fne][1]+=cne[1];var hne={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};var gne=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var mne=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=Bj(),this._mapName=e,this._specialAreas=n,this._geoJSON=mj(r=t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:vne(r)})}var o=Bj(),i=[];return aj(n.regions,function(t){var n=t.name;e&&Wj(e,n)&&(t=t.cloneShallow(n=e[n])),i.push(t),o.set(n,t)}),{regions:i,boundingRect:n.boundingRect||new fz(0,0,0,0),regionsMap:o}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?F5(r,e):[]}catch(vDe){throw new Error("Invalid geoJson format\n"+vDe.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===une)return;t.push(new L5(une,lj(dne,function(e){return{type:"polygon",exterior:e}}),cne))}}(n,t),aj(t,function(e){var t=e.name;!function(e,t){if("china"===e){var n=hne[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"\u53f0\u6e7e"===t.name&&t.geometries.push({type:"polygon",exterior:gne[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function vne(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var yne=Bj();const bne=function(e,t,n){if(t.svg){var r=new sne(e,t.svg);yne.set(e,r)}else{var o=t.geoJson||t.geoJSON;o&&!t.features?n=t.specialAreas:o=t;r=new mne(e,o,n);yne.set(e,r)}},xne=function(e){return yne.get(e)},wne=function(e){var t=yne.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},Sne=function(e,t,n){var r=yne.get(e);if(r)return r.load(t,n)};var Cne=["rect","circle","line","ellipse","polygon","polyline","path"],_ne=Bj(Cne),kne=Bj(Cne.concat(["g"])),Mne=Bj(Cne.concat(["g"])),Ine=kV();function Ene(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function One(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var $ne=function(){function e(e){var t=new _F;this.uid=LY("ec_map_draw"),this._controller=new Nte(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new _F),t.add(this._svgGroup=new _F)}return e.prototype.draw=function(e,t,n,r,o){var i="geo"===e.mainType,a=e.getData&&e.getData();i&&t.eachComponent({mainType:"series",subType:"map"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())});var l=e.coordinateSystem,s=this._regionsGroup,c=this.group,u=l.getTransformInfo(),d=u.raw,p=u.roam;!s.childAt(0)||o?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):nY(c,p,e);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,h={api:n,geo:l,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:i,transformInfoRaw:d};"geoJSON"===l.resourceType?this._buildGeoJSON(h):"geoSVG"===l.resourceType&&this._buildSVG(h),this._updateController(e,t,n),this._updateMapSelectHandler(e,s,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Bj(),n=Bj(),r=this._regionsGroup,o=e.transformInfoRaw,i=e.mapOrGeoModel,a=e.data,l=e.geo.projection,s=l&&l.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*o.scaleX+o.x,e[1]*o.scaleY+o.y]}function u(e){for(var t=[],n=!s&&l&&l.project,r=0;r<e.length;++r){var o=c(e[r],n);o&&t.push(o)}return t}function d(e){return{shape:{points:u(e)}}}r.removeAll(),aj(e.geo.regions,function(o){var u=o.name,p=t.get(u),f=n.get(u)||{},h=f.dataIdx,g=f.regionModel;if(!p){p=t.set(u,new _F),r.add(p),h=a?a.indexOfName(u):null;var m=(g=e.isGeo?i.getRegionModel(u):a?a.getItemModel(h):null).get("silent",!0);null!=m&&(p.silent=m),n.set(u,{dataIdx:h,regionModel:g})}var v=[],y=[];aj(o.geometries,function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);s&&(t=Rne(t,s)),aj(t,function(e){v.push(new WQ(d(e)))})}else{var n=e.points;s&&(n=Rne(n,s,!0)),aj(n,function(e){y.push(new YQ(d(e)))})}});var b=c(o.getCenter(),l&&l.project);function x(t,n){if(t.length){var r=new lJ({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});p.add(r),Tne(e,r,h,g),Pne(e,r,u,g,i,h,b),n&&(One(r),aj(r.states,One))}}x(v),x(y,!0)}),t.each(function(t,r){var o=n.get(r),a=o.dataIdx,l=o.regionModel;Dne(e,t,r,l,i,a),Nne(e,t,r,l,i),Ane(e,t,r,l,i)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=Bj(),o=!1;aj(this._svgGraphicRecord.named,function(t){var n=t.name,i=e.mapOrGeoModel,a=e.data,l=t.svgNodeTagLower,s=t.el,c=a?a.indexOfName(n):null,u=i.getRegionModel(n);null!=_ne.get(l)&&s instanceof bW&&Tne(e,s,c,u),s instanceof bW&&(s.culling=!0);var d=u.get("silent",!0);(null!=d&&(s.silent=d),s.z2EmphasisLift=0,t.namedFrom)||(null!=Mne.get(l)&&Pne(e,s,n,u,i,c,null),Dne(e,s,n,u,i,c),Nne(e,s,n,u,i),null!=kne.get(l)&&("self"===Ane(e,s,n,u,i)&&(o=!0),(r.get(n)||r.set(n,[])).push(s)))},this),this._enableBlurEntireSVG(o,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){IU(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var o=r.get(e);return o?[o]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=xne(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=xne(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,o=this._controller,i=this._controllerHost;i.zoomLimit=e.get("scaleLimit"),i.zoom=r.getZoom(),o.enable(e.get("roam")||!1);var a=e.mainType;function l(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}o.off("pan").on("pan",function(e){this._mouseDownFlag=!1,Ate(i,e.dx,e.dy),n.dispatchAction(JR(l(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(e){this._mouseDownFlag=!1,Rte(i,e.scale,e.originX,e.originY),n.dispatchAction(JR(l(),{totalZoom:i.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(t,o,i){return r.containPoint([o,i])&&!zte(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Ine(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var o=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){o._mouseDownFlag=!0}),t.on("click",function(e){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},e}();function Tne(e,t,n,r){var o=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),l=r.getModel(["select","itemStyle"]),s=Ene(o),c=Ene(i),u=Ene(l),d=Ene(a),p=e.data;if(p){var f=p.getItemVisual(n,"style"),h=p.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&f.fill&&(s.fill=f.fill),h&&(s.decal=Y1(h,e.api))}t.setStyle(s),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=d,IU(t)}function Pne(e,t,n,r,o,i,a){var l=e.data,s=e.isGeo,c=l&&isNaN(l.get(l.mapDimension("value"),i)),u=l&&l.getItemLayout(i);if(s||c||u&&u.showLabel){var d=s?n:i,p=void 0;(!l||i>=0)&&(p=o);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;pY(t,fY(r),{labelFetcher:p,labelDataIndex:d,defaultText:n},f);var h=t.getTextContent();if(h&&(Ine(h).ignore=h.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Dne(e,t,n,r,o,i){e.data?e.data.setItemGraphicEl(i,t):eU(t).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:r&&r.option||{}}}function Nne(e,t,n,r,o){e.data||KJ({el:t,componentModel:o,itemName:n,itemTooltipOption:r.get("tooltip")})}function Ane(e,t,n,r,o){t.highDownSilentOnTouch=!!o.get("selectedMode");var i=r.getModel("emphasis"),a=i.get("focus");return WU(t,a,i.get("blurScope"),i.get("disabled")),e.isGeo&&function(e,t,n){var r=eU(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,o,n),a}function Rne(e,t,n){var r,o=[];function i(){r=[]}function a(){r.length&&(o.push(r),r=[])}var l=t({polygonStart:i,polygonEnd:a,lineStart:i,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&l.polygonStart(),aj(e,function(e){l.lineStart();for(var t=0;t<e.length;t++)l.point(e[t][0],e[t][1]);l.lineEnd()}),!n&&l.polygonEnd(),o}const jne=$ne;var Lne=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(i=this._mapDraw)&&o.add(i.group);else if(e.needsDrawMap){var i=this._mapDraw||new jne(n);o.add(i.group),i.draw(e,t,n,this,r),this._mapDraw=i}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,o=this.group;r.each(r.mapDimension("value"),function(t,n){if(!isNaN(t)){var i=r.getItemLayout(n);if(i&&i.point){var a=i.point,l=i.offset,s=new yQ({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*l,cy:a[1],r:3},silent:!0,z2:8+(l?0:sU+1)});if(!l){var c=e.mainSeries.getData(),u=r.getName(n),d=c.indexOfName(u),p=r.getItemModel(n),f=p.getModel("label"),h=c.getItemGraphicEl(d);pY(s,fY(p),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),s.disableLabelAnimation=!0,f.get("position")||s.setTextConfig({position:"bottom"}),h.onHoverStateChange=function(e){kU(s,e)}}o.add(s)}}})},t.type="map",t}(l0);const zne=Lne;var Bne=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return MR(t,e),t.prototype.getInitialData=function(e){for(var t=Y9(this,{coordDimensions:["value"],encodeDefaulter:fj(dX,this)}),n=Bj(),r=[],o=0,i=t.count();o<i;o++){var a=t.getName(o);n.set(a,o)}return aj(Sne(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var o,i=e.name,a=n.get(i),l=e.properties&&e.properties.echartsStyle;null==a?(o={name:i},r.push(o)):o=t.getRawDataItem(a),l&&ZR(o,l)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),o=this.getRawValue(e),i=r.getName(e),a=this.seriesGroup,l=[],s=0;s<a.length;s++){var c=a[s].originalData.indexOfName(i),u=r.mapDimension("value");isNaN(a[s].originalData.get(u,c))||l.push(a[s].name)}return SZ("section",{header:l.join(", "),noHeader:!l.length,blocks:[SZ("nameValue",{name:i,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=m1(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-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}(UZ);const Hne=Bne;function Fne(e){var t={};e.eachSeriesByType("map",function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),aj(t,function(e,t){for(var n=function(e,t){var n={};return aj(e,function(e){e.each(e.mapDimension("value"),function(t,r){var o="ec-"+e.getName(r);n[o]=n[o]||[],isNaN(t)||n[o].push(t)})}),e[0].map(e[0].mapDimension("value"),function(r,o){for(var i="ec-"+e[0].getName(o),a=0,l=1/0,s=-1/0,c=n[i].length,u=0;u<c;u++)l=Math.min(l,n[i][u]),s=Math.max(s,n[i][u]),a+=n[i][u];return 0===c?NaN:"min"===t?l:"max"===t?s:"average"===t?a/c:a})}(lj(e,function(e){return e.getData()}),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]})}function Vne(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var o={};aj(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),function(e,t){var i=r.getName(t),a=n.getRegion(i);if(a&&!isNaN(e)){var l=o[i]||0,s=n.dataToPoint(a.getCenter());o[i]=l+1,r.setItemLayout(t,{point:s,offset:l})}})});var i=n.getData();i.each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!o[t],i.setItemLayout(e,n)}),t[r]=!0}})}var Wne=gL,Gne=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new nF,n._rawTransformable=new nF,n.name=t,n}return MR(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new fz(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new fz(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var o=this.getBoundingRect(),i=this._rawTransformable;i.transform=o.calculateTransform(new fz(e,t,n,r));var a=i.parent;i.parent=null,i.decomposeTransform(),i.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[BF(e[0],t.getWidth()),BF(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=gL([],r,e),n=gL([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),XL(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],ez(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new nF;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?Wne(n,e,r):qj(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?Wne([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=Une(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Une(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(nF);function Une(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Yne=Gne;var qne={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Xne=["lng","lat"],Kne=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.dimensions=Xne,o.type="geo",o._nameCoordMap=Bj(),o.map=n;var i,a=r.projection,l=Sne(n,r.nameMap,r.nameProperty),s=xne(n),c=(o.resourceType=s?s.type:null,o.regions=l.regions),u=qne[s.type];if(o._regionsMap=l.regionsMap,o.regions=l.regions,o.projection=a,a)for(var d=0;d<c.length;d++){var p=c[d].getBoundingRect(a);(i=i||p.clone()).union(p)}else i=l.boundingRect;return o.setBoundingRect(i.x,i.y,i.width,i.height),o.aspectScale=a?1:Ej(r.aspectScale,u.aspectScale),o._invertLongitute=!a&&u.invertLongitute,o}return MR(t,e),t.prototype._transformTo=function(e,t,n,r){var o=this.getBoundingRect(),i=this._invertLongitute;o=o.clone(),i&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new fz(e,t,n,r));var l=a.parent;a.parent=null,a.decomposeTransform(),a.parent=l,i&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(mj(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=Zne(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=Zne(t);return r===this?r.pointToData(n):null},t}(Yne);function Zne(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",OV).models[0]||{}).coordinateSystem:null}oj(Kne,Yne);const Qne=Kne;function Jne(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],o=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])){var i=this.projection;if(i){var a=r[0],l=r[1],s=o[0],c=o[1];r=[1/0,1/0],o=[-1/0,-1/0];var u=function(e,t,n,a){for(var l=n-e,s=a-t,c=0;c<=100;c++){var u=c/100,d=i.project([e+l*u,t+s*u]);mL(r,r,d),vL(o,o,d)}};u(a,l,s,l),u(s,l,s,c),u(s,c,a,c),u(a,c,s,l)}this.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1])}else 0}var d,p,f,h=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),y=t.getHeight(),b=h.width/h.height*this.aspectScale,x=!1;if(g&&m&&(d=[BF(g[0],v),BF(g[1],y)],p=BF(m,Math.min(v,y)),isNaN(d[0])||isNaN(d[1])||isNaN(p)||(x=!0)),x)f={},b>1?(f.width=p,f.height=p/b):(f.height=p,f.width=p*b),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var w=e.getBoxLayoutParams();w.aspect=b,f=Hq(w,{width:v,height:y})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var ere=function(){function e(){this.dimensions=Xne}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,o){var i=e.get("map"),a=new Qne(i+o,i,JR({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=Jne,a.resize(e,t)}),e.eachSeries(function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}});var o={};return e.eachSeriesByType("map",function(e){if(!e.getHostGeoModel()){var t=e.getMapType();o[t]=o[t]||[],o[t].push(e)}}),aj(o,function(e,o){var i=lj(e,function(e){return e.get("nameMap")}),a=new Qne(o,o,JR({nameMap:QR(i)},r(e[0])));a.zoomLimit=Ij.apply(null,lj(e,function(e){return e.get("scaleLimit")})),n.push(a),a.resize=Jne,a.resize(e[0],t),aj(e,function(e){e.coordinateSystem=a,function(e,t){aj(t.get("geoCoord"),function(t,n){e.addGeoCoord(n,t)})}(a,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var o=(e||[]).slice(),i=Bj(),a=0;a<o.length;a++)i.set(o[a].name,o[a]);return aj(Sne(t,n,r).regions,function(e){var t=e.name,n=i.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},o.push(n)),r&&ZR(n,r)}),o},e}();const tre=new ere;var nre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(e,t,n){var r=xne(e.map);if(r&&"geoJSON"===r.type){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),hV(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=tre.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=sj(t.regions||[],function(t,r){var o=r.name;return o&&(t.set(o,new RY(r,e,e.ecModel)),r.selected&&(n[o]=!0)),t},Bj()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new RY(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};return gj(r)?(o.status=t,r(o)):mj(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Xq);const rre=nre;function ore(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function ire(e,t,n,r){var o=e.getZoom(),i=e.getCenter(),a=t.zoom,l=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(null!=t.dx&&null!=t.dy&&(l[0]-=t.dx,l[1]-=t.dy,e.setCenter(ore(e,l),r)),null!=a){if(n){var s=n.min||0,c=n.max||1/0;a=Math.max(Math.min(o*a,c),s)/o}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(ore(e,l),r),e.setZoom(a*o)}return{center:e.getCenter(),zoom:e.getZoom()}}var are=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return MR(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new jne(n));var o=this._mapDraw;o.draw(e,t,n,this,r),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;o1(e.target,function(e){return null!=(t=eU(e).eventData)},!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=eU(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(qZ);const lre=are;function sre(e,t,n){bne(e,t,n)}function cre(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(e,n){var r={},o=[];return n.eachComponent({mainType:"geo",query:e},function(n){n[t](e.name),aj(n.coordinateSystem.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var i=[];aj(r,function(e,t){r[t]&&i.push(t)}),o.push({geoIndex:n.componentIndex,name:i})}),{selected:r,allSelected:o,name:e.name}})}e.registerCoordinateSystem("geo",tre),e.registerComponentModel(rre),e.registerComponentView(lre),e.registerImpl("registerMap",sre),e.registerImpl("getMap",function(e){return wne(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(t){var o=t.coordinateSystem;if("geo"===o.type){var i=ire(o,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom),"series"===r&&aj(t.seriesGroup,function(e){e.setCenter(i.center),e.setZoom(i.zoom)})}})})}function ure(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,o=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,o=0;for(;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,o+=i.hierNode.change,r+=i.hierNode.shift+o}}(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(e.hierNode.prelim=o.hierNode.prelim+t(e,o),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else o&&(e.hierNode.prelim=o.hierNode.prelim+t(e,o));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var o=e,i=e,a=i.parentNode.children[0],l=t,s=o.hierNode.modifier,c=i.hierNode.modifier,u=a.hierNode.modifier,d=l.hierNode.modifier;l=hre(l),i=gre(i),l&&i;){o=hre(o),a=gre(a),o.hierNode.ancestor=e;var p=l.hierNode.prelim+d-i.hierNode.prelim-c+r(l,i);p>0&&(vre(mre(l,e,n),e,p),c+=p,s+=p),d+=l.hierNode.modifier,c+=i.hierNode.modifier,s+=o.hierNode.modifier,u+=a.hierNode.modifier}l&&!hre(o)&&(o.hierNode.thread=l,o.hierNode.modifier+=d-s),i&&!gre(a)&&(a.hierNode.thread=i,a.hierNode.modifier+=c-u,n=e)}return n}(e,o,e.parentNode.hierNode.defaultAncestor||r[0],t)}function dre(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function pre(e){return arguments.length?e:yre}function fre(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function hre(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function gre(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function mre(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function vre(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 yre(e,t){return e.parentNode===t.parentNode?1:2}var bre=function(){this.parentPoint=[],this.childPoints=[]},xre=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bre},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,o=t.parentPoint,i=n[0],a=n[r-1];if(1===r)return e.moveTo(o[0],o[1]),void e.lineTo(i[0],i[1]);var l=t.orient,s="TB"===l||"BT"===l?0:1,c=1-s,u=BF(t.forkPosition,1),d=[];d[s]=o[s],d[c]=o[c]+(a[c]-o[c])*u,e.moveTo(o[0],o[1]),e.lineTo(d[0],d[1]),e.moveTo(i[0],i[1]),d[s]=i[s],e.lineTo(d[0],d[1]),d[s]=a[s],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var p=1;p<r-1;p++){var f=n[p];e.moveTo(f[0],f[1]),d[s]=f[s],e.lineTo(d[0],d[1])}},t}(SG),wre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new _F,n}return MR(t,e),t.prototype.init=function(e,t){this._controller=new Nte(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),o=e.layoutInfo,i=this._mainGroup;"radial"===e.get("layout")?(i.x=o.x+o.width/2,i.y=o.y+o.height/2):(i.x=o.x,i.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;r.diff(a).add(function(t){Sre(r,t)&&Cre(r,t,null,i,e)}).update(function(t,n){var o=a.getItemGraphicEl(n);Sre(r,t)?Cre(r,t,o,i,e):o&&Mre(a,n,o,i,e)}).remove(function(t){var n=a.getItemGraphicEl(t);n&&Mre(a,t,n,i,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl(function(t,r){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})})}),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each(function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])});var o=[],i=[];EW(r,o,i);var a=this._min,l=this._max;i[0]-o[0]===0&&(o[0]=a?a[0]:o[0]-1,i[0]=l?l[0]:i[0]+1),i[1]-o[1]===0&&(o[1]=a?a[1]:o[1]-1,i[1]=l?l[1]:i[1]+1);var s=e.coordinateSystem=new Yne;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(o[0],o[1],i[0]-o[0],i[1]-o[1]),s.setCenter(e.get("center"),t),s.setZoom(e.get("zoom")),this.group.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY}),this._min=o,this._max=i},t.prototype._updateController=function(e,t,n){var r=this,o=this._controller,i=this._controllerHost,a=this.group;o.setPointerChecker(function(t,r,o){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(r,o)&&!zte(t,n,e)}),o.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(t){Ate(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Rte(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl(function(e,t){e.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(l0);function Sre(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Cre(e,t,n,r,o){var i=!n,a=e.tree.getNodeByDataIndex(t),l=a.getModel(),s=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?s:"#fff",u=e.tree.root,d=a.parentNode===u?a:a.parentNode||a,p=e.getItemGraphicEl(d.dataIndex),f=d.getLayout(),h=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,g=a.getLayout();i?((n=new x7(e,t,null,{symbolInnerColor:c,useNameLabel:!0})).x=h.x,n.y=h.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,nY(n,{x:g.x,y:g.y},o);var m=n.getSymbolPath();if("radial"===o.get("layout")){var v=u.children[0],y=v.getLayout(),b=v.children.length,x=void 0,w=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[b-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[b-1].getLayout().y)/2};(x=Math.atan2(S.y-y.y,S.x-y.x))<0&&(x=2*Math.PI+x),(w=S.x<y.x)&&(x-=Math.PI)}else(x=Math.atan2(g.y-y.y,g.x-y.x))<0&&(x=2*Math.PI+x),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=g.x<y.x)&&(x-=Math.PI):(w=g.x>y.x)||(x-=Math.PI);var C=w?"left":"right",_=l.getModel("label"),k=_.get("rotate"),M=k*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:_.get("position")||C,rotation:null==k?-x:M,origin:"center"}),I.setStyle("verticalAlign","middle"))}var E=l.get(["emphasis","focus"]),O="relative"===E?Hj(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():null;O&&(eU(n).focus=O),function(e,t,n,r,o,i,a,l){var s=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),p=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),h=s.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new nJ({shape:Ire(u,d,p,o,o)})),nY(g,{shape:Ire(u,d,p,i,a)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],y=0;y<m.length;y++){var b=m[y].getLayout();v.push([b.x,b.y])}g||(g=r.__edge=new xre({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:f}})),nY(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},e)}}else 0;g&&("polyline"!==c||t.isExpand)&&(g.useStyle(ej({strokeNoScale:!0,fill:null},h)),qU(g,s,"lineStyle"),IU(g),l.add(g))}(o,a,u,n,h,f,g,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&1===r.hoverState||kU(n.__edge,t)}})}function _re(e,t,n,r,o){var i=kre(t.tree.root,e),a=i.source,l=i.sourceLayout,s=t.getItemGraphicEl(e.dataIndex);if(s){var c=t.getItemGraphicEl(a.dataIndex).__edge,u=s.__edge||(!1===a.isExpand||1===a.children.length?c:void 0),d=r.get("edgeShape"),p=r.get("layout"),f=r.get("orient"),h=r.get(["lineStyle","curveness"]);u&&("curve"===d?iY(u,{shape:Ire(p,f,h,l,l),style:{opacity:0}},r,{cb:function(){n.remove(u)},removeOpt:o}):"polyline"===d&&"orthogonal"===r.get("layout")&&iY(u,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(u)},removeOpt:o}))}}function kre(e,t){for(var n,r=t.parentNode===e?t:t.parentNode||t;null==(n=r.getLayout());)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function Mre(e,t,n,r,o){var i=e.tree.getNodeByDataIndex(t),a=kre(e.tree.root,i).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};iY(n,{x:a.x+1,y:a.y+1},o,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(t){_re(t,e,r,o,l)}),_re(i,e,r,o,l)}function Ire(e,t,n,r,o){var i,a,l,s,c,u,d,p;if("radial"===e){c=r.rawX,d=r.rawY,u=o.rawX,p=o.rawY;var f=fre(c,d),h=fre(c,d+(p-d)*n),g=fre(u,p+(d-p)*n),m=fre(u,p);return{x1:f.x||0,y1:f.y||0,x2:m.x||0,y2:m.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=r.x,d=r.y,u=o.x,p=o.y,"LR"!==t&&"RL"!==t||(i=c+(u-c)*n,a=d,l=u+(c-u)*n,s=p),"TB"!==t&&"BT"!==t||(i=c,a=d+(p-d)*n,l=u,s=p+(d-p)*n),{x1:c,y1:d,x2:u,y2:p,cpx1:i,cpy1:a,cpx2:l,cpy2:s}}const Ere=wre;var Ore=kV();function $re(e,t){if(function(e){return Ore(e).mainData===e}(this)){var n=JR({},Ore(this).datas);n[this.dataType]=t,Are(t,n,e)}else Rre(t,this.dataType,Ore(this).mainData,e);return t}function Tre(e,t){return e.struct&&e.struct.update(),t}function Pre(e,t){return aj(Ore(t).datas,function(n,r){n!==t&&Rre(n.cloneShallow(),r,t,e)}),t}function Dre(e){var t=Ore(this).mainData;return null==e||null==t?t:Ore(t).datas[e]}function Nre(){var e=Ore(this).mainData;return null==e?[{data:e}]:lj(dj(Ore(e).datas),function(t){return{type:t,data:Ore(e).datas[t]}})}function Are(e,t,n){Ore(e).datas={},aj(t,function(t,r){Rre(t,r,e,n)})}function Rre(e,t,n,r){Ore(n).datas[t]=e,Ore(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Dre,e.getLinkedDataAll=Nre}const jre=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Are(t,n,e),aj(n,function(n){aj(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,fj($re,e))})}),t.wrapMethod("cloneShallow",fj(Pre,e)),aj(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,fj(Tre,e))}),Pj(n[t.dataType]===t)};var Lre=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){gj(e)&&(n=t,t=e,e=null),mj(e=e||{})&&(e={order:e});var r,o=e.order||"preorder",i=this[e.attr||"children"];"preorder"===o&&(r=t.call(n,this));for(var a=0;!r&&a<i.length;a++)i[a].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>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<r;t++){var o=n[t].getNodeById(e);if(o)return o}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var o=n[t].contains(e);if(o)return o}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=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))return this.hostTree.data.getItemModel(this.dataIndex).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<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),zre=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var o=new e(n),i=[],a=1;!function e(t,n){var r=t.value;a=Math.max(a,hj(r)?r.length:1),i.push(t);var l=new Lre(wV(t.name,""),o);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(l,n):o.root=l,o._nodes.push(l);var s=t.children;if(s)for(var c=0;c<s.length;c++)e(s[c],l)}(t),o.root.updateDepthAndHeight(0);var l=r3(i,{coordDimensions:["value"],dimensionsCount:a}).dimensions,s=new t3(l,n);return s.initData(i),r&&r(s),jre({mainData:s,struct:o,structAttr:"tree"}),o.update(),o},e}();const Bre=zre;function Hre(e,t,n){if(e&&nj(t,e.type)>=0){var r=n.getData().tree.root,o=e.targetNode;if(mj(o)&&(o=r.getNodeById(o)),o&&r.contains(o))return{node:o};var i=e.targetNodeId;if(null!=i&&(o=r.getNodeById(i)))return{node:o}}}function Fre(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function Vre(e,t){return nj(Fre(e),t)>=0}function Wre(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Gre=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return MR(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new RY(n,this,this.ecModel),o=Bre.createTree(t,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=o.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e})});var i=0;o.eachNode("preorder",function(e){e.depth>i&&(i=e.depth)});var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:i;return o.root.eachNode("preorder",function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a}),o.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){for(var r=this.getData().tree,o=r.root.children[0],i=r.getNodeByDataIndex(e),a=i.getValue(),l=i.name;i&&i!==o;)l=i.parentNode.name+"."+l,i=i.parentNode;return SZ("nameValue",{name:l,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=Wre(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}(UZ);const Ure=Gre;function Yre(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var o=n.children;if(o.length)for(var i=o.length-1;i>=0;i--)r.push(o[i])}}function qre(e,t){e.eachSeriesByType("tree",function(e){!function(e,t){var n=function(e,t){return Hq(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),o=0,i=0,a=null;"radial"===r?(o=2*Math.PI,i=Math.min(n.height,n.width)/2,a=pre(function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth})):(o=n.width,i=n.height,a=pre());var l=e.getData().tree.root,s=l.children[0];if(s){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,o=[t];n=o.pop();)if(r=n.children,n.isExpand&&r.length)for(var i=r.length-1;i>=0;i--){var a=r[i];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:i,thread:null},o.push(a)}}(l),function(e,t,n){for(var r,o=[e],i=[];r=o.pop();)if(i.push(r),r.isExpand){var a=r.children;if(a.length)for(var l=0;l<a.length;l++)o.push(a[l])}for(;r=i.pop();)t(r,n)}(s,ure,a),l.hierNode.modifier=-s.hierNode.prelim,Yre(s,dre);var c=s,u=s,d=s;Yre(s,function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)});var p=c===u?1:a(c,u)/2,f=p-c.getLayout().x,h=0,g=0,m=0,v=0;if("radial"===r)h=o/(u.getLayout().x+p+f),g=i/(d.depth-1||1),Yre(s,function(e){m=(e.getLayout().x+f)*h,v=(e.depth-1)*g;var t=fre(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)});else{var y=e.getOrient();"RL"===y||"LR"===y?(g=i/(u.getLayout().x+p+f),h=o/(d.depth-1||1),Yre(s,function(e){v=(e.getLayout().x+f)*g,m="LR"===y?(e.depth-1)*h:o-(e.depth-1)*h,e.setLayout({x:m,y:v},!0)})):"TB"!==y&&"BT"!==y||(h=o/(u.getLayout().x+p+f),g=i/(d.depth-1||1),Yre(s,function(e){m=(e.getLayout().x+f)*h,v="TB"===y?(e.depth-1)*g:i-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)}))}}}(e,t)})}function Xre(e){e.eachSeriesByType("tree",function(e){var t=e.getData();t.tree.eachNode(function(e){var n=e.getModel().getModel("itemStyle").getItemStyle();JR(t.ensureUniqueItemVisual(e.dataIndex,"style"),n)})})}var Kre=["treemapZoomToNode","treemapRender","treemapMove"];function Zre(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=SX(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",o)})}var Qre=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return MR(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Jre(n);var r=e.levels||[],o=this.designatedVisualItemStyle={},i=new RY({itemStyle:o},this,t);r=e.levels=function(e,t){var n,r,o=fV(t.get("color")),i=fV(t.get(["aria","decal","decals"]));if(!o)return;e=e||[],aj(e,function(e){var t=new RY(e),o=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||o&&"none"!==o)&&(n=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(r=!0)});var a=e[0]||(e[0]={});n||(a.color=o.slice());!r&&i&&(a.decal=i.slice());return e}(r,t);var a=lj(r||[],function(e){return new RY(e,i,t)},this),l=Bre.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=l.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||i,e})});return l.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=this.getRawValue(e);return SZ("nameValue",{name:r.getName(e),value:o})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=Wre(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},JR(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=Bj(),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(){Zre(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:"\u25b6",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}(UZ);function Jre(e){var t=0;aj(e.children,function(e){Jre(e);var n=e.value;hj(n)&&(n=n[0]),t+=n});var n=e.value;hj(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),hj(e.value)?e.value[0]=n:e.value=n}const eoe=Qre;var toe=function(){function e(e){this.group=new _F,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var o=e.getModel("breadcrumb"),i=this.group;if(i.removeAll(),o.get("show")&&n){var a=o.getModel("itemStyle"),l=o.getModel("emphasis"),s=a.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,s),this._renderContent(e,u,a,l,s,c,r),Fq(i,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var o=wV(r.getModel().get("name"),""),i=n.getTextRect(o),a=Math.max(i.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:r,text:o,width:a})}},e.prototype._renderContent=function(e,t,n,r,o,i,a){for(var l=0,s=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=function(e,t,n){var r=t.width,o=t.height,i=BF(e.left,r),a=BF(e.top,o),l=BF(e.right,r),s=BF(e.bottom,o);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(l)||isNaN(parseFloat(e.right)))&&(l=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.bottom)))&&(s=o),n=Mq(n||0),{width:Math.max(l-i-n[1]-n[3],0),height:Math.max(s-a-n[0]-n[2],0)}}(t.pos,t.box),d=t.totalWidth,p=t.renderList,f=r.getModel("itemStyle").getItemStyle(),h=p.length-1;h>=0;h--){var g=p[h],m=g.node,v=g.width,y=g.text;d>u.width&&(d-=v-s,v=s,y=null);var b=new WQ({shape:{points:noe(l,0,v,c,h===p.length-1,0===h)},style:ej(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new JG({style:hY(o,{text:y})}),textConfig:{position:"inside"},z2:1e4*sU,onclick:fj(a,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=hY(i,{text:y}),b.ensureState("emphasis").style=f,WU(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),roe(b,e,m),l+=v+8}},e.prototype.remove=function(){this.group.removeAll()},e}();function noe(e,t,n,r,o,i){var a=[[o?e:e-5,t],[e+n,t],[e+n,t+r],[o?e:e-5,t+r]];return!i&&a.splice(2,0,[e+n+5,t+r/2]),!o&&a.push([e,t+r/2]),a}function roe(e,t,n){eU(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&&Wre(n,t)}}const ooe=toe;var ioe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,o){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:o}),!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<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,o=this._storage.length;r<o;r++){var i=this._storage[r];i.el.animateTo(i.target,{duration:i.duration,delay:i.delay,easing:i.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var aoe=_F,loe=jG,soe="label",coe="upperLabel",uoe=10*sU,doe=2*sU,poe=3*sU,foe=WV([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),hoe=function(e){var t=foe(e);return t.stroke=t.fill=t.lineWidth=null,t},goe=kV(),moe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return MR(t,e),t.prototype.render=function(e,t,n,r){if(!(nj(t.findComponents({mainType:"series",subType:"treemap",query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=Hre(r,["treemapZoomToNode","treemapRootToNode"],e),i=r&&r.type,a=e.layoutInfo,l=!this._oldTree,s=this._storage,c="treemapRootToNode"===i&&o&&s?{rootNodeGroup:s.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(a),d=e.get("animation"),p=this._doRender(u,e,c);!d||l||i&&"treemapZoomToNode"!==i&&"treemapRootToNode"!==i?p.renderFinally():this._doAnimation(u,p,e,c),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new aoe,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,o=this._oldTree,i={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},l=this._storage,s=[];function c(e,r,o,c){return function(e,t,n,r,o,i,a,l,s,c){if(!a)return;var u=a.getLayout(),d=e.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),!u||!u.isInView)return;var f=u.width,h=u.height,g=u.borderWidth,m=u.invisible,v=a.getRawIndex(),y=l&&l.getRawIndex(),b=a.viewChildren,x=u.upperHeight,w=b&&b.length,S=p.getModel("itemStyle"),C=p.getModel(["emphasis","itemStyle"]),_=p.getModel(["blur","itemStyle"]),k=p.getModel(["select","itemStyle"]),M=S.get("borderRadius")||0,I=H("nodeGroup",aoe);if(!I)return;if(s.add(I),I.x=u.x||0,I.y=u.y||0,I.markRedraw(),goe(I).nodeWidth=f,goe(I).nodeHeight=h,u.isAboveViewRoot)return I;var E=H("background",loe,c,doe);E&&R(I,E,w&&u.upperLabelHeight);var O=p.getModel("emphasis"),$=O.get("focus"),T=O.get("blurScope"),P=O.get("disabled"),D="ancestor"===$?a.getAncestorsIndices():"descendant"===$?a.getDescendantIndices():$;if(w)KU(I)&&XU(I,!1),E&&(XU(E,!P),d.setItemGraphicEl(a.dataIndex,E),GU(E,D,T));else{var N=H("content",loe,c,poe);N&&j(I,N),E.disableMorphing=!0,E&&KU(E)&&XU(E,!1),XU(I,!P),d.setItemGraphicEl(a.dataIndex,I);var A=p.getShallow("cursor");A&&N.attr("cursor",A),GU(I,D,T)}return I;function R(t,n,r){var o=eU(n);if(o.dataIndex=a.dataIndex,o.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:h,r:M}),m)L(n);else{n.invisible=!1;var i=a.getVisual("style"),l=i.stroke,s=hoe(S);s.fill=l;var c=foe(C);c.fill=C.get("borderColor");var u=foe(_);u.fill=_.get("borderColor");var d=foe(k);if(d.fill=k.get("borderColor"),r){var p=f-2*g;z(n,l,i.opacity,{x:g,y:0,width:p,height:x})}else n.removeTextContent();n.setStyle(s),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,IU(n)}t.add(n)}function j(t,n){var r=eU(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var o=Math.max(f-2*g,0),i=Math.max(h-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:o,height:i,r:M}),m)L(n);else{n.invisible=!1;var l=a.getVisual("style"),s=l.fill,c=hoe(S);c.fill=s,c.decal=l.decal;var u=foe(C),d=foe(_),p=foe(k);z(n,s,l.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=p,IU(n)}t.add(n)}function L(e){!e.invisible&&i.push(e)}function z(t,n,r,o){var i=p.getModel(o?coe:soe),l=wV(p.get("name"),null),s=i.getShallow("show");pY(t,fY(p,o?coe:soe),{defaultText:s?l:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var c=t.getTextContent();if(c){var d=c.style,f=Tj(d.padding||0);o&&(t.setTextConfig({layoutRect:o}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((o?o.width:t.shape.width)-f[1]-f[3],0),n=Math.max((o?o.height:t.shape.height)-f[0]-f[2],0);d.width===e&&d.height===n||c.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",B(d,o,u);var h=c.getState("emphasis");B(h?h.style:null,o,u)}}function B(t,n,r){var o=t?t.text:null;if(!n&&r.isLeafRoot&&null!=o){var i=e.get("drillDownIcon",!0);t.text=i?i+" "+o:o}}function H(e,r,i,a){var l=null!=y&&n[e][y],s=o[e];return l?(n[e][y]=null,F(s,l)):m||((l=new r)instanceof bW&&(l.z2=function(e,t){return e*uoe+t}(i,a)),V(s,l)),t[e][v]=l}function F(e,t){var n=e[v]={};t instanceof aoe?(n.oldX=t.x,n.oldY=t.y):n.oldShape=JR({},t.shape)}function V(e,t){var n=e[v]={},i=a.parentNode,l=t instanceof _F;if(i&&(!r||"drillDown"===r.direction)){var s=0,c=0,u=o.background[i.getRawIndex()];!r&&u&&u.oldShape&&(s=u.oldShape.width,c=u.oldShape.height),l?(n.oldX=0,n.oldY=c):n.oldShape={x:s,y:c,width:0,height:0}}n.fadein=!l}}(t,a,l,n,i,s,e,r,o,c)}!function e(t,n,r,o,i){o?(n=t,aj(t,function(e,t){!e.isRemoved()&&l(t,t)})):new $4(n,t,a,a).add(l).update(l).remove(fj(l,null)).execute();function a(e){return e.getId()}function l(a,l){var s=null!=a?t[a]:null,u=null!=l?n[l]:null,d=c(s,u,r,i);d&&e(s&&s.viewChildren||[],u&&u.viewChildren||[],d,o,i+1)}}(r.root?[r.root]:[],o&&o.root?[o.root]:[],e,r===o||!o,0);var u=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&aj(e,function(e,n){var r=t[n];aj(e,function(e){e&&(r.push(e),goe(e).willDelete=!0)})}),t}(l);if(this._oldTree=r,this._storage=a,this._controllerHost){var d=this.seriesModel.layoutInfo,p=r.root.getLayout();p.width===d.width&&p.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:i,willDeleteEls:u,renderFinally:function(){aj(u,function(e){aj(e,function(e){e.parent&&e.parent.remove(e)})}),aj(s,function(e){e.invisible=!0,e.dirty()})}}},t.prototype._doAnimation=function(e,t,n,r){var o=n.get("animationDurationUpdate"),i=n.get("animationEasing"),a=(gj(o)?0:o)||0,l=(gj(i)?null:i)||"cubicOut",s=new ioe;aj(t.willDeleteEls,function(e,t){aj(e,function(e,n){if(!e.invisible){var o,i=e.parent,c=goe(i);if(r&&"drillDown"===r.direction)o=i===r.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;c.willDelete||(u=c.nodeWidth/2,d=c.nodeHeight/2),o="nodeGroup"===t?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}o&&s.add(e,o,a,0,l)}})}),aj(this._storage,function(e,n){aj(e,function(e,r){var o=t.lastsForAnimation[n][r],i={};o&&(e instanceof _F?null!=o.oldX&&(i.x=e.x,i.y=e.y,e.x=o.oldX,e.y=o.oldY):(o.oldShape&&(i.shape=JR({},e.shape),e.setShape(o.oldShape)),o.fadein?(e.setStyle("opacity",0),i.style={opacity:1}):1!==e.style.opacity&&(i.style={opacity:1})),s.add(e,i,a,0,l))})},this),this._state="animating",s.finished(pj(function(){this._state="ready",t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||((t=this._controller=new Nte(e.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",pj(this._onPan,this)),t.on("zoom",pj(this._onZoom,this)));var r=new fz(0,0,e.getWidth(),e.getHeight());t.setPointerChecker(function(e,t,n){return r.contain(t,n)})},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){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 o=this.seriesModel.getData().tree.root;if(!o)return;var i=o.getLayout();if(!i)return;var a,l=new fz(i.x,i.y,i.width,i.height),s=this._controllerHost;a=s.zoomLimit;var c=s.zoom=s.zoom||1;if(c*=r,a){var u=a.min||0,d=a.max||1/0;c=Math.max(Math.min(d,c),u)}var p=c/s.zoom;s.zoom=c;var f=this.seriesModel.layoutInfo,h=[1,0,0,1,0,0];ZL(h,h,[-(t-=f.x),-(n-=f.y)]),JL(h,h,[p,p]),ZL(h,h,[t,n]),l.applyTransform(h),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.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 o=r.node;if(o.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var i=o.hostTree.data.getItemModel(o.dataIndex),a=i.get("link",!0),l=i.get("target",!0)||"blank";a&&Aq(a,l)}}}}},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={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new ooe(this.group))).render(e,t,n.node,function(t){"animating"!==r._state&&(Vre(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},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;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(r){var o=this._storage.background[r.getRawIndex()];if(o){var i=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=i[0]&&i[0]<=a.x+a.width&&a.y<=i[1]&&i[1]<=a.y+a.height))return!1;n={node:r,offsetX:i[0],offsetY:i[1]}}},this),n},t.type="treemap",t}(l0);const voe=moe;var yoe=aj,boe=bj,xoe=-1,woe=function(){function e(t){var n=t.mappingMethod,r=t.type,o=this.option=KR(t);this.type=r,this.mappingMethod=n,this._normalizeData=Toe[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],"piecewise"===n?(Soe(o),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,aj(t,function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)})}(o)):"category"===n?o.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(yoe(t,function(e,t){n[e]=t}),!hj(r)){var o=[];bj(r)?yoe(r,function(e,t){var r=n[t];o[null!=r?r:xoe]=e}):o[-1]=r,r=$oe(e,o)}for(var i=t.length-1;i>=0;i--)null==r[i]&&(delete n[t[i]],t.pop())}(o):Soe(o,!0):(Pj("linear"!==n||o.dataExtent),Soe(o))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return pj(this._normalizeData,this)},e.listVisualTypes=function(){return dj(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){bj(e)?aj(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var o,i=hj(t)?[]:bj(t)?{}:(o=!0,null);return e.eachVisual(t,function(e,t){var a=n.call(r,e,t);o?i=a:i[t]=a}),i},e.retrieveVisuals=function(t){var n,r={};return t&&yoe(e.visualHandlers,function(e,o){t.hasOwnProperty(o)&&(r[o]=t[o],n=!0)}),n?r:null},e.prepareVisualTypes=function(e){if(hj(e))e=e.slice();else{if(!boe(e))return[];var t=[];yoe(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,o=1/0,i=0,a=t.length;i<a;i++){var l=t[i].value;if(null!=l){if(l===e||mj(l)&&l===e+"")return i;n&&d(l,i)}}for(i=0,a=t.length;i<a;i++){var s=t[i],c=s.interval,u=s.close;if(c){if(c[0]===-1/0){if(Poe(u[1],e,c[1]))return i}else if(c[1]===1/0){if(Poe(u[0],c[0],e))return i}else if(Poe(u[0],c[0],e)&&Poe(u[1],e,c[1]))return i;n&&d(c[0],i),n&&d(c[1],i)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var i=Math.abs(t-e);i<o&&(o=i,r=n)}},e.visualHandlers={color:{applyVisual:koe("color"),getColorMapper:function(){var e=this.option;return pj("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Moe.call(this,e)}:function(t,n,r){var o=!!r;return!n&&(t=this._normalizeData(t)),r=NB(t,e.parsedVisual,r),o?r:BB(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return BB(NB(e,this.option.parsedVisual),"rgba")},category:Moe,piecewise:function(e,t){var n=Ooe.call(this,t);return null==n&&(n=BB(NB(e,this.option.parsedVisual),"rgba")),n},fixed:Ioe}},colorHue:Coe(function(e,t){return LB(e,t)}),colorSaturation:Coe(function(e,t){return LB(e,null,t)}),colorLightness:Coe(function(e,t){return LB(e,null,null,t)}),colorAlpha:Coe(function(e,t){return zB(e,t)}),decal:{applyVisual:koe("decal"),_normalizedToVisual:{linear:null,category:Moe,piecewise:null,fixed:null}},opacity:{applyVisual:koe("opacity"),_normalizedToVisual:Eoe([0,1])},liftZ:{applyVisual:koe("liftZ"),_normalizedToVisual:{linear:Ioe,category:Ioe,piecewise:Ioe,fixed:Ioe}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:_oe,category:Moe,piecewise:function(e,t){var n=Ooe.call(this,t);return null==n&&(n=_oe.call(this,e)),n},fixed:Ioe}},symbolSize:{applyVisual:koe("symbolSize"),_normalizedToVisual:Eoe([0,1])}},e}();function Soe(e,t){var n=e.visual,r=[];bj(n)?yoe(n,function(e){r.push(e)}):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),$oe(e,r)}function Coe(e){return{applyVisual:function(t,n,r){var o=this.mapValueToVisual(t);r("color",e(n("color"),o))},_normalizedToVisual:Eoe([0,1])}}function _oe(e){var t=this.option.visual;return t[Math.round(zF(e,[0,1],[0,t.length-1],!0))]||{}}function koe(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Moe(e){var t=this.option.visual;return t[this.option.loop&&e!==xoe?e%t.length:e]}function Ioe(){return this.option.visual[0]}function Eoe(e){return{linear:function(t){return zF(t,e,this.option.visual,!0)},category:Moe,piecewise:function(t,n){var r=Ooe.call(this,n);return null==r&&(r=zF(t,e,this.option.visual,!0)),r},fixed:Ioe}}function Ooe(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[woe.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function $oe(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=lj(t,function(e){var t=$B(e);return t||[0,0,0,1]})),t}var Toe={linear:function(e){return zF(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=woe.findPieceIndex(e,t,!0);if(null!=n)return zF(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?xoe:t},fixed:Gj};function Poe(e,t,n){return e?t<=n:t<n}const Doe=woe;var Noe=kV();const Aoe={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||Roe(t,{},e.getViewRoot().getAncestors(),e)}};function Roe(e,t,n,r){var o=e.getModel(),i=e.getLayout(),a=e.hostTree.data;if(i&&!i.invisible&&i.isInView){var l,s=o.getModel("itemStyle"),c=function(e,t,n){var r=JR({},t),o=n.designatedVisualItemStyle;return aj(["color","colorAlpha","colorSaturation"],function(n){o[n]=t[n];var i=e.get(n);o[n]=null,null!=i&&(r[n]=i)}),r}(s,t,r),u=a.ensureUniqueItemVisual(e.dataIndex,"style"),d=s.get("borderColor"),p=s.get("borderColorSaturation");null!=p&&(d=function(e,t){return null!=t?LB(t,null,null,e):null}(p,l=joe(c))),u.stroke=d;var f=e.viewChildren;if(f&&f.length){var h=function(e,t,n,r,o,i){if(!i||!i.length)return;var a=zoe(t,"color")||null!=o.color&&"none"!==o.color&&(zoe(t,"colorAlpha")||zoe(t,"colorSaturation"));if(!a)return;var l=t.get("visualMin"),s=t.get("visualMax"),c=n.dataExtent.slice();null!=l&&l<c[0]&&(c[0]=l),null!=s&&s>c[1]&&(c[1]=s);var u=t.get("colorMappingBy"),d={type:a.name,dataExtent:c,visual:a.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new Doe(d);return Noe(p).drColorMappingBy=u,p}(0,o,i,0,c,f);aj(f,function(e,t){if(e.depth>=n.length||e===n[e.depth]){var i=function(e,t,n,r,o,i){var a=JR({},t);if(o){var l=o.type,s="color"===l&&Noe(o).drColorMappingBy,c="index"===s?r:"id"===s?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[l]=o.mapValueToVisual(c)}return a}(o,c,e,t,h,r);Roe(e,i,n,r)}})}else l=joe(c),u.fill=l}}function joe(e){var t=Loe(e,"color");if(t){var n=Loe(e,"colorAlpha"),r=Loe(e,"colorSaturation");return r&&(t=LB(t,null,null,r)),n&&(t=zB(t,n)),t}}function Loe(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function zoe(e,t){var n=e.get(t);return hj(n)&&n.length?{name:t,range:n}:null}var Boe=Math.max,Hoe=Math.min,Foe=Ij,Voe=aj,Woe=["itemStyle","borderWidth"],Goe=["itemStyle","gapWidth"],Uoe=["upperLabel","show"],Yoe=["upperLabel","height"];const qoe={seriesType:"treemap",reset:function(e,t,n,r){var o=n.getWidth(),i=n.getHeight(),a=e.option,l=Hq(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),s=a.size||[],c=BF(Foe(l.width,s[0]),o),u=BF(Foe(l.height,s[1]),i),d=r&&r.type,p=Hre(r,["treemapZoomToNode","treemapRootToNode"],e),f="treemapRender"===d||"treemapMove"===d?r.rootRect:null,h=e.getViewRoot(),g=Fre(h);if("treemapMove"!==d){var m="treemapZoomToNode"===d?function(e,t,n,r,o){var i,a=(t||{}).node,l=[r,o];if(!a||a===n)return l;var s=r*o,c=s*e.option.zoomToNodeRatio;for(;i=a.parentNode;){for(var u=0,d=i.children,p=0,f=d.length;p<f;p++)u+=d[p].getValue();var h=a.getValue();if(0===h)return l;c*=u/h;var g=i.getModel(),m=g.get(Woe);(c+=4*m*m+(3*m+Math.max(m,Joe(g)))*Math.pow(c,.5))>XF&&(c=XF),a=i}c<s&&(c=s);var v=Math.pow(c/s,.5);return[r*v,o*v]}(e,p,h,c,u):f?[f.width,f.height]:[c,u],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};h.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};h.setLayout(b),Xoe(h,y,!1,0),b=h.getLayout(),Voe(g,function(e,t){var n=(g[t+1]||h).getValue();e.setLayout(JR({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))})}var x=e.getData().tree.root;x.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var o=n.node,i=o.getLayout();if(!i)return r;var a=[i.width/2,i.height/2],l=o;for(;l;){var s=l.getLayout();a[0]+=s.x,a[1]+=s.y,l=l.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(l,f,p),!0),e.setLayoutInfo(l),Qoe(x,new fz(-l.x,-l.y,o,i),g,h,0)}};function Xoe(e,t,n,r){var o,i;if(!e.isRemoved()){var a=e.getLayout();o=a.width,i=a.height;var l=e.getModel(),s=l.get(Woe),c=l.get(Goe)/2,u=Joe(l),d=Math.max(s,u),p=s-c,f=d-c;e.setLayout({borderWidth:s,upperHeight:d,upperLabelHeight:u},!0);var h=(o=Boe(o-2*p,0))*(i=Boe(i-p-f,0)),g=function(e,t,n,r,o,i){var a=e.children||[],l=r.sort;"asc"!==l&&"desc"!==l&&(l=null);var s=null!=r.leafDepth&&r.leafDepth<=i;if(o&&!s)return e.viewChildren=[];a=cj(a,function(e){return!e.isRemoved()}),function(e,t){t&&e.sort(function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})}(a,l);var c=function(e,t,n){for(var r=0,o=0,i=t.length;o<i;o++)r+=t[o].getValue();var a,l=e.get("visualDimension");t&&t.length?"value"===l&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],Voe(t,function(e){var t=e.getValue(l);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)})):a=[NaN,NaN];return{sum:r,dataExtent:a}}(t,a,l);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,n,r,o){if(!r)return n;for(var i=e.get("visibleMin"),a=o.length,l=a,s=a-1;s>=0;s--){var c=o["asc"===r?a-s-1:s].getValue();c/n*t<i&&(l=s,n-=c)}return"asc"===r?o.splice(0,a-l):o.splice(l,a-l),n}(t,n,c.sum,l,a),0===c.sum)return e.viewChildren=[];for(var u=0,d=a.length;u<d;u++){var p=a[u].getValue()/c.sum*n;a[u].setLayout({area:p})}s&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0);return e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}(e,l,h,t,n,r);if(g.length){var m={x:p,y:f,width:o,height:i},v=Hoe(o,i),y=1/0,b=[];b.area=0;for(var x=0,w=g.length;x<w;){var S=g[x];b.push(S),b.area+=S.getLayout().area;var C=Koe(b,v,t.squareRatio);C<=y?(x++,y=C):(b.area-=b.pop().getLayout().area,Zoe(b,v,m,c,!1),v=Hoe(m.width,m.height),b.length=b.area=0,y=1/0)}if(b.length&&Zoe(b,v,m,c,!0),!n){var _=l.get("childrenVisibleMin");null!=_&&h<_&&(n=!0)}for(x=0,w=g.length;x<w;x++)Xoe(g[x],t,n,r+1)}}}function Koe(e,t,n){for(var r=0,o=1/0,i=0,a=void 0,l=e.length;i<l;i++)(a=e[i].getLayout().area)&&(a<o&&(o=a),a>r&&(r=a));var s=e.area*e.area,c=t*t*n;return s?Boe(c*r/s,s/(c*o)):1/0}function Zoe(e,t,n,r,o){var i=t===n.width?0:1,a=1-i,l=["x","y"],s=["width","height"],c=n[l[i]],u=t?e.area/t:0;(o||u>n[s[a]])&&(u=n[s[a]]);for(var d=0,p=e.length;d<p;d++){var f=e[d],h={},g=u?f.getLayout().area/u:0,m=h[s[a]]=Boe(u-2*r,0),v=n[l[i]]+n[s[i]]-c,y=d===p-1||v<g?v:g,b=h[s[i]]=Boe(y-2*r,0);h[l[a]]=n[l[a]]+Hoe(r,m/2),h[l[i]]=c+Hoe(r,b/2),c+=y,f.setLayout(h,!0)}n[l[a]]+=u,n[s[a]]-=u}function Qoe(e,t,n,r,o){var i=e.getLayout(),a=n[o],l=a&&a===e;if(!(a&&!l||o===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!l&&!t.intersect(i),isAboveViewRoot:l},!0);var s=new fz(t.x-i.x,t.y-i.y,t.width,t.height);Voe(e.viewChildren||[],function(e){Qoe(e,s,n,r,o+1)})}}function Joe(e){return e.get(Uoe)?e.get(Yoe):0}function eie(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getGraph().data,o=n.mapArray(n.getName);r.filterSelf(function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){yj(n)&&(n=o[n]);for(var i=0;i<t.length;i++)if(!t[i].isSelected(n))return!1}return!0})})}function tie(e){var t={};e.eachSeriesByType("graph",function(e){var n=e.getCategoriesData(),r=e.getData(),o={};n.each(function(r){var i=n.getName(r);o["ec-"+i]=r;var a=n.getItemModel(r),l=a.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e.getColorFromPalette(i,t)),n.setItemVisual(r,"style",l);for(var s=["symbol","symbolSize","symbolKeepAspect"],c=0;c<s.length;c++){var u=a.getShallow(s[c],!0);null!=u&&n.setItemVisual(r,s[c],u)}}),n.count()&&r.each(function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){mj(t)&&(t=o["ec-"+t]);var i=n.getItemVisual(t,"style");JR(r.ensureUniqueItemVisual(e,"style"),i);for(var a=["symbol","symbolSize","symbolKeepAspect"],l=0;l<a.length;l++)r.setItemVisual(e,a[l],n.getItemVisual(t,a[l]))}})})}function nie(e){return e instanceof Array||(e=[e,e]),e}function rie(e){e.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),r=nie(e.get("edgeSymbol")),o=nie(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(e){var r=n.getItemModel(e),o=t.getEdgeByIndex(e),i=nie(r.getShallow("symbol",!0)),a=nie(r.getShallow("symbolSize",!0)),l=r.getModel("lineStyle").getLineStyle(),s=n.ensureUniqueItemVisual(e,"style");switch(JR(s,l),s.stroke){case"source":var c=o.node1.getVisual("style");s.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");s.stroke=c&&c.fill}i[0]&&o.setVisual("fromSymbol",i[0]),i[1]&&o.setVisual("toSymbol",i[1]),a[0]&&o.setVisual("fromSymbolSize",a[0]),a[1]&&o.setVisual("toSymbolSize",a[1])})})}var oie="--\x3e",iie=function(e){return e.get("autoCurveness")||null},aie=function(e,t){var n=iie(e),r=20,o=[];if(yj(n))r=n;else if(hj(n))return void(e.__curvenessList=n);t>r&&(r=t);var i=r%2?r+2:r+3;o=[];for(var a=0;a<i;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=o},lie=function(e,t,n){var r=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[n.uid,r,o].join(oie)},sie=function(e){var t=e.split(oie);return[t[0],t[2],t[1]].join(oie)},cie=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function uie(e,t,n,r){var o=iie(t),i=hj(o);if(!o)return null;var a=function(e,t){var n=lie(e.node1,e.node2,t);return t.__edgeMap[n]}(e,t);if(!a)return null;for(var l=-1,s=0;s<a.length;s++)if(a[s]===n){l=s;break}var c=function(e,t){return cie(lie(e.node1,e.node2,t),t)+cie(lie(e.node2,e.node1,t),t)}(e,t);aie(t,c),e.lineStyle=e.lineStyle||{};var u=lie(e.node1,e.node2,t),d=t.__curvenessList,p=i||c%2?0:1;if(a.isForward)return d[p+l];var f=sie(u),h=cie(f,t),g=d[l+h+p];return r?i?o&&0===o[0]?(h+p)%2?g:-g:((h%2?0:1)+p)%2?g:-g:(h+p)%2?g:-g:d[l+h+p]}function die(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])}),pie(n,e)}}function pie(e,t){e.eachEdge(function(e,n){var r=Oj(e.getModel().get(["lineStyle","curveness"]),-uie(e,t,n,!0),0),o=Xj(e.node1.getLayout()),i=Xj(e.node2.getLayout()),a=[o,i];+r&&a.push([(o[0]+i[0])/2-(o[1]-i[1])*r,(o[1]+i[1])/2-(i[0]-o[0])*r]),e.setLayout(a)})}function fie(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),o=[];aj(n.dimensions,function(e){o=o.concat(r.mapDimensionsAll(e))});for(var i=0;i<r.count();i++){for(var a=[],l=!1,s=0;s<o.length;s++){var c=r.get(o[s],i);isNaN(c)||(l=!0),a.push(c)}l?r.setItemLayout(i,n.dataToPoint(a)):r.setItemLayout(i,[NaN,NaN])}pie(r.graph,e)}else t&&"none"!==t||die(e)})}function hie(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function gie(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var mie=Math.PI,vie=[];function yie(e,t,n,r){var o=e.coordinateSystem;if(!o||"view"===o.type){var i=o.getBoundingRect(),a=e.getData(),l=a.graph,s=i.width/2+i.x,c=i.height/2+i.y,u=Math.min(i.width,i.height)/2,d=a.count();if(a.setLayout({cx:s,cy:c}),d){if(n){var p=o.pointToData(r),f=p[0],h=p[1],g=[f-s,h-c];sL(g,g),lL(g,g,u),n.setLayout([s+g[0],c+g[1]],!0),xie(n,e.get(["circular","rotateLabel"]),s,c)}bie[t](e,l,a,u,s,c,d),l.eachEdge(function(t,n){var r,o=Oj(t.getModel().get(["lineStyle","curveness"]),uie(t,e,n),0),i=Xj(t.node1.getLayout()),a=Xj(t.node2.getLayout()),l=(i[0]+a[0])/2,u=(i[1]+a[1])/2;+o&&(r=[s*(o*=3)+l*(1-o),c*o+u*(1-o)]),t.setLayout([i,a,r])})}}}var bie={value:function(e,t,n,r,o,i,a){var l=0,s=n.getSum("value"),c=2*Math.PI/(s||a);t.eachNode(function(e){var t=e.getValue("value"),n=c*(s?t:1)/2;l+=n,e.setLayout([r*Math.cos(l)+o,r*Math.sin(l)+i]),l+=n})},symbolSize:function(e,t,n,r,o,i,a){var l=0;vie.length=a;var s=hie(e);t.eachNode(function(e){var t=gie(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=s;var n=Math.asin(t/2/r);isNaN(n)&&(n=mie/2),vie[e.dataIndex]=n,l+=2*n});var c=(2*mie-l)/a/2,u=0;t.eachNode(function(e){var t=c+vie[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(u)+o,r*Math.sin(u)+i]),u+=t})}};function xie(e,t,n,r){var o=e.getGraphicEl();if(o){var i=e.getModel().get(["label","rotate"])||0,a=o.getSymbolPath();if(t){var l=e.getLayout(),s=Math.atan2(l[1]-r,l[0]-n);s<0&&(s=2*Math.PI+s);var c=l[0]<n;c&&(s-=Math.PI);var u=c?"left":"right";a.setTextConfig({rotation:-s,position:u,origin:"center"});var d=a.ensureState("emphasis");JR(d.textConfig||(d.textConfig={}),{position:u})}else a.setTextConfig({rotation:i*=Math.PI/180})}}function wie(e){e.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&yie(e,"symbolSize")})}var Sie=Qj;function Cie(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),o=r.data,i=r.edgeData,a=e.getModel("force"),l=a.get("initLayout");e.preservedPoints?o.each(function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])}):l&&"none"!==l?"circular"===l&&yie(e,"value"):die(e);var s=o.getDataExtent("value"),c=i.getDataExtent("value"),u=a.get("repulsion"),d=a.get("edgeLength"),p=hj(u)?u:[u,u],f=hj(d)?d:[d,d];f=[f[1],f[0]];var h=o.mapArray("value",function(e,t){var n=o.getItemLayout(t),r=zF(e,s,p);return isNaN(r)&&(r=(p[0]+p[1])/2),{w:r,rep:r,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),g=i.mapArray("value",function(t,n){var o=r.getEdgeByIndex(n),i=zF(t,c,f);isNaN(i)&&(i=(f[0]+f[1])/2);var a=o.getModel(),l=Oj(o.getModel().get(["lineStyle","curveness"]),-uie(o,e,n,!0),0);return{n1:h[o.node1.dataIndex],n2:h[o.node2.dataIndex],d:i,curveness:l,ignoreForceLayout:a.get("ignoreForceLayout")}}),m=t.getBoundingRect(),v=function(e,t,n){for(var r=e,o=t,i=n.rect,a=i.width,l=i.height,s=[i.x+a/2,i.y+l/2],c=null==n.gravity?.1:n.gravity,u=0;u<r.length;u++){var d=r[u];d.p||(d.p=Yj(a*(Math.random()-.5)+s[0],l*(Math.random()-.5)+s[1])),d.pp=Xj(d.p),d.edges=null}var p,f,h=null==n.friction?.6:n.friction,g=h;return{warmUp:function(){g=.8*h},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){p=e},afterStep:function(e){f=e},step:function(e){p&&p(r,o);for(var t=[],n=r.length,i=0;i<o.length;i++){var a=o[i];if(!a.ignoreForceLayout){var l=a.n1;Jj(t,(m=a.n2).p,l.p);var u=eL(t)-a.d,d=m.w/(l.w+m.w);isNaN(d)&&(d=0),sL(t,t),!l.fixed&&Sie(l.p,l.p,t,d*u*g),!m.fixed&&Sie(m.p,m.p,t,-(1-d)*u*g)}}for(i=0;i<n;i++)(b=r[i]).fixed||(Jj(t,s,b.p),Sie(b.p,b.p,t,c*g));for(i=0;i<n;i++){l=r[i];for(var h=i+1;h<n;h++){var m;Jj(t,(m=r[h]).p,l.p),0===(u=eL(t))&&(Kj(t,Math.random()-.5,Math.random()-.5),u=1);var v=(l.rep+m.rep)/u/u;!l.fixed&&Sie(l.pp,l.pp,t,v),!m.fixed&&Sie(m.pp,m.pp,t,-v)}}var y=[];for(i=0;i<n;i++){var b;(b=r[i]).fixed||(Jj(y,b.p,b.pp),Sie(b.p,b.p,y,g),qj(b.pp,b.p))}var x=(g*=.992)<.01;f&&f(r,o,x),e&&e(x)}}}(h,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep(function(e,t){for(var n=0,o=e.length;n<o;n++)e[n].fixed&&qj(e[n].p,r.getNodeByIndex(n).getLayout())}),v.afterStep(function(e,t,i){for(var a=0,l=e.length;a<l;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[o.getId(a)]=e[a].p;for(a=0,l=t.length;a<l;a++){var s=t[a],c=r.getEdgeByIndex(a),u=s.n1.p,d=s.n2.p,p=c.getLayout();(p=p?p.slice():[])[0]=p[0]||[],p[1]=p[1]||[],qj(p[0],u),qj(p[1],d),+s.curveness&&(p[2]=[(u[0]+d[0])/2-(u[1]-d[1])*s.curveness,(u[1]+d[1])/2-(d[0]-u[0])*s.curveness]),c.setLayout(p)}}),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null})}function _ie(e,t){var n=[];return e.eachSeriesByType("graph",function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var o=e.getData(),i=[],a=[];EW(o.mapArray(function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]}),i,a),a[0]-i[0]===0&&(a[0]+=1,i[0]-=1),a[1]-i[1]===0&&(a[1]+=1,i[1]-=1);var l=(a[0]-i[0])/(a[1]-i[1]),s=function(e,t,n){return Hq(JR(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,l);isNaN(l)&&(i=[s.x,s.y],a=[s.x+s.width,s.y+s.height]);var c=a[0]-i[0],u=a[1]-i[1],d=s.width,p=s.height,f=e.coordinateSystem=new Yne;f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(i[0],i[1],c,u),f.setViewRect(s.x,s.y,d,p),f.setCenter(e.get("center"),t),f.setZoom(e.get("zoom")),n.push(f)}}),n}var kie=ZQ.prototype,Mie=nJ.prototype,Iie=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}MR(t,e)}(Iie);function Eie(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Oie=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return MR(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Iie},t.prototype.buildPath=function(e,t){Eie(t)?kie.buildPath.call(this,e,t):Mie.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return Eie(this.shape)?kie.pointAt.call(this,e):Mie.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=Eie(t)?[t.x2-t.x1,t.y2-t.y1]:Mie.tangentAt.call(this,e);return sL(n,n)},t}(SG);const $ie=Oie;var Tie=["fromSymbol","toSymbol"];function Pie(e){return"_"+e+"Type"}function Die(e,t,n){var r=t.getItemVisual(n,e);if(!r||"none"===r)return r;var o=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),l=t.getItemVisual(n,e+"KeepAspect"),s=v1(o);return r+s+y1(a||0,s)+(i||"")+(l||"")}function Nie(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var o=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),l=t.getItemVisual(n,e+"KeepAspect"),s=v1(o),c=y1(a||0,s),u=m1(r,-s[0]/2+c[0],-s[1]/2+c[1],s[0],s[1],null,l);return u.__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,u.name=e,u}}function Aie(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Rie=function(e){function t(t,n,r){var o=e.call(this)||this;return o._createLine(t,n,r),o}return MR(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,o=function(e){var t=new $ie({name:"line",subPixelOptimize:!0});return Aie(t.shape,e),t}(e.getItemLayout(t));o.shape.percent=0,rY(o,{shape:{percent:1}},r,t),this.add(o),aj(Tie,function(n){var r=Nie(n,e,t);this.add(r),this[Pie(n)]=Die(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,o=this.childOfName("line"),i=e.getItemLayout(t),a={shape:{}};Aie(a.shape,i),nY(o,a,r,t),aj(Tie,function(n){var r=Die(n,e,t),o=Pie(n);if(this[o]!==r){this.remove(this.childOfName(n));var i=Nie(n,e,t);this.add(i)}this[o]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,o=this.childOfName("line"),i=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,l=n&&n.selectLineStyle,s=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var p=e.getItemModel(t),f=p.getModel("emphasis");i=f.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),l=p.getModel(["select","lineStyle"]).getLineStyle(),c=f.get("disabled"),u=f.get("focus"),d=f.get("blurScope"),s=fY(p)}var h=e.getItemVisual(t,"style"),g=h.stroke;o.useStyle(h),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=i,o.ensureState("blur").style=a,o.ensureState("select").style=l,aj(Tie,function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=h.opacity;for(var n=0;n<aU.length;n++){var r=aU[n],i=o.getState(r);if(i){var a=i.style||{},l=t.ensureState(r),s=l.style||(l.style={});null!=a.stroke&&(s[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(s.opacity=a.opacity)}}t.markRedraw()}},this);var m=r.getRawValue(t);pY(this,s,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:h.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?HF(m):m)+""});var v=this.getTextContent();if(v){var y=s.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var b=y.get("distance");hj(b)||(b=[b,b]),v.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),WU(this,u,d,c)},t.prototype.highlight=function(){$U(this)},t.prototype.downplay=function(){TU(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");Aie(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.getTextContent();if(t||n||r&&!r.ignore){for(var o=1,i=this.parent;i;)i.scaleX&&(o/=i.scaleX),i=i.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var l=a.shape.percent,s=a.pointAt(0),c=a.pointAt(l),u=Jj([],c,s);if(sL(u,u),t&&(t.setPosition(s),C(t,0),t.scaleX=t.scaleY=o*l,t.markRedraw()),n&&(n.setPosition(c),C(n,1),n.scaleX=n.scaleY=o*l,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var d=void 0,p=void 0,f=r.__labelDistance,h=f[0]*o,g=f[1]*o,m=l/2,v=a.tangentAt(m),y=[v[1],-v[0]],b=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var w=-Math.atan2(v[1],v[0]);c[0]<s[0]&&(w=Math.PI+w),r.rotation=w}var S=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-g,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=g,p="top";break;default:S=0,p="middle"}switch(r.__position){case"end":r.x=u[0]*h+c[0],r.y=u[1]*g+c[1],d=u[0]>.8?"left":u[0]<-.8?"right":"center",p=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":r.x=-u[0]*h+s[0],r.y=-u[1]*g+s[1],d=u[0]>.8?"right":u[0]<-.8?"left":"center",p=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=h*x+s[0],r.y=s[1]+S,d=v[0]<0?"right":"left",r.originX=-h*x,r.originY=-S;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+S,d="center",r.originY=-S;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-h*x+c[0],r.y=c[1]+S,d=v[0]>=0?"right":"left",r.originX=h*x,r.originY=-S}r.scaleX=r.scaleY=o,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||d})}}}function C(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}(_F);const jie=Rie;var Lie=function(){function e(e){this.group=new _F,this._LineCtor=e||jie}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,o=n._lineData;n._lineData=e,o||r.removeAll();var i=zie(e);e.diff(o).add(function(n){t._doAdd(e,n,i)}).update(function(n,r){t._doUpdate(o,e,r,n,i)}).remove(function(e){r.remove(o.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=zie(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){if(Hie(t.getItemLayout(r))){var o=new this._LineCtor(t,r,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){QJ(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(Hie(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,o){var i=e.getItemGraphicEl(n);Hie(t.getItemLayout(r))?(i?i.updateData(t,r,o):i=new this._LineCtor(t,r,o),t.setItemGraphicEl(r,i),this.group.add(i)):this.group.remove(i)},e}();function zie(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:fY(t)}}function Bie(e){return isNaN(e[0])||isNaN(e[1])}function Hie(e){return e&&!Bie(e[0])&&!Bie(e[1])}const Fie=Lie;var Vie=[],Wie=[],Gie=[],Uie=iB,Yie=pL,qie=Math.abs;function Xie(e,t,n){for(var r,o=e[0],i=e[1],a=e[2],l=1/0,s=n*n,c=.1,u=.1;u<=.9;u+=.1){Vie[0]=Uie(o[0],i[0],a[0],u),Vie[1]=Uie(o[1],i[1],a[1],u),(f=qie(Yie(Vie,t)-s))<l&&(l=f,r=u)}for(var d=0;d<32;d++){var p=r+c;Wie[0]=Uie(o[0],i[0],a[0],r),Wie[1]=Uie(o[1],i[1],a[1],r),Gie[0]=Uie(o[0],i[0],a[0],p),Gie[1]=Uie(o[1],i[1],a[1],p);var f=Yie(Wie,t)-s;if(qie(f)<.01)break;var h=Yie(Gie,t)-s;c/=2,f<0?h>=0?r+=c:r-=c:h>=0?r-=c:r+=c}return r}function Kie(e,t){var n=[],r=sB,o=[[],[],[]],i=[[],[]],a=[];t/=2,e.eachEdge(function(e,l){var s=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");s.__original||(s.__original=[Xj(s[0]),Xj(s[1])],s[2]&&s.__original.push(Xj(s[2])));var d=s.__original;if(null!=s[2]){if(qj(o[0],d[0]),qj(o[1],d[2]),qj(o[2],d[1]),c&&"none"!==c){var p=gie(e.node1),f=Xie(o,d[0],p*t);r(o[0][0],o[1][0],o[2][0],f,n),o[0][0]=n[3],o[1][0]=n[4],r(o[0][1],o[1][1],o[2][1],f,n),o[0][1]=n[3],o[1][1]=n[4]}if(u&&"none"!==u){p=gie(e.node2),f=Xie(o,d[1],p*t);r(o[0][0],o[1][0],o[2][0],f,n),o[1][0]=n[1],o[2][0]=n[2],r(o[0][1],o[1][1],o[2][1],f,n),o[1][1]=n[1],o[2][1]=n[2]}qj(s[0],o[0]),qj(s[1],o[2]),qj(s[2],o[1])}else{if(qj(i[0],d[0]),qj(i[1],d[1]),Jj(a,i[1],i[0]),sL(a,a),c&&"none"!==c){p=gie(e.node1);Qj(i[0],i[0],a,p*t)}if(u&&"none"!==u){p=gie(e.node2);Qj(i[1],i[1],a,-p*t)}qj(s[0],i[0]),qj(s[1],i[1])}})}function Zie(e){return"view"===e.type}var Qie=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(e,t){var n=new k7,r=new Fie,o=this.group;this._controller=new Nte(t.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,o=e.coordinateSystem;this._model=e;var i=this._symbolDraw,a=this._lineDraw,l=this.group;if(Zie(o)){var s={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?l.attr(s):nY(l,s,e)}Kie(e.getGraph(),hie(e));var c=e.getData();i.updateData(c);var u=e.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,p);var f=e.get("layout");c.graph.eachNode(function(t){var n=t.dataIndex,o=t.getGraphicEl(),i=t.getModel();if(o){o.off("drag").off("dragend");var a=i.get("draggable");a&&o.on("drag",function(i){switch(f){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,p),d.setFixed(n),c.setItemLayout(n,[o.x,o.y]);break;case"circular":c.setItemLayout(n,[o.x,o.y]),t.setLayout({fixed:!0},!0),yie(e,"symbolSize",t,[i.offsetX,i.offsetY]),r.updateLayout(e);break;default:c.setItemLayout(n,[o.x,o.y]),pie(e.getGraph(),e),r.updateLayout(e)}}).on("dragend",function(){d&&d.setUnfixed(n)}),o.setDraggable(a,!!i.get("cursor")),"adjacency"===i.get(["emphasis","focus"])&&(eU(o).focus=t.getAdjacentDataIndices())}}),c.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(eU(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(e){xie(e,h,g,m)}),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,o=this._controller,i=this._controllerHost,a=this.group;o.setPointerChecker(function(t,r,o){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(r,o)&&!zte(t,n,e)}),Zie(e.coordinateSystem)?(o.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(t){Ate(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){Rte(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),Kie(e.getGraph(),hie(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()})):o.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=hie(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){Kie(e.getGraph(),hie(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}(l0);const Jie=Qie;function eae(e){return"_EC_"+e}var tae=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[eae(e)]){var r=new nae(e,t);return r.hostGraph=this,this.nodes.push(r),n[eae(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[eae(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,o=this._edgesMap;if(yj(e)&&(e=this.nodes[e]),yj(t)&&(t=this.nodes[t]),e instanceof nae||(e=r[eae(e)]),t instanceof nae||(t=r[eae(t)]),e&&t){var i=e.id+"-"+t.id,a=new rae(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),o[i]=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 nae&&(e=e.id),t instanceof nae&&(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,o=0;o<r;o++)n[o].dataIndex>=0&&e.call(t,n[o],o)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,o=0;o<r;o++)n[o].dataIndex>=0&&n[o].node1.dataIndex>=0&&n[o].node2.dataIndex>=0&&e.call(t,n[o],o)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof nae||(t=this._nodesMap[eae(t)]),t){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",i=0;i<this.nodes.length;i++)this.nodes[i].__visited=!1;if(!e.call(r,t,null))for(var a=[t];a.length;){var l=a.shift(),s=l[o];for(i=0;i<s.length;i++){var c=s[i],u=c.node1===l?c.node2:c.node1;if(!u.__visited){if(e.call(r,u,l))return;a.push(u),u.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,o=0,i=n.length;o<i;o++)n[o].dataIndex=-1;for(o=0,i=e.count();o<i;o++)n[e.getRawIndex(o)].dataIndex=o;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(o=0,i=r.length;o<i;o++)r[o].dataIndex=-1;for(o=0,i=t.count();o<i;o++)r[t.getRawIndex(o)].dataIndex=o},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,o=0;o<n.length;o++)t.addNode(n[o].id,n[o].dataIndex);for(o=0;o<r.length;o++){var i=r[o];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),nae=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=Bj(),t=Bj(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var o=[r.node1],i=[r.node2],a=0;a<o.length;){var l=o[a];a++,t.set(l.dataIndex,!0);for(var s=0;s<l.inEdges.length;s++)e.set(l.inEdges[s].dataIndex,!0),o.push(l.inEdges[s].node1)}for(a=0;a<i.length;){var c=i[a];a++,t.set(c.dataIndex,!0);for(s=0;s<c.outEdges.length;s++)e.set(c.outEdges[s].dataIndex,!0),i.push(c.outEdges[s].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),rae=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Bj(),t=Bj();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],o=0;o<n.length;){var i=n[o];o++,t.set(i.dataIndex,!0);for(var a=0;a<i.inEdges.length;a++)e.set(i.inEdges[a].dataIndex,!0),n.push(i.inEdges[a].node1)}for(o=0;o<r.length;){var l=r[o];o++,t.set(l.dataIndex,!0);for(a=0;a<l.outEdges.length;a++)e.set(l.outEdges[a].dataIndex,!0),r.push(l.outEdges[a].node2)}return{edge:e.keys(),node:t.keys()}},e}();function oae(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=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)}}}oj(nae,oae("hostGraph","data")),oj(rae,oae("hostGraph","edgeData"));const iae=tae;function aae(e,t,n,r,o){for(var i=new iae(r),a=0;a<e.length;a++)i.addNode(Ij(e[a].id,e[a].name,a),a);var l=[],s=[],c=0;for(a=0;a<t.length;a++){var u=t[a],d=u.source,p=u.target;i.addEdge(d,p,c)&&(s.push(u),l.push(Ij(wV(u.id,null),d+" > "+p)),c++)}var f,h=n.get("coordinateSystem");if("cartesian2d"===h||"polar"===h)f=d3(e,n);else{var g=NX.get(h),m=g&&g.dimensions||[];nj(m,"value")<0&&m.concat(["value"]);var v=r3(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(f=new t3(v,n)).initData(e)}var y=new t3(["value"],n);return y.initData(s,l),o&&o(f,y),jre({mainData:f,struct:i,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var lae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return MR(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new X9(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),hV(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],o=e.data||e.nodes||[],i=this;if(o&&r){iie(n=this)&&(n.__curvenessList=[],n.__edgeMap={},aie(n));var a=aae(o,r,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e){var t=i._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e});var n=RY.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})});return aj(a.edges,function(e){!function(e,t,n,r){if(iie(n)){var o=lie(e,t,n),i=n.__edgeMap,a=i[sie(o)];i[o]&&!a?i[o].isForward=!0:a&&i[o]&&(a.isForward=!0,i[o].isForward=!1),i[o]=i[o]||[],i[o].push(r)}}(e.node1,e.node2,this,e.dataIndex)},this),a.data}},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(),o=this.getDataParams(e,n),i=r.graph.getEdgeByIndex(e),a=r.getName(i.node1.dataIndex),l=r.getName(i.node2.dataIndex),s=[];return null!=a&&s.push(a),null!=l&&s.push(l),SZ("nameValue",{name:s.join(" > "),value:o.value,noValue:null==o.value})}return NZ({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=lj(this.option.categories||[],function(e){return null!=e.value?e:JR({value:0},e)}),t=new t3(["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}(UZ);const sae=lae;var cae={type:"graphRoam",event:"graphRoam",update:"none"};var uae=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},dae=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new uae},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,o=t.r,i=t.width,a=t.angle,l=t.x-n(a)*i*(i>=o/3?1:2),s=t.y-r(a)*i*(i>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(l,s),e.lineTo(t.x+n(a)*i,t.y+r(a)*i),e.lineTo(t.x+n(t.angle)*o,t.y+r(t.angle)*o),e.lineTo(t.x-n(a)*i,t.y-r(a)*i),e.lineTo(l,s)},t}(SG);const pae=dae;function fae(e,t){var n=null==e?"":e+"";return t&&(mj(t)?n=t.replace("{value}",n):gj(t)&&(n=t(e))),n}var hae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),o=function(e,t){var n=e.get("center"),r=t.getWidth(),o=t.getHeight(),i=Math.min(r,o);return{cx:BF(n[0],t.getWidth()),cy:BF(n[1],t.getHeight()),r:BF(e.get("radius"),i/2)}}(e,n);this._renderMain(e,t,n,r,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,o){var i=this.group,a=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,s=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap")?c9:jQ,d=c.get("show"),p=c.getModel("lineStyle"),f=p.get("width"),h=[l,s];QW(h,!a);for(var g=(s=h[1])-(l=h[0]),m=l,v=[],y=0;d&&y<r.length;y++){var b=new u({shape:{startAngle:m,endAngle:s=l+g*Math.min(Math.max(r[y][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-f,r:o.r},silent:!0});b.setStyle({fill:r[y][1]}),b.setStyle(p.getLineStyle(["color","width"])),v.push(b),m=s}v.reverse(),aj(v,function(e){return i.add(e)});var x=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,x,o,l,s,a,f),this._renderTitleAndDetail(e,t,n,x,o),this._renderAnchor(e,o),this._renderPointer(e,t,n,x,o,l,s,a,f)},t.prototype._renderTicks=function(e,t,n,r,o,i,a,l,s){for(var c,u,d=this.group,p=o.cx,f=o.cy,h=o.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),y=e.getModel("axisTick"),b=e.getModel("axisLabel"),x=e.get("splitNumber"),w=y.get("splitNumber"),S=BF(v.get("length"),h),C=BF(y.get("length"),h),_=i,k=(a-i)/x,M=k/w,I=v.getModel("lineStyle").getLineStyle(),E=y.getModel("lineStyle").getLineStyle(),O=v.get("distance"),$=0;$<=x;$++){if(c=Math.cos(_),u=Math.sin(_),v.get("show")){var T=new ZQ({shape:{x1:c*(h-(P=O?O+s:s))+p,y1:u*(h-P)+f,x2:c*(h-S-P)+p,y2:u*(h-S-P)+f},style:I,silent:!0});"auto"===I.stroke&&T.setStyle({stroke:r($/x)}),d.add(T)}if(b.get("show")){var P=b.get("distance")+O,D=fae(HF($/x*(m-g)+g),b.get("formatter")),N=r($/x),A=c*(h-S-P)+p,R=u*(h-S-P)+f,j=b.get("rotate"),L=0;"radial"===j?(L=-_+2*Math.PI)>Math.PI/2&&(L+=Math.PI):"tangential"===j?L=-_-Math.PI/2:yj(j)&&(L=j*Math.PI/180),0===L?d.add(new JG({style:hY(b,{text:D,x:A,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:N}),silent:!0})):d.add(new JG({style:hY(b,{text:D,x:A,y:R,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:A,originY:R,rotation:L}))}if(y.get("show")&&$!==x){P=(P=y.get("distance"))?P+s:s;for(var z=0;z<=w;z++){c=Math.cos(_),u=Math.sin(_);var B=new ZQ({shape:{x1:c*(h-P)+p,y1:u*(h-P)+f,x2:c*(h-C-P)+p,y2:u*(h-C-P)+f},silent:!0,style:E});"auto"===E.stroke&&B.setStyle({stroke:r(($+z/w)/x)}),d.add(B),_+=M}_-=M}else _+=k}},t.prototype._renderPointer=function(e,t,n,r,o,i,a,l,s){var c=this.group,u=this._data,d=this._progressEls,p=[],f=e.get(["pointer","show"]),h=e.getModel("progress"),g=h.get("show"),m=e.getData(),v=m.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),x=[y,b],w=[i,a];function S(t,n){var r,i=m.getItemModel(t).getModel("pointer"),a=BF(i.get("width"),o.r),l=BF(i.get("length"),o.r),s=e.get(["pointer","icon"]),c=i.get("offsetCenter"),u=BF(c[0],o.r),d=BF(c[1],o.r),p=i.get("keepAspect");return(r=s?m1(s,u-a/2,d-l,a,l,null,p):new pae({shape:{angle:-Math.PI/2,width:a,r:l,x:u,y:d}})).rotation=-(n+Math.PI/2),r.x=o.cx,r.y=o.cy,r}function C(e,t){var n=h.get("roundCap")?c9:jQ,r=h.get("overlap"),a=r?h.get("width"):s/m.count(),c=r?o.r-a:o.r-(e+1)*a,u=r?o.r:o.r-e*a,d=new n({shape:{startAngle:i,endAngle:t,cx:o.cx,cy:o.cy,clockwise:l,r0:c,r:u}});return r&&(d.z2=zF(m.get(v,e),[y,b],[100,0],!0)),d}(g||f)&&(m.diff(u).add(function(t){var n=m.get(v,t);if(f){var r=S(t,i);rY(r,{rotation:-((isNaN(+n)?w[0]:zF(n,x,w,!0))+Math.PI/2)},e),c.add(r),m.setItemGraphicEl(t,r)}if(g){var o=C(t,i),a=h.get("clip");rY(o,{shape:{endAngle:zF(n,x,w,a)}},e),c.add(o),tU(e.seriesIndex,m.dataType,t,o),p[t]=o}}).update(function(t,n){var r=m.get(v,t);if(f){var o=u.getItemGraphicEl(n),a=o?o.rotation:i,l=S(t,a);l.rotation=a,nY(l,{rotation:-((isNaN(+r)?w[0]:zF(r,x,w,!0))+Math.PI/2)},e),c.add(l),m.setItemGraphicEl(t,l)}if(g){var s=d[n],y=C(t,s?s.shape.endAngle:i),b=h.get("clip");nY(y,{shape:{endAngle:zF(r,x,w,b)}},e),c.add(y),tU(e.seriesIndex,m.dataType,t,y),p[t]=y}}).execute(),m.each(function(e){var t=m.getItemModel(e),n=t.getModel("emphasis"),o=n.get("focus"),i=n.get("blurScope"),a=n.get("disabled");if(f){var l=m.getItemGraphicEl(e),s=m.getItemVisual(e,"style"),c=s.fill;if(l instanceof OG){var u=l.style;l.useStyle(JR({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else l.useStyle(s),"pointer"!==l.type&&l.setColor(c);l.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",r(zF(m.get(v,e),x,[0,1],!0))),l.z2EmphasisLift=0,qU(l,t),WU(l,o,i,a)}if(g){var d=p[e];d.useStyle(m.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,qU(d,t),WU(d,o,i,a)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),o=n.get("icon"),i=n.get("offsetCenter"),a=n.get("keepAspect"),l=m1(o,t.cx-r/2+BF(i[0],t.r),t.cy-r/2+BF(i[1],t.r),r,r,null,a);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,o){var i=this,a=e.getData(),l=a.mapDimension("value"),s=+e.get("min"),c=+e.get("max"),u=new _F,d=[],p=[],f=e.isAnimationEnabled(),h=e.get(["pointer","showAbove"]);a.diff(this._data).add(function(e){d[e]=new JG({silent:!0}),p[e]=new JG({silent:!0})}).update(function(e,t){d[e]=i._titleEls[t],p[e]=i._detailEls[t]}).execute(),a.each(function(t){var n=a.getItemModel(t),i=a.get(l,t),g=new _F,m=r(zF(i,[s,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=o.cx+BF(y[0],o.r),x=o.cy+BF(y[1],o.r);(E=d[t]).attr({z2:h?0:2,style:hY(v,{x:b,y:x,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(E)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),C=o.cx+BF(S[0],o.r),_=o.cy+BF(S[1],o.r),k=BF(w.get("width"),o.r),M=BF(w.get("height"),o.r),I=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,E=p[t],O=w.get("formatter");E.attr({z2:h?0:2,style:hY(w,{x:C,y:_,text:fae(i,O),width:isNaN(k)?null:k,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:I})}),SY(E,{normal:w},i,function(e){return fae(e,O)}),f&&CY(E,t,a,e,{getFormattedLabel:function(e,t,n,r,o,a){return fae(a?a.interpolatedValue:i,O)}}),g.add(E)}u.add(g)}),this.group.add(u),this._titleEls=d,this._detailEls=p},t.type="gauge",t}(l0);const gae=hae;const mae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return MR(t,e),t.prototype.getInitialData=function(e,t){return Y9(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}(UZ);var vae=["itemStyle","opacity"],yae=function(e){function t(t,n){var r=e.call(this)||this,o=r,i=new YQ,a=new JG;return o.setTextContent(a),r.setTextGuideLine(i),r.updateData(t,n,!0),r}return MR(t,e),t.prototype.updateData=function(e,t,n){var r=this,o=e.hostModel,i=e.getItemModel(t),a=e.getItemLayout(t),l=i.getModel("emphasis"),s=i.get(vae);s=null==s?1:s,n||sY(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,rY(r,{style:{opacity:s}},o,t)):nY(r,{style:{opacity:s},shape:{points:a.points}},o,t),qU(r,i),this._updateLabel(e,t),WU(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),o=n.getTextContent(),i=e.hostModel,a=e.getItemModel(t),l=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),c=s.fill;pY(o,fY(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var u=l.linePoints;r.setShape({points:u}),n.textGuideLineConfig={anchor:u?new rz(u[0][0],u[0][1]):null},nY(o,{style:{x:l.x,y:l.y}},i,t),o.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),$6(n,T6(a),{stroke:c})},t}(WQ),bae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this._data,i=this.group;r.diff(o).add(function(e){var t=new yae(r,e);r.setItemGraphicEl(e,t),i.add(t)}).update(function(e,t){var n=o.getItemGraphicEl(t);n.updateData(r,e),i.add(n),r.setItemGraphicEl(e,n)}).remove(function(t){lY(o.getItemGraphicEl(t),e,t)}).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(l0);const xae=bae;var wae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new X9(pj(this.getData,this),pj(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Y9(this,{coordDimensions:["value"],encodeDefaulter:fj(dX,this)})},t.prototype._defaultLabelLine=function(e){hV(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),o=n.mapDimension("value"),i=n.getSum(o);return r.percent=i?+(n.get(o,t)/i*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}(UZ);const Sae=wae;function Cae(e,t){e.eachSeriesByType("funnel",function(e){var n=e.getData(),r=n.mapDimension("value"),o=e.get("sort"),i=function(e,t){return Hq(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),l=i.width,s=i.height,c=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(e){return e}),o=[],i="ascending"===t,a=0,l=e.count();a<l;a++)o[a]=a;return gj(t)?o.sort(t):"none"!==t&&o.sort(function(e,t){return i?r[e]-r[t]:r[t]-r[e]}),o}(n,o),u=i.x,d=i.y,p="horizontal"===a?[BF(e.get("minSize"),s),BF(e.get("maxSize"),s)]:[BF(e.get("minSize"),l),BF(e.get("maxSize"),l)],f=n.getDataExtent(r),h=e.get("min"),g=e.get("max");null==h&&(h=Math.min(f[0],0)),null==g&&(g=f[1]);var m=e.get("funnelAlign"),v=e.get("gap"),y=(("horizontal"===a?l:s)-v*(n.count()-1))/n.count(),b=function(e,t){if("horizontal"===a){var o=zF(n.get(r,e)||0,[h,g],p,!0),i=void 0;switch(m){case"top":i=d;break;case"center":i=d+(s-o)/2;break;case"bottom":i=d+(s-o)}return[[t,i],[t,i+o]]}var c,f=zF(n.get(r,e)||0,[h,g],p,!0);switch(m){case"left":c=u;break;case"center":c=u+(l-f)/2;break;case"right":c=u+l-f}return[[c,t],[c+f,t]]};"ascending"===o&&(y=-y,v=-v,"horizontal"===a?u+=l:d+=s,c=c.reverse());for(var x=0;x<c.length;x++){var w=c[x],S=c[x+1],C=n.getItemModel(w);if("horizontal"===a){var _=C.get(["itemStyle","width"]);null==_?_=y:(_=BF(_,l),"ascending"===o&&(_=-_));var k=b(w,u),M=b(S,u+_);u+=_+v,n.setItemLayout(w,{points:k.concat(M.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);null==I?I=y:(I=BF(I,s),"ascending"===o&&(I=-I));k=b(w,d),M=b(S,d+I);d+=I+v,n.setItemLayout(w,{points:k.concat(M.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each(function(n){var r,o,i,a,l=e.getItemModel(n),s=l.getModel("label").get("position"),c=l.getModel("labelLine"),u=e.getItemLayout(n),d=u.points,p="inner"===s||"inside"===s||"center"===s||"insideLeft"===s||"insideRight"===s;if(p)"insideLeft"===s?(o=(d[0][0]+d[3][0])/2+5,i=(d[0][1]+d[3][1])/2,r="left"):"insideRight"===s?(o=(d[1][0]+d[2][0])/2-5,i=(d[1][1]+d[2][1])/2,r="right"):(o=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,i=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,r="center"),a=[[o,i],[o,i]];else{var f=void 0,h=void 0,g=void 0,m=void 0,v=c.get("length");"left"===s?(f=(d[3][0]+d[0][0])/2,h=(d[3][1]+d[0][1])/2,o=(g=f-v)-5,r="right"):"right"===s?(f=(d[1][0]+d[2][0])/2,h=(d[1][1]+d[2][1])/2,o=(g=f+v)+5,r="left"):"top"===s?(f=(d[3][0]+d[0][0])/2,i=(m=(h=(d[3][1]+d[0][1])/2)-v)-5,r="center"):"bottom"===s?(f=(d[1][0]+d[2][0])/2,i=(m=(h=(d[1][1]+d[2][1])/2)+v)+5,r="center"):"rightTop"===s?(f="horizontal"===t?d[3][0]:d[1][0],h="horizontal"===t?d[3][1]:d[1][1],"horizontal"===t?(i=(m=h-v)-5,r="center"):(o=(g=f+v)+5,r="top")):"rightBottom"===s?(f=d[2][0],h=d[2][1],"horizontal"===t?(i=(m=h+v)+5,r="center"):(o=(g=f+v)+5,r="bottom")):"leftTop"===s?(f=d[0][0],h="horizontal"===t?d[0][1]:d[1][1],"horizontal"===t?(i=(m=h-v)-5,r="center"):(o=(g=f-v)-5,r="right")):"leftBottom"===s?(f="horizontal"===t?d[1][0]:d[3][0],h="horizontal"===t?d[1][1]:d[2][1],"horizontal"===t?(i=(m=h+v)+5,r="center"):(o=(g=f-v)-5,r="right")):(f=(d[1][0]+d[2][0])/2,h=(d[1][1]+d[2][1])/2,"horizontal"===t?(i=(m=h+v)+5,r="center"):(o=(g=f+v)+5,r="left")),"horizontal"===t?o=g=f:i=m=h,a=[[f,h],[g,m]]}u.label={linePoints:a,x:o,y:i,verticalAlign:"middle",textAlign:r,inside:p}})}(n)})}var _ae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new _F,n._initialized=!1,n}return MR(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var o=this._dataGroup,i=e.getData(),a=this._data,l=e.coordinateSystem,s=l.dimensions,c=Iae(e);if(i.diff(a).add(function(e){var t=Mae(i,o,e,s,l);Eae(t,i,e,c)}).update(function(t,n){var r=a.getItemGraphicEl(n),o=kae(i,t,s,l);i.setItemGraphicEl(t,r),nY(r,{shape:{points:o}},e,t),sY(r),Eae(r,i,t,c)}).remove(function(e){var t=a.getItemGraphicEl(e);o.remove(t)}).execute(),!this._initialized){this._initialized=!0;var u=function(e,t,n){var r=e.model,o=e.getRect(),i=new jG({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===r.get("layout")?"width":"height";return i.setShape(a,0),rY(i,{shape:{width:o.width,height:o.height}},t,n),i}(l,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(u)}this._data=i},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),o=t.coordinateSystem,i=o.dimensions,a=Iae(t),l=this._progressiveEls=[],s=e.start;s<e.end;s++){var c=Mae(r,this._dataGroup,s,i,o);c.incremental=!0,Eae(c,r,s,a),l.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(l0);function kae(e,t,n,r){for(var o=[],i=0;i<n.length;i++){var a=n[i],l=e.get(e.mapDimension(a),t);Oae(l,r.getAxis(a).type)||o.push(r.dataToPoint(l,a))}return o}function Mae(e,t,n,r,o){var i=kae(e,n,r,o),a=new YQ({shape:{points:i},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function Iae(e){var t=e.get("smooth",!0);return!0===t&&(t=.3),Mj(t=iV(t))&&(t=0),{smooth:t}}function Eae(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var o=t.getItemModel(n),i=o.getModel("emphasis");qU(e,o,"lineStyle"),WU(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Oae(e,t){return"category"===t?null==e:null==e||isNaN(e)}const $ae=_ae;var Tae=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 MR(t,e),t.prototype.getInitialData=function(e,t){return d3(null,this,{useEncodeDefaulter:pj(Pae,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,function(t,o){e===t&&r.push(n.getRawIndex(o))}),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(UZ);function Pae(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return aj(t.dimensions,function(e){var t=+e.replace("dim","");n[e]=t}),n}}const Dae=Tae;var Nae=["lineStyle","opacity"],Aae={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,function(e,n){var o=r[e];if("normal"===e&&t.hasItemOption){var i=t.getItemModel(n).get(Nae,!0);null!=i&&(o=i)}t.ensureUniqueItemVisual(n,"style").opacity=o},e.start,e.end)}}}};const Rae=Aae;function jae(e){!function(e){if(e.parallel)return;var t=!1;aj(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}(e),function(e){var t=fV(e.parallelAxis);aj(t,function(t){if(bj(t)){var n=t.parallelIndex||0,r=fV(e.parallel)[n];r&&r.parallelAxisDefault&&ZR(t,r.parallelAxisDefault,!1)}})}(e)}var Lae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},aj(zae,function(e,t){n.getZr().on(t,this._handlers[t]=pj(e,this))},this)),p0(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){f0(this,"_throttledDispatchExpand"),aj(this._handlers,function(e,n){t.getZr().off(n,e)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(JR({type:"parallelAxisExpand"},e))},t.type="parallel",t}(qZ),zae={mousedown:function(e){Bae(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(Bae(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&Bae(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 Bae(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const Hae=Lae;const Fae=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&ZR(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){aj(["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=[];aj(cj(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(e){return(e.get("parallelIndex")||0)===this.componentIndex},this),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}(Xq);var Vae=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return a.type=o||"value",a.axisIndex=i,a}return MR(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(r6);const Wae=Vae;function Gae(e,t,n,r,o,i){e=e||0;var a=n[1]-n[0];if(null!=o&&(o=Yae(o,[0,a])),null!=i&&(i=Math.max(i,null!=o?o:0)),"all"===r){var l=Math.abs(t[1]-t[0]);l=Yae(l,[0,a]),o=i=Yae(l,[o,i]),r=0}t[0]=Yae(t[0],n),t[1]=Yae(t[1],n);var s=Uae(t,r);t[r]+=e;var c,u=o||0,d=n.slice();return s.sign<0?d[0]+=u:d[1]-=u,t[r]=Yae(t[r],d),c=Uae(t,r),null!=o&&(c.sign!==s.sign||c.span<o)&&(t[1-r]=t[r]+s.sign*o),c=Uae(t,r),null!=i&&c.span>i&&(t[1-r]=t[r]+c.sign*i),t}function Uae(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 Yae(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var qae=aj,Xae=Math.min,Kae=Math.max,Zae=Math.floor,Qae=Math.ceil,Jae=HF,ele=Math.PI,tle=function(){function e(e,t,n){this.type="parallel",this._axesMap=Bj(),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,o=e.parallelAxisIndex;qae(r,function(e,n){var r=o[n],i=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new Wae(e,v5(i),[0,0],i.get("type"),r)),l="category"===a.type;a.onBand=l&&i.get("boundaryGap"),a.inverse=i.get("inverse"),i.axis=a,a.model=i,a.coordinateSystem=i.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,o=t.pixelDimIndex,i=e[1-o],a=e[o];return i>=n&&i<=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();qae(this.dimensions,function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),m5(t.scale,t.model)},this)}},this)},e.prototype.resize=function(e,t){this._rect=Hq(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"],o=["width","height"],i=t.get("layout"),a="horizontal"===i?0:1,l=n[o[a]],s=[0,l],c=this.dimensions.length,u=nle(t.get("axisExpandWidth"),s),d=nle(t.get("axisExpandCount")||0,[0,c]),p=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&l>0,f=t.get("axisExpandWindow");f?(e=nle(f[1]-f[0],s),f[1]=f[0]+e):(e=nle(u*(d-1),s),(f=[u*(t.get("axisExpandCenter")||Zae(c/2))-e/2])[1]=f[0]+e);var h=(l-e)/(c-d);h<3&&(h=0);var g=[Zae(Jae(f[0]/u,1))+1,Qae(Jae(f[1]/u,1))-1],m=h/u*f[0];return{layout:i,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:l,axisBase:n[r[1-a]],axisLength:n[o[1-a]],axisExpandable:p,axisExpandWidth:u,axisCollapseWidth:h,axisExpandWindow:f,axisCount:c,winInnerIndices:g,axisExpandWindow0Pos:m}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;t.each(function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])}),qae(n,function(t,n){var i=(r.axisExpandable?ole:rle)(n,r),a={horizontal:{x:i.position,y:r.axisLength},vertical:{x:0,y:i.position}},l={horizontal:ele/2,vertical:0},s=[a[o].x+e.x,a[o].y+e.y],c=l[o],u=[1,0,0,1,0,0];QL(u,u,c),ZL(u,u,s),this._axesLayout[t]={position:s,rotation:c,transform:u,axisNameAvailableWidth:i.axisNameAvailableWidth,axisLabelShow:i.axisLabelShow,nameTruncateMaxWidth:i.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 o=this._axesMap,i=this.dimensions,a=[],l=[];aj(i,function(t){a.push(e.mapDimension(t)),l.push(o.get(t).model)});for(var s=this.hasAxisBrushed(),c=n;c<r;c++){var u=void 0;if(s){u="active";for(var d=e.getValues(a,c),p=0,f=i.length;p<f;p++){if("inactive"===l[p].getActiveState(d[p])){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,o=e.length;r<o;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return BJ([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return KR(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),o=r[1]-r[0],i=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,l=e[n]-t.layoutBase-t.axisExpandWindow0Pos,s="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),d=null!=u[0];if(c)d&&c&&l<o*u[0]?(s="jump",a=l-o*u[2]):d&&c&&l>o*(1-u[0])?(s="jump",a=l-o*(1-u[2])):(a=l-o*u[1])>=0&&(a=l-o*(1-u[1]))<=0&&(a=0),(a*=t.axisExpandWidth/c)?Gae(a,r,i,"all"):s="none";else{var p=r[1]-r[0];(r=[Kae(0,i[1]*l/p-p/2)])[1]=Xae(i[1],r[0]+p),r[0]=r[1]-p}return{axisExpandWindow:r,behavior:s}},e}();function nle(e,t){return Xae(Kae(e,t[0]),t[1])}function rle(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function ole(e,t){var n,r,o=t.layoutLength,i=t.axisExpandWidth,a=t.axisCount,l=t.axisCollapseWidth,s=t.winInnerIndices,c=l,u=!1;return e<s[0]?(n=e*l,r=l):e<=s[1]?(n=t.axisExpandWindow0Pos+e*i-t.axisExpandWindow[0],c=i,u=!0):(n=o-(a-1-e)*l,r=l),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:r}}const ile=tle;var ale={create:function(e,t){var n=[];return e.eachComponent("parallel",function(r,o){var i=new ile(r,e,t);i.name="parallel_"+o,i.resize(r,t),r.coordinateSystem=i,i.model=r,n.push(i)}),e.eachSeries(function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",OV).models[0];e.coordinateSystem=t.coordinateSystem}}),n}};const lle=ale;var sle=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return MR(t,e),t.prototype.getAreaSelectStyle=function(){return WV([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=KR(e);if(t)for(var n=t.length-1;n>=0;n--)FF(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,o=t.length;r<o;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(Xq);oj(sle,_5);const cle=sle;var ule=!0,dle=Math.min,ple=Math.max,fle=Math.pow,hle="globalPan",gle={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},mle={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},vle={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},yle=0,ble=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new _F,n._uid="brushController_"+yle++,aj(Ule,function(e,t){this._handlers[t]=pj(e,this)},n),n}return MR(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){Ote(e)[t]=n}(t,hle,this._uid),aj(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=ZR(KR(vle),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=Ote(e);r[t]===n&&(r[t]=null)}(e,hle,this._uid),aj(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};aj(e,function(e){t[e.panelId]=KR(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=lj(e,function(e){return ZR(KR(vle),e,!0)});var t=this._covers,n=this._covers=[],r=this,o=this._creatingCover;return new $4(t,e,function(e,t){return i(e.__brushOption,t)},i).add(a).update(a).remove(function(e){t[e]!==o&&r.group.remove(t[e])}).execute(),this;function i(e,t){return(null!=e.id?e.id:"\0-brush-index-"+t)+"-"+e.brushType}function a(i,a){var l=e[i];if(null!=a&&t[a]===o)n[i]=t[a];else{var s=n[i]=null!=a?(t[a].__brushOption=l,t[a]):wle(r,xle(r,l));_le(r,s)}}},t.prototype.unmount=function(){return this.enableBrush(!1),Ele(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(SL);function xle(e,t){var n=qle[t.brushType].createCover(e,t);return n.__brushOption=t,Cle(n,t),e.group.add(n),n}function wle(e,t){var n=kle(t);return n.endCreating&&(n.endCreating(e,t),Cle(t,t.__brushOption)),t}function Sle(e,t){var n=t.__brushOption;kle(t).updateCoverShape(e,t,n.range,n)}function Cle(e,t){var n=t.z;null==n&&(n=1e4),e.traverse(function(e){e.z=n,e.z2=n})}function _le(e,t){kle(t).updateCommon(e,t),Sle(e,t)}function kle(e){return qle[e.__brushOption.brushType]}function Mle(e,t,n){var r,o=e._panels;if(!o)return ule;var i=e._transform;return aj(o,function(e){e.isTargetByCursor(t,n,i)&&(r=e)}),r}function Ile(e,t){var n=e._panels;if(!n)return ule;var r=t.__brushOption.panelId;return null!=r?n[r]:ule}function Ele(e){var t=e._covers,n=t.length;return aj(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function Ole(e,t){var n=lj(e._covers,function(e){var t=e.__brushOption,n=KR(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function $le(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Tle(e,t,n,r){var o=new _F;return o.add(new jG({name:"main",style:Ale(n),silent:!0,draggable:!0,cursor:"move",drift:fj(Lle,e,t,o,["n","s","w","e"]),ondragend:fj(Ole,t,{isEnd:!0})})),aj(r,function(n){o.add(new jG({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:fj(Lle,e,t,o,n),ondragend:fj(Ole,t,{isEnd:!0})}))}),o}function Ple(e,t,n,r){var o=r.brushStyle.lineWidth||0,i=ple(o,6),a=n[0][0],l=n[1][0],s=a-o/2,c=l-o/2,u=n[0][1],d=n[1][1],p=u-i+o/2,f=d-i+o/2,h=u-a,g=d-l,m=h+o,v=g+o;Nle(e,t,"main",a,l,h,g),r.transformable&&(Nle(e,t,"w",s,c,i,v),Nle(e,t,"e",p,c,i,v),Nle(e,t,"n",s,c,m,i),Nle(e,t,"s",s,f,m,i),Nle(e,t,"nw",s,c,i,i),Nle(e,t,"ne",p,c,i,i),Nle(e,t,"sw",s,f,i,i),Nle(e,t,"se",p,f,i,i))}function Dle(e,t){var n=t.__brushOption,r=n.transformable,o=t.childAt(0);o.useStyle(Ale(n)),o.attr({silent:!r,cursor:r?"move":"default"}),aj([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=t.childOfName(n.join("")),i=1===n.length?jle(e,n[0]):function(e,t){var n=[jle(e,t[0]),jle(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);o&&o.attr({silent:!r,invisible:!r,cursor:r?mle[i]+"-resize":null})})}function Nle(e,t,n,r,o,i,a){var l=t.childOfName(n);l&&l.setShape(function(e){var t=dle(e[0][0],e[1][0]),n=dle(e[0][1],e[1][1]),r=ple(e[0][0],e[1][0]),o=ple(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:o-n}}(Hle(e,t,[[r,o],[r+i,o+a]])))}function Ale(e){return ej({strokeNoScale:!0},e.brushStyle)}function Rle(e,t,n,r){var o=[dle(e,n),dle(t,r)],i=[ple(e,n),ple(t,r)];return[[o[0],i[0]],[o[1],i[1]]]}function jle(e,t){var n=HJ({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return zJ(e.group)}(e));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Lle(e,t,n,r,o,i){var a=n.__brushOption,l=e.toRectRange(a.range),s=Ble(t,o,i);aj(r,function(e){var t=gle[e];l[t[0]][t[1]]+=s[t[0]]}),a.range=e.fromRectRange(Rle(l[0][0],l[1][0],l[0][1],l[1][1])),_le(t,n),Ole(t,{isEnd:!1})}function zle(e,t,n,r){var o=t.__brushOption.range,i=Ble(e,n,r);aj(o,function(e){e[0]+=i[0],e[1]+=i[1]}),_le(e,t),Ole(e,{isEnd:!1})}function Ble(e,t,n){var r=e.group,o=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[o[0]-i[0],o[1]-i[1]]}function Hle(e,t,n){var r=Ile(e,t);return r&&r!==ule?r.clipPath(n,e._transform):KR(n)}function Fle(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Vle(e,t,n){return e.childOfName("main").contain(t,n)}function Wle(e,t,n,r){var o,i=e._creatingCover,a=e._creatingPanel,l=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],o=n[0]-r[0],i=n[1]-r[1];return fle(o*o+i*i,.5)>6}(e)||i){if(a&&!i){"single"===l.brushMode&&Ele(e);var s=KR(l);s.brushType=Gle(s.brushType,a),s.panelId=a===ule?null:a.panelId,i=e._creatingCover=xle(e,s),e._covers.push(i)}if(i){var c=qle[Gle(e._brushType,a)];i.__brushOption.range=c.getCreatingRange(Hle(e,i,e._track)),r&&(wle(e,i),c.updateCommon(e,i)),Sle(e,i),o={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&Mle(e,t,n)&&Ele(e)&&(o={isEnd:r,removeOnClick:!0});return o}function Gle(e,t){return"auto"===e?t.defaultBrushType:e}var Ule={mousedown:function(e){if(this._dragging)Yle(this,e);else if(!e.target||!e.target.draggable){Fle(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=Mle(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,o=e._covers,i=Mle(e,t,n);if(!e._dragging)for(var a=0;a<o.length;a++){var l=o[a].__brushOption;if(i&&(i===ule||l.panelId===i.panelId)&&qle[l.brushType].contain(o[a],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){Fle(e);var o=Wle(this,e,r,!1);o&&Ole(this,o)}},mouseup:function(e){Yle(this,e)}};function Yle(e,t){if(e._dragging){Fle(t);var n=t.offsetX,r=t.offsetY,o=e.group.transformCoordToLocal(n,r),i=Wle(e,t,o,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Ole(e,i)}}var qle={lineX:Xle(0),lineY:Xle(1),rect:{createCover:function(e,t){function n(e){return e}return Tle({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=$le(e);return Rle(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Ple(e,t,n,r)},updateCommon:Dle,contain:Vle},polygon:{createCover:function(e,t){var n=new _F;return n.add(new YQ({name:"main",style:Ale(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new WQ({name:"main",draggable:!0,drift:fj(zle,e,t),ondragend:fj(Ole,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Hle(e,t,n)})},updateCommon:Dle,contain:Vle}};function Xle(e){return{createCover:function(t,n){return Tle({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=$le(t);return[dle(n[0][e],n[1][e]),ple(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,o){var i,a=Ile(t,n);if(a!==ule&&a.getLinearBrushOtherExtent)i=a.getLinearBrushOtherExtent(e);else{var l=t._zr;i=[0,[l.getWidth(),l.getHeight()][1-e]]}var s=[r,i];e&&s.reverse(),Ple(t,n,s,o)},updateCommon:Dle,contain:Vle}}const Kle=ble;function Zle(e){return e=ese(e),function(t){return WJ(t,e)}}function Qle(e,t){return e=ese(e),function(n){var r=null!=t?t:n,o=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(o||0)]}}function Jle(e,t,n){var r=ese(e);return function(e,o){return r.contain(o[0],o[1])&&!zte(e,t,n)}}function ese(e){return fz.create(e)}var tse=["axisLine","axisTickLabel","axisName"],nse=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Kle(n.getZr())).on("brush",pj(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _F,this.group.add(this._axisGroup),e.get("show")){var i=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=i.coordinateSystem,l=e.getAreaSelectStyle(),s=l.width,c=e.axis.dim,u=JR({strokeContainThreshold:s},a.getAxisLayout(c)),d=new Bee(e,u);aj(tse,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(u,l,e,i,s,n),VJ(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,o,i){var a=n.axis.getExtent(),l=a[1]-a[0],s=Math.min(30,.1*Math.abs(l)),c=fz.create({x:a[0],y:-o/2,width:l,height:o});c.x-=s,c.width+=2*s,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Zle(c),isTargetByCursor:Jle(c,i,r),getLinearBrushOtherExtent:Qle(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return lj(e.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,o=lj(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:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(qZ);const rse=nse;var ose={type:"axisAreaSelect",event:"axisAreaSelected"};var ise={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ase(e){e.registerComponentView(Hae),e.registerComponentModel(Fae),e.registerCoordinateSystem("parallel",lle),e.registerPreprocessor(jae),e.registerComponentModel(cle),e.registerComponentView(rse),hee(e,"parallel",cle,ise),function(e){e.registerAction(ose,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)})})}(e)}var lse=function(){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},sse=function(e){function t(t){return e.call(this,t)||this}return MR(t,e),t.prototype.getDefaultShape=function(){return new lse},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(){$U(this)},t.prototype.downplay=function(){TU(this)},t}(SG),cse=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=this,o=e.getGraph(),i=this.group,a=e.layoutInfo,l=a.width,s=a.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,i.removeAll(),i.x=a.x,i.y=a.y,o.eachEdge(function(t){var n=new sse,r=eU(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var o,a,c,p,f,h,g,m,v=t.getModel(),y=v.getModel("lineStyle"),b=y.get("curveness"),x=t.node1.getLayout(),w=t.node1.getModel(),S=w.get("localX"),C=w.get("localY"),_=t.node2.getLayout(),k=t.node2.getModel(),M=k.get("localX"),I=k.get("localY"),E=t.getLayout();n.shape.extent=Math.max(1,E.dy),n.shape.orient=d,"vertical"===d?(o=(null!=S?S*l:x.x)+E.sy,a=(null!=C?C*s:x.y)+x.dy,c=(null!=M?M*l:_.x)+E.ty,f=o,h=a*(1-b)+(p=null!=I?I*s:_.y)*b,g=c,m=a*b+p*(1-b)):(o=(null!=S?S*l:x.x)+x.dx,a=(null!=C?C*s:x.y)+E.sy,f=o*(1-b)+(c=null!=M?M*l:_.x)*b,h=a,g=o*b+c*(1-b),m=p=(null!=I?I*s:_.y)+E.ty),n.setShape({x1:o,y1:a,x2:c,y2:p,cpx1:f,cpy1:h,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),use(n.style,d,t);var O=""+v.get("value"),$=fY(v,"edgeLabel");pY(n,$,{labelFetcher:{getFormattedLabel:function(t,n,r,o,i,a){return e.getFormattedLabel(t,n,"edge",o,Oj(i,$.normal&&$.normal.get("formatter"),O),a)}},labelDataIndex:t.dataIndex,defaultText:O}),n.setTextConfig({position:"inside"});var T=v.getModel("emphasis");qU(n,v,"lineStyle",function(e){var n=e.getItemStyle();return use(n,d,t),n}),i.add(n),u.setItemGraphicEl(t.dataIndex,n);var P=T.get("focus");WU(n,"adjacency"===P?t.getAdjacentDataIndices():"trajectory"===P?t.getTrajectoryDataIndices():P,T.get("blurScope"),T.get("disabled"))}),o.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),o=r.get("localX"),a=r.get("localY"),u=r.getModel("emphasis"),d=r.get(["itemStyle","borderRadius"])||0,p=new jG({shape:{x:null!=o?o*l:n.x,y:null!=a?a*s:n.y,width:n.dx,height:n.dy,r:d},style:r.getModel("itemStyle").getItemStyle(),z2:10});pY(p,fY(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),p.disableLabelAnimation=!0,p.setStyle("fill",t.getVisual("color")),p.setStyle("decal",t.getVisual("style").decal),qU(p,r),i.add(p),c.setItemGraphicEl(t.dataIndex,p),eU(p).dataType="node";var f=u.get("focus");WU(p,"adjacency"===f?t.getAdjacentDataIndices():"trajectory"===f?t.getTrajectoryDataIndices():f,u.get("blurScope"),u.get("disabled"))}),c.eachItemGraphicEl(function(t,o){c.getItemModel(o).get("draggable")&&(t.drift=function(t,i){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(o),localX:this.shape.x/l,localY:this.shape.y/s})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(function(e,t,n){var r=new jG({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return rY(r,{shape:{width:e.width+20}},t,n),r}(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(l0);function use(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"),o=n.node2.getVisual("color");mj(r)&&mj(o)&&(e.fill=new dJ(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:o,offset:1}]))}}const dse=cse;var pse=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var i=this.levelModels,a=0;a<o.length;a++)null!=o[a].depth&&o[a].depth>=0&&(i[o[a].depth]=new RY(o[a],this,t));var l=aae(r,n,this,!0,function(e,t){e.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var o=r.depth,i=n.levelModels[o];i&&(e.parentModel=i)}return e}),t.wrapMethod("getItemModel",function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var o=r.depth,i=n.levelModels[o];i&&(e.parentModel=i)}return e})});return l.data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.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 o=this.getDataParams(e,n),i=o.data,a=o.value;return SZ("nameValue",{name:i.source+" -- "+i.target,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(e).getLayout().value,s=this.getDataParams(e,n).data.name;return SZ("nameValue",{name:null!=s?s+"":null,value:l,noValue:r(l)})},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 o=this.getGraph().getNodeByIndex(t).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}(UZ);const fse=pse;function hse(e,t){e.eachSeriesByType("sankey",function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),o=function(e,t){return Hq(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=o;var i=o.width,a=o.height,l=e.getGraph(),s=l.nodes,c=l.edges;!function(e){aj(e,function(e){var t=_se(e.outEdges,Cse),n=_se(e.inEdges,Cse),r=e.getValue()||0,o=Math.max(t,n,r);e.setLayout({value:o},!0)})}(s);var u=cj(s,function(e){return 0===e.getLayout().value});!function(e,t,n,r,o,i,a,l,s){(function(e,t,n,r,o,i,a){for(var l=[],s=[],c=[],u=[],d=0,p=0;p<t.length;p++)l[p]=1;for(p=0;p<e.length;p++)s[p]=e[p].inEdges.length,0===s[p]&&c.push(e[p]);var f=-1;for(;c.length;){for(var h=0;h<c.length;h++){var g=c[h],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:d},!0),"vertical"===i?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y];l[t.indexOf(b)]=0;var x=b.node2;0===--s[e.indexOf(x)]&&u.indexOf(x)<0&&u.push(x)}}++d,c=u,u=[]}for(p=0;p<l.length;p++)if(1===l[p])throw new Error("Sankey is a DAG, the original data has cycle!");var w=f>d-1?f:d-1;a&&"left"!==a&&function(e,t,n,r){if("right"===t){for(var o=[],i=e,a=0;i.length;){for(var l=0;l<i.length;l++){var s=i[l];s.setLayout({skNodeHeight:a},!0);for(var c=0;c<s.inEdges.length;c++){var u=s.inEdges[c];o.indexOf(u.node1)<0&&o.push(u.node1)}}i=o,o=[],++a}aj(e,function(e){gse(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)})}else"justify"===t&&function(e,t){aj(e,function(e){gse(e)||e.outEdges.length||e.setLayout({depth:t},!0)})}(e,r)}(e,a,0,w);var S="vertical"===i?(o-n)/w:(r-n)/w;!function(e,t,n){aj(e,function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)})}(e,S,i)})(e,t,n,o,i,l,s),function(e,t,n,r,o,i,a){var l=function(e,t){var n=[],r="vertical"===t?"y":"x",o=DV(e,function(e){return e.getLayout()[r]});return o.keys.sort(function(e,t){return e-t}),aj(o.keys,function(e){n.push(o.buckets.get(e))}),n}(e,a);(function(e,t,n,r,o,i){var a=1/0;aj(e,function(e){var t=e.length,l=0;aj(e,function(e){l+=e.getLayout().value});var s="vertical"===i?(r-(t-1)*o)/l:(n-(t-1)*o)/l;s<a&&(a=s)}),aj(e,function(e){aj(e,function(e,t){var n=e.getLayout().value*a;"vertical"===i?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))})}),aj(t,function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)})})(l,t,n,r,o,a),mse(l,o,n,r,a);for(var s=1;i>0;i--)vse(l,s*=.99,a),mse(l,o,n,r,a),kse(l,s,a),mse(l,o,n,r,a)}(e,t,i,o,r,a,l),function(e,t){var n="vertical"===t?"x":"y";aj(e,function(e){e.outEdges.sort(function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]}),e.inEdges.sort(function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]})}),aj(e,function(e){var t=0,n=0;aj(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),aj(e.inEdges,function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy})})}(e,l)}(s,c,n,r,i,a,0!==u.length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})}function gse(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function mse(e,t,n,r,o){var i="vertical"===o?"x":"y";aj(e,function(e){var a,l,s;e.sort(function(e,t){return e.getLayout()[i]-t.getLayout()[i]});for(var c=0,u=e.length,d="vertical"===o?"dx":"dy",p=0;p<u;p++)(s=c-(l=e[p]).getLayout()[i])>0&&(a=l.getLayout()[i]+s,"vertical"===o?l.setLayout({x:a},!0):l.setLayout({y:a},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;if((s=c-t-("vertical"===o?r:n))>0){a=l.getLayout()[i]-s,"vertical"===o?l.setLayout({x:a},!0):l.setLayout({y:a},!0),c=a;for(p=u-2;p>=0;--p)(s=(l=e[p]).getLayout()[i]+l.getLayout()[d]+t-c)>0&&(a=l.getLayout()[i]-s,"vertical"===o?l.setLayout({x:a},!0):l.setLayout({y:a},!0)),c=l.getLayout()[i]}})}function vse(e,t,n){aj(e.slice().reverse(),function(e){aj(e,function(e){if(e.outEdges.length){var r=_se(e.outEdges,yse,n)/_se(e.outEdges,Cse);if(isNaN(r)){var o=e.outEdges.length;r=o?_se(e.outEdges,bse,n)/o:0}if("vertical"===n){var i=e.getLayout().x+(r-Sse(e,n))*t;e.setLayout({x:i},!0)}else{var a=e.getLayout().y+(r-Sse(e,n))*t;e.setLayout({y:a},!0)}}})})}function yse(e,t){return Sse(e.node2,t)*e.getValue()}function bse(e,t){return Sse(e.node2,t)}function xse(e,t){return Sse(e.node1,t)*e.getValue()}function wse(e,t){return Sse(e.node1,t)}function Sse(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function Cse(e){return e.getValue()}function _se(e,t,n){for(var r=0,o=e.length,i=-1;++i<o;){var a=+t(e[i],n);isNaN(a)||(r+=a)}return r}function kse(e,t,n){aj(e,function(e){aj(e,function(e){if(e.inEdges.length){var r=_se(e.inEdges,xse,n)/_se(e.inEdges,Cse);if(isNaN(r)){var o=e.inEdges.length;r=o?_se(e.inEdges,wse,n)/o:0}if("vertical"===n){var i=e.getLayout().x+(r-Sse(e,n))*t;e.setLayout({x:i},!0)}else{var a=e.getLayout().y+(r-Sse(e,n))*t;e.setLayout({y:a},!0)}}})})}function Mse(e){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,r=t.edges;if(n.length){var o=1/0,i=-1/0;aj(n,function(e){var t=e.getLayout().value;t<o&&(o=t),t>i&&(i=t)}),aj(n,function(t){var n=new Doe({type:"color",mappingMethod:"linear",dataExtent:[o,i],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),r=t.getModel().get(["itemStyle","color"]);null!=r?(t.setVisual("color",r),t.setVisual("style",{fill:r})):(t.setVisual("color",n),t.setVisual("style",{fill:n}))})}r.length&&aj(r,function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)})})}var Ise=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,o=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),l=i.get("type");"category"===a?(e.layout="horizontal",n=o.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===l?(e.layout="vertical",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var s=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=s[c],d=s[1-c],p=[o,i],f=p[c].get("type"),h=p[1-c].get("type"),g=e.data;if(g&&r){var m=[];aj(g,function(e,t){var n;hj(e)?(n=e.slice(),e.unshift(t)):hj(e.value)?((n=JR({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)}),e.data=m}var v=this.defaultValueDimensions,y=[{name:u,type:D4(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:D4(h),dimsDef:v.slice()}];return Y9(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:fj(uX,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),Ese=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 MR(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}(UZ);oj(Ese,Ise,!0);const Ose=Ese;var $se=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this.group,i=this._data;this._data||o.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(i).add(function(e){if(r.hasValue(e)){var t=Dse(r.getItemLayout(e),r,e,a,!0);r.setItemGraphicEl(e,t),o.add(t)}}).update(function(e,t){var n=i.getItemGraphicEl(t);if(r.hasValue(e)){var l=r.getItemLayout(e);n?(sY(n),Nse(l,n,r,e)):n=Dse(l,r,e,a),o.add(n),r.setItemGraphicEl(e,n)}else o.remove(n)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&o.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}(l0),Tse=function(){},Pse=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new Tse},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();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(SG);function Dse(e,t,n,r,o){var i=e.ends,a=new Pse({shape:{points:o?Ase(i,r,e):i}});return Nse(e,a,t,n,o),a}function Nse(e,t,n,r,o){var i=n.hostModel;(0,l[o?"initProps":"updateProps"])(t,{shape:{points:e.ends}},i,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(r),s=a.getModel("emphasis");qU(t,a),WU(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Ase(e,t,n){return lj(e,function(e){return(e=e.slice())[t]=n.initBaseline,e})}const Rse=$se;var jse=aj;function Lse(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(e){var r=e.getBaseAxis(),o=nj(n,r);o<0&&(o=n.length,n[o]=r,t[o]={axis:r,seriesModels:[]}),t[o].seriesModels.push(e)}),t}(e);jse(t,function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,r=e.seriesModels,o=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],l=[];if("category"===n.type)t=n.getBandWidth();else{var s=0;jse(r,function(e){s=Math.max(s,e.getData().count())});var c=n.getExtent();t=Math.abs(c[1]-c[0])/s}jse(r,function(e){var n=e.get("boxWidth");hj(n)||(n=[n,n]),l.push([BF(n[0],t)||0,BF(n[1],t)||0])});var u=.8*t-2,d=u/o*.3,p=(u-d*(o-1))/o,f=p/2-u/2;jse(r,function(e,t){a.push(f),f+=d+p,i.push(Math.min(Math.max(p,l[t][0]),l[t][1]))})}(e),jse(t,function(t,n){!function(e,t,n){var r=e.coordinateSystem,o=e.getData(),i=n/2,a="horizontal"===e.get("layout")?0:1,l=1-a,s=["x","y"],c=o.mapDimension(s[a]),u=o.mapDimensionsAll(s[l]);if(null==c||u.length<5)return;for(var d=0;d<o.count();d++){var p=o.get(c,d),f=b(p,u[2],d),h=b(p,u[0],d),g=b(p,u[1],d),m=b(p,u[3],d),v=b(p,u[4],d),y=[];x(y,g,!1),x(y,m,!0),y.push(h,g,v,m),w(y,h),w(y,v),w(y,f),o.setItemLayout(d,{initBaseline:f[l],ends:y})}function b(e,n,i){var s,c=o.get(n,i),u=[];return u[a]=e,u[l]=c,isNaN(e)||isNaN(c)?s=[NaN,NaN]:(s=r.dataToPoint(u))[a]+=t,s}function x(e,t,n){var r=t.slice(),o=t.slice();r[a]+=i,o[a]-=i,n?e.push(r,o):e.push(o,r)}function w(e,t){var n=t.slice(),r=t.slice();n[a]-=i,r[a]+=i,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])}))})}var zse={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==tX){0,LK("")}var n=function(e,t){for(var n=[],r=[],o=(t=t||{}).boundIQR,i="none"===o||0===o,a=0;a<e.length;a++){var l=FF(e[a].slice()),s=rV(l,.25),c=rV(l,.5),u=rV(l,.75),d=l[0],p=l[l.length-1],f=(null==o?1.5:o)*(u-s),h=i?d:Math.max(d,s-f),g=i?p:Math.min(p,u+f),m=t.itemNameFormatter,v=gj(m)?m({value:a}):mj(m)?m.replace("{value}",a+""):a+"";n.push([v,h,s,c,u,g]);for(var y=0;y<l.length;y++){var b=l[y];if(b<h||b>g){var x=[v,b];r.push(x)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var Bse=["itemStyle","borderColor"],Hse=["itemStyle","borderColor0"],Fse=["itemStyle","borderColorDoji"],Vse=["itemStyle","color"],Wse=["itemStyle","color0"];function Gse(e,t){return t.get(e>0?Vse:Wse)}function Use(e,t){return t.get(0===e?Fse:e>0?Bse:Hse)}var Yse={seriesType:"candlestick",plan:XZ(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;null!=(n=e.next());){var r=t.getItemModel(n),o=t.getItemLayout(n).sign,i=r.getItemStyle();i.fill=Gse(o,r),i.stroke=Use(o,r)||i.fill,JR(t.ensureUniqueItemVisual(n,"style"),i)}}}}};const qse=Yse;var Xse=["color","borderColor"],Kse=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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){QJ(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,o=t.getLayout("isSimpleBox"),i=e.get("clip",!0),a=e.coordinateSystem,l=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add(function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(i&&ece(l,a))return;var s=Jse(a,n,!0);rY(s,{shape:{points:a.ends}},e,n),tce(s,t,n,o),r.add(s),t.setItemGraphicEl(n,s)}}).update(function(a,s){var c=n.getItemGraphicEl(s);if(t.hasValue(a)){var u=t.getItemLayout(a);i&&ece(l,u)?r.remove(c):(c?(nY(c,{shape:{points:u.ends}},e,a),sY(c)):c=Jse(u,a),tce(c,t,a,o),r.add(c),t.setItemGraphicEl(a,c))}else r.remove(c)}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),ice(e,this.group);var t=e.get("clip",!0)?L7(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,r=t.getData(),o=r.getLayout("isSimpleBox");null!=(n=e.next());){var i=Jse(r.getItemLayout(n),n);tce(i,r,n,o),i.incremental=!0,this.group.add(i),this._progressiveEls.push(i)}},t.prototype._incrementalRenderLarge=function(e,t){ice(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}(l0),Zse=function(){},Qse=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new Zse},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}(SG);function Jse(e,t,n){var r=e.ends;return new Qse({shape:{points:n?nce(r,e):r},z2:100})}function ece(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function tce(e,t,n,r){var o=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,qU(e,o);var i=t.getItemLayout(n).sign;aj(e.states,function(e,t){var n=o.getModel(t),r=Gse(i,n),a=Use(i,n)||r,l=e.style||(e.style={});r&&(l.fill=r),a&&(l.stroke=a)});var a=o.getModel("emphasis");WU(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function nce(e,t){return lj(e,function(e){return(e=e.slice())[1]=t.initBaseline,e})}var rce=function(){},oce=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return MR(t,e),t.prototype.getDefaultShape=function(){return new rce},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var o=n[r++];e.moveTo(o,n[r++]),e.lineTo(o,n[r++])}else r+=3},t}(SG);function ice(e,t,n,r){var o=e.getData(),i=o.getLayout("largePoints"),a=new oce({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(a);var l=new oce({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(l);var s=new oce({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(s),ace(1,a,e,o),ace(-1,l,e,o),ace(0,s,e,o),r&&(a.incremental=!0,l.incremental=!0),n&&n.push(a,l)}function ace(e,t,n,r){var o=Use(e,n)||Gse(e,n),i=n.getModel("itemStyle").getItemStyle(Xse);t.useStyle(i),t.style.fill=null,t.style.stroke=o}const lce=Kse;var sce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return MR(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(UZ);oj(sce,Ise,!0);const cce=sce;function uce(e){e&&hj(e.series)&&aj(e.series,function(e){bj(e)&&"k"===e.type&&(e.type="candlestick")})}var dce={seriesType:"candlestick",plan:XZ(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=function(e,t){var n,r=e.getBaseAxis(),o="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),i=BF(Ej(e.get("barMaxWidth"),o),o),a=BF(Ej(e.get("barMinWidth"),1),o),l=e.get("barWidth");return null!=l?BF(l,o):Math.max(Math.min(o/2,i),a)}(e,n),o=["x","y"],i=n.getDimensionIndex(n.mapDimension(o[0])),a=lj(n.mapDimensionsAll(o[1]),n.getDimensionIndex,n),l=a[0],s=a[1],c=a[2],u=a[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(i<0||a.length<4))return{progress:e.pipelineContext.large?function(n,r){var o,a,d=D3(4*n.count),p=0,f=[],h=[],g=r.getStore(),m=!!e.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(i,a),y=g.get(l,a),b=g.get(s,a),x=g.get(c,a),w=g.get(u,a);isNaN(v)||isNaN(x)||isNaN(w)?(d[p++]=NaN,p+=3):(d[p++]=pce(g,a,y,b,s,m),f[0]=v,f[1]=x,o=t.dataToPoint(f,null,h),d[p++]=o?o[0]:NaN,d[p++]=o?o[1]:NaN,f[1]=w,o=t.dataToPoint(f,null,h),d[p++]=o?o[1]:NaN)}r.setLayout("largePoints",d)}:function(e,n){var o,a=n.getStore();for(;null!=(o=e.next());){var d=a.get(i,o),p=a.get(l,o),f=a.get(s,o),h=a.get(c,o),g=a.get(u,o),m=Math.min(p,f),v=Math.max(p,f),y=_(m,d),b=_(v,d),x=_(h,d),w=_(g,d),S=[];k(S,b,0),k(S,y,1),S.push(I(w),I(b),I(x),I(y));var C=!!n.getItemModel(o).get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:pce(a,o,p,f,s,C),initBaseline:p>f?b[1]:y[1],ends:S,brushRect:M(h,g,d)})}function _(e,n){var r=[];return r[0]=n,r[1]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function k(e,t,n){var o=t.slice(),i=t.slice();o[0]=LJ(o[0]+r/2,1,!1),i[0]=LJ(i[0]-r/2,1,!0),n?e.push(o,i):e.push(i,o)}function M(e,t,n){var o=_(e,n),i=_(t,n);return o[0]-=r/2,i[0]-=r/2,{x:o[0],y:o[1],width:r,height:i[1]-o[1]}}function I(e){return e[0]=LJ(e[0],1),e}}}}};function pce(e,t,n,r,o,i){return n>r?-1:n<r?1:i?0:t>0?e.get(o,t-1)<=r?1:-1:1}const fce=dce;function hce(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 gce=function(e){function t(t,n){var r=e.call(this)||this,o=new x7(t,n),i=new _F;return r.add(o),r.add(i),r.updateData(t,n),r}return MR(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,o=this.childAt(1),i=0;i<r;i++){var a=m1(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var l=-i/r*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(l).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),o.add(a)}hce(o,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],o=0;o<r.length;o++){var i=r[o];if(t[i]!==e[i])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}hce(n,e)},t.prototype.highlight=function(){$U(this)},t.prototype.downplay=function(){TU(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var o=this.childAt(1),i=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),l=v1(e.getItemVisual(t,"symbolSize")),s=e.getItemVisual(t,"style"),c=s&&s.fill,u=i.getModel("emphasis");o.setScale(l),o.traverse(function(e){e.setStyle("fill",c)});var d=y1(e.getItemVisual(t,"symbolOffset"),l);d&&(o.x=d[0],o.y=d[1]);var p=e.getItemVisual(t,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get("showEffectOn"),f.rippleScale=i.get(["rippleEffect","scale"]),f.brushType=i.get(["rippleEffect","brushType"]),f.period=1e3*i.get(["rippleEffect","period"]),f.effectOffset=t/e.count(),f.z=r.getShallow("z")||0,f.zlevel=r.getShallow("zlevel")||0,f.symbolType=a,f.color=c,f.rippleEffectColor=i.get(["rippleEffect","color"]),f.rippleNumber=i.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===e&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,WU(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(_F);const mce=gce;var vce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(){this._symbolDraw=new k7(mce)},t.prototype.render=function(e,t,n){var r=e.getData(),o=this._symbolDraw;o.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var o=J7("").reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=tz(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(l0);const yce=vce;var bce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return MR(t,e),t.prototype.getInitialData=function(e,t){return d3(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(UZ);const xce=bce;var wce=function(e){function t(t,n,r){var o=e.call(this)||this;return o.add(o.createLine(t,n,r)),o._updateEffectSymbol(t,n),o}return MR(t,e),t.prototype.createLine=function(e,t,n){return new jie(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),o=n.get("symbol");hj(r)||(r=[r,r]);var i=e.getItemVisual(t,"style"),a=n.get("color")||i&&i.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),(l=m1(o,-.5,-.5,1,1,a)).z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",a),l.setStyle(n.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(a),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var o=e.getItemLayout(n),i=1e3*t.get("period"),a=t.get("loop"),l=t.get("roundTrip"),s=t.get("constantSpeed"),c=Ij(t.get("delay"),function(t){return t/e.count()*i/3});if(r.ignore=!0,this._updateAnimationPoints(r,o),s>0&&(i=this._getLineLength(r)/s*1e3),i!==this._period||a!==this._loop||l!==this._roundTrip){r.stopAnimation();var u=void 0;u=gj(c)?c(n):c,r.__t>0&&(u=-i*r.__t),this._animateSymbol(r,i,u,a,l)}this._period=i,this._loop=a,this._roundTrip=l}},t.prototype._animateSymbol=function(e,t,n,r,o){if(t>0){e.__t=0;var i=this,a=e.animate("",r).when(o?2*t:t,{__t:o?2:1}).delay(n).during(function(){i._updateSymbolPosition(e)});r||a.done(function(){i.remove(e)}),a.start()}},t.prototype._getLineLength=function(e){return uL(e.__p1,e.__cp1)+uL(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,o=e.__t<1?e.__t:2-e.__t,i=[e.x,e.y],a=i.slice(),l=iB,s=aB;i[0]=l(t[0],r[0],n[0],o),i[1]=l(t[1],r[1],n[1],o);var c=e.__t<1?s(t[0],r[0],n[0],o):s(n[0],r[0],t[0],1-o),u=e.__t<1?s(t[1],r[1],n[1],o):s(n[1],r[1],t[1],1-o);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*uL(a,i),1===o&&(i[0]=a[0]+(i[0]-a[0])/2,i[1]=a[1]+(i[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*uL(t,i):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=i[0],e.y=i[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(_F);const Sce=wce;var Cce=function(e){function t(t,n,r){var o=e.call(this)||this;return o._createPolyline(t,n,r),o}return MR(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),o=new YQ({shape:{points:r}});this.add(o),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;nY(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),o=e.getItemModel(t),i=n&&n.emphasisLineStyle,a=n&&n.focus,l=n&&n.blurScope,s=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=o.getModel("emphasis");i=c.getModel("lineStyle").getLineStyle(),s=c.get("disabled"),a=c.get("focus"),l=c.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=i,WU(this,a,l,s)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(_F);const _ce=Cce;var kce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return MR(t,e),t.prototype.createLine=function(e,t,n){return new _ce(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,o=1;o<t.length;o++){var i=t[o-1],a=t[o];r+=uL(i,a),n.push(r)}if(0!==r){for(o=0;o<n.length;o++)n[o]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,o=n.length;if(r){var i,a=this._lastFrame;if(t<this._lastFramePercent){for(i=Math.min(a+1,o-1);i>=0&&!(r[i]<=t);i--);i=Math.min(i,o-2)}else{for(i=a;i<o&&!(r[i]>t);i++);i=Math.min(i-1,o-2)}var l=(t-r[i])/(r[i+1]-r[i]),s=n[i],c=n[i+1];e.x=s[0]*(1-l)+l*c[0],e.y=s[1]*(1-l)+l*c[1];var u=e.__t<1?c[0]-s[0]:s[0]-c[0],d=e.__t<1?c[1]-s[1]:s[1]-c[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=i,this._lastFramePercent=t,e.ignore=!1}},t}(Sce);const Mce=kce;var Ice=function(){this.polyline=!1,this.curveness=0,this.segs=[]},Ece=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return MR(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 Ice},t.prototype.buildPath=function(e,t){var n,r=t.segs,o=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var i=r[n++];if(i>0){e.moveTo(r[n++],r[n++]);for(var a=1;a<i;a++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var l=r[n++],s=r[n++],c=r[n++],u=r[n++];if(e.moveTo(l,s),o>0){var d=(l+c)/2-(s-u)*o,p=(s+u)/2-(c-l)*o;e.quadraticCurveTo(d,p,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,o=n.curveness,i=this.style.lineWidth;if(n.polyline)for(var a=0,l=0;l<r.length;){var s=r[l++];if(s>0)for(var c=r[l++],u=r[l++],d=1;d<s;d++){if(tG(c,u,p=r[l++],f=r[l++],i,e,t))return a}a++}else for(a=0,l=0;l<r.length;){c=r[l++],u=r[l++];var p=r[l++],f=r[l++];if(o>0){if(rG(c,u,(c+p)/2-(u-f)*o,(u+f)/2-(p-c)*o,p,f,i,e,t))return a}else if(tG(c,u,p,f,i,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<t.length;){var l=t[a++],s=t[a++];n=Math.min(l,n),o=Math.max(l,o),r=Math.min(s,r),i=Math.max(s,i)}e=this._rect=new fz(n,r,o,i)}return e},t}(SG),Oce=function(){function e(){this.group=new _F}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var i=o.length,a=new Float32Array(i+r.length);a.set(o),a.set(r,i),n.setShape({segs:a})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:r}),this._setCommon(l,t),l.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Ece({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=t.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var i=eU(e);i.seriesIndex=r.seriesIndex,e.on("mousemove",function(t){i.dataIndex=null;var n=e.hoverDataIdx;n>0&&(i.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const $ce=Oce;var Tce={seriesType:"lines",plan:XZ(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(o,i){var a=[];if(r){var l=void 0,s=o.end-o.start;if(n){for(var c=0,u=o.start;u<o.end;u++)c+=e.getLineCoordsCount(u);l=new Float32Array(s+2*c)}else l=new Float32Array(4*s);var d=0,p=[];for(u=o.start;u<o.end;u++){var f=e.getLineCoords(u,a);n&&(l[d++]=f);for(var h=0;h<f;h++)p=t.dataToPoint(a[h],!1,p),l[d++]=p[0],l[d++]=p[1]}i.setLayout("linesPoints",l)}else for(u=o.start;u<o.end;u++){var g=i.getItemModel(u),m=(f=e.getLineCoords(u,a),[]);if(n)for(var v=0;v<f;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}i.setItemLayout(u,m)}}}}}};const Pce=Tce;var Dce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this._updateLineDraw(r,e),i=e.get("zlevel"),a=e.get(["effect","trailLength"]),l=n.getZr(),s="svg"===l.painter.getType();s||l.painter.getLayer(i).clear(!0),null==this._lastZlevel||s||l.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(s||l.configLayer(i,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(r);var c=e.get("clip",!0)&&L7(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=i,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).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(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var i=Pce.reset(e,t,n);i.progress&&i.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),o=!!t.get("polyline"),i=t.pipelineContext.large;return n&&r===this._hasEffet&&o===this._isPolyline&&i===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=i?new $ce:new Fie(o?r?Mce:_ce:r?Sce:jie),this._hasEffet=r,this._isPolyline=o,this._isLargeDraw=i),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();"svg"===t.painter.getType()||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}(l0);const Nce=Dce;var Ace="undefined"===typeof Uint32Array?Array:Uint32Array,Rce="undefined"===typeof Float64Array?Array:Float64Array;function jce(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=lj(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),QR([t,e[0],e[1]])}))}var Lce=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 MR(t,e),t.prototype.init=function(t){t.data=t.data||[],jce(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(jce(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=Hj(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Hj(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);return t.option instanceof Array?t.option:t.getShallow("coords")},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],o=0;o<r;o++)t[o]=t[o]||[],t[o][0]=this._flatCoords[n+2*o],t[o][1]=this._flatCoords[n+2*o+1];return r}var i=this._getCoordsFromItemModel(e);for(o=0;o<i.length;o++)t[o]=t[o]||[],t[o][0]=i[o][0],t[o][1]=i[o][1];return i.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),yj(e[0])){for(var n=e.length,r=new Ace(n),o=new Rce(n),i=0,a=0,l=0,s=0;s<n;){l++;var c=e[s++];r[a++]=i+t,r[a++]=c;for(var u=0;u<c;u++){var d=e[s++],p=e[s++];o[i++]=d,o[i++]=p}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:o,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new t3(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,o){if(e instanceof Array)return NaN;n.hasItemOption=!0;var i=e.value;return null!=i?i instanceof Array?i[o]:i:void 0}),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),o=r.get("name");if(o)return o;var i=r.get("fromName"),a=r.get("toName"),l=[];return null!=i&&l.push(i),null!=a&&l.push(a),SZ("nameValue",{name:l.join(" > ")})},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}(UZ);const zce=Lce;function Bce(e){return e instanceof Array||(e=[e,e]),e}var Hce={seriesType:"lines",reset:function(e){var t=Bce(e.get("symbol")),n=Bce(e.get("symbolSize")),r=e.getData();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?function(e,t){var n=e.getItemModel(t),r=Bce(n.getShallow("symbol",!0)),o=Bce(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),o[0]&&e.setItemVisual(t,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(t,"toSymbolSize",o[1])}:null}}};const Fce=Hce;var Vce=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=NR.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,o,i){var a=this._getBrush(),l=this._getGradient(o,"inRange"),s=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),p=e.length;u.width=t,u.height=n;for(var f=0;f<p;++f){var h=e[f],g=h[0],m=h[1],v=r(h[2]);d.globalAlpha=v,d.drawImage(a,g-c,m-c)}if(!u.width||!u.height)return u;for(var y=d.getImageData(0,0,u.width,u.height),b=y.data,x=0,w=b.length,S=this.minOpacity,C=this.maxOpacity-S;x<w;){v=b[x+3]/256;var _=4*Math.floor(255*v);if(v>0){var k=i(v)?l:s;v>0&&(v=v*C+S),b[x++]=k[_],b[x++]=k[_+1],b[x++]=k[_+2],b[x++]=k[_+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=NR.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)),o=[0,0,0,0],i=0,a=0;a<256;a++)e[t](a/255,!0,o),r[i++]=o[0],r[i++]=o[1],r[i++]=o[2],r[i++]=o[3];return r},e}();const Wce=Vce;function Gce(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Uce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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 o=e.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Gce(o)&&this._renderOnGeo(o,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var o=t.coordinateSystem;o&&(Gce(o)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){QJ(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,o){var i,a,l,s,c=e.coordinateSystem,u=z7(c,"cartesian2d");if(u){var d=c.getAxis("x"),p=c.getAxis("y");0,i=d.getBandWidth()+.5,a=p.getBandWidth()+.5,l=d.scale.getExtent(),s=p.scale.getExtent()}for(var f=this.group,h=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=fY(e),x=e.getModel("emphasis"),w=x.get("focus"),S=x.get("blurScope"),C=x.get("disabled"),_=u?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],k=n;k<r;k++){var M=void 0,I=h.getItemVisual(k,"style");if(u){var E=h.get(_[0],k),O=h.get(_[1],k);if(isNaN(h.get(_[2],k))||isNaN(E)||isNaN(O)||E<l[0]||E>l[1]||O<s[0]||O>s[1])continue;var $=c.dataToPoint([E,O]);M=new jG({shape:{x:$[0]-i/2,y:$[1]-a/2,width:i,height:a},style:I})}else{if(isNaN(h.get(_[1],k)))continue;M=new jG({z2:1,shape:c.dataToRect([h.get(_[0],k)]).contentShape,style:I})}if(h.hasItemOption){var T=h.getItemModel(k),P=T.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),v=T.getModel(["select","itemStyle"]).getItemStyle(),y=T.get(["itemStyle","borderRadius"]),w=P.get("focus"),S=P.get("blurScope"),C=P.get("disabled"),b=fY(T)}M.shape.r=y;var D=e.getRawValue(k),N="-";D&&null!=D[2]&&(N=D[2]+""),pY(M,b,{labelFetcher:e,labelDataIndex:k,defaultOpacity:I.opacity,defaultText:N}),M.ensureState("emphasis").style=g,M.ensureState("blur").style=m,M.ensureState("select").style=v,WU(M,w,S,C),M.incremental=o,o&&(M.states.emphasis.hoverLayer=!0),f.add(M),h.setItemGraphicEl(k,M),this._progressiveEls&&this._progressiveEls.push(M)}},t.prototype._renderOnGeo=function(e,t,n,r){var o=n.targetVisuals.inRange,i=n.targetVisuals.outOfRange,a=t.getData(),l=this._hmLayer||this._hmLayer||new Wce;l.blurSize=t.get("blurSize"),l.pointSize=t.get("pointSize"),l.minOpacity=t.get("minOpacity"),l.maxOpacity=t.get("maxOpacity");var s=e.getViewRect().clone(),c=e.getRoamTransform();s.applyTransform(c);var u=Math.max(s.x,0),d=Math.max(s.y,0),p=Math.min(s.width+s.x,r.getWidth()),f=Math.min(s.height+s.y,r.getHeight()),h=p-u,g=f-d,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,function(t,n,r){var o=e.dataToPoint([t,n]);return o[0]-=u,o[1]-=d,o.push(r),o}),y=n.getExtent(),b="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(y,n.option.range):function(e,t,n){var r=e[1]-e[0],o=(t=lj(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}})).length,i=0;return function(e){var r;for(r=i;r<o;r++)if((a=t[r].interval)[0]<=e&&e<=a[1]){i=r;break}if(r===o)for(r=i-1;r>=0;r--){var a;if((a=t[r].interval)[0]<=e&&e<=a[1]){i=r;break}}return r>=0&&r<o&&n[r]}}(y,n.getPieceList(),n.option.selected);l.update(v,h,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:i.color.getColorMapper()},b);var x=new OG({style:{width:h,height:g,x:u,y:d,image:l.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(l0);const Yce=Uce;const qce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.getInitialData=function(e,t){return d3(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=NX.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}(UZ);var Xce=["itemStyle","borderWidth"],Kce=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Zce=new yQ,Qce=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=this.group,o=e.getData(),i=this._data,a=e.coordinateSystem,l=a.getBaseAxis().isHorizontal(),s=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[s.x,s.x+s.width],[s.y,s.y+s.height]],isHorizontal:l,valueDim:Kce[+l],categoryDim:Kce[1-+l]};o.diff(i).add(function(e){if(o.hasValue(e)){var t=aue(o,e),n=Jce(o,e,t,c),i=cue(o,c,n);o.setItemGraphicEl(e,i),r.add(i),hue(i,c,n)}}).update(function(e,t){var n=i.getItemGraphicEl(t);if(o.hasValue(e)){var a=aue(o,e),l=Jce(o,e,a,c),s=due(o,l);n&&s!==n.__pictorialShapeStr&&(r.remove(n),o.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,o=n.dataIndex,i=e.__pictorialBundle;nY(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,o),n.symbolRepeat?nue(e,t,n,!0):rue(e,t,n,!0);oue(e,n,!0),iue(e,t,n,!0)}(n,c,l):n=cue(o,c,l,!0),o.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=l,r.add(n),hue(n,c,l)}else r.remove(n)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&uue(i,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get("clip",!0)?L7(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl(function(t){uue(r,eU(t).dataIndex,e,t)}):n.removeAll()},t.type="pictorialBar",t}(l0);function Jce(e,t,n,r){var o=e.getItemLayout(t),i=n.get("symbolRepeat"),a=n.get("symbolClip"),l=n.get("symbolPosition")||"start",s=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:s,animationModel:u?n:null,hoverScale:u&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,r,o){var i,a=r.valueDim,l=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[a.wh]<=0);if(hj(l)){var d=[eue(s,l[0])-c,eue(s,l[1])-c];d[1]<d[0]&&d.reverse(),i=d[u]}else i=null!=l?eue(s,l)-c:t?r.coordSysExtent[a.index][u]-c:n[a.wh];o.boundingLength=i,t&&(o.repeatCutLength=n[a.wh]);var p="x"===a.xy,f=s.inverse;o.pxSign=p&&!f||!p&&f?i>=0?1:-1:i>0?1:-1}(n,i,o,r,d),function(e,t,n,r,o,i,a,l,s,c){var u,d=s.valueDim,p=s.categoryDim,f=Math.abs(n[p.wh]),h=e.getItemVisual(t,"symbolSize");u=hj(h)?h.slice():null==h?["100%","100%"]:[h,h];u[p.index]=BF(u[p.index],f),u[d.index]=BF(u[d.index],r?f:Math.abs(i)),c.symbolSize=u;var g=c.symbolScale=[u[0]/l,u[1]/l];g[d.index]*=(s.isHorizontal?-1:1)*a}(e,t,o,i,0,d.boundingLength,d.pxSign,c,r,d),function(e,t,n,r,o){var i=e.get(Xce)||0;i&&(Zce.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Zce.updateTransform(),i/=Zce.getLineScale(),i*=t[r.valueDim.index]);o.valueLineWidth=i||0}(n,d.symbolScale,s,r,d);var p=d.symbolSize,f=y1(n.get("symbolOffset"),p);return function(e,t,n,r,o,i,a,l,s,c,u,d){var p=u.categoryDim,f=u.valueDim,h=d.pxSign,g=Math.max(t[f.index]+l,0),m=g;if(r){var v=Math.abs(s),y=Ij(e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var x=BF(y,t[f.index]),w=Math.max(g+2*x,0),S=b?0:2*x,C=aV(r),_=C?r:gue((v+S)/w);w=g+2*(x=(v-_*g)/2/(b?_:Math.max(_-1,1))),S=b?0:2*x,C||"fixed"===r||(_=c?gue((Math.abs(c)+S)/w):0),m=_*w-S,d.repeatTimes=_,d.symbolMargin=x}var k=h*(m/2),M=d.pathPosition=[];M[p.index]=n[p.wh]/2,M[f.index]="start"===a?k:"end"===a?s-k:s/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=d.bundlePosition=[];I[p.index]=n[p.xy],I[f.index]=n[f.xy];var E=d.barRectShape=JR({},n);E[f.wh]=h*Math.max(Math.abs(n[f.wh]),Math.abs(M[f.index]+k)),E[p.wh]=n[p.wh];var O=d.clipShape={};O[p.xy]=-n[p.xy],O[p.wh]=u.ecSize[p.wh],O[f.xy]=0,O[f.wh]=n[f.wh]}(n,p,o,i,0,f,l,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function eue(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function tue(e){var t=e.symbolPatternSize,n=m1(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function nue(e,t,n,r){var o=e.__pictorialBundle,i=n.symbolSize,a=n.valueLineWidth,l=n.pathPosition,s=t.valueDim,c=n.repeatTimes||0,u=0,d=i[t.valueDim.index]+a+2*n.symbolMargin;for(pue(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?fue(e,null,h(u),n,r):fue(e,null,{scaleX:0,scaleY:0},n,r,function(){o.remove(e)}),u++});u<c;u++){var p=tue(n);p.__pictorialAnimationIndex=u,p.__pictorialRepeatTimes=c,o.add(p);var f=h(u);fue(p,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,r)}function h(e){var t=l.slice(),r=n.pxSign,o=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(o=c-1-e),t[s.index]=d*(o-c/2+.5)+l[s.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function rue(e,t,n,r){var o=e.__pictorialBundle,i=e.__pictorialMainPath;i?fue(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=tue(n),o.add(i),fue(i,{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 oue(e,t,n){var r=JR({},t.barRectShape),o=e.__pictorialBarRect;o?fue(o,null,{shape:r},t,n):((o=e.__pictorialBarRect=new jG({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(o))}function iue(e,t,n,r){if(n.symbolClip){var o=e.__pictorialClipPath,i=JR({},n.clipShape),a=t.valueDim,s=n.animationModel,c=n.dataIndex;if(o)nY(o,{shape:i},s,c);else{i[a.wh]=0,o=new jG({shape:i}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var u={};u[a.wh]=n.clipShape[a.wh],l[r?"updateProps":"initProps"](o,{shape:u},s,c)}}}function aue(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=lue,n.isAnimationEnabled=sue,n}function lue(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function sue(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function cue(e,t,n,r){var o=new _F,i=new _F;return o.add(i),o.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?nue(o,t,n):rue(o,0,n),oue(o,n,r),iue(o,t,n,r),o.__pictorialShapeStr=due(e,n),o.__pictorialSymbolMeta=n,o}function uue(e,t,n,r){var o=r.__pictorialBarRect;o&&o.removeTextContent();var i=[];pue(r,function(e){i.push(e)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),aj(i,function(e){iY(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function due(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function pue(e,t,n){aj(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function fue(e,t,n,r,o,i){t&&e.attr(t),r.symbolClip&&!o?n&&e.attr(n):n&&l[o?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function hue(e,t,n){var r=n.dataIndex,o=n.itemModel,i=o.getModel("emphasis"),a=i.getModel("itemStyle").getItemStyle(),l=o.getModel(["blur","itemStyle"]).getItemStyle(),s=o.getModel(["select","itemStyle"]).getItemStyle(),c=o.getShallow("cursor"),u=i.get("focus"),d=i.get("blurScope"),p=i.get("scale");pue(e,function(e){if(e instanceof OG){var t=e.style;e.useStyle(JR({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,p&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=l,e.ensureState("select").style=s,c&&(e.cursor=c),e.z2=n.z2});var f=t.valueDim.posDesc[+(n.boundingLength>0)],h=e.__pictorialBarRect;h.ignoreClip=!0,pY(h,fY(o),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:m7(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),WU(e,u,d,i.get("disabled"))}function gue(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const mue=Qce;const vue=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 MR(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=zY(o9.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}(o9);var yue=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return MR(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),o=this,i=this.group,a=e.getLayerSeries(),l=r.getLayout("layoutInfo"),s=l.rect,c=l.boundaryGap;function u(e){return e.name}i.x=0,i.y=s.y+c[0];var d=new $4(this._layersSeries||[],a,u,u),p=[];function f(t,n,l){var s=o._layers;if("remove"!==t){for(var c,u,d=[],f=[],h=a[n].indices,g=0;g<h.length;g++){var m=r.getItemLayout(h[g]),v=m.x,y=m.y0,b=m.y;d.push(v,y),f.push(v,y+b),c=r.getItemVisual(h[g],"style")}var x=r.getItemLayout(h[0]),w=e.getModel("label").get("margin"),S=e.getModel("emphasis");if("add"===t){var C=p[n]=new _F;u=new A7({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),C.add(u),i.add(C),e.isAnimationEnabled()&&u.setClipPath(function(e,t,n){var r=new jG({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return rY(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}(u.getBoundingRect(),e,function(){u.removeClipPath()}))}else{C=s[l];u=C.childAt(0),i.add(C),p[n]=C,nY(u,{shape:{points:d,stackedOnPoints:f}},e),sY(u)}pY(u,fY(e),{labelDataIndex:h[g-1],defaultText:r.getName(h[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var _=u.getTextContent();_&&(_.x=x.x-w,_.y=x.y0+x.y/2),u.useStyle(c),r.setItemGraphicEl(n,u),qU(u,e),WU(u,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else i.remove(s[n])}d.add(pj(f,this,"add")).update(pj(f,this,"update")).remove(pj(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},t.type="themeRiver",t}(l0);const bue=yue;var xue=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new X9(pj(this.getData,this),pj(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=DV(e,function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]}),o=[];r.buckets.each(function(e,t){o.push({name:t,dataList:e})});for(var i=o.length,a=0;a<i;++a){for(var l=o[a].name,s=0;s<o[a].dataList.length;++s){var c=o[a].dataList[s][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,e[t]=[c,0,l],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",OV).models[0].get("type"),r=cj(e.data,function(e){return void 0!==e[2]}),o=this.fixData(r||[]),i=[],a=this.nameMap=Bj(),l=0,s=0;s<o.length;++s)i.push(o[s][2]),a.get(o[s][2])||(a.set(o[s][2],l),l++);var c=r3(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:D4(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,u=new t3(c,this);return u.initData(o),u},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var o=e.mapDimension("single"),i=DV(n,function(t){return e.get("name",t)}),a=[];return i.buckets.each(function(t,n){t.sort(function(t,n){return e.get(o,t)-e.get(o,n)}),a.push({name:n,indices:t})}),a},t.prototype.getAxisTooltipData=function(e,t,n){hj(e)||(e=e?[e]:[]);for(var r,o=this.getData(),i=this.getLayerSeries(),a=[],l=i.length,s=0;s<l;++s){for(var c=Number.MAX_VALUE,u=-1,d=i[s].indices.length,p=0;p<d;++p){var f=o.get(e[0],i[s].indices[p]),h=Math.abs(f-t);h<=c&&(r=f,c=h,u=i[s].indices[p])}a.push(u)}return{dataIndices:a,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return SZ("nameValue",{name:r.getName(e),value:r.get(r.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(UZ);const wue=xue;function Sue(e,t){e.eachSeriesByType("themeRiver",function(e){var t=e.getData(),n=e.coordinateSystem,r={},o=n.getRect();r.rect=o;var i=e.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=i,"horizontal"===a.orient)?(i[0]=BF(i[0],o.height),i[1]=BF(i[1],o.height),Cue(t,e,o.height-i[0]-i[1])):(i[0]=BF(i[0],o.width),i[1]=BF(i[1],o.width),Cue(t,e,o.width-i[0]-i[1]));t.setLayout("layoutInfo",r)})}function Cue(e,t,n){if(e.count())for(var r,o=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),l=e.mapDimension("value"),s=lj(i,function(t){return lj(t.indices,function(t){var n=o.dataToPoint(e.get(a,t));return n[1]=e.get(l,t),n})}),c=function(e){for(var t=e.length,n=e[0].length,r=[],o=[],i=0,a=0;a<n;++a){for(var l=0,s=0;s<t;++s)l+=e[s][a][1];l>i&&(i=l),r.push(l)}for(var c=0;c<n;++c)o[c]=(i-r[c])/2;i=0;for(var u=0;u<n;++u){var d=r[u]+o[u];d>i&&(i=d)}return{y0:o,max:i}}(s),u=c.y0,d=n/c.max,p=i.length,f=i[0].indices.length,h=0;h<f;++h){r=u[h]*d,e.setItemLayout(i[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:r,y:s[0][h][1]*d});for(var g=1;g<p;++g)r+=s[g-1][h][1]*d,e.setItemLayout(i[g].indices[h],{layerIndex:g,x:s[g][h][0],y0:r,y:s[g][h][1]*d})}}var _ue=function(e){function t(t,n,r,o){var i=e.call(this)||this;i.z2=2,i.textConfig={inside:!0},eU(i).seriesIndex=n.seriesIndex;var a=new JG({z2:4,silent:t.getModel().get(["label","silent"])});return i.setTextContent(a),i.updateData(!0,t,n,r,o),i}return MR(t,e),t.prototype.updateData=function(e,t,n,r,o){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var i=this;eU(i).dataIndex=t.dataIndex;var a=t.getModel(),l=a.getModel("emphasis"),s=t.getLayout(),c=JR({},s);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var d=t.getVisual("decal");d&&(u.decal=Y1(d,o));var p=p9(a.getModel("itemStyle"),c,!0);JR(c,p),aj(aU,function(e){var t=i.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=p9(n,c);r&&(t.shape=r)}),e?(i.setShape(c),i.shape.r=s.r0,rY(i,{shape:{r:s.r}},n,t.dataIndex)):(nY(i,{shape:c},n),sY(i)),i.useStyle(u),this._updateLabel(n);var f=a.getShallow("cursor");f&&i.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var h=l.get("focus");WU(this,"relative"===h?Hj(t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===h?t.getAncestorsIndices():"descendant"===h?t.getDescendantIndices():h,l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),o=this.node.getLayout(),i=o.endAngle-o.startAngle,a=(o.startAngle+o.endAngle)/2,l=Math.cos(a),s=Math.sin(a),c=this,u=c.getTextContent(),d=this.node.dataIndex,p=r.get("minAngle")/180*Math.PI,f=r.get("show")&&!(null!=p&&Math.abs(i)<p);function h(e,t){var n=e.get(t);return null==n?r.get(t):n}u.ignore=!f,aj(lU,function(r){var p="normal"===r?n.getModel("label"):n.getModel([r,"label"]),f="normal"===r,g=f?u:u.ensureState(r),m=e.getFormattedLabel(d,r);f&&(m=m||t.node.name),g.style=hY(p,{},null,"normal"!==r,!0),m&&(g.style.text=m);var v=p.get("show");null==v||f||(g.ignore=!v);var y,b=h(p,"position"),x=f?c:c.states[r],w=x.style.fill;x.textConfig={outsideFill:"inherit"===p.get("color")?w:null,inside:"outside"!==b};var S=h(p,"distance")||0,C=h(p,"align"),_=h(p,"rotate"),k=.5*Math.PI,M=1.5*Math.PI,I=iG("tangential"===_?Math.PI/2-a:a),E=I>k&&!ZF(I-k)&&I<M;"outside"===b?(y=o.r+S,C=E?"right":"left"):C&&"center"!==C?"left"===C?(y=o.r0+S,C=E?"right":"left"):"right"===C&&(y=o.r-S,C=E?"left":"right"):(y=i===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,C="center"),g.style.align=C,g.style.verticalAlign=h(p,"verticalAlign")||"middle",g.x=y*l+o.cx,g.y=y*s+o.cy;var O=0;"radial"===_?O=iG(-a)+(E?Math.PI:0):"tangential"===_?O=iG(Math.PI/2-a)+(E?Math.PI:0):yj(_)&&(O=_*Math.PI/180),g.rotation=iG(O)}),u.dirtyStyle()},t}(jQ);const kue=_ue;var Mue="sunburstRootToNode",Iue="sunburstHighlight";var Eue=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n,r){var o=this;this.seriesModel=e,this.api=n,this.ecModel=t;var i=e.getData(),a=i.tree.root,l=e.getViewRoot(),s=this.group,c=e.get("renderLabelForZeroData"),u=[];l.eachNode(function(e){u.push(e)});var d=this._oldChildren||[];!function(r,o){if(0===r.length&&0===o.length)return;function l(e){return e.getId()}function u(l,u){!function(r,o){c||!r||r.getValue()||(r=null);if(r!==a&&o!==a)if(o&&o.piece)r?(o.piece.updateData(!1,r,e,t,n),i.setItemGraphicEl(r.dataIndex,o.piece)):function(e){if(!e)return;e.piece&&(s.remove(e.piece),e.piece=null)}(o);else if(r){var l=new kue(r,e,t,n);s.add(l),i.setItemGraphicEl(r.dataIndex,l)}}(null==l?null:r[l],null==u?null:o[u])}new $4(o,r,l,l).add(u).update(u).remove(fj(u,null)).execute()}(u,d),function(r,i){i.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,r,e,t,n):(o.virtualPiece=new kue(r,e,t,n),s.add(o.virtualPiece)),i.piece.off("click"),o.virtualPiece.on("click",function(e){o._rootToNode(i.parentNode)})):o.virtualPiece&&(s.remove(o.virtualPiece),o.virtualPiece=null)}(a,l),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(t){var n=!1;e.seriesModel.getViewRoot().eachNode(function(r){if(!n&&r.piece&&r.piece===t.target){var o=r.getModel().get("nodeClick");if("rootToNode"===o)e._rootToNode(r);else if("link"===o){var i=r.getModel(),a=i.get("link");if(a)Aq(a,i.get("target",!0)||"_blank")}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Mue,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,o=e[1]-n.cy,i=Math.sqrt(r*r+o*o);return i<=n.r&&i>=n.r0}},t.type="sunburst",t}(l0);const Oue=Eue;var $ue=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return MR(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Tue(n);var r=this._levelModels=lj(e.levels||[],function(e){return new RY(e,this,t)},this),o=Bre.createTree(n,this,function(e){e.wrapMethod("getItemModel",function(e,t){var n=o.getNodeByDataIndex(t),i=r[n.depth];return i&&(e.parentModel=i),e})});return o.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=Wre(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(){Zre(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}(UZ);function Tue(e){var t=0;aj(e.children,function(e){Tue(e);var n=e.value;hj(n)&&(n=n[0]),t+=n});var n=e.value;hj(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),hj(e.value)?e.value[0]=n:e.value=n}const Pue=$ue;var Due=Math.PI/180;function Nue(e,t,n){t.eachSeriesByType(e,function(e){var t=e.get("center"),r=e.get("radius");hj(r)||(r=[0,r]),hj(t)||(t=[t,t]);var o=n.getWidth(),i=n.getHeight(),a=Math.min(o,i),l=BF(t[0],o),s=BF(t[1],i),c=BF(r[0],a/2),u=BF(r[1],a/2),d=-e.get("startAngle")*Due,p=e.get("minAngle")*Due,f=e.getData().tree.root,h=e.getViewRoot(),g=h.depth,m=e.get("sort");null!=m&&Aue(h,m);var v=0;aj(h.children,function(e){!isNaN(e.getValue())&&v++});var y=h.getValue(),b=Math.PI/(y||v)*2,x=h.depth>0,w=h.height-(x?-1:1),S=(u-c)/(w||1),C=e.get("clockwise"),_=e.get("stillShowZeroSum"),k=C?1:-1,M=function(t,n){if(t){var r=n;if(t!==f){var o=t.getValue(),i=0===y&&_?b:o*b;i<p&&(i=p),r=n+k*i;var u=t.depth-g-(x?-1:1),d=c+S*u,h=c+S*(u+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),w=m.get("r",!0),I=m.get("radius",!0);null!=I&&(v=I[0],w=I[1]),null!=v&&(d=BF(v,a/2)),null!=w&&(h=BF(w,a/2))}t.setLayout({angle:i,startAngle:n,endAngle:r,clockwise:C,cx:l,cy:s,r0:d,r:h})}if(t.children&&t.children.length){var E=0;aj(t.children,function(e){E+=M(e,n+E)})}return r-n}};if(x){var I=c,E=c+S,O=2*Math.PI;f.setLayout({angle:O,startAngle:d,endAngle:d+O,clockwise:C,cx:l,cy:s,r0:I,r:E})}M(h,d)})}function Aue(e,t){var n=e.children||[];e.children=function(e,t){if(gj(t)){var n=lj(e,function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}});return n.sort(function(e,n){return t(e.params,n.params)}),lj(n,function(t){return e[t.index]})}var r="asc"===t;return e.sort(function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n})}(n,t),n.length&&aj(e.children,function(e){Aue(e,t)})}function Rue(e){var t={};e.eachSeriesByType("sunburst",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(o){var i=o.getModel().getModel("itemStyle").getItemStyle();i.fill||(i.fill=function(e,n,r){for(var o=e;o&&o.depth>1;)o=o.parentNode;var i=n.getColorFromPalette(o.name||o.dataIndex+"",t);return e.depth>1&&mj(i)&&(i=PB(i,(e.depth-1)/(r-1)*.5)),i}(o,e,r.root.height)),JR(n.ensureUniqueItemVisual(o.dataIndex,"style"),i)})})}var jue={color:"fill",borderColor:"stroke"},Lue={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zue=kV();const Bue=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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 d3(null,this)},t.prototype.getDataParams=function(t,n,r){var o=e.prototype.getDataParams.call(this,t,n);return r&&(o.info=zue(r).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(UZ);function Hue(e,t){return t=t||[0,0],lj(["x","y"],function(n,r){var o=this.getAxis(n),i=t[r],a=e[r]/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(i-a)-o.dataToCoord(i+a))},this)}function Fue(e,t){return t=t||[0,0],lj([0,1],function(n){var r=t[n],o=e[n]/2,i=[],a=[];return i[n]=r-o,a[n]=r+o,i[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(a)[n])},this)}function Vue(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,o=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-o)-n.dataToCoord(r+o))}function Wue(e,t){return t=t||[0,0],lj(["Radius","Angle"],function(n,r){var o=this["get"+n+"Axis"](),i=t[r],a=e[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(i-a)-o.dataToCoord(i+a));return"Angle"===n&&(l=l*Math.PI/180),l},this)}function Gue(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Wj(e,"text")))}function Uue(e,t,n){var r,o,i,a=e;if("text"===t)i=a;else{i={},Wj(a,"text")&&(i.text=a.text),Wj(a,"rich")&&(i.rich=a.rich),Wj(a,"textFill")&&(i.fill=a.textFill),Wj(a,"textStroke")&&(i.stroke=a.textStroke),Wj(a,"fontFamily")&&(i.fontFamily=a.fontFamily),Wj(a,"fontSize")&&(i.fontSize=a.fontSize),Wj(a,"fontStyle")&&(i.fontStyle=a.fontStyle),Wj(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={};var l=Wj(a,"textPosition");n?r.position=l?a.textPosition:"inside":l&&(r.position=a.textPosition),Wj(a,"textPosition")&&(r.position=a.textPosition),Wj(a,"textOffset")&&(r.offset=a.textOffset),Wj(a,"textRotation")&&(r.rotation=a.textRotation),Wj(a,"textDistance")&&(r.distance=a.textDistance)}return Yue(i,e),aj(i.rich,function(e){Yue(e,e)}),{textConfig:r,textContent:o}}function Yue(e,t){t&&(t.font=t.textFont||t.font,Wj(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Wj(t,"textAlign")&&(e.align=t.textAlign),Wj(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Wj(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Wj(t,"textWidth")&&(e.width=t.textWidth),Wj(t,"textHeight")&&(e.height=t.textHeight),Wj(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Wj(t,"textPadding")&&(e.padding=t.textPadding),Wj(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Wj(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Wj(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Wj(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Wj(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Wj(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Wj(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function que(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 o=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";Xue(r,t);var a=null==r.textFill;return o?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),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,aj(t.rich,function(e){Xue(e,e)}),r}function Xue(e,t){t&&(Wj(t,"fill")&&(e.textFill=t.fill),Wj(t,"stroke")&&(e.textStroke=t.fill),Wj(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Wj(t,"font")&&(e.font=t.font),Wj(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Wj(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Wj(t,"fontSize")&&(e.fontSize=t.fontSize),Wj(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Wj(t,"align")&&(e.textAlign=t.align),Wj(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Wj(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Wj(t,"width")&&(e.textWidth=t.width),Wj(t,"height")&&(e.textHeight=t.height),Wj(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Wj(t,"padding")&&(e.textPadding=t.padding),Wj(t,"borderColor")&&(e.textBorderColor=t.borderColor),Wj(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Wj(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Wj(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Wj(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Wj(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Wj(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Wj(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Wj(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Wj(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Wj(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Kue={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Zue=dj(Kue),Que=(sj(eF,function(e,t){return e[t]=1,e},{}),eF.join(", "),["","style","shape","extra"]),Jue=kV();function ede(e,t,n,r,o){var i=e+"Animation",a=eY(e,r,o)||{},l=Jue(t).userDuring;return a.duration>0&&(a.during=l?pj(lde,{el:t,userDuring:l}):null,a.setToFinal=!0,a.scope=e),JR(a,n[i]),a}function tde(e,t,n,r){var o=(r=r||{}).dataIndex,i=r.isInit,a=r.clearStyle,l=n.isAnimationEnabled(),s=Jue(e),c=t.style;s.userDuring=t.during;var u={},d={};if(function(e,t,n){for(var r=0;r<Zue.length;r++){var o=Zue[r],i=Kue[o],a=t[o];a&&(n[i[0]]=a[0],n[i[1]]=a[1])}for(r=0;r<eF.length;r++){var l=eF[r];null!=t[l]&&(n[l]=t[l])}}(0,t,d),cde("shape",t,d),cde("extra",t,d),!i&&l&&(function(e,t,n){for(var r=t.transition,o=ode(r)?eF:fV(r||[]),i=0;i<o.length;i++){var a=o[i];if("style"!==a&&"shape"!==a&&"extra"!==a){var l=e[a];0,n[a]=l}}}(e,t,u),sde("shape",e,t,u),sde("extra",e,t,u),function(e,t,n,r){if(!n)return;var o,i=e.style;if(i){var a=n.transition,l=t.transition;if(a&&!ode(a)){var s=fV(a);!o&&(o=r.style={});for(var c=0;c<s.length;c++){var u=i[h=s[c]];o[h]=u}}else if(e.getAnimationStyleProps&&(ode(l)||ode(a)||nj(l,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=r.style={});var f=dj(n);for(c=0;c<f.length;c++){var h;if(p[h=f[c]]){u=i[h];o[h]=u}}}}}}(e,t,c,u)),d.style=c,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var o=e.animators,i=0;i<o.length;i++){var a=o[i];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,d,a),function(e,t){Wj(t,"silent")&&(e.silent=t.silent),Wj(t,"ignore")&&(e.ignore=t.ignore),e instanceof bW&&Wj(t,"invisible")&&(e.invisible=t.invisible);e instanceof SG&&Wj(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),l)if(i){var p={};aj(Que,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(p[e]=p[e]||{}),JR(e?p[e]:p,n.enterFrom))});var f=ede("enter",e,t,n,o);f.duration>0&&e.animateFrom(p,f)}else!function(e,t,n,r,o){if(o){var i=ede("update",e,t,r,n);i.duration>0&&e.animateFrom(o,i)}}(e,t,o||0,n,u);nde(e,t),c?e.dirty():e.markRedraw()}function nde(e,t){for(var n=Jue(e).leaveToProps,r=0;r<Que.length;r++){var o=Que[r],i=o?t[o]:t;i&&i.leaveTo&&(n||(n=Jue(e).leaveToProps={}),o&&(n[o]=n[o]||{}),JR(o?n[o]:n,i.leaveTo))}}function rde(e,t,n,r){if(e){var o=e.parent,i=Jue(e).leaveToProps;if(i){var a=ede("update",e,t,n,0);a.done=function(){o.remove(e),r&&r()},e.animateTo(i,a)}else o.remove(e),r&&r()}}function ode(e){return"all"===e}var ide={},ade={setTransform:function(e,t){return ide.el[e]=t,this},getTransform:function(e){return ide.el[e]},setShape:function(e,t){var n=ide.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=ide.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=ide.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=ide.el.style;if(t)return t[e]},setExtra:function(e,t){return(ide.el.extra||(ide.el.extra={}))[e]=t,this},getExtra:function(e){var t=ide.el.extra;if(t)return t[e]}};function lde(){var e=this,t=e.el;if(t){var n=Jue(t).userDuring,r=e.userDuring;n===r?(ide.el=t,r(ade)):e.el=e.userDuring=null}}function sde(e,t,n,r){var o=n[e];if(o){var i,a=t[e];if(a){var l=n.transition,s=o.transition;if(s)if(!i&&(i=r[e]={}),ode(s))JR(i,a);else for(var c=fV(s),u=0;u<c.length;u++){var d=a[f=c[u]];i[f]=d}else if(ode(l)||nj(l,e)>=0){!i&&(i=r[e]={});var p=dj(a);for(u=0;u<p.length;u++){var f;d=a[f=p[u]];ude(o[f],d)&&(i[f]=d)}}}}}function cde(e,t,n){var r=t[e];if(r)for(var o=n[e]={},i=dj(r),a=0;a<i.length;a++){var l=i[a];o[l]=hH(r[l])}}function ude(e,t){return ij(e)?e!==t:null!=e&&isFinite(e)}var dde=kV(),pde=["percent","easing","shape","style","extra"];function fde(e){e.stopAnimation("keyframe"),e.attr(dde(e))}function hde(e,t,n){if(n.isAnimationEnabled()&&t)if(hj(t))aj(t,function(t){hde(e,t,n)});else{var r=t.keyframes,o=t.duration;if(n&&null==o){var i=eY("enter",n,0);o=i&&i.duration}if(r&&o){var a=dde(e);aj(Que,function(n){if(!n||e[n]){var i;r.sort(function(e,t){return e.percent-t.percent}),aj(r,function(r){var l=e.animators,s=n?r[n]:r;if(s){var c=dj(s);if(n||(c=cj(c,function(e){return nj(pde,e)<0})),c.length){i||((i=e.animate(n,t.loop,!0)).scope="keyframe");for(var u=0;u<l.length;u++)l[u]!==i&&l[u].targetName===i.targetName&&l[u].stopTracks(c);n&&(a[n]=a[n]||{});var d=n?a[n]:a;aj(c,function(t){d[t]=((n?e[n]:e)||{})[t]}),i.whenWithKeys(o*r.percent,s,c,r.easing)}}}),i&&i.delay(t.delay||0).duration(o).start(t.easing)}})}}}var gde="emphasis",mde="normal",vde="blur",yde="select",bde=[mde,gde,vde,yde],xde={normal:["itemStyle"],emphasis:[gde,"itemStyle"],blur:[vde,"itemStyle"],select:[yde,"itemStyle"]},wde={normal:["label"],emphasis:[gde,"label"],blur:[vde,"label"],select:[yde,"label"]},Sde=["x","y"],Cde={normal:{},emphasis:{},blur:{},select:{}},_de={cartesian2d:function(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:pj(Hue,e)}}},geo:function(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:pj(Fue,e)}}},single:function(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:pj(Vue,e)}}},polar:function(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 o=t.dataToRadius(r[0]),i=n.dataToAngle(r[1]),a=e.coordToPoint([o,i]);return a.push(o,i*Math.PI/180),a},size:pj(Wue,e)}}},calendar:function(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 kde(e){return e instanceof SG}function Mde(e){return e instanceof bW}var Ide=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var o=this._data,i=e.getData(),a=this.group,l=Dde(e,i,t,n);o||a.removeAll(),i.diff(o).add(function(t){Ade(n,null,t,l(t,r),e,a,i)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&rde(n,zue(n).option,e)}).update(function(t,s){var c=o.getItemGraphicEl(s);Ade(n,c,t,l(t,r),e,a,i)}).execute();var s=e.get("clip",!0)?L7(e.coordinateSystem,!1,e):null;s?a.setClipPath(s):a.removeClipPath(),this._data=i},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,o){var i=t.getData(),a=Dde(t,i,n,r),l=this._progressiveEls=[];function s(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=Ade(null,null,c,a(c,o),t,this.group,i);u&&(u.traverse(s),l.push(u))}},t.prototype.eachRendered=function(e){QJ(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var o=t.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(l0);const Ede=Ide;function Ode(e){var t,n=e.type;if("path"===n){var r=e.shape,o=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=Gde(r);t=TJ(i,null,o,r.layout||"center"),zue(t).customPathData=i}else if("image"===n)t=new OG({}),zue(t).customImagePath=e.style.image;else if("text"===n)t=new JG({});else if("group"===n)t=new _F;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=$J(n);if(!a){0,LK("")}t=new a}return zue(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function $de(e,t,n,r,o,i,a){fde(t);var l=o&&o.normal.cfg;l&&t.setTextConfig(l),r&&null==r.transition&&(r.transition=Sde);var s=r&&r.style;if(s){if("text"===t.type){var c=s;Wj(c,"textFill")&&(c.fill=c.textFill),Wj(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=kde(t)?s.decal:null;e&&d&&(d.dirty=!0,u=Y1(d,e)),s.__decalPattern=u}Mde(t)&&(s&&(u=s.__decalPattern)&&(s.decal=u));tde(t,r,i,{dataIndex:n,isInit:a,clearStyle:!0}),hde(t,r.keyframeAnimation,i)}function Tde(e,t,n,r,o){var i=t.isGroup?null:t,a=o&&o[e].cfg;if(i){var l=i.ensureState(e);if(!1===r){var s=i.getState(e);s&&(s.style=null)}else l.style=r||null;a&&(l.textConfig=a),IU(i)}}function Pde(e,t,n){var r=n===mde,o=r?t:zde(t,n),i=o?o.z2:null;null!=i&&((r?e:e.ensureState(n)).z2=i||0)}function Dde(e,t,n,r){var o=e.get("renderItem"),i=e.coordinateSystem,a={};i&&(a=i.prepareCustoms?i.prepareCustoms(i):_de[i.type](i));for(var l,s,c=ej({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(e,n){return null==n&&(n=l),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,r){0;null==r&&(r=l);var o=t.getItemVisual(r,"style"),i=o&&o.fill,a=o&&o.opacity,s=y(r,mde).getItemStyle();null!=i&&(s.fill=i),null!=a&&(s.opacity=a);var c={inheritColor:mj(i)?i:"#000"},u=b(r,mde),d=hY(u,null,c,!1,!0);d.text=u.getShallow("show")?Ej(e.getFormattedLabel(r,mde),m7(t,r)):null;var p=gY(u,c,!1);return w(n,s),s=que(s,d,p),n&&x(s,n),s.legacy=!0,s},ordinalRawValue:function(e,n){null==n&&(n=l),e=e||0;var r=t.getDimensionInfo(e);if(!r){var o=t.getDimensionIndex(e);return o>=0?t.getStore().get(o,n):void 0}var i=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[i]:i},styleEmphasis:function(n,r){0;null==r&&(r=l);var o=y(r,gde).getItemStyle(),i=b(r,gde),a=hY(i,null,null,!0,!0);a.text=i.getShallow("show")?Oj(e.getFormattedLabel(r,gde),e.getFormattedLabel(r,mde),m7(t,r)):null;var s=gY(i,null,!0);return w(n,o),o=que(o,a,s),n&&x(o,n),o.legacy=!0,o},visual:function(e,n){if(null==n&&(n=l),Wj(jue,e)){var r=t.getItemVisual(n,"style");return r?r[jue[e]]:null}if(Wj(Lue,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===i.type){return function(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),i=0;i<e.count;i++)t.push(ej({bandWidth:o,axisKey:r,stackId:N3+i},e));var a=z3(t),l=[];for(i=0;i<e.count;i++){var s=a[r][N3+i];s.offsetCenter=s.offset+s.width/2,l.push(s)}return l}}(ej({axis:i.getBaseAxis()},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return xY(e,n)}},a.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:Nde(e.getData())},d={},p={},f={},h={},g=0;g<bde.length;g++){var m=bde[g];f[m]=e.getModel(xde[m]),h[m]=e.getModel(wde[m])}function v(e){return e===l?s||(s=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===l?d[n]||(d[n]=v(e).getModel(xde[n])):v(e).getModel(xde[n]):f[n]}function b(e,n){return t.hasItemOption?e===l?p[n]||(p[n]=v(e).getModel(wde[n])):v(e).getModel(wde[n]):h[n]}return function(e,n){return l=e,s=null,d={},p={},o&&o(ej({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function x(e,t){for(var n in t)Wj(t,n)&&(e[n]=t[n])}function w(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function Nde(e){var t={};return aj(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var o=r.coordDim;(t[o]=t[o]||[])[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function Ade(e,t,n,r,o,i,a){if(r){var l=Rde(e,t,n,r,o,i);return l&&a.setItemGraphicEl(n,l),l&&WU(l,r.focus,r.blurScope,r.emphasisDisabled),l}i.remove(t)}function Rde(e,t,n,r,o,i){var a=-1,l=t;t&&jde(t,r,o)&&(a=nj(i.childrenRef(),t),t=null);var s,c,u=!t,d=t;d?d.clearStates():(d=Ode(r),l&&(s=l,(c=d).copyTransform(s),Mde(c)&&Mde(s)&&(c.setStyle(s.style),c.z=s.z,c.z2=s.z2,c.zlevel=s.zlevel,c.invisible=s.invisible,c.ignore=s.ignore,kde(c)&&kde(s)&&c.setShape(s.shape)))),!1===r.morph?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),Cde.normal.cfg=Cde.normal.conOpt=Cde.emphasis.cfg=Cde.emphasis.conOpt=Cde.blur.cfg=Cde.blur.conOpt=Cde.select.cfg=Cde.select.conOpt=null,Cde.isLegacy=!1,function(e,t,n,r,o,i){if(e.isGroup)return;Lde(n,null,i),Lde(n,gde,i);var a=i.normal.conOpt,l=i.emphasis.conOpt,s=i.blur.conOpt,c=i.select.conOpt;if(null!=a||null!=l||null!=c||null!=s){var u=e.getTextContent();if(!1===a)u&&e.removeTextContent();else{a=i.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=Ode(a),e.setTextContent(u)),$de(null,u,t,a,null,r,o);for(var d=a&&a.style,p=0;p<bde.length;p++){var f=bde[p];if(f!==mde){var h=i[f].conOpt;Tde(f,u,0,Bde(a,h,f),null)}}d?u.dirty():u.markRedraw()}}}(d,n,r,o,u,Cde),function(e,t,n,r,o){var i=n.clipPath;if(!1===i)e&&e.getClipPath()&&e.removeClipPath();else if(i){var a=e.getClipPath();a&&jde(a,i,r)&&(a=null),a||(a=Ode(i),e.setClipPath(a)),$de(null,a,t,i,null,r,o)}}(d,n,r,o,u),$de(e,d,n,r,Cde,o,u),Wj(r,"info")&&(zue(d).info=r.info);for(var p=0;p<bde.length;p++){var f=bde[p];if(f!==mde){var h=zde(r,f);Tde(f,d,0,Bde(r,h,f),Cde)}}return function(e,t,n){if(!e.isGroup){var r=e,o=n.currentZ,i=n.currentZLevel;r.z=o,r.zlevel=i;var a=t.z2;null!=a&&(r.z2=a||0);for(var l=0;l<bde.length;l++)Pde(r,t,bde[l])}}(d,r,o),"group"===r.type&&function(e,t,n,r,o){var i=r.children,a=i?i.length:0,l=r.$mergeChildren,s="byName"===l||r.diffChildrenByName,c=!1===l;if(!a&&!s&&!c)return;if(s)return void function(e){new $4(e.oldChildren,e.newChildren,Fde,Fde,e).add(Vde).update(Vde).remove(Wde).execute()}({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:n,seriesModel:o,group:t});c&&t.removeAll();for(var u=0;u<a;u++){var d=i[u],p=t.childAt(u);d?(null==d.ignore&&(d.ignore=!1),Rde(e,p,n,d,o,t)):p.ignore=!0}for(var f=t.childCount()-1;f>=u;f--){var h=t.childAt(f);Hde(t,h,o)}}(e,d,n,r,o),a>=0?i.replaceAt(d,a):i.add(d),d}function jde(e,t,n){var r,o=zue(e),i=t.type,a=t.shape,l=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==o.customGraphicType||"path"===i&&((r=a)&&(Wj(r,"pathData")||Wj(r,"d")))&&Gde(a)!==o.customPathData||"image"===i&&Wj(l,"image")&&l.image!==o.customImagePath}function Lde(e,t,n){var r=t?zde(e,t):e,o=t?Bde(e,r,gde):e.style,i=e.type,a=r?r.textConfig:null,l=e.textContent,s=l?t?zde(l,t):l:null;if(o&&(n.isLegacy||Gue(o,i,!!a,!!s))){n.isLegacy=!0;var c=Uue(o,i,!t);!a&&c.textConfig&&(a=c.textConfig),!s&&c.textContent&&(s=c.textContent)}if(!t&&s){var u=s;!u.type&&(u.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=s}function zde(e,t){return t?e?e[t]:null:e}function Bde(e,t,n){var r=t&&t.style;return null==r&&n===gde&&e&&(r=e.styleEmphasis),r}function Hde(e,t,n){t&&rde(t,zue(e).option,n)}function Fde(e,t){var n=e&&e.name;return null!=n?n:"e\0\0"+t}function Vde(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,o=null!=t?n.oldChildren[t]:null;Rde(n.api,o,n.dataIndex,r,n.seriesModel,n.group)}function Wde(e){var t=this.context,n=t.oldChildren[e];n&&rde(n,zue(n).option,t.seriesModel)}function Gde(e){return e&&(e.pathData||e.d)}var Ude=kV(),Yde=KR,qde=pj,Xde=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var o=t.get("value"),i=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==o||this._lastStatus!==i){this._lastValue=o,this._lastStatus=i;var a=this._group,l=this._handle;if(!i||"hide"===i)return a&&a.hide(),void(l&&l.hide());a&&a.show(),l&&l.show();var s={};this.makeElOption(s,o,e,t,n);var c=s.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=fj(Kde,t,u);this.updatePointerEl(a,s,d),this.updateLabelEl(a,s,d,t)}else a=this._group=new _F,this.createPointerEl(a,s,e,t),this.createLabelEl(a,s,e,t),n.getZr().add(a);epe(a,t,!0),this._renderHandle(o)}},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,o="category"===r.type,i=t.get("snap");if(!i&&!o)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(o&&r.getBandWidth()>a)return!0;if(i){var l=Vee(e).seriesDataCount,s=r.getExtent();return Math.abs(s[0]-s[1])/l>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,o){},e.prototype.createPointerEl=function(e,t,n,r){var o=t.pointer;if(o){var i=Ude(e).pointerEl=new l[o.type](Yde(t.pointer));e.add(i)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var o=Ude(e).labelEl=new JG(Yde(t.label));e.add(o),Qde(o,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Ude(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 o=Ude(e).labelEl;o&&(o.setStyle(t.label.style),n(o,{x:t.label.x,y:t.label.y}),Qde(o,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,i=n.getModel("handle"),a=n.get("status");if(!i.get("show")||!a||"hide"===a)return o&&r.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=UJ(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){FL(e.event)},onmousedown:qde(this._onHandleDragMove,this,0,0),drift:qde(this._onHandleDragMove,this),ondragend:qde(this._onHandleDragEnd,this)}),r.add(o)),epe(o,n,!1),o.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");hj(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,p0(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){Kde(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Jde(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(Jde(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Jde(r)),Ude(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),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),f0(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function Kde(e,t,n,r){Zde(Ude(n).lastProp,r)||(Ude(n).lastProp=r,t?nY(n,r,e):(n.stopAnimation(),n.attr(r)))}function Zde(e,t){if(bj(e)&&bj(t)){var n=!0;return aj(t,function(t,r){n=n&&Zde(e[r],t)}),!!n}return e===t}function Qde(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Jde(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function epe(e,t,n){var r=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=o&&(e.zlevel=o),e.silent=n)})}const tpe=Xde;function npe(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function rpe(e,t,n,r,o){var i=ope(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),l=Mq(a.get("padding")||0),s=a.getFont(),c=aF(i,s),u=o.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=o.align;"right"===f&&(u[0]-=d),"center"===f&&(u[0]-=d/2);var h=o.verticalAlign;"bottom"===h&&(u[1]-=p),"middle"===h&&(u[1]-=p/2),function(e,t,n,r){var o=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(u,d,p,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:u[0],y:u[1],style:hY(a,{text:i,font:s,fill:a.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function ope(e,t,n,r,o){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:o.precision}),a=o.formatter;if(a){var l={value:b5(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};aj(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,o=t&&t.getDataParams(r);o&&l.seriesData.push(o)}),mj(a)?i=a.replace("{value}",i):gj(a)&&(i=a(l))}return i}function ipe(e,t,n){var r=[1,0,0,1,0,0];return QL(r,r,n.rotation),ZL(r,r,n.position),BJ([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function ape(e,t,n,r,o,i){var a=Bee.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),rpe(t,r,o,i,{position:ipe(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function lpe(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function spe(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function cpe(e,t,n,r,o,i){return{cx:e,cy:t,r0:n,r:r,startAngle:o,endAngle:i,clockwise:!0}}var upe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var i=n.axis,a=i.grid,l=r.get("type"),s=dpe(a,i).getOtherAxis(i).getGlobalExtent(),c=i.toGlobalCoord(i.dataToCoord(t,!0));if(l&&"none"!==l){var u=npe(r),d=ppe[l](i,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}ape(t,e,Cee(a.model,n),n,r,o)},t.prototype.getHandleTransform=function(e,t,n){var r=Cee(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=ipe(t.axis,e,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var o=n.axis,i=o.grid,a=o.getGlobalExtent(!0),l=dpe(i,o).getOtherAxis(o).getGlobalExtent(),s="x"===o.dim?0:1,c=[e.x,e.y];c[s]+=t[s],c[s]=Math.min(a[1],c[s]),c[s]=Math.max(a[0],c[s]);var u=(l[1]+l[0])/2,d=[u,u];d[s]=c[s];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][s]}},t}(tpe);function dpe(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ppe={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:lpe([t,n[0]],[t,n[1]],fpe(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:spe([t-r/2,n[0]],[r,o],fpe(e))}}};function fpe(e){return"x"===e.dim?0:1}const hpe=upe;const gpe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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}(Xq);var mpe=kV(),vpe=aj;function ype(e,t,n){if(!$R.node){var r=t.getZr();mpe(r).records||(mpe(r).records={}),function(e,t){if(mpe(e).initialized)return;function n(n,r){e.on(n,function(n){var o=function(e){var t={showTip:[],hideTip:[]},n=function(r){var o=t[r.type];o?o.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);vpe(mpe(e).records,function(e){e&&r(e,n,o.dispatchAction)}),function(e,t){var n,r=e.showTip.length,o=e.hideTip.length;r?n=e.showTip[r-1]:o&&(n=e.hideTip[o-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(o.pendings,t)})}mpe(e).initialized=!0,n("click",fj(xpe,"click")),n("mousemove",fj(xpe,"mousemove")),n("globalout",bpe)}(r,t),(mpe(r).records[e]||(mpe(r).records[e]={})).handler=n}}function bpe(e,t,n){e.handler("leave",null,n)}function xpe(e,t,n,r){t.handler(e,n,r)}function wpe(e,t){if(!$R.node){var n=t.getZr();(mpe(n).records||{})[e]&&(mpe(n).records[e]=null)}}var Spe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),o=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";ype("axisPointer",n,function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){wpe("axisPointer",t)},t.prototype.dispose=function(e,t){wpe("axisPointer",t)},t.type="axisPointer",t}(qZ);const Cpe=Spe;function _pe(e,t){var n,r=[],o=e.seriesIndex;if(null==o||!(n=t.getSeriesByIndex(o)))return{point:[]};var i=n.getData(),a=_V(i,e);if(null==a||a<0||hj(a))return{point:[]};var l=i.getItemGraphicEl(a),s=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(s&&s.dataToPoint)if(e.isStacked){var c=s.getBaseAxis(),u=s.getOtherAxis(c).dim,d=c.dim,p="x"===u||"radius"===u?1:0,f=i.mapDimension(d),h=[];h[p]=i.get(f,a),h[1-p]=i.get(i.getCalculationInfo("stackResultDimension"),a),r=s.dataToPoint(h)||[]}else r=s.dataToPoint(i.getValues(lj(s.dimensions,function(e){return i.mapDimension(e)}),a))||[];else if(l){var g=l.getBoundingRect().clone();g.applyTransform(l.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:l}}var kpe=kV();function Mpe(e,t,n){var r=e.currTrigger,o=[e.x,e.y],i=e,a=e.dispatchAction||pj(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){Tpe(o)&&(o=_pe({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var s=Tpe(o),c=i.axesInfo,u=l.axesInfo,d="leave"===r||Tpe(o),p={},f={},h={list:[],map:{}},g={showPointer:fj(Epe,f),showTooltip:fj(Ope,h)};aj(l.coordSysMap,function(e,t){var n=s||e.containPoint(o);aj(l.coordSysAxesInfo[t],function(e,t){var r=e.axis,i=function(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}}(c,e);if(!d&&n&&(!c||i)){var a=i&&i.value;null!=a||s||(a=r.pointToData(o)),null!=a&&Ipe(e,a,g,!1,p)}})});var m={};return aj(u,function(e,t){var n=e.linkGroup;n&&!f[t]&&aj(n.axesInfo,function(t,r){var o=f[r];if(t!==e&&o){var i=o.value;n.mapper&&(i=e.axis.scale.parse(n.mapper(i,$pe(t),$pe(e)))),m[e.key]=i}})}),aj(m,function(e,t){Ipe(u[t],e,g,!0,p)}),function(e,t,n){var r=n.axesInfo=[];aj(t,function(t,n){var o=t.axisPointerModel.option,i=e[n];i?(!t.useHandle&&(o.status="show"),o.value=i.value,o.seriesDataIndices=(i.payloadBatch||[]).slice()):!t.useHandle&&(o.status="hide"),"show"===o.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:o.value})})}(f,u,p),function(e,t,n,r){if(Tpe(t)||!e.list.length)return void r({type:"hideTip"});var o=((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:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}(h,o,e,a),function(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",i=kpe(r)[o]||{},a=kpe(r)[o]={};aj(e,function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&aj(n.seriesDataIndices,function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e})});var l=[],s=[];aj(i,function(e,t){!a[t]&&s.push(e)}),aj(a,function(e,t){!i[t]&&l.push(e)}),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}(u,0,n),p}}function Ipe(e,t,n,r,o){var i=e.axis;if(!i.scale.isBlank()&&i.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,o=e,i=[],a=Number.MAX_VALUE,l=-1;return aj(t.seriesModels,function(t,s){var c,u,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var p=t.getAxisTooltipData(d,e,n);u=p.dataIndices,c=p.nestestValue}else{if(!(u=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var f=e-c,h=Math.abs(f);h<=a&&((h<a||f>=0&&l<0)&&(a=h,l=f,o=c,i.length=0),aj(u,function(e){i.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:i,snapToValue:o}}(t,e),l=a.payloadBatch,s=a.snapToValue;l[0]&&null==o.seriesIndex&&JR(o,l[0]),!r&&e.snap&&i.containData(s)&&null!=s&&(t=s),n.showPointer(e,t,l),n.showTooltip(e,a,s)}else n.showPointer(e,t)}function Epe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Ope(e,t,n,r){var o=n.payloadBatch,i=t.axis,a=i.model,l=t.axisPointerModel;if(t.triggerTooltip&&o.length){var s=t.coordSys.model,c=Gee(s),u=e.map[c];u||(u=e.map[c]={coordSysId:s.id,coordSysIndex:s.componentIndex,coordSysType:s.type,coordSysMainType:s.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:i.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function $pe(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 Tpe(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function Ppe(e){qee.registerAxisPointerClass("CartesianAxisPointer",hpe),e.registerComponentModel(gpe),e.registerComponentView(Cpe),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!hj(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Hee(e,t)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Mpe)}var Dpe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var i=n.axis;"angle"===i.dim&&(this.animationThreshold=Math.PI/18);var a=i.polar,l=a.getOtherAxis(i).getExtent(),s=i.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var u=npe(r),d=Npe[c](i,a,s,l);d.style=u,e.graphicKey=d.type,e.pointer=d}var p=function(e,t,n,r,o){var i=t.axis,a=i.dataToCoord(e),l=r.getAngleAxis().getExtent()[0];l=l/180*Math.PI;var s,c,u,d=r.getRadiusAxis().getExtent();if("radius"===i.dim){var p=[1,0,0,1,0,0];QL(p,p,l),ZL(p,p,[r.cx,r.cy]),s=BJ([a,-o],p);var f=t.getModel("axisLabel").get("rotate")||0,h=Bee.innerTextLayout(l,f*Math.PI/180,-1);c=h.textAlign,u=h.textVerticalAlign}else{var g=d[1];s=r.coordToPoint([g+o,a]);var m=r.cx,v=r.cy;c=Math.abs(s[0]-m)/g<.3?"center":s[0]>m?"left":"right",u=Math.abs(s[1]-v)/g<.3?"middle":s[1]>v?"top":"bottom"}return{position:s,align:c,verticalAlign:u}}(t,n,0,a,r.get(["label","margin"]));rpe(e,n,r,o,p)},t}(tpe);var Npe={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:lpe(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 o=Math.max(1,e.getBandWidth()),i=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:cpe(t.cx,t.cy,r[0],r[1],(-n-o/2)*i,(o/2-n)*i)}:{type:"Sector",shape:cpe(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}};const Ape=Dpe;const Rpe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.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}(Xq);var jpe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",OV).models[0]},t.type="polarAxis",t}(Xq);oj(jpe,_5);var Lpe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="angleAxis",t}(jpe),zpe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="radiusAxis",t}(jpe),Bpe=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return MR(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(r6);Bpe.prototype.dataToRadius=r6.prototype.dataToCoord,Bpe.prototype.radiusToData=r6.prototype.coordToData;const Hpe=Bpe;var Fpe=kV(),Vpe=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return MR(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(),o=n.count();if(r[1]-r[0]<1)return 0;var i=r[0],a=e.dataToCoord(i+1)-e.dataToCoord(i),l=Math.abs(a),s=aF(null==i?"":i+"",t.getFont(),"center","top"),c=Math.max(s.height,7)/l;isNaN(c)&&(c=1/0);var u=Math.max(0,Math.floor(c)),d=Fpe(e.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-u)<=1&&Math.abs(f-o)<=1&&p>u?u=p:(d.lastTickCount=o,d.lastAutoInterval=u),u},t}(r6);Vpe.prototype.dataToAngle=r6.prototype.dataToCoord,Vpe.prototype.angleToData=r6.prototype.coordToData;const Wpe=Vpe;var Gpe=["radius","angle"],Upe=function(){function e(e){this.dimensions=Gpe,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Hpe,this._angleAxis=new Wpe,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){return this["_"+e+"Axis"]},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(),o=r.getExtent(),i=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);r.inverse?i=a-360:a=i+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var s=Math.atan2(-n,t)/Math.PI*180,c=s<i?1:-1;s<i||s>a;)s+=360*c;return[l,s]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,a=this.r,l=this.r0;return a!==l&&i-o<=a*a&&i+o>=l*l}}},e.prototype.convertToPixel=function(e,t,n){return Ype(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Ype(t)===this?this.pointToData(n):null},e}();function Ype(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const qpe=Upe;function Xpe(e,t){var n=this,r=n.getAngleAxis(),o=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();aj(C5(t,"radius"),function(e){o.scale.unionExtentFromData(t,e)}),aj(C5(t,"angle"),function(e){r.scale.unionExtentFromData(t,e)})}}),m5(r.scale,r.model),m5(o.scale,o.model),"category"===r.type&&!r.onBand){var i=r.getExtent(),a=360/r.scale.count();r.inverse?i[1]+=a:i[1]-=a,r.setExtent(i[0],i[1])}}function Kpe(e,t){var n;if(e.type=t.get("type"),e.scale=v5(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),o=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,o)}t.axis=e,e.model=t}var Zpe={dimensions:Gpe,create:function(e,t){var n=[];return e.eachComponent("polar",function(e,r){var o=new qpe(r+"");o.update=Xpe;var i=o.getRadiusAxis(),a=o.getAngleAxis(),l=e.findAxisModel("radiusAxis"),s=e.findAxisModel("angleAxis");Kpe(i,l),Kpe(a,s),function(e,t,n){var r=t.get("center"),o=n.getWidth(),i=n.getHeight();e.cx=BF(r[0],o),e.cy=BF(r[1],i);var a=e.getRadiusAxis(),l=Math.min(o,i)/2,s=t.get("radius");null==s?s=[0,"100%"]:hj(s)||(s=[0,s]);var c=[BF(s[0],l),BF(s[1],l)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(o,e,t),n.push(o),e.coordinateSystem=o,o.model=e}),e.eachSeries(function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",OV).models[0];0,e.coordinateSystem=t.coordinateSystem}}),n}};const Qpe=Zpe;var Jpe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function efe(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),o=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:o[0],y2:o[1]}}function tfe(e){return e.getRadiusAxis().inverse?0:1}function nfe(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 rfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return MR(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,o=r.getRadiusAxis().getExtent(),i=n.getTicksCoords(),a=n.getMinorTicksCoords(),l=lj(n.getViewLabels(),function(e){e=KR(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});nfe(l),nfe(i),aj(Jpe,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||ofe[t](this.group,e,r,i,a,o,l)},this)}},t.type="angleAxis",t}(qee),ofe={axisLine:function(e,t,n,r,o,i){var a,s=t.getModel(["axisLine","lineStyle"]),c=n.getAngleAxis(),u=Math.PI/180,d=c.getExtent(),p=tfe(n),f=p?0:1,h=360===Math.abs(d[1]-d[0])?"Circle":"Arc";(a=0===i[f]?new l[h]({shape:{cx:n.cx,cy:n.cy,r:i[p],startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:c.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new BQ({shape:{cx:n.cx,cy:n.cy,r:i[p],r0:i[f]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,r,o,i){var a=t.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),s=i[tfe(n)],c=lj(r,function(e){return new ZQ({shape:efe(n,[s,s+l],e.coord)})});e.add(NJ(c,{style:ej(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,o,i){if(o.length){for(var a=t.getModel("axisTick"),l=t.getModel("minorTick"),s=(a.get("inside")?-1:1)*l.get("length"),c=i[tfe(n)],u=[],d=0;d<o.length;d++)for(var p=0;p<o[d].length;p++)u.push(new ZQ({shape:efe(n,[c,c+s],o[d][p].coord)}));e.add(NJ(u,{style:ej(l.getModel("lineStyle").getLineStyle(),ej(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,o,i,a){var l=t.getCategories(!0),s=t.getModel("axisLabel"),c=s.get("margin"),u=t.get("triggerEvent");aj(a,function(r,o){var a=s,d=r.tickValue,p=i[tfe(n)],f=n.coordToPoint([p+c,r.coord]),h=n.cx,g=n.cy,m=Math.abs(f[0]-h)/p<.3?"center":f[0]>h?"left":"right",v=Math.abs(f[1]-g)/p<.3?"middle":f[1]>g?"top":"bottom";if(l&&l[d]){var y=l[d];bj(y)&&y.textStyle&&(a=new RY(y.textStyle,s,s.ecModel))}var b=new JG({silent:Bee.isLabelSilent(t),style:hY(a,{x:f[0],y:f[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:m,verticalAlign:v})});if(e.add(b),u){var x=Bee.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=r.rawLabel,eU(b).eventData=x}},this)},splitLine:function(e,t,n,r,o,i){var a=t.getModel("splitLine").getModel("lineStyle"),l=a.get("color"),s=0;l=l instanceof Array?l:[l];for(var c=[],u=0;u<r.length;u++){var d=s++%l.length;c[d]=c[d]||[],c[d].push(new ZQ({shape:efe(n,i,r[u].coord)}))}for(u=0;u<c.length;u++)e.add(NJ(c[u],{style:ej({stroke:l[u%l.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,o,i){if(o.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],s=0;s<o.length;s++)for(var c=0;c<o[s].length;c++)l.push(new ZQ({shape:efe(n,i,o[s][c].coord)}));e.add(NJ(l,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,o,i){if(r.length){var a=t.getModel("splitArea").getModel("areaStyle"),l=a.get("color"),s=0;l=l instanceof Array?l:[l];for(var c=[],u=Math.PI/180,d=-r[0].coord*u,p=Math.min(i[0],i[1]),f=Math.max(i[0],i[1]),h=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var v=g===m?r[0].coord:r[g].coord,y=s++%l.length;c[y]=c[y]||[],c[y].push(new jQ({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-v*u,clockwise:h},silent:!0})),d=-v*u}for(g=0;g<c.length;g++)e.add(NJ(c[g],{style:ej({fill:l[g%l.length]},a.getAreaStyle()),silent:!0}))}}};const ife=rfe;var afe=["axisLine","axisTickLabel","axisName"],lfe=["splitLine","splitArea","minorSplitLine"],sfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return MR(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new _F;this.group.add(r);var o=e.axis,i=o.polar,a=i.getAngleAxis(),l=o.getTicksCoords(),s=o.getMinorTicksCoords(),c=a.getExtent()[0],u=o.getExtent(),d=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(i,e,c),p=new Bee(e,d);aj(afe,p.add,p),r.add(p.getGroup()),VJ(n,r,e),aj(lfe,function(t){e.get([t,"show"])&&!o.scale.isBlank()&&cfe[t](this.group,e,i,c,u,l,s)},this)}},t.type="radiusAxis",t}(qee),cfe={splitLine:function(e,t,n,r,o,i){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),c=0,u=n.getAngleAxis(),d=Math.PI/180,p=u.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var h=[],g=0;g<i.length;g++){var m=c++%s.length;h[m]=h[m]||[],h[m].push(new l[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[g].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:u.inverse}}))}for(g=0;g<h.length;g++)e.add(NJ(h[g],{style:ej({stroke:s[g%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,o,i,a){if(a.length){for(var l=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],c=0;c<a.length;c++)for(var u=0;u<a[c].length;u++)s.push(new yQ({shape:{cx:n.cx,cy:n.cy,r:a[c][u].coord}}));e.add(NJ(s,{style:ej({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,o,i){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),l=a.get("color"),s=0;l=l instanceof Array?l:[l];for(var c=[],u=i[0].coord,d=1;d<i.length;d++){var p=s++%l.length;c[p]=c[p]||[],c[p].push(new jQ({shape:{cx:n.cx,cy:n.cy,r0:u,r:i[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),u=i[d].coord}for(d=0;d<c.length;d++)e.add(NJ(c[d],{style:ej({fill:l[d%l.length]},a.getAreaStyle()),silent:!0}))}}};const ufe=sfe;function dfe(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function pfe(e,t){return t.dim+e.model.componentIndex}const ffe=function(e,t,n){var r={},o=function(e){var t={};aj(e,function(e,n){var r=e.getData(),o=e.coordinateSystem,i=o.getBaseAxis(),a=pfe(o,i),l=i.getExtent(),s="category"===i.type?i.getBandWidth():Math.abs(l[1]-l[0])/r.count(),c=t[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[a]=c;var d=dfe(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var p=BF(e.get("barWidth"),s),f=BF(e.get("barMaxWidth"),s),h=e.get("barGap"),g=e.get("barCategoryGap");p&&!u[d].width&&(p=Math.min(c.remainedWidth,p),u[d].width=p,c.remainedWidth-=p),f&&(u[d].maxWidth=f),null!=h&&(c.gap=h),null!=g&&(c.categoryGap=g)});var n={};return aj(t,function(e,t){n[t]={};var r=e.stacks,o=e.bandWidth,i=BF(e.categoryGap,o),a=BF(e.gap,1),l=e.remainedWidth,s=e.autoWidthCount,c=(l-i)/(s+(s-1)*a);c=Math.max(c,0),aj(r,function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,l),e.width&&(n=Math.min(n,e.width)),l-=n,e.width=n,s--)}),c=(l-i)/(s+(s-1)*a),c=Math.max(c,0);var u,d=0;aj(r,function(e,t){e.width||(e.width=c),u=e,d+=e.width*(1+a)}),u&&(d-=u.width*a);var p=-d/2;aj(r,function(e,r){n[t][r]=n[t][r]||{offset:p,width:e.width},p+=e.width*(1+a)})}),n}(cj(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type}));t.eachSeriesByType(e,function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=pfe(n,i),l=dfe(e),s=o[a][l],c=s.offset,u=s.width,d=n.getOtherAxis(i),p=e.coordinateSystem.cx,f=e.coordinateSystem.cy,h=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;r[l]=r[l]||[];for(var m=t.mapDimension(d.dim),v=t.mapDimension(i.dim),y=c3(t,m),b="radius"!==i.dim||!e.get("roundCap",!0),x=d.model.get("startValue"),w=d.dataToCoord(x||0),S=0,C=t.count();S<C;S++){var _=t.get(m,S),k=t.get(v,S),M=_>=0?"p":"n",I=w;y&&(r[l][k]||(r[l][k]={p:w,n:w}),I=r[l][k][M]);var E=void 0,O=void 0,$=void 0,T=void 0;if("radius"===d.dim){var P=d.dataToCoord(_)-w,D=i.dataToCoord(k);Math.abs(P)<h&&(P=(P<0?-1:1)*h),E=I,O=I+P,T=($=D-c)-u,y&&(r[l][k][M]=O)}else{var N=d.dataToCoord(_,b)-w,A=i.dataToCoord(k);Math.abs(N)<g&&(N=(N<0?-1:1)*g),O=(E=A+c)+u,$=I,T=I+N,y&&(r[l][k][M]=T)}t.setItemLayout(S,{cx:p,cy:f,r0:E,r:O,startAngle:-$*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:$>=T})}}})};var hfe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},gfe={splitNumber:5},mfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="polar",t}(qZ);function vfe(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,o={},i=r.position,a=r.orient,l=n.getRect(),s=[l.x,l.x+l.width,l.y,l.y+l.height],c={horizontal:{top:s[2],bottom:s[3]},vertical:{left:s[0],right:s[1]}};o.position=["vertical"===a?c.vertical[i]:s[0],"horizontal"===a?c.horizontal[i]:s[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[i],e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Ij(t.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var u=t.rotate;return null==u&&(u=e.get(["axisLabel","rotate"])),o.labelRotation="top"===i?-u:u,o.z2=1,o}var yfe=["axisLine","axisTickLabel","axisName"],bfe=["splitArea","splitLine"],xfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return MR(t,e),t.prototype.render=function(t,n,r,o){var i=this.group;i.removeAll();var a=this._axisGroup;this._axisGroup=new _F;var l=vfe(t),s=new Bee(t,l);aj(yfe,s.add,s),i.add(this._axisGroup),i.add(s.getGroup()),aj(bfe,function(e){t.get([e,"show"])&&wfe[e](this,this.group,this._axisGroup,t)},this),VJ(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,o)},t.prototype.remove=function(){Zee(this)},t.type="singleAxis",t}(qee),wfe={splitLine:function(e,t,n,r){var o=r.axis;if(!o.scale.isBlank()){var i=r.getModel("splitLine"),a=i.getModel("lineStyle"),l=a.get("color");l=l instanceof Array?l:[l];for(var s=a.get("width"),c=r.coordinateSystem.getRect(),u=o.isHorizontal(),d=[],p=0,f=o.getTicksCoords({tickModel:i}),h=[],g=[],m=0;m<f.length;++m){var v=o.toGlobalCoord(f[m].coord);u?(h[0]=v,h[1]=c.y,g[0]=v,g[1]=c.y+c.height):(h[0]=c.x,h[1]=v,g[0]=c.x+c.width,g[1]=v);var y=new ZQ({shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},silent:!0});RJ(y.shape,s);var b=p++%l.length;d[b]=d[b]||[],d[b].push(y)}var x=a.getLineStyle(["color"]);for(m=0;m<d.length;++m)t.add(NJ(d[m],{style:ej({stroke:l[m%l.length]},x),silent:!0}))}},splitArea:function(e,t,n,r){Kee(e,n,r,r)}};const Sfe=xfe;var Cfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Xq);oj(Cfe,_5.prototype);const _fe=Cfe;var kfe=function(e){function t(t,n,r,o,i){var a=e.call(this,t,n,r)||this;return a.type=o||"value",a.position=i||"bottom",a}return MR(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(r6);const Mfe=kfe;var Ife=["single"],Efe=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Ife,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,o=new Mfe(r,v5(e),[0,0],e.get("type"),e.get("position")),i="category"===o.type;o.onBand=i&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},e.prototype.update=function(e,t){e.eachSeries(function(e){if(e.coordinateSystem===this){var t=e.getData();aj(t.mapDimensionsAll(this.dimension),function(e){this._axis.scale.unionExtentFromData(t,e)},this),m5(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(e,t){this._rect=Hq({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],o=t.inverse?1:0;t.setExtent(r[o],r[1-o]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=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=[],o="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[o]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-o]=0===o?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return Ofe(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return Ofe(t)===this?this.pointToData(n):null},e}();function Ofe(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const $fe=Efe;var Tfe={create:function(e,t){var n=[];return e.eachComponent("singleAxis",function(r,o){var i=new $fe(r,e,t);i.name="single_"+o,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",OV).models[0];e.coordinateSystem=t&&t.coordinateSystem}}),n},dimensions:Ife};const Pfe=Tfe;var Dfe=["x","y"],Nfe=["width","height"],Afe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.makeElOption=function(e,t,n,r,o){var i=n.axis,a=i.coordinateSystem,l=Lfe(a,1-jfe(i)),s=a.dataToPoint(t)[0],c=r.get("type");if(c&&"none"!==c){var u=npe(r),d=Rfe[c](i,s,l);d.style=u,e.graphicKey=d.type,e.pointer=d}ape(t,e,vfe(n),n,r,o)},t.prototype.getHandleTransform=function(e,t,n){var r=vfe(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var o=ipe(t.axis,e,r);return{x:o[0],y:o[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var o=n.axis,i=o.coordinateSystem,a=jfe(o),l=Lfe(i,a),s=[e.x,e.y];s[a]+=t[a],s[a]=Math.min(l[1],s[a]),s[a]=Math.max(l[0],s[a]);var c=Lfe(i,1-a),u=(c[1]+c[0])/2,d=[u,u];return d[a]=s[a],{x:s[0],y:s[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(tpe),Rfe={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:lpe([t,n[0]],[t,n[1]],jfe(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:spe([t-r/2,n[0]],[r,o],jfe(e))}}};function jfe(e){return e.isHorizontal()?0:1}function Lfe(e,t){var n=e.getRect();return[n[Dfe[t]],n[Dfe[t]]+n[Nfe[t]]]}const zfe=Afe;var Bfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="single",t}(qZ);function Hfe(e,t){var n,r=e.cellSize;1===(n=hj(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var o=lj([0,1],function(e){return function(e,t){return null!=e[Lq[t][0]]||null!=e[Lq[t][1]]&&null!=e[Lq[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]});Wq(e,t,{type:"box",ignoreSize:o})}const Ffe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(t,n,r){var o=Gq(t);e.prototype.init.apply(this,arguments),Hfe(t,o)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),Hfe(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}(Xq);var Vfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var o=e.coordinateSystem,i=o.getRangeInfo(),a=o.getOrient(),l=t.getLocaleModel();this._renderDayRect(e,i,r),this._renderLines(e,i,a,r),this._renderYearText(e,i,a,r),this._renderMonthText(e,l,a,r),this._renderWeekText(e,l,i,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),i=r.getCellWidth(),a=r.getCellHeight(),l=t.start.time;l<=t.end.time;l=r.getNextNDay(l,1).time){var s=r.dataToRect([l],!1).tl,c=new jG({shape:{x:s[0],y:s[1],width:i,height:a},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,t,n,r){var o=this,i=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),l=e.get(["splitLine","show"]),s=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){p(c.formatedDate),0===u&&(c=i.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=i.getDateInfo(d)}function p(t){o._firstDayOfMonth.push(i.getDateInfo(t)),o._firstDayPoints.push(i.dataToRect([t],!1).tl);var s=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(s[0]),o._blpoints.push(s[s.length-1]),l&&o._drawSplitline(s,a,r)}p(i.getNextNDay(t.end.time,1).formatedDate),l&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,s,n),a,r),l&&this._drawSplitline(o._getEdgesPoints(o._blpoints,s,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],o="horizontal"===n?0:1;return r[0][o]=r[0][o]-t/2,r[1][o]=r[1][o]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new YQ({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,o=r.getDateInfo(t),i=[],a=0;a<7;a++){var l=r.getNextNDay(o.time,a),s=r.dataToRect([l.time],!1);i[2*l.day]=s.tl,i[2*l.day+1]=s["horizontal"===n?"bl":"tr"]}return i},t.prototype._formatterLabel=function(e,t){return mj(e)&&e?function(e,t,n){return aj(t,function(t,r){e=e.replace("{"+r+"}",n?PL(t):t)}),e}(e,t):gj(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,o){var i=t[0],a=t[1],l=["center","bottom"];"bottom"===r?(a+=o,l=["center","top"]):"left"===r?i-=o:"right"===r?(i+=o,l=["center","top"]):a-=o;var s=0;return"left"!==r&&"right"!==r||(s=Math.PI/2),{rotation:s,x:i,y:a,style:{align:l[0],verticalAlign:l[1]}}},t.prototype._renderYearText=function(e,t,n,r){var o=e.getModel("yearLabel");if(o.get("show")){var i=o.get("margin"),a=o.get("position");a||(a="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],s=(l[0][0]+l[1][0])/2,c=(l[0][1]+l[1][1])/2,u="horizontal"===n?0:1,d={top:[s,l[u][1]],bottom:[s,l[1-u][1]],left:[l[1-u][0],c],right:[l[u][0],c]},p=t.start.y;+t.end.y>+t.start.y&&(p=p+"-"+t.end.y);var f=o.get("formatter"),h={start:t.start.y,end:t.end.y,nameMap:p},g=this._formatterLabel(f,h),m=new JG({z2:30,style:hY(o,{text:g}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,d[a],n,a,i)),r.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,r,o){var i="left",a="top",l=e[0],s=e[1];return"horizontal"===n?(s+=o,t&&(i="center"),"start"===r&&(a="bottom")):(l+=o,t&&(a="middle"),"start"===r&&(i="right")),{x:l,y:s,align:i,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var o=e.getModel("monthLabel");if(o.get("show")){var i=o.get("nameMap"),a=o.get("margin"),l=o.get("position"),s=o.get("align"),c=[this._tlpoints,this._blpoints];i&&!mj(i)||(i&&(t=YY(i)||t),i=t.get(["time","monthAbbr"])||[]);var u="start"===l?0:1,d="horizontal"===n?0:1;a="start"===l?-a:a;for(var p="center"===s,f=o.get("silent"),h=0;h<c[u].length-1;h++){var g=c[u][h].slice(),m=this._firstDayOfMonth[h];if(p){var v=this._firstDayPoints[h];g[d]=(v[d]+c[0][h+1][d])/2}var y=o.get("formatter"),b=i[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(y,x),S=new JG({z2:30,style:JR(hY(o,{text:w}),this._monthTextPositionControl(g,p,n,l,a)),silent:f});r.add(S)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,o){var i="center",a="middle",l=e[0],s=e[1],c="start"===n;return"horizontal"===t?(l=l+r+(c?1:-1)*o[0]/2,i=c?"right":"left"):(s=s+r+(c?1:-1)*o[1]/2,a=c?"bottom":"top"),{x:l,y:s,align:i,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,r,o){var i=e.getModel("dayLabel");if(i.get("show")){var a=e.coordinateSystem,l=i.get("position"),s=i.get("nameMap"),c=i.get("margin"),u=a.getFirstDayOfWeek();if(!s||mj(s))s&&(t=YY(s)||t),s=t.get(["time","dayOfWeekShort"])||lj(t.get(["time","dayOfWeekAbbr"]),function(e){return e[0]});var d=a.getNextNDay(n.end.time,7-n.lweek).time,p=[a.getCellWidth(),a.getCellHeight()];c=BF(c,Math.min(p[1],p[0])),"start"===l&&(d=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var f=i.get("silent"),h=0;h<7;h++){var g,m=a.getNextNDay(d,h),v=a.dataToRect([m.time],!1).center;g=Math.abs((h+u)%7);var y=new JG({z2:30,style:JR(hY(i,{text:s[g]}),this._weekTextPositionControl(v,r,l,c,p)),silent:f});o.add(y)}}},t.type="calendar",t}(qZ);const Wfe=Vfe;var Gfe=864e5,Ufe=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=JF(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,o=e.getDate(),i=o<10?"0"+o:""+o,a=e.getDay();return{y:t+"",m:r,d:i,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+i,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.getCellSize().slice(),i=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];aj([0,1],function(e){c(o,e)&&(i[r[e]]=o[e]*a[e])});var l={width:t.getWidth(),height:t.getHeight()},s=this._rect=Hq(i,l);function c(e,t){return null!=e[t]&&"auto"!==e[t]}aj([0,1],function(e){c(o,e)||(o[e]=s[r[e]]/a[e])}),this._sw=o[0],this._sh=o[1]},e.prototype.dataToPoint=function(e,t){hj(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+Gfe))return[NaN,NaN];var i=n.day,a=this._getRangeInfo([r.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+i*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+i*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=Yfe(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=Yfe(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(hj(t)&&1===t.length&&(t=t[0]),hj(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),o=r.date;o.setMonth(o.getMonth()+1);var i=this.getNextNDay(o,-1);e=[r.formatedDate,i.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.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/Gfe)-Math.floor(n[0].time/Gfe)+1,o=new Date(n[0].time),i=o.getDate(),a=n[1].date.getDate();o.setDate(i+r-1);var l=o.getDate();if(l!==a)for(var s=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==a&&(o.getTime()-n[1].time)*s>0;)r-=s,o.setDate(l-s);var c=Math.floor((r+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:c,nthWeek:u,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&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var o=7*(e-1)-r.fweek+t,i=new Date(r.start.time);return i.setDate(+r.start.d+o),this.getDateInfo(i)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(o){var i=new e(o,t,n);r.push(i),o.coordinateSystem=i}),t.eachSeries(function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function Yfe(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}const qfe=Ufe;function Xfe(e,t){var n;return aj(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}var Kfe=["transition","enterFrom","leaveTo"],Zfe=Kfe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qfe(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?Kfe:Zfe,o=0;o<r.length;o++){var i=r[o];null==e[i]&&null!=t[i]&&(e[i]=t[i])}}var Jfe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return MR(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,o=n.elements=t?[]:n.elements,i=[];this._flatten(r,i,null);var a=yV(o,i,"normalMerge"),l=this._elOptionsToUpdate=[];aj(a,function(e,t){var n=e.newOption;n&&(l.push(n),function(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}(e,n),function(e,t,n){var r=JR({},n),o=e[t],i=n.$action||"merge";"merge"===i?o?(ZR(o,r,!0),Wq(o,r,{ignoreSize:!0}),Uq(n,o),Qfe(n,o),Qfe(n,o,"shape"),Qfe(n,o,"style"),Qfe(n,o,"extra"),n.clipPath=o.clipPath):e[t]=r:"replace"===i?e[t]=r:"remove"===i&&o&&(e[t]=null)}(o,t,n),function(e,t){if(e&&(e.hv=t.hv=[Xfe(t,["left","right"]),Xfe(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(o[t],n))},this),n.elements=cj(o,function(e){return e&&delete e.$action,null!=e})},t.prototype._flatten=function(e,t,n){aj(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Xq),ehe={path:null,compoundPath:null,group:_F,image:OG,text:JG},the=kV(),nhe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(){this._elMap=Bj()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,o=e.get("z"),i=e.get("zlevel");aj(t,function(t){var a=wV(t.id,null),l=null!=a?n.get(a):null,s=wV(t.parentId,null),c=null!=s?n.get(s):r,u=t.type,d=t.style;"text"===u&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=t.textContent,f=t.textConfig;if(d&&Gue(d,u,!!f,!!p)){var h=Uue(d,u,!0);!f&&h.textConfig&&(f=t.textConfig=h.textConfig),!p&&h.textContent&&(p=h.textContent)}var g=function(e){return e=JR({},e),aj(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(jq),function(t){delete e[t]}),e}(t);var m=t.$action||"merge",v="merge"===m,y="replace"===m;if(v){var b=l;(M=!l)?b=ohe(a,c,t.type,n):(b&&(the(b).isNew=!1),fde(b)),b&&(tde(b,g,e,{isInit:M}),ahe(b,t,o,i))}else if(y){ihe(l,t,n,e);var x=ohe(a,c,t.type,n);x&&(tde(x,g,e,{isInit:!0}),ahe(x,t,o,i))}else"remove"===m&&(nde(l,t),ihe(l,t,n,e));var w=n.get(a);if(w&&p)if(v){var S=w.getTextContent();S?S.attr(p):w.setTextContent(new JG(p))}else y&&w.setTextContent(new JG(p));if(w){var C=t.clipPath;if(C){var _=C.type,k=void 0,M=!1;if(v){var I=w.getClipPath();k=(M=!I||the(I).type!==_)?rhe(_):I}else y&&(M=!0,k=rhe(_));w.setClipPath(k),tde(k,C,e,{isInit:M}),hde(k,C.keyframeAnimation,e)}var E=the(w);w.setTextConfig(f),E.option=t,function(e,t,n){var r=eU(e).eventData;e.silent||e.ignore||r||(r=eU(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(w,e,t),KJ({el:w,componentModel:e,itemName:w.name,itemTooltipOption:t.tooltip}),hde(w,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,o=this._elMap,i=t.getWidth(),a=t.getHeight(),l=["x","y"],s=0;s<n.length;s++){if((h=null!=(f=wV((p=n[s]).id,null))?o.get(f):null)&&h.isGroup){var c=(g=h.parent)===r,u=the(h),d=the(g);u.width=BF(u.option.width,c?i:d.width)||0,u.height=BF(u.option.height,c?a:d.height)||0}}for(s=n.length-1;s>=0;s--){var p,f,h;if(h=null!=(f=wV((p=n[s]).id,null))?o.get(f):null){var g=h.parent,m=(d=the(g),{}),v=Fq(h,p,g===r?{width:i,height:a}:{width:d.width,height:d.height},null,{hv:p.hv,boundingMode:p.bounding},m);if(!the(h).isNew&&v){for(var y=p.transition,b={},x=0;x<l.length;x++){var w=l[x],S=m[w];y&&(ode(y)||nj(y,w)>=0)?b[w]=S:h[w]=S}nY(h,b,e,0)}else h.attr(m)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){ihe(n,the(n).option,t,e._lastGraphicModel)}),this._elMap=Bj()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(qZ);function rhe(e){var t=new(Wj(ehe,e)?ehe[e]:$J(e))({});return the(t).type=e,t}function ohe(e,t,n,r){var o=rhe(n);return t.add(o),r.set(e,o),the(o).id=e,the(o).isNew=!0,o}function ihe(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse(function(e){ihe(e,t,n,r)}),rde(e,t,r),n.removeKey(the(e).id))}function ahe(e,t,n,r){e.isGroup||aj([["cursor",bW.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(n){var r=n[0];Wj(t,r)?e[r]=Ej(t[r],n[1]):null==e[r]&&(e[r]=n[1])}),aj(dj(t),function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=gj(r)?r:null}}),Wj(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var lhe=["x","y","radius","angle","single"],she=["cartesian2d","polar","singleAxis"];function che(e){return e+"Axis"}function uhe(e,t){var n,r=Bj(),o=[],i=Bj();e.eachComponent({mainType:"dataZoom",query:t},function(e){i.get(e.uid)||l(e)});do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!i.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis(function(e,n){var o=r.get(e);o&&o[n]&&(t=!0)}),t}(e)&&(l(e),n=!0)}function l(e){i.set(e.uid,!0),o.push(e),e.eachTargetAxis(function(e,t){(r.get(e)||r.set(e,[]))[t]=!0})}return o}function dhe(e){var t=e.ecModel,n={infoList:[],infoMap:Bj()};return e.eachTargetAxis(function(e,r){var o=t.getComponent(che(e),r);if(o){var i=o.getCoordSysModel();if(i){var a=i.uid,l=n.infoMap.get(a);l||(l={model:i,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(o)}}}),n}var phe=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}(),fhe=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 MR(t,e),t.prototype.init=function(e,t,n){var r=hhe(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=hhe(e);ZR(this.option,e,!0),ZR(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;aj([["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=Bj();this._fillSpecifiedTargetAxis(t)?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 aj(lhe,function(n){var r=this.getReferringComponents(che(n),$V);if(r.specified){t=!0;var o=new phe;aj(r.models,function(e){o.add(e.componentIndex)}),e.set(n,o)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var o="vertical"===t?"y":"x";i(n.findComponents({mainType:o+"Axis"}),o)}r&&i(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function i(t,n){var o=t[0];if(o){var i=new phe;if(i.add(o.componentIndex),e.set(n,i),r=!1,"x"===n||"y"===n){var a=o.getReferringComponents("grid",OV).models[0];a&&aj(t,function(e){o.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",OV).models[0]&&i.add(e.componentIndex)})}}}r&&aj(lhe,function(t){if(r){var o=n.findComponents({mainType:che(t),filter:function(e){return"category"===e.get("type",!0)}});if(o[0]){var i=new phe;i.add(o[0].componentIndex),e.set(t,i),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");aj([["start","startValue"],["end","endValue"]],function(r,o){var i=null!=e[r[0]],a=null!=e[r[1]];i&&!a?t[o]="percent":!i&&a?t[o]="value":n?t[o]=n[o]:i&&(t[o]="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(che(t),n))},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){aj(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(che(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;aj([["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;aj(["start","startValue","end","endValue"],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var o=n[r],i=this._targetAxisInfoMap.get(o),a=0;a<i.indexList.length;a++){var l=this.getAxisProxy(o,i.indexList[a]);if(l.hostedBy(this))return l;t||(t=l)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Xq);function hhe(e){var t={};return aj(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const ghe=fhe;const mhe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="dataZoom.select",t}(ghe);var vhe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(qZ);const yhe=vhe;const bhe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="dataZoom.select",t}(yhe);var xhe=aj,whe=FF,She=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function(e){var t=e.get("coordinateSystem");return nj(she,t)>=0}(t)){var n=che(this._dimName),r=t.getReferringComponents(n,OV).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return KR(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],l=[];xhe(["start","end"],function(s,c){var u=e[s],d=e[s+"Value"];"percent"===o[c]?(null==u&&(u=i[c]),d=r.parse(zF(u,i,n))):(t=!0,u=zF(d=null==d?n[c]:r.parse(d),n,i)),l[c]=null==d||isNaN(d)?n[c]:d,a[c]=null==u||isNaN(u)?i[c]:u}),whe(l),whe(a);var s=this._minMaxSpan;function c(e,t,n,o,i){var a=i?"Span":"ValueSpan";Gae(0,e,n,"all",s["min"+a],s["max"+a]);for(var l=0;l<2;l++)t[l]=zF(e[l],n,o,!0),i&&(t[l]=r.parse(t[l]))}return t?c(l,a,n,i,!1):c(a,l,i,n,!0),{valueWindow:l,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];xhe(n,function(e){!function(e,t,n){t&&aj(C5(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}(r,e.getData(),t)});var o=e.getAxisModel(),i=f5(o.axis.scale,o,r).calculate();return[i.min,i.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),o=e.get("filterMode"),i=this._valueWindow;"none"!==o&&xhe(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===o){var a=t.getStore(),l=lj(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,o,s=0;s<r.length;s++){var c=a.get(l[s],e),u=!isNaN(c),d=c<i[0],p=c>i[1];if(u&&!d&&!p)return!0;u&&(o=!0),d&&(t=!0),p&&(n=!0)}return o&&t&&n})}else xhe(r,function(n){if("empty"===o)e.setData(t=t.map(n,function(e){return function(e){return e>=i[0]&&e<=i[1]}(e)?e:NaN}));else{var r={};r[n]=i,t.selectRange(r)}});xhe(r,function(e){t.setApproximateExtent(i,e)})}})}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;xhe(["min","max"],function(r){var o=t.get(r+"Span"),i=t.get(r+"ValueSpan");null!=i&&(i=this.getAxisModel().axis.scale.parse(i)),null!=i?o=zF(n[0]+i,n,[0,100],!0):null!=o&&(i=zF(o,[0,100],n,!0)-n[0]),e[r+"Span"]=o,e[r+"ValueSpan"]=i},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=GF(n,[0,500]);r=Math.min(r,20);var o=e.axis.scale.rawExtentInfo;0!==t[0]&&o.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&o.setDeterminedMinMax("max",+n[1].toFixed(r)),o.freeze()}},e}();const Che=She;var _he={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,o){var i=e.getComponent(che(r),o);t(r,o,i,n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,o,i){o.__dzAxisProxy||(o.__dzAxisProxy=new Che(t,r,i,e),n.push(o.__dzAxisProxy))});var r=Bj();return aj(n,function(e){aj(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]})}})}};const khe=_he;var Mhe=!1;function Ihe(e){Mhe||(Mhe=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,khe),function(e){e.registerAction("dataZoom",function(e,t){aj(uhe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ehe(e){e.registerComponentModel(mhe),e.registerComponentView(bhe),Ihe(e)}var Ohe=function(){},$he={};function The(e,t){$he[e]=t}function Phe(e){return $he[e]}const Dhe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;aj(this.option.feature,function(e,n){var r=Phe(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),ZR(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}(Xq);function Nhe(e,t){var n=Mq(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new jG({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})}var Ahe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.render=function(e,t,n,r){var o=this.group;if(o.removeAll(),e.get("show")){var i=+e.get("itemSize"),a="vertical"===e.get("orient"),l=e.get("feature")||{},s=this._features||(this._features={}),c=[];aj(l,function(e,t){c.push(t)}),new $4(this._featureNames||[],c).add(u).update(u).remove(fj(u,null)).execute(),this._featureNames=c,function(e,t,n){var r=t.getBoxLayoutParams(),o=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},a=Hq(r,i,o);Bq(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Fq(e,r,i,o)}(o,e,n),o.add(Nhe(o.getBoundingRect(),e)),a||o.eachChild(function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),l=e.getTextContent(),s=l&&l.ensureState("emphasis");if(s&&!gj(s)&&t){var c=s.style||(s.style={}),u=aF(t,JG.makeFont(c)),d=e.x+o.x,p=!1;e.y+o.y+i+u.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-u.height:i+10;d+u.width/2>n.getWidth()?(a.position=["100%",f],c.align="right"):d-u.width/2<0&&(a.position=[0,f],c.align="left")}})}function u(u,d){var p,f=c[u],h=c[d],g=l[f],m=new RY(g,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===f&&(g.title=r.newTitle),f&&!h){if(function(e){return 0===e.indexOf("my")}(f))p={onclick:m.option.onclick,featureName:f};else{var v=Phe(f);if(!v)return;p=new v}s[f]=p}else if(!(p=s[h]))return;p.uid=LY("toolbox-feature"),p.model=m,p.ecModel=t,p.api=n;var y=p instanceof Ohe;f||!h?!m.get("show")||y&&p.unusable?y&&p.remove&&p.remove(t,n):(!function(r,l,s){var c,u,d=r.getModel("iconStyle"),p=r.getModel(["emphasis","iconStyle"]),f=l instanceof Ohe&&l.getIcons?l.getIcons():r.get("icon"),h=r.get("title")||{};mj(f)?(c={})[s]=f:c=f;mj(h)?(u={})[s]=h:u=h;var g=r.iconPaths={};aj(c,function(s,c){var f=UJ(s,{},{x:-i/2,y:-i/2,width:i,height:i});f.setStyle(d.getItemStyle()),f.ensureState("emphasis").style=p.getItemStyle();var h=new JG({style:{text:u[c],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null,font:xY({fontStyle:p.get("textFontStyle"),fontFamily:p.get("textFontFamily"),fontSize:p.get("textFontSize"),fontWeight:p.get("textFontWeight")},t)},ignore:!0});f.setTextContent(h),KJ({el:f,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),f.__title=u[c],f.on("mouseover",function(){var t=p.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";h.setStyle({fill:p.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||r}),h.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",c])&&n.leaveEmphasis(this),h.hide()}),("emphasis"===r.get(["iconStatus",c])?$U:TU)(f),o.add(f),f.on("click",pj(l.onclick,l,t,n,c)),g[c]=f})}(m,p,f),m.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?$U:TU)(r[e])},p instanceof Ohe&&p.render&&p.render(m,t,n,r)):y&&p.dispose&&p.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){aj(this._features,function(e){e instanceof Ohe&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.remove=function(e,t){aj(this._features,function(n){n instanceof Ohe&&n.remove&&n.remove(e,t)}),this.group.removeAll()},t.prototype.dispose=function(e,t){aj(this._features,function(n){n instanceof Ohe&&n.dispose&&n.dispose(e,t)})},t.type="toolbox",t}(qZ);const Rhe=Ahe;var jhe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),i=o?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:i,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),l=$R.browser;if("function"!==typeof MouseEvent||!l.newEdge&&(l.ie||l.edge))if(window.navigator.msSaveOrOpenBlob||o){var s=a.split(","),c=s[0].indexOf("base64")>-1,u=o?decodeURIComponent(s[1]):s[1];c&&(u=window.atob(u));var d=r+"."+i;if(window.navigator.msSaveOrOpenBlob){for(var p=u.length,f=new Uint8Array(p);p--;)f[p]=u.charCodeAt(p);var h=new Blob([f]);window.navigator.msSaveOrOpenBlob(h,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),m.focus(),v.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var y=n.get("lang"),b='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',x=window.open();x.document.write(b),x.document.title=r}else{var w=document.createElement("a");w.download=r+"."+i,w.target="_blank",w.href=a;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},t.getDefaultOption=function(e){return{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"])}},t}(Ohe);const Lhe=jhe;var zhe="__ec_magicType_stack__",Bhe=[["line","bar"],["stack"]],Hhe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return aj(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{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:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,o=r.get(["seriesIndex",n]);if(Fhe[n]){var i,a={series:[]};aj(Bhe,function(e){nj(e,n)>=0&&aj(e,function(e){r.setIconStatus(e,"normal")})}),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(e){var t=e.subType,o=e.id,i=Fhe[n](t,o,e,r);i&&(ej(i,e.option),a.series.push(i));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var s=l.getAxesByScale("ordinal")[0];if(s){var c=s.dim+"Axis",u=e.getReferringComponents(c,OV).models[0].componentIndex;a[c]=a[c]||[];for(var d=0;d<=u;d++)a[c][u]=a[c][u]||{};a[c][u].boundaryGap="bar"===n}}});var l=n;"stack"===n&&(i=ZR({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:i,featureName:"magicType"})}},t}(Ohe),Fhe={line:function(e,t,n,r){if("bar"===e)return ZR({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 ZR({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 o=n.get("stack")===zhe;if("line"===e||"bar"===e)return r.setIconStatus("stack",o?"normal":"emphasis"),ZR({id:t,stack:o?"":zhe},r.get(["option","stack"])||{},!0)}};d4({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const Vhe=Hhe;var Whe=new Array(60).join("-"),Ghe="\t";function Uhe(e){var t=[];return aj(e,function(e,n){var r=e.categoryAxis,o=e.valueAxis.dim,i=[" "].concat(lj(e.series,function(e){return e.name})),a=[r.model.getCategories()];aj(e.series,function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(o),function(e){return e}))});for(var l=[i.join(Ghe)],s=0;s<a[0].length;s++){for(var c=[],u=0;u<a.length;u++)c.push(a[u][s]);l.push(c.join(Ghe))}t.push(l.join("\n"))}),t.join("\n\n"+Whe+"\n\n")}function Yhe(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var qhe=new RegExp("[\t]+","g");function Xhe(e,t){var n=e.split(new RegExp("\n*"+Whe+"\n*","g")),r={series:[]};return aj(n,function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(Ghe)>=0)return!0}(e)){var o=function(e){for(var t=e.split(/\n+/g),n=[],r=lj(Yhe(t.shift()).split(qhe),function(e){return{name:e,data:[]}}),o=0;o<t.length;o++){var i=Yhe(t[o]).split(qhe);n.push(i.shift());for(var a=0;a<i.length;a++)r[a]&&(r[a].data[o]=i[a])}return{series:r,categories:n}}(e),i=t[n],a=i.axisDim+"Axis";i&&(r[a]=r[a]||[],r[a][i.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{o=function(e){for(var t=e.split(/\n+/g),n=Yhe(t.shift()),r=[],o=0;o<t.length;o++){var i=Yhe(t[o]);if(i){var a=i.split(qhe),l="",s=void 0,c=!1;isNaN(a[0])?(c=!0,l=a[0],a=a.slice(1),r[o]={name:l,value:[]},s=r[o].value):s=r[o]=[];for(var u=0;u<a.length;u++)s.push(+a[u]);1===s.length&&(c?r[o].value=s[0]:r[o]=s[0])}}return{name:n,data:r}}(e);r.series.push(o)}}),r}var Khe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:"hideTip"})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=r.get("backgroundColor")||"#fff";var i=document.createElement("h4"),a=r.get("lang")||[];i.innerHTML=a[0]||r.get("title"),i.style.cssText="margin:10px 20px",i.style.color=r.get("textColor");var l=document.createElement("div"),s=document.createElement("textarea");l.style.cssText="overflow:auto";var c=r.get("optionToContent"),u=r.get("contentToOption"),d=function(e){var t,n=function(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var i=o.getBaseAxis();if("category"===i.type){var a=i.dim+"_"+i.index;t[a]||(t[a]={categoryAxis:i,valueAxis:o.getOtherAxis(i),series:[]},r.push({axisDim:i.dim,axisIndex:i.index})),t[a].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:cj([Uhe(n.seriesGroupByCategoryAxis),(t=n.other,lj(t,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,o=arguments[e-1],i=t.getName(o),a=0;a<e-1;a++)r[a]=arguments[a];n.push((i?i+Ghe:"")+r.join(Ghe))}),n.join("\n")}).join("\n\n"+Whe+"\n\n"))],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join("\n\n"+Whe+"\n\n"),meta:n.meta}}(e);if(gj(c)){var p=c(t.getOption());mj(p)?l.innerHTML=p:Sj(p)&&l.appendChild(p)}else{s.readOnly=r.get("readOnly");var f=s.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=r.get("textColor"),f.borderColor=r.get("textareaBorderColor"),f.backgroundColor=r.get("textareaColor"),s.value=d.value,l.appendChild(s)}var h=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}BL(v,"click",x),BL(y,"click",function(){if(null==u&&null!=c||null!=u&&null==c)x();else{var e;try{e=gj(u)?u(l,t.getOption()):Xhe(s.value,h)}catch(vDe){throw x(),new Error("Data view format error "+vDe)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),x()}}),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!r.get("readOnly")&&g.appendChild(y),g.appendChild(v),o.appendChild(i),o.appendChild(l),o.appendChild(g),l.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(Ohe);function Zhe(e,t){return lj(e,function(e,n){var r=t&&t[n];if(bj(r)&&!hj(r)){bj(e)&&!hj(e)||(e={value:e});var o=null!=r.name&&null==e.name;return e=ej(e,r),o&&delete e.name,e}return e})}d4({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];aj(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(r){var o=r.get("data");n.push({name:e.name,data:Zhe(e.data,o)})}else n.push(JR({type:"scatter"},e))}),t.mergeOption(ej({series:n},e.newOption))});const Qhe=Khe;var Jhe=aj,ege=kV();function tge(e){var t=ege(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var nge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.onclick=function(e,t){!function(e){ege(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{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"])}},t}(Ohe);d4({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const rge=nge;var oge=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ige=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var o=lge(t,e);aj(sge,function(e,t){(!n||!n.include||nj(n.include,t)>=0)&&e(o,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=dge[e.brushType](0,n,t);e.__rangeOffset={offset:fge[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){aj(e,function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&aj(r.coordSyses,function(r){var o=dge[e.brushType](1,r,e.range,!0);n(e,o.values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){aj(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=dge[e.brushType](0,n.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?fge[e.brushType](r.values,o.offset,function(e,t){var n=gge(e),r=gge(t),o=[n[0]/r[0],n[1]/r[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}(r.xyMinMax,o.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return lj(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Zle(r),isTargetByCursor:Jle(r,e,n.coordSysModel),getLinearBrushOtherExtent:Qle(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&nj(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=lge(t,e),o=0;o<n.length;o++){var i=n[o],a=e.panelId;if(a){if(i.panelId===a)return i}else for(var l=0;l<cge.length;l++)if(cge[l](r,i))return i}return!0},e}();function age(e){return e[0]>e[1]&&e.reverse(),e}function lge(e,t){return IV(e,t,{includeMainTypes:oge})}var sge={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,o=e.gridModels,i=Bj(),a={},l={};(n||r||o)&&(aj(n,function(e){var t=e.axis.grid.model;i.set(t.id,t),a[t.id]=!0}),aj(r,function(e){var t=e.axis.grid.model;i.set(t.id,t),l[t.id]=!0}),aj(o,function(e){i.set(e.id,e),a[e.id]=!0,l[e.id]=!0}),i.each(function(e){var o=e.coordinateSystem,i=[];aj(o.getCartesians(),function(e,t){(nj(n,e.getAxis("x").model)>=0||nj(r,e.getAxis("y").model)>=0)&&i.push(e)}),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:i[0],coordSyses:i,getPanelRect:uge.grid,xAxisDeclared:a[e.id],yAxisDeclared:l[e.id]})}))},geo:function(e,t){aj(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:uge.geo})})}},cge=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,o=e.gridModel;return!o&&n&&(o=n.axis.grid.model),!o&&r&&(o=r.axis.grid.model),o&&o===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],uge={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(zJ(e)),t}},dge={lineX:fj(pge,0),lineY:fj(pge,1),rect:function(e,t,n,r){var o=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[age([o[0],i[0]]),age([o[1],i[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var o=[[1/0,-1/0],[1/0,-1/0]],i=lj(n,function(n){var i=e?t.pointToData(n,r):t.dataToPoint(n,r);return o[0][0]=Math.min(o[0][0],i[0]),o[1][0]=Math.min(o[1][0],i[1]),o[0][1]=Math.max(o[0][1],i[0]),o[1][1]=Math.max(o[1][1],i[1]),i});return{values:i,xyMinMax:o}}};function pge(e,t,n,r){var o=n.getAxis(["x","y"][e]),i=age(lj([0,1],function(e){return t?o.coordToData(o.toLocalCoord(r[e]),!0):o.toGlobalCoord(o.dataToCoord(r[e]))})),a=[];return a[e]=i,a[1-e]=[NaN,NaN],{values:i,xyMinMax:a}}var fge={lineX:fj(hge,0),lineY:fj(hge,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 lj(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function hge(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function gge(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const mge=ige;var vge,yge,bge=aj,xge=pV+"toolbox-dataZoom_",wge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Kle(n.getZr()),this._brushController.on("brush",pj(this._onBrush,this)).mount()),function(e,t,n,r,o){var i=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(i="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var a=new mge(Cge(e),t,{include:["grid"]}),l=a.makePanelOpts(o,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(l).enableBrush(!(!i||!l.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return tge(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){Sge[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([]),new mge(Cge(this.model),r,{include:["grid"]}).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)}}),function(e,t){var n=tge(e);Jhe(t,function(t,r){for(var o=n.length-1;o>=0&&!n[o][r];o--);if(o<0){var i=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(i){var a=i.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}}),n.push(t)}(r,n),this._dispatchZoomAction(n)}function o(e,t,o){var i=t.getAxis(e),a=i.model,l=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}(e,a,r),s=l.findRepresentativeAxisProxy(a).getMinMaxSpan();null==s.minValueSpan&&null==s.maxValueSpan||(o=Gae(0,o.slice(),i.scale.getExtent(),0,s.minValueSpan,s.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:o[0],endValue:o[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];bge(e,function(e,n){t.push(KR(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{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)"}}},t}(Ohe),Sge={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=tge(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Jhe(n,function(e,n){for(var o=t.length-1;o>=0;o--)if(e=t[o][n]){r[n]=e;break}}),r}(this.ecModel))}};function Cge(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}vge="dataZoom",yge=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),o=[],i=IV(e,Cge(r));return bge(i.xAxisModels,function(e){return a(e,"xAxis","xAxisIndex")}),bge(i.yAxisModels,function(e){return a(e,"yAxis","yAxisIndex")}),o}function a(e,t,n){var i=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:xge+t+i};a[n]=i,o.push(a)}},Pj(null==gX.get(vge)&&yge),gX.set(vge,yge);const _ge=wge;const kge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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}(Xq);function Mge(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function Ige(e){if($R.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var Ege=Ige(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Oge(e,t){if(!e)return t;t=kq(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var $ge=Oge(Ige(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Tge=Oge(Ege,"transform"),Pge="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+($R.transform3dSupported?"will-change:transform;":"");function Dge(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!$R.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var i=$R.transform3dSupported,a="translate"+(i?"3d":"")+"("+r+","+o+(i?",0":"")+")";return n?"top:0;left:0;"+Tge+":"+a+";":[["top",0],["left",0],[Ege,a]]}function Nge(e,t,n){var r=[],o=e.get("transitionDuration"),i=e.get("backgroundColor"),a=e.get("shadowBlur"),l=e.get("shadowColor"),s=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=PZ(e,"html"),p=s+"px "+c+"px "+a+"px "+l;return r.push("box-shadow:"+p),t&&o&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,o="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,o+=$R.transformSupported?","+Tge+r:",left"+r+",top"+r),$ge+":"+o}(o,n)),i&&r.push("background-color:"+i),aj(["width","color","radius"],function(t){var n="border-"+t,o=kq(n),i=e.get(o);null!=i&&r.push(n+":"+i+("color"===t?"":"px"))}),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=Ej(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+o+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+l+"px "+s+"px "+a+"px "+i),aj(["decoration","align"],function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)}),t.join(";")}(u)),null!=d&&r.push("padding:"+Mq(d).join("px ")+"px"),r.join(";")+";"}function Age(e,t,n,r,o){var i=t&&t.painter;if(n){var a=i&&i.getViewportRoot();a&&function(e,t,n,r,o){EL(IL,t,r,o,!0)&&EL(e,n,IL[0],IL[1])}(e,a,n,r,o)}else{e[0]=r,e[1]=o;var l=i&&i.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Rge=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,$R.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),o=t.appendTo,i=o&&(mj(o)?document.querySelector(o):Sj(o)?o:gj(o)&&o(e.getDom()));Age(this._styleCoord,r,i,e.getWidth()/2,e.getHeight()/2),(i||e.getDom()).appendChild(n),this._api=e,this._container=i;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;zL(r.painter.getViewportRoot(),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=function(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,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,o=this._styleCoord;n.innerHTML?r.cssText=Pge+Nge(e,!this._firstShow,this._longHide)+Dge(o[0],o[1],!0)+"border-color:"+Nq(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,o){var i=this.el;if(null!=e){var a="";if(mj(o)&&"item"===n.get("trigger")&&!Mge(n)&&(a=function(e,t,n){if(!mj(n)||"inside"===n)return"";var r=e.get("backgroundColor"),o=e.get("borderWidth");t=Nq(t);var i,a,l="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",s=Math.max(1.5*Math.round(o),6),c="",u=Tge+":";nj(["left","right"],l)>-1?(c+="top:50%",u+="translateY(-50%) rotate("+(a="left"===l?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(a="top"===l?225:45)+"deg)");var d=a*Math.PI/180,p=s+o,f=p*Math.abs(Math.cos(d))+p*Math.abs(Math.sin(d)),h=t+" solid "+o+"px;";return'<div style="'+["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",(c+=";"+l+":-"+Math.round(100*((f-Math.SQRT2*o)/2+Math.SQRT2*o-(f-p)/2))/100+"px")+";"+u+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"].join("")+'"></div>'}(n,r,o)),mj(e))i.innerHTML=e+a;else if(e){i.innerHTML="",hj(e)||(e=[e]);for(var l=0;l<e.length;l++)Sj(e[l])&&e[l].parentNode!==i&&i.appendChild(e[l]);if(a&&i.childNodes.length){var s=document.createElement("div");s.innerHTML=a,i.appendChild(s)}}}else i.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(Age(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;aj(Dge(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",$R.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pj(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}();const jge=Rge;var Lge=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Hge(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,o){var i=this;bj(e)&&LK(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new JG({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:PZ(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),aj(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(e){i.el.style[e]=n.get(e)}),aj(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(e){i.el.style[e]=a.get(e)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=Bge(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;Hge(r,this._zr,e,t),e=r[0],t=r[1];var o=n.style,i=zge(o.borderWidth||0),a=Bge(o);n.x=e+i+a.left,n.y=t+i+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(pj(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function zge(e){return Math.max(0,e)}function Bge(e){var t=zge(e.shadowBlur||0),n=zge(e.shadowOffsetX||0),r=zge(e.shadowOffsetY||0);return{left:zge(t-n),right:zge(t+n),top:zge(t-r),bottom:zge(t+r)}}function Hge(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const Fge=Lge;var Vge=new jG({shape:{x:-1,y:-1,width:2,height:2}}),Wge=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(e,t){if(!$R.node&&t.getDom()){var n,r=e.getComponent("tooltip"),o=this._renderMode="auto"===(n=r.get("renderMode"))?$R.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===o?new Fge(t):new jge(t,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!$R.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?p0(this,"_updatePosition",50,"fixRate"):f0(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");ype("itemTooltip",this._api,pj(function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&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 o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,t,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!$R.node&&n.getDom()){var o=Uge(r,n);this._ticket="";var i=r.dataByCoordSys,a=function(e,t,n){var r=EV(e).queryOptionMap,o=r.keys()[0];if(!o||"series"===o)return;var i=TV(t,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=i.models[0];if(!a)return;var l,s=n.getViewOfComponentModel(a);if(s.group.traverse(function(t){var n=eU(t).tooltipConfig;if(n&&n.name===e.name)return l=t,!0}),l)return{componentMainType:o,componentIndex:a.componentIndex,el:l}}(r,t,n);if(a){var l=a.el.getBoundingRect().clone();l.applyTransform(a.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:a.el,position:r.position,positionDefault:"bottom"},o)}else if(r.tooltip&&null!=r.x&&null!=r.y){var s=Vge;s.x=r.x,s.y=r.y,s.update(),eU(s).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:s},o)}else if(i)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:i,tooltipOption:r.tooltipOption},o);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=_pe(r,t),u=c.point[0],d=c.point[1];null!=u&&null!=d&&this._tryShow({offsetX:u,offsetY:d,target:c.el,position:r.position,positionDefault:"bottom"},o)}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},o))}},t.prototype.manuallyHideTip=function(e,t,n,r){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(Uge(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var o=r.seriesIndex,i=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=i&&null!=a){var l=t.getSeriesByIndex(o);if(l)if("axis"===Gge([l.getData().getItemModel(i),l,(l.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:i,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,i;if("legend"===eU(n).ssrType)return;this._lastDataByCoordSys=null,o1(n,function(e){return null!=eU(e).dataIndex?(o=e,!0):null!=eU(e).tooltipConfig?(i=e,!0):void 0},!0),o?this._showSeriesItemTooltip(e,o,t):i?this._showComponentItemTooltip(e,i,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=pj(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,o=[t.offsetX,t.offsetY],i=Gge([t.tooltipOption],r),a=this._renderMode,l=[],s=SZ("section",{blocks:[],noHeader:!0}),c=[],u=new DZ;aj(e,function(e){aj(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),o=e.value;if(t&&null!=o){var i=ope(o,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=SZ("section",{header:i,noHeader:!Dj(i),sortBlocks:!0,blocks:[]});s.blocks.push(d),aj(e.seriesDataIndices,function(s){var p=n.getSeriesByIndex(s.seriesIndex),f=s.dataIndexInside,h=p.getDataParams(f);if(!(h.dataIndex<0)){h.axisDim=e.axisDim,h.axisIndex=e.axisIndex,h.axisType=e.axisType,h.axisId=e.axisId,h.axisValue=b5(t.axis,{value:o}),h.axisValueLabel=i,h.marker=u.makeTooltipMarker("item",Nq(h.color),a);var g=DK(p.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=Gge([p],r).get("valueFormatter");d.blocks.push(v?JR({valueFormatter:v},m):m)}g.text&&c.push(g.text),l.push(h)}})}})}),s.blocks.reverse(),c.reverse();var d=t.position,p=i.get("order"),f=EZ(s,u,a,p,n.get("useUTC"),i.get("textStyle"));f&&c.unshift(f);var h="richText"===a?"\n\n":"<br/>",g=c.join(h);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(i,d,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(i,g,l,Math.random()+"",o[0],o[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,o=eU(t),i=o.seriesIndex,a=r.getSeriesByIndex(i),l=o.dataModel||a,s=o.dataIndex,c=o.dataType,u=l.getData(c),d=this._renderMode,p=e.positionDefault,f=Gge([u.getItemModel(s),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),h=f.get("trigger");if(null==h||"item"===h){var g=l.getDataParams(s,c),m=new DZ;g.marker=m.makeTooltipMarker("item",Nq(g.color),d);var v=DK(l.formatTooltip(s,!1,c)),y=f.get("order"),b=f.get("valueFormatter"),x=v.frag,w=x?EZ(b?JR({valueFormatter:b},x):x,m,d,y,r.get("useUTC"),f.get("textStyle")):v.text,S="item_"+l.name+"_"+s;this._showOrMove(f,function(){this._showTooltipContent(f,w,g,S,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:s,dataIndex:u.getRawIndex(s),seriesIndex:i,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r="html"===this._renderMode,o=eU(t),i=o.tooltipConfig.option||{},a=i.encodeHTMLContent;if(mj(i)){i={content:i,formatter:i},a=!0}a&&r&&i.content&&((i=KR(i)).content=PL(i.content));var l=[i],s=this._ecModel.getComponent(o.componentMainType,o.componentIndex);s&&l.push(s),l.push({formatter:i.content});var c=e.positionDefault,u=Gge(l,this._tooltipModel,c?{position:c}:null),d=u.get("content"),p=Math.random()+"",f=new DZ;this._showOrMove(u,function(){var n=KR(u.get("formatterParams")||{});this._showTooltipContent(u,d,n,p,e.offsetX,e.offsetY,e.position,t,f)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,o,i,a,l,s){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");a=a||e.get("position");var d=t,p=this._getNearestPoint([o,i],n,e.get("trigger"),e.get("borderColor")).color;if(u)if(mj(u)){var f=e.ecModel.get("useUTC"),h=hj(n)?n[0]:n;d=u,h&&h.axisType&&h.axisType.indexOf("time")>=0&&(d=lq(h.axisValue,d,f)),d=$q(d,n,!0)}else if(gj(u)){var g=pj(function(t,r){t===this._ticket&&(c.setContent(r,s,e,p,a),this._updatePosition(e,a,o,i,c,n,l))},this);this._ticket=r,d=u(n,r,g)}else d=u;c.setContent(d,s,e,p,a),c.show(e,p),this._updatePosition(e,a,o,i,c,n,l)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||hj(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:hj(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,o,i,a){var l=this._api.getWidth(),s=this._api.getHeight();t=t||e.get("position");var c=o.getSize(),u=e.get("align"),d=e.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),gj(t)&&(t=t([n,r],i,o.el,p,{viewSize:[l,s],contentSize:c.slice()})),hj(t))n=BF(t[0],l),r=BF(t[1],s);else if(bj(t)){var f=t;f.width=c[0],f.height=c[1];var h=Hq(f,{width:l,height:s});n=h.x,r=h.y,u=null,d=null}else if(mj(t)&&a){var g=function(e,t,n,r){var o=n[0],i=n[1],a=Math.ceil(Math.SQRT2*r)+8,l=0,s=0,c=t.width,u=t.height;switch(e){case"inside":l=t.x+c/2-o/2,s=t.y+u/2-i/2;break;case"top":l=t.x+c/2-o/2,s=t.y-i-a;break;case"bottom":l=t.x+c/2-o/2,s=t.y+u+a;break;case"left":l=t.x-o-a,s=t.y+u/2-i/2;break;case"right":l=t.x+c+a,s=t.y+u/2-i/2}return[l,s]}(t,p,c,e.get("borderWidth"));n=g[0],r=g[1]}else{g=function(e,t,n,r,o,i,a){var l=n.getSize(),s=l[0],c=l[1];null!=i&&(e+s+i+2>r?e-=s+i:e+=i);null!=a&&(t+c+a>o?t-=c+a:t+=a);return[e,t]}(n,r,o,l,s,u?null:20,d?null:20);n=g[0],r=g[1]}if(u&&(n-=Yge(u)?c[0]/2:"right"===u?c[0]:0),d&&(r-=Yge(d)?c[1]/2:"bottom"===d?c[1]:0),Mge(e)){g=function(e,t,n,r,o){var i=n.getSize(),a=i[0],l=i[1];return e=Math.min(e+a,r)-a,t=Math.min(t+l,o)-l,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,o,l,s);n=g[0],r=g[1]}o.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,o=!!n&&n.length===e.length;return o&&aj(n,function(n,i){var a=n.dataByAxis||[],l=(e[i]||{}).dataByAxis||[];(o=o&&a.length===l.length)&&aj(a,function(e,n){var i=l[n]||{},a=e.seriesDataIndices||[],s=i.seriesDataIndices||[];(o=o&&e.value===i.value&&e.axisType===i.axisType&&e.axisId===i.axisId&&a.length===s.length)&&aj(a,function(e,t){var n=s[t];o=o&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&aj(e.seriesDataIndices,function(e){var n=e.seriesIndex,i=t[n],a=r[n];i&&a&&a.data!==i.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!$R.node&&t.getDom()&&(f0(this,"_updatePosition"),this._tooltipContent.dispose(),wpe("itemTooltip",t))},t.type="tooltip",t}(qZ);function Gge(e,t,n){var r,o=t.ecModel;n?(r=new RY(n,o,o),r=new RY(t.option,r,o)):r=t;for(var i=e.length-1;i>=0;i--){var a=e[i];a&&(a instanceof RY&&(a=a.get("tooltip",!0)),mj(a)&&(a={formatter:a}),a&&(r=new RY(a,r,o)))}return r}function Uge(e,t){return e.dispatchAction||pj(t.dispatchAction,t)}function Yge(e){return"center"===e||"middle"===e}const qge=Wge;var Xge=["rect","polygon","keep","clear"];function Kge(e,t){var n=fV(e?e.brush:[]);if(n.length){var r=[];aj(n,function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var o=e&&e.toolbox;hj(o)&&(o=o[0]),o||(o={feature:{}},e.toolbox=[o]);var i=o.feature||(o.feature={}),a=i.brush||(i.brush={}),l=a.type||(a.type=[]);l.push.apply(l,r),function(e){var t={};aj(e,function(e){t[e]=1}),e.length=0,aj(t,function(t,n){e.push(n)})}(l),t&&!l.length&&l.push.apply(l,Xge)}}var Zge=aj;function Qge(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function Jge(e,t,n){var r={};return Zge(t,function(t){var o=r[t]=function(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}();Zge(e[t],function(e,r){if(Doe.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new Doe(i),"opacity"===r&&((i=KR(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new Doe(i))}})}),r}function eme(e,t,n){var r;aj(n,function(e){t.hasOwnProperty(e)&&Qge(t[e])&&(r=!0)}),r&&aj(n,function(n){t.hasOwnProperty(n)&&Qge(t[n])?e[n]=KR(t[n]):delete e[n]})}var tme={lineX:nme(0),lineY:nme(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&T5(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var o=e.x,i=e.y,a=e.width,l=e.height,s=r[0];return!!(T5(r,o,i)||T5(r,o+a,i)||T5(r,o,i+l)||T5(r,o+a,i+l)||fz.create(e).contain(s[0],s[1])||YJ(o,i,o+a,i,r)||YJ(o,i,o,i+l,r)||YJ(o+a,i,o+a,i+l,r)||YJ(o,i+l,o+a,i+l,r))||void 0}}};function nme(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var o=r.range;return rme(t[e],o)}},rect:function(r,o,i){if(r){var a=i.range,l=[r[t[e]],r[t[e]]+r[n[e]]];return l[1]<l[0]&&l.reverse(),rme(l[0],a)||rme(l[1],a)||rme(a[0],l)||rme(a[1],l)}}}}function rme(e,t){return t[0]<=e&&e<=t[1]}var ome=["inBrush","outOfBrush"],ime="__ecBrushSelect",ame="__ecInBrushSelectEvent";function lme(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new mge(t.option,e)).setInputRanges(t.areas,e)})}function sme(e,t,n){var r,o,i=[];e.eachComponent({mainType:"brush"},function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})}),lme(e),e.eachComponent({mainType:"brush"},function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:KR(t.areas),selected:[]};i.push(a);var l=t.option,s=l.brushLink,c=[],u=[],d=[],p=!1;n||(r=l.throttleType,o=l.throttleDelay);var f=lj(t.areas,function(e){var t=dme[e.brushType],n=ej({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return tme[t].point(r,n,e)},rect:function(r){return tme[t].rect(r,n,e)}};return n}(n),n}),h=Jge(t.option,ome,function(e){e.mappingMethod="fixed"});function g(e){return"all"===s||!!c[e]}function m(e){return!!e.length}hj(s)&&aj(s,function(e){c[e]=1}),e.eachSeries(function(n,r){var o=d[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;p=p||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),function(e,t){"active"===e&&(u[t]=1)})}(n,r):function(n,r,o){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(hj(n)?nj(n,t)<0:t!==n)}(t,r))return;if(aj(f,function(r){t.brushTargetManager.controlSeries(r,n,e)&&o.push(r),p=p||m(o)}),g(r)&&m(o)){var i=n.getData();i.each(function(e){ume(n,o,i,e)&&(u[e]=1)})}}(n,r,o)}),e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var r=d[t],o=e.getData(),i=g(t)?function(e){return u[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return ume(e,r,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?p:m(r))&&function(e,t,n,r,o,i){var a,l={};function s(e){return J0(n,a,e)}function c(e,t){t1(n,a,e,t)}function u(e,u){a=null==i?e:u;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var p=r.call(o,e),f=t[p],h=l[p],g=0,m=h.length;g<m;g++){var v=h[g];f[v]&&f[v].applyVisual(e,s,c)}}aj(e,function(e){var n=Doe.prepareVisualTypes(t[e]);l[e]=n}),null==i?n.each(u):n.each([i],u)}(ome,h,o,i)})}),function(e,t,n,r,o){if(!o)return;var i=e.getZr();if(i[ame])return;i[ime]||(i[ime]=cme);var a=p0(i,ime,n,t);a(e,r)}(t,r,o,i,n)}function cme(e,t){if(!e.isDisposed()){var n=e.getZr();n[ame]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[ame]=!1}}function ume(e,t,n,r){for(var o=0,i=t.length;o<i;o++){var a=t[o];if(e.brushSelector(r,n,a.selectors,a))return!0}}var dme={rect:function(e){return pme(e.range)},polygon:function(e){for(var t,n=e.range,r=0,o=n.length;r<o;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&pme(t)}};function pme(e){return new fz(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var fme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Kle(t.getZr())).on("brush",pj(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){lme(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:KR(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:KR(n),$from:t})},t.type="brush",t}(qZ);const hme=fme;function gme(e,t){return ZR({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new RY(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const mme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return MR(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&eme(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=lj(e,function(e){return gme(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=gme(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}(Xq);var vme=["rect","polygon","lineX","lineY","keep","clear"],yme=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return MR(t,e),t.prototype.render=function(e,t,n){var r,o,i;t.eachComponent({mainType:"brush"},function(e){r=e.brushType,o=e.brushOption.brushMode||"single",i=i||!!e.areas.length}),this._brushType=r,this._brushMode=o,aj(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?i: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 aj(e.get("type",!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,o=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"===o?"single":"multiple":o}})},t.getDefaultOption=function(e){return{show:!0,type:vme.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"])}},t}(Ohe);const bme=yme;var xme=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 MR(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}(Xq),wme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,o=e.getModel("textStyle"),i=e.getModel("subtextStyle"),a=e.get("textAlign"),l=Ej(e.get("textBaseline"),e.get("textVerticalAlign")),s=new JG({style:hY(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),u=e.get("subtext"),d=new JG({style:hY(i,{text:u,fill:i.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),f=e.get("sublink"),h=e.get("triggerEvent",!0);s.silent=!p&&!h,d.silent=!f&&!h,p&&s.on("click",function(){Aq(p,"_"+e.get("target"))}),f&&d.on("click",function(){Aq(f,"_"+e.get("subtarget"))}),eU(s).eventData=eU(d).eventData=h?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(s),u&&r.add(d);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Hq(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),l||("center"===(l=e.get("top")||e.get("bottom"))&&(l="middle"),"bottom"===l?v.y+=v.height:"middle"===l&&(v.y+=v.height/2),l=l||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var y={align:a,verticalAlign:l};s.setStyle(y),d.setStyle(y),g=r.getBoundingRect();var b=v.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new jG({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}},t.type="title",t}(qZ);var Sme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return MR(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,o=this._names=[];"category"===r?(e=[],aj(n,function(t,n){var r,i=wV(mV(t),"");bj(t)?(r=KR(t)).value=n:r=n,e.push(r),o.push(i)})):e=n;var i={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new t3([{name:"value",type:i}],this)).initData(e,o)},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}(Xq);const Cme=Sme;var _me=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="timeline.slider",t.defaultOption=zY(Cme.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}(Cme);oj(_me,PK.prototype);const kme=_me;const Mme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="timeline",t}(qZ);var Ime=function(e){function t(t,n,r,o){var i=e.call(this,t,n,r)||this;return i.type=o||"value",i}return MR(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(r6);const Eme=Ime;var Ome=Math.PI,$me=kV(),Tme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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),o=this._createGroup("_mainGroup"),i=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return SZ("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},aj(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](r,o,a,e)},this),this._renderAxisLabel(r,i,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,o,i,a=e.get(["label","position"]),l=e.get("orient"),s=function(e,t){return Hq(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===l?s.y+s.height/2<t.getHeight()/2?"-":"+":s.x+s.width/2<t.getWidth()/2?"+":"-":mj(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[l][a]:a)>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:Ome/2},p="vertical"===l?s.height:s.width,f=e.getModel("controlStyle"),h=f.get("show",!0),g=h?f.get("itemSize"):0,m=h?f.get("itemGap"):0,v=g+m,y=e.get(["label","rotate"])||0;y=y*Ome/180;var b=f.get("position",!0),x=h&&f.get("showPlayBtn",!0),w=h&&f.get("showPrevBtn",!0),S=h&&f.get("showNextBtn",!0),C=0,_=p;"left"===b||"bottom"===b?(x&&(r=[0,0],C+=v),w&&(o=[C,0],C+=v),S&&(i=[_-g,0],_-=v)):(x&&(r=[_-g,0],_-=v),w&&(o=[0,0],C+=v),S&&(i=[_-g,0],_-=v));var k=[C,_];return e.get("inverse")&&k.reverse(),{viewRect:s,mainLength:p,orient:l,rotation:d[l],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[l],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[l],playPosition:r,prevBtnPosition:o,nextBtnPosition:i,axisExtent:k,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,o=e.viewRect;if("vertical"===e.orient){var i=[1,0,0,1,0,0],a=o.x,l=o.y+o.height;ZL(i,i,[-a,-l]),QL(i,i,-Ome/2),ZL(i,i,[a,l]),(o=o.clone()).applyTransform(i)}var s=m(o),c=m(n.getBoundingRect()),u=m(r.getBoundingRect()),d=[n.x,n.y],p=[r.x,r.y];p[0]=d[0]=s[0][0];var f,h=e.labelPosOpt;null==h||mj(h)?(v(d,c,s,1,f="+"===h?0:1),v(p,u,s,1,1-f)):(v(d,c,s,1,f=h>=0?0:1),p[1]=d[1]+h);function g(e){e.originX=s[0][0]-e.x,e.originY=s[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,r,o){e[r]+=n[r][o]-t[r][o]}n.setPosition(d),r.setPosition(p),n.rotation=r.rotation=e.rotation,g(n),g(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),o=function(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new I3({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Q3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new $3}}(t,r);o.getTicks=function(){return n.mapArray(["value"],function(e){return{value:e}})};var i=n.getDataExtent("value");o.setExtent(i[0],i[1]),o.calcNiceTicks();var a=new Eme("value",o,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new _F;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var o=n.getExtent();if(r.get(["lineStyle","show"])){var i=new ZQ({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:JR({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(i);var a=this._progressLine=new ZQ({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ej({lineCap:"round",lineWidth:i.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var o=this,i=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],aj(a,function(e){var a=n.dataToCoord(e.value),l=i.getItemModel(e.value),s=l.getModel("itemStyle"),c=l.getModel(["emphasis","itemStyle"]),u=l.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:pj(o._changeTimeline,o,e.value)},p=Pme(l,s,t,d);p.ensureState("emphasis").style=c.getItemStyle(),p.ensureState("progress").style=u.getItemStyle(),VU(p);var f=eU(p);l.get("tooltip")?(f.dataIndex=e.value,f.dataModel=r):f.dataIndex=f.dataModel=null,o._tickSymbols.push(p)})},t.prototype._renderAxisLabel=function(e,t,n,r){var o=this;if(n.getLabelModel().get("show")){var i=r.getData(),a=n.getViewLabels();this._tickLabels=[],aj(a,function(r){var a=r.tickValue,l=i.getItemModel(a),s=l.getModel("label"),c=l.getModel(["emphasis","label"]),u=l.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),p=new JG({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:pj(o._changeTimeline,o,a),silent:!1,style:hY(s,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});p.ensureState("emphasis").style=hY(c),p.ensureState("progress").style=hY(u),t.add(p),VU(p),$me(p).dataIndex=a,o._tickLabels.push(p)})}},t.prototype._renderControl=function(e,t,n,r){var o=e.controlSize,i=e.rotation,a=r.getModel("controlStyle").getItemStyle(),l=r.getModel(["emphasis","controlStyle"]).getItemStyle(),s=r.getPlayState(),c=r.get("inverse",!0);function u(e,n,s,c){if(e){var u=uF(Ej(r.get(["controlStyle",n+"BtnSize"]),o),o),d=function(e,t,n,r){var o=r.style,i=UJ(e.get(["controlStyle",t]),r||{},new fz(n[0],n[1],n[2],n[3]));o&&i.setStyle(o);return i}(r,n+"Icon",[0,-u/2,u,u],{x:e[0],y:e[1],originX:o/2,originY:0,rotation:c?-i:0,rectHover:!0,style:a,onclick:s});d.ensureState("emphasis").style=l,t.add(d),VU(d)}}u(e.nextBtnPosition,"next",pj(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",pj(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,s?"stop":"play",pj(this._handlePlayClick,this,!s),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var o=r.getData(),i=r.getCurrentIndex(),a=o.getItemModel(i).getModel("checkpointStyle"),l=this,s={onCreate:function(e){e.draggable=!0,e.drift=pj(l._handlePointerDrag,l),e.ondragend=pj(l._handlePointerDragend,l),Dme(e,l._progressLine,i,n,r,!0)},onUpdate:function(e){Dme(e,l._progressLine,i,n,r)}};this._currentPointer=Pme(a,a,this._mainGroup,{},this._currentPointer,s)},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=FF(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var i=this._findNearestTick(n),a=this.model;(t||i!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(i)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return BJ(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,o=this._axis;return n.each(["value"],function(n,i){var a=o.dataToCoord(n),l=Math.abs(a-e);l<r&&(r=l,t=i)}),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",$me(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(Mme);function Pme(e,t,n,r,o,i){var a=t.get("color");o?(o.setColor(a),n.add(o),i&&i.onUpdate(o)):((o=m1(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),i&&i.onCreate(o));var l=t.getItemStyle(["color"]);o.setStyle(l),r=ZR({rectHover:!0,z2:100},r,!0);var s=v1(e.get("symbolSize"));r.scaleX=s[0]/2,r.scaleY=s[1]/2;var c=y1(e.get("symbolOffset"),s);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var u=e.get("symbolRotate");return r.rotation=(u||0)*Math.PI/180||0,o.attr(r),o.updateTransform(),o}function Dme(e,t,n,r,o,i){if(!e.dragging){var a=o.getModel("checkpointStyle"),l=r.dataToCoord(o.getData().get("value",n));if(i||!a.get("animation",!0))e.attr({x:l,y:0}),t&&t.attr({shape:{x2:l}});else{var s={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:l,y:0},s),t&&t.animateTo({shape:{x2:l}},s)}}}const Nme=Tme;function Ame(e){var t=e&&e.timeline;hj(t)||(t=t?[t]:[]),aj(t,function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(Rme(e),jme(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});jme(r,"position")||(r.position=e.controlPosition),"none"!==r.position||jme(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}aj(e.data||[],function(e){bj(e)&&!hj(e)&&(!jme(e,"value")&&jme(e,"name")&&(e.value=e.name),Rme(e))})}(e)})}function Rme(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},o=r.normal||(r.normal={}),i={normal:1,emphasis:1};aj(r,function(e,t){i[t]||jme(o,t)||(o[t]=e)}),n.label&&!jme(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function jme(e,t){return e.hasOwnProperty(t)}function Lme(e,t){if(!e)return!1;for(var n=hj(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function zme(e){hV(e,"label",["show"])}var Bme=kV(),Hme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return MR(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if($R.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var o=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),i=Bme(e)[o];n&&n.data?(i?i._mergeOption(n,t,!0):(r&&zme(n),aj(n.data,function(e){e instanceof Array?(zme(e[0]),zme(e[1])):zme(e)}),JR(i=this.createMarkerModelFromSeries(n,this,t),{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),i.__hostSeries=e),Bme(e)[o]=i):Bme(e)[o]=null},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),o=this.getRawValue(e),i=r.getName(e);return SZ("section",{header:this.name,blocks:[SZ("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=PK.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return Bme(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Xq);oj(Hme,PK.prototype);const Fme=Hme;const Vme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Fme);function Wme(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Gme(e,t,n,r,o,i){var a=[],l=c3(t,r)?t.getCalculationInfo("stackResultDimension"):r,s=Zme(t,l,e),c=t.indicesOfNearest(l,s)[0];a[o]=t.get(n,c),a[i]=t.get(l,c);var u=t.get(r,c),d=VF(t.get(r,c));return(d=Math.min(d,20))>=0&&(a[i]=+a[i].toFixed(d)),[a,u]}var Ume={min:fj(Gme,"min"),max:fj(Gme,"max"),average:fj(Gme,"average"),median:fj(Gme,"median")};function Yme(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,o=r&&r.dimensions;if(!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!hj(t.coord)&&hj(o)){var i=qme(t,n,r,e);if((t=KR(t)).type&&Ume[t.type]&&i.baseAxis&&i.valueAxis){var a=nj(o,i.baseAxis.dim),l=nj(o,i.valueAxis.dim),s=Ume[t.type](n,i.baseDataDim,i.valueDataDim,a,l);t.coord=s[0],t.value=s[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&hj(o))for(var c=t.coord,u=0;u<2;u++)Ume[c[u]]&&(c[u]=Zme(n,n.mapDimension(o[u]),c[u]));else t.coord=[];return t}}function qme(e,t,n,r){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(r,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim)):(o.baseAxis=r.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=t.mapDimension(o.baseAxis.dim),o.valueDataDim=t.mapDimension(o.valueAxis.dim)),o}function Xme(e,t){return!(e&&e.containData&&t.coord&&!Wme(t))||e.containData(t.coord)}function Kme(e,t){return e?function(e,n,r,o){return zK(o<2?e.coord&&e.coord[o]:e.value,t[o])}:function(e,n,r,o){return zK(e.value,t[o])}}function Zme(e,t,n){if("average"===n){var r=0,o=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,o++)}),r/o}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var Qme=kV(),Jme=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.init=function(){this.markerGroupMap=Bj()},t.prototype.render=function(e,t,n){var r=this,o=this.markerGroupMap;o.each(function(e){Qme(e).keep=!1}),t.eachSeries(function(e){var o=Fme.getMarkerModelFromSeries(e,r.type);o&&r.renderSeries(e,o,t,n)}),o.each(function(e){!Qme(e).keep&&r.group.remove(e.group)})},t.prototype.markKeep=function(e){Qme(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;aj(e,function(e){var r=Fme.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?PU(e):DU(e))})})},t.type="marker",t}(qZ);const eve=Jme;function tve(e,t,n){var r=t.coordinateSystem;e.each(function(o){var i,a=e.getItemModel(o),l=BF(a.get("x"),n.getWidth()),s=BF(a.get("y"),n.getHeight());if(isNaN(l)||isNaN(s)){if(t.getMarkerPosition)i=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(r){var c=e.get(r.dimensions[0],o),u=e.get(r.dimensions[1],o);i=r.dataToPoint([c,u])}}else i=[l,s];isNaN(l)||(i[0]=l),isNaN(s)||(i[1]=s),e.setItemLayout(o,i)})}var nve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=Fme.getMarkerModelFromSeries(e,"markPoint");t&&(tve(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,i=e.id,a=e.getData(),l=this.markerGroupMap,s=l.get(i)||l.set(i,new k7),c=function(e,t,n){var r;r=e?lj(e&&e.dimensions,function(e){return JR(JR({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new t3(r,n),i=lj(n.get("data"),fj(Yme,t));e&&(i=cj(i,fj(Xme,e)));var a=Kme(!!e,r);return o.initData(i,null,a),o}(o,e,t);t.setData(c),tve(t.getData(),e,r),c.each(function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),o=n.getShallow("symbolSize"),i=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),s=n.getShallow("symbolKeepAspect");if(gj(r)||gj(o)||gj(i)||gj(l)){var u=t.getRawValue(e),d=t.getDataParams(e);gj(r)&&(r=r(u,d)),gj(o)&&(o=o(u,d)),gj(i)&&(i=i(u,d)),gj(l)&&(l=l(u,d))}var p=n.getModel("itemStyle").getItemStyle(),f=e1(a,"color");p.fill||(p.fill=f),c.setItemVisual(e,{symbol:r,symbolSize:o,symbolRotate:i,symbolOffset:l,symbolKeepAspect:s,style:p})}),s.updateData(c),this.group.add(s.group),c.eachItemGraphicEl(function(e){e.traverse(function(e){eU(e).dataModel=t})}),this.markKeep(s),s.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(eve);const rve=nve;const ove=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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}(Fme);var ive=kV(),ave=function(e,t,n,r){var o,i=e.getData();if(hj(r))o=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var l=void 0,s=void 0;if(null!=r.yAxis||null!=r.xAxis)l=t.getAxis(null!=r.yAxis?"y":"x"),s=Ij(r.yAxis,r.xAxis);else{var c=qme(r,i,t,e);l=c.valueAxis,s=Zme(i,u3(i,c.valueDataDim),a)}var u="x"===l.dim?0:1,d=1-u,p=KR(r),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var h=n.get("precision");h>=0&&yj(s)&&(s=+s.toFixed(Math.min(h,20))),p.coord[u]=f.coord[u]=s,o=[p,f,{type:a,valueIndex:r.valueIndex,value:s}]}else o=[]}var g=[Yme(e,o[0]),Yme(e,o[1]),JR({},o[2])];return g[2].type=g[2].type||null,ZR(g[2],g[0]),ZR(g[2],g[1]),g};function lve(e){return!isNaN(e)&&!isFinite(e)}function sve(e,t,n,r){var o=1-e,i=r.dimensions[e];return lve(t[o])&&lve(n[o])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function cve(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(sve(1,n,r,e)||sve(0,n,r,e)))return!0}return Xme(e,t[0])&&Xme(e,t[1])}function uve(e,t,n,r,o){var i,a=r.coordinateSystem,l=e.getItemModel(t),s=BF(l.get("x"),o.getWidth()),c=BF(l.get("y"),o.getHeight());if(isNaN(s)||isNaN(c)){if(r.getMarkerPosition)i=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),p=e.get(u[1],t);i=a.dataToPoint([d,p])}if(z7(a,"cartesian2d")){var f=a.getAxis("x"),h=a.getAxis("y");u=a.dimensions;lve(e.get(u[0],t))?i[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):lve(e.get(u[1],t))&&(i[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(s)||(i[0]=s),isNaN(c)||(i[1]=c)}else i=[s,c];e.setItemLayout(t,i)}var dve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=Fme.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),o=ive(t).from,i=ive(t).to;o.each(function(t){uve(o,t,!0,e,n),uve(i,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[o.getItemLayout(e),i.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,i=e.id,a=e.getData(),l=this.markerGroupMap,s=l.get(i)||l.set(i,new Fie);this.group.add(s.group);var c=function(e,t,n){var r;r=e?lj(e&&e.dimensions,function(e){return JR(JR({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new t3(r,n),i=new t3(r,n),a=new t3([],n),l=lj(n.get("data"),fj(ave,t,e,n));e&&(l=cj(l,fj(cve,e)));var s=Kme(!!e,r);return o.initData(lj(l,function(e){return e[0]}),null,s),i.initData(lj(l,function(e){return e[1]}),null,s),a.initData(lj(l,function(e){return e[2]})),a.hasItemOption=!0,{from:o,to:i,line:a}}(o,e,t),u=c.from,d=c.to,p=c.line;ive(t).from=u,ive(t).to=d,t.setData(p);var f=t.get("symbol"),h=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,o){var i=t.getItemModel(n);uve(t,n,o,e,r);var l=i.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=e1(a,"color")),t.setItemVisual(n,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:Ej(i.get("symbolOffset",!0),m[o?0:1]),symbolRotate:Ej(i.get("symbolRotate",!0),g[o?0:1]),symbolSize:Ej(i.get("symbolSize"),h[o?0:1]),symbol:Ej(i.get("symbol",!0),f[o?0:1]),style:l})}hj(f)||(f=[f,f]),hj(h)||(h=[h,h]),hj(g)||(g=[g,g]),hj(m)||(m=[m,m]),c.from.each(function(e){v(u,e,!0),v(d,e,!1)}),p.each(function(e){var t=p.getItemModel(e).getModel("lineStyle").getLineStyle();p.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),p.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.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})}),s.updateData(p),c.line.eachItemGraphicEl(function(e){eU(e).dataModel=t,e.traverse(function(e){eU(e).dataModel=t})}),this.markKeep(s),s.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(eve);const pve=dve;const fve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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}(Fme);var hve=kV(),gve=function(e,t,n,r){var o=r[0],i=r[1];if(o&&i){var a=Yme(e,o),l=Yme(e,i),s=a.coord,c=l.coord;s[0]=Ij(s[0],-1/0),s[1]=Ij(s[1],-1/0),c[0]=Ij(c[0],1/0),c[1]=Ij(c[1],1/0);var u=QR([{},a,l]);return u.coord=[a.coord,l.coord],u.x0=a.x,u.y0=a.y,u.x1=l.x,u.y1=l.y,u}};function mve(e){return!isNaN(e)&&!isFinite(e)}function vve(e,t,n,r){var o=1-e;return mve(t[o])&&mve(n[o])}function yve(e,t){var n=t.coord[0],r=t.coord[1],o={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return z7(e,"cartesian2d")?!(!n||!r||!vve(1,n,r)&&!vve(0,n,r))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!Wme(t)&&!Wme(n))||e.containZone(t.coord,n.coord)}(e,o,i):Xme(e,o)||Xme(e,i)}function bve(e,t,n,r,o){var i,a=r.coordinateSystem,l=e.getItemModel(t),s=BF(l.get(n[0]),o.getWidth()),c=BF(l.get(n[1]),o.getHeight());if(isNaN(s)||isNaN(c)){if(r.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),p=a.clampData(u),f=a.clampData(d),h=[];"x0"===n[0]?h[0]=p[0]>f[0]?d[0]:u[0]:h[0]=p[0]>f[0]?u[0]:d[0],"y0"===n[1]?h[1]=p[1]>f[1]?d[1]:u[1]:h[1]=p[1]>f[1]?u[1]:d[1],i=r.getMarkerPosition(h,n,!0)}else{var g=[y=e.get(n[0],t),b=e.get(n[1],t)];a.clampData&&a.clampData(g,g),i=a.dataToPoint(g,!0)}if(z7(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=e.get(n[0],t),b=e.get(n[1],t);mve(y)?i[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):mve(b)&&(i[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(s)||(i[0]=s),isNaN(c)||(i[1]=c)}else i=[s,c];return i}var xve=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],wve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=Fme.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each(function(t){var o=lj(xve,function(o){return bve(r,t,o,e,n)});r.setItemLayout(t,o),r.getItemGraphicEl(t).setShape("points",o)})}},this)},t.prototype.renderSeries=function(e,t,n,r){var o=e.coordinateSystem,i=e.id,a=e.getData(),l=this.markerGroupMap,s=l.get(i)||l.set(i,{group:new _F});this.group.add(s.group),this.markKeep(s);var c=function(e,t,n){var r,o,i=["x0","y0","x1","y1"];if(e){var a=lj(e&&e.dimensions,function(e){var n=t.getData();return JR(JR({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})});o=lj(i,function(e,t){return{name:e,type:a[t%2].type}}),r=new t3(o,n)}else r=new t3(o=[{name:"value",type:"float"}],n);var l=lj(n.get("data"),fj(gve,t,e,n));e&&(l=cj(l,fj(yve,e)));var s=e?function(e,t,n,r){return zK(e.coord[Math.floor(r/2)][r%2],o[r])}:function(e,t,n,r){return zK(e.value,o[r])};return r.initData(l,null,s),r.hasItemOption=!0,r}(o,e,t);t.setData(c),c.each(function(t){var n=lj(xve,function(n){return bve(c,t,n,e,r)}),i=o.getAxis("x").scale,l=o.getAxis("y").scale,s=i.getExtent(),u=l.getExtent(),d=[i.parse(c.get("x0",t)),i.parse(c.get("x1",t))],p=[l.parse(c.get("y0",t)),l.parse(c.get("y1",t))];FF(d),FF(p);var f=!!(s[0]>d[1]||s[1]<d[0]||u[0]>p[1]||u[1]<p[0]);c.setItemLayout(t,{points:n,allClipped:f});var h=c.getItemModel(t).getModel("itemStyle").getItemStyle(),g=e1(a,"color");h.fill||(h.fill=g,mj(h.fill)&&(h.fill=zB(h.fill,.4))),h.stroke||(h.stroke=g),c.setItemVisual(t,"style",h)}),c.diff(hve(s).data).add(function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new WQ({shape:{points:t.points}});c.setItemGraphicEl(e,n),s.group.add(n)}}).update(function(e,n){var r=hve(s).data.getItemGraphicEl(n),o=c.getItemLayout(e);o.allClipped?r&&s.group.remove(r):(r?nY(r,{shape:{points:o.points}},t,e):r=new WQ({shape:{points:o.points}}),c.setItemGraphicEl(e,r),s.group.add(r))}).remove(function(e){var t=hve(s).data.getItemGraphicEl(e);s.group.remove(t)}).execute(),c.eachItemGraphicEl(function(e,n){var r=c.getItemModel(n),o=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),pY(e,fY(r),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:mj(o.fill)?zB(o.fill,1):"#000"}),qU(e,r),WU(e,null,null,r.get(["emphasis","disabled"])),eU(e).dataModel=t}),hve(s).data=c,s.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(eve);const Sve=wve;var Cve=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 MR(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),hj(t)&&aj(t,function(e,r){mj(e)&&(e={type:e}),t[r]=ZR(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var o,i=r.name;if(n.push(i),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):o=!0}else o=!0;o&&SV(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get("data")||t,o=Bj(),i=lj(r,function(e){return(mj(e)||yj(e))&&(e={name:e}),o.get(e.name)?null:(o.set(e.name,!0),new RY(e,this,this.ecModel))},this);this._data=cj(i,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&aj(this._data,function(e){t[e.get("name")]=!1});t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;aj(e,function(e){t[e.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;aj(e,function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&nj(this._availableNames,e)>=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}(Xq);const _ve=Cve;var kve=fj,Mve=aj,Ive=_F,Eve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return MR(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new Ive),this.group.add(this._selectorGroup=new Ive),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 o=e.get("align"),i=e.get("orient");o&&"auto"!==o||(o="right"===e.get("left")&&"vertical"===i?"right":"left");var a=e.get("selector",!0),l=e.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===i?"end":"start"),this.renderInner(o,e,t,n,a,i,l);var s=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),d=Hq(s,c,u),p=this.layoutInner(e,o,d,r,a,l),f=Hq(ej({width:p.width,height:p.height},s),c,u);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Nhe(p,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,o,i,a){var l=this.getContentGroup(),s=Bj(),c=t.get("selectedMode"),u=[];n.eachRawSeries(function(e){!e.get("legendHoverLink")&&u.push(e.id)}),Mve(t.getData(),function(o,i){var a=o.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new Ive;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(a)[0];if(!s.get(a)){if(p){var f=p.getData(),h=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),m=f.getVisual("style"),v=this._createItem(p,a,i,o,t,e,h,m,g,c,r);v.on("click",kve(Ove,a,null,r,u)).on("mouseover",kve(Tve,p.name,null,r,u)).on("mouseout",kve(Pve,p.name,null,r,u)),n.ssr&&v.eachChild(function(e){var t=eU(e);t.seriesIndex=p.seriesIndex,t.dataIndex=i,t.ssrType="legend"}),s.set(a,!0)}else n.eachRawSeries(function(l){if(!s.get(a)&&l.legendVisualProvider){var d=l.legendVisualProvider;if(!d.containName(a))return;var p=d.indexOfName(a),f=d.getItemVisual(p,"style"),h=d.getItemVisual(p,"legendIcon"),g=$B(f.fill);g&&0===g[3]&&(g[3]=.2,f=JR(JR({},f),{fill:BB(g,"rgba")}));var m=this._createItem(l,a,i,o,t,e,{},f,h,c,r);m.on("click",kve(Ove,null,a,r,u)).on("mouseover",kve(Tve,null,a,r,u)).on("mouseout",kve(Pve,null,a,r,u)),n.ssr&&m.eachChild(function(e){var t=eU(e);t.seriesIndex=l.seriesIndex,t.dataIndex=i,t.ssrType="legend"}),s.set(a,!0)}},this);0}},this),o&&this._createSelector(o,t,r,i,a)},t.prototype._createSelector=function(e,t,n,r,o){var i=this.getSelectorGroup();Mve(e,function(e){var r=e.type,o=new JG({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});i.add(o),pY(o,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),VU(o)})},t.prototype._createItem=function(e,t,n,r,o,i,a,l,s,c,u){var d=e.visualDrawType,p=o.get("itemWidth"),f=o.get("itemHeight"),h=o.isSelected(t),g=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),v=r.get("icon"),y=function(e,t,n,r,o,i,a){function l(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),Mve(e,function(n,r){"inherit"===e[r]&&(e[r]=t[r])})}var s=t.getModel("itemStyle"),c=s.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=s.getShallow("decal");c.decal=d&&"inherit"!==d?Y1(d,a):r.decal,"inherit"===c.fill&&(c.fill=r[o]);"inherit"===c.stroke&&(c.stroke=r[u]);"inherit"===c.opacity&&(c.opacity=("fill"===o?r:n).opacity);l(c,r);var p=t.getModel("lineStyle"),f=p.getLineStyle();if(l(f,n),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===f.stroke&&(f.stroke=r.fill),!i){var h=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===h?r.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:c,lineStyle:f}}(s=v||s||"roundRect",r,a,l,d,h,u),b=new Ive,x=r.getModel("textStyle");if(!gj(e.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;b.add(function(e){var t=e.icon||"roundRect",n=m1(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);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);return n}({itemWidth:p,itemHeight:f,icon:s,iconRotate:w,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else b.add(e.getLegendIcon({itemWidth:p,itemHeight:f,icon:s,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var S="left"===i?p+5:-5,C=i,_=o.get("formatter"),k=t;mj(_)&&_?k=_.replace("{name}",null!=t?t:""):gj(_)&&(k=_(t));var M=h?x.getTextColor():r.get("inactiveColor");b.add(new JG({style:hY(x,{text:k,x:S,y:f/2,fill:M,align:C,verticalAlign:"middle"},{inheritColor:M})}));var I=new jG({shape:b.getBoundingRect(),style:{fill:"transparent"}}),E=r.getModel("tooltip");return E.get("show")&&KJ({el:I,componentModel:o,itemName:t,itemTooltipOption:E.option}),b.add(I),b.eachChild(function(e){e.silent=!0}),I.silent=!c,this.getContentGroup().add(b),VU(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,o,i){var a=this.getContentGroup(),l=this.getSelectorGroup();Bq(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var s=a.getBoundingRect(),c=[-s.x,-s.y];if(l.markRedraw(),a.markRedraw(),o){Bq("horizontal",l,e.get("selectorItemGap",!0));var u=l.getBoundingRect(),d=[-u.x,-u.y],p=e.get("selectorButtonGap",!0),f=e.getOrient().index,h=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===i?d[f]+=s[h]+p:c[f]+=u[h]+p,d[1-f]+=s[g]/2-u[g]/2,l.x=d[0],l.y=d[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[h]=s[h]+p+u[h],v[g]=Math.max(s[g],u[g]),v[m]=Math.min(0,u[m]+d[1-f]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(qZ);function Ove(e,t,n,r){Pve(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),Tve(e,t,n,r)}function $ve(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,o=n.length;r<o&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function Tve(e,t,n,r){$ve(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function Pve(e,t,n,r){$ve(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const Dve=Eve;function Nve(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function Ave(e,t,n){var r="allSelect"===e||"inverseSelect"===e,o={},i=[];n.eachComponent({mainType:"legend",query:t},function(n){r?n[e]():n[e](t.name),Rve(n,o),i.push(n.componentIndex)});var a={};return n.eachComponent("legend",function(e){aj(o,function(t,n){e[t?"select":"unSelect"](n)}),Rve(e,a)}),r?{selected:a,legendIndex:i}:{name:t.name,selected:a}}function Rve(e,t){var n=t||{};return aj(e.getData(),function(t){var r=t.get("name");if("\n"!==r&&""!==r){var o=e.isSelected(r);Wj(n,r)?n[r]=n[r]&&o:n[r]=o}}),n}function jve(e){e.registerComponentModel(_ve),e.registerComponentView(Dve),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Nve),e.registerSubTypeDefaulter("legend",function(){return"plain"}),function(e){e.registerAction("legendToggleSelect","legendselectchanged",fj(Ave,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",fj(Ave,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",fj(Ave,"inverseSelect")),e.registerAction("legendSelect","legendselected",fj(Ave,"select")),e.registerAction("legendUnSelect","legendunselected",fj(Ave,"unSelect"))}(e)}function Lve(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Wq(t,n,{type:"box",ignoreSize:!!r})}const zve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var o=Gq(t);e.prototype.init.call(this,t,n,r),Lve(this,t,o)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Lve(this,this.option,t)},t.type="legend.scroll",t.defaultOption=zY(_ve.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(_ve);var Bve=_F,Hve=["width","height"],Fve=["x","y"],Vve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return MR(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Bve),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Bve)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,o,i,a,l){var s=this;e.prototype.renderInner.call(this,t,n,r,o,i,a,l);var c=this._controllerGroup,u=n.get("pageIconSize",!0),d=hj(u)?u:[u,u];f("pagePrev",0);var p=n.getModel("pageTextStyle");function f(e,t){var r=e+"DataIndex",i=UJ(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:pj(s._pageGo,s,r,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});i.name=e,c.add(i)}c.add(new JG({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,o,i){var a=this.getSelectorGroup(),l=e.getOrient().index,s=Hve[l],c=Fve[l],u=Hve[1-l],d=Fve[1-l];o&&Bq("horizontal",a,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),f=a.getBoundingRect(),h=[-f.x,-f.y],g=KR(n);o&&(g[s]=n[s]-f[s]-p);var m=this._layoutContentAndController(e,r,g,l,s,u,d,c);if(o){if("end"===i)h[l]+=m[s]+p;else{var v=f[s]+p;h[l]-=v,m[c]-=v}m[s]+=f[s]+p,h[1-l]+=m[d]+m[u]/2-f[u]/2,m[u]=Math.max(m[u],f[u]),m[d]=Math.min(m[d],f[d]+h[1-l]),a.x=h[0],a.y=h[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,o,i,a,l){var s=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;Bq(e.get("orient"),s,e.get("itemGap"),r?n.width:null,r?null:n.height),Bq("horizontal",u,e.get("pageButtonItemGap",!0));var d=s.getBoundingRect(),p=u.getBoundingRect(),f=this._showController=d[o]>n[o],h=[-d.x,-d.y];t||(h[r]=s[l]);var g=[0,0],m=[-p.x,-p.y],v=Ej(e.get("pageButtonGap",!0),e.get("itemGap",!0));f&&("end"===e.get("pageButtonPosition",!0)?m[r]+=n[o]-p[o]:g[r]+=p[o]+v);m[1-r]+=d[i]/2-p[i]/2,s.setPosition(h),c.setPosition(g),u.setPosition(m);var y={x:0,y:0};if(y[o]=f?n[o]:d[o],y[i]=Math.max(d[i],p[i]),y[a]=Math.min(0,p[a]+m[1-r]),c.__rectSize=n[o],f){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-v,0),b[i]=y[i],c.setClipPath(new jG({shape:b})),c.__rectSize=b[o]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return null!=x.pageIndex&&nY(s,{x:x.contentPosition[0],y:x.contentPosition[1]},f?e:null),this._updatePageInfoView(e,x),y},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;aj(["pagePrev","pageNext"],function(r){var o=null!=t[r+"DataIndex"],i=n.childOfName(r);i&&(i.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),i.cursor=o?"pointer":"default")});var r=n.childOfName("pageText"),o=e.get("pageFormatter"),i=t.pageIndex,a=null!=i?i+1:0,l=t.pageCount;r&&o&&r.setStyle("text",mj(o)?o.replace("{current}",null==a?"":a+"").replace("{total}",null==l?"":l+""):o({current:a,total:l}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,o=e.getOrient().index,i=Hve[o],a=Fve[o],l=this._findTargetItemIndex(t),s=n.children(),c=s[l],u=s.length,d=u?1:0,p={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var f=y(c);p.contentPosition[o]=-f.s;for(var h=l+1,g=f,m=f,v=null;h<=u;++h)(!(v=y(s[h]))&&m.e>g.s+r||v&&!b(v,g.s))&&(g=m.i>g.i?m:v)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=g.i),++p.pageCount),m=v;for(h=l-1,g=f,m=f,v=null;h>=-1;--h)(v=y(s[h]))&&b(m,v.s)||!(g.i<m.i)||(m=g,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=g.i),++p.pageCount,++p.pageIndex),g=v;return p;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[i],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,o){var i=r.__legendDataIndex;null==n&&null!=i&&(n=o),i===e&&(t=o)}),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(Dve);const Wve=Vve;function Gve(e){M4(jve),e.registerComponentModel(zve),e.registerComponentView(Wve),function(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)})})}(e)}const Uve=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="dataZoom.inside",t.defaultOption=zY(ghe.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ghe);var Yve=kV();function qve(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Xve(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Kve(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Zve(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Yve(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Bj());r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(e){aj(dhe(e).infoList,function(n){var o=n.model.uid,i=r.get(o)||r.set(o,function(e,t){var n={model:t,containsPoint:fj(Kve,t),dispatchAction:fj(Xve,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Nte(e.getZr());return aj(["pan","zoom","scrollMove"],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(o){if(t.isAvailableBehavior(o.model.option)){var i=(o.getRange||{})[e],a=i&&i(o.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!o.model.get("disabled",!0)&&a&&r.push({dataZoomId:o.model.id,start:a[0],end:a[1]})}}),r.length&&n.dispatchAction(r)})}),n}(t,n.model));(i.dataZoomInfoMap||(i.dataZoomInfoMap=Bj())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t,n=e.controller,o=e.dataZoomInfoMap;if(o){var i=o.keys()[0];null!=i&&(t=o.get(i))}if(t){var a=function(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return e.each(function(e){var i=e.model,a=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");r[n+a]>r[n+t]&&(t=a),o=o&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}(o);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),p0(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else qve(r,e)})})}var Qve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return MR(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function(e,t,n){Yve(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}(r,t,{pan:pj(Jve.pan,this),zoom:pj(Jve.zoom,this),scrollMove:pj(Jve.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=Yve(e).coordSysRecordMap,r=n.keys(),o=0;o<r.length;o++){var i=r[o],a=n.get(i),l=a.dataZoomInfoMap;if(l){var s=t.uid;l.get(s)&&(l.removeKey(s),l.keys().length||qve(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(yhe),Jve={zoom:function(e,t,n,r){var o=this.range,i=o.slice(),a=e.axisModels[0];if(a){var l=tye[t](null,[r.originX,r.originY],a,n,e),s=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(i[1]-i[0])+i[0],c=Math.max(1/r.scale,0);i[0]=(i[0]-s)*c+s,i[1]=(i[1]-s)*c+s;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Gae(0,i,[0,100],0,u.minSpan,u.maxSpan),this.range=i,o[0]!==i[0]||o[1]!==i[1]?i:void 0}},pan:eye(function(e,t,n,r,o,i){var a=tye[r]([i.oldX,i.oldY],[i.newX,i.newY],t,o,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength}),scrollMove:eye(function(e,t,n,r,o,i){return tye[r]([0,0],[i.scrollDelta,i.scrollDelta],t,o,n).signal*(e[1]-e[0])*i.scrollDelta})};function eye(e){return function(t,n,r,o){var i=this.range,a=i.slice(),l=t.axisModels[0];if(l)return Gae(e(a,l,t,n,r,o),a,[0,100],"all"),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}}var tye={grid:function(e,t,n,r,o){var i=n.axis,a={},l=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===i.dim?(a.pixel=t[0]-e[0],a.pixelLength=l.width,a.pixelStart=l.x,a.signal=i.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=l.height,a.pixelStart=l.y,a.signal=i.inverse?-1:1),a},polar:function(e,t,n,r,o){var i=n.axis,a={},l=o.model.coordinateSystem,s=l.getRadiusAxis().getExtent(),c=l.getAngleAxis().getExtent();return e=e?l.pointToCoord(e):[0,0],t=l.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=i.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=i.inverse?-1:1),a},singleAxis:function(e,t,n,r,o){var i=n.axis,a=o.model.coordinateSystem.getRect(),l={};return e=e||[0,0],"horizontal"===i.orient?(l.pixel=t[0]-e[0],l.pixelLength=a.width,l.pixelStart=a.x,l.signal=i.inverse?1:-1):(l.pixel=t[1]-e[1],l.pixelLength=a.height,l.pixelStart=a.y,l.signal=i.inverse?-1:1),l}};const nye=Qve;function rye(e){Ihe(e),e.registerComponentModel(Uve),e.registerComponentView(nye),Zve(e)}const oye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=zY(ghe.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}(ghe);var iye=jG,aye="horizontal",lye="vertical",sye=["line","bar","candlestick","scatter"],cye={easing:"cubicOut",duration:100,delay:0},uye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return MR(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=pj(this._onBrush,this),this._onBrushEnd=pj(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,o){if(e.prototype.render.apply(this,arguments),p0(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();o&&"dataZoom"===o.type&&o.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(){f0(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 _F;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")?7:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},i=this._orient===aye?{right:o.width-r.x-r.width,top:o.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=Gq(e.option);aj(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=i[e])});var l=Hq(a,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===lye&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),o=r&&r.get("inverse"),i=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;i.attr(n!==aye||o?n===aye&&o?{scaleY:a?1:-1,scaleX:-1}:n!==lye||o?{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 l=e.getBoundingRect([i]);e.x=t.x-l.x,e.y=t.y-l.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 iye({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new iye({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:pj(this._onClickPanel,this)}),i=this.api.getZr();r?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",i.on("mousemove",this._onBrush),i.on("mouseup",this._onBrushEnd)):(i.off("mousemove",this._onBrush),i.off("mouseup",this._onBrushEnd)),n.add(o)},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,o=r.getRawData(),i=r.getShadowDim&&r.getShadowDim(),a=i&&o.getDimensionInfo(i)?r.getShadowDim():e.otherDim;if(null!=a){var l=this._shadowPolygonPts,s=this._shadowPolylinePts;if(o!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=o.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var d,p=[0,t[1]],f=[0,t[0]],h=[[t[0],0],[0,0]],g=[],m=f[1]/(o.count()-1),v=0,y=Math.round(o.count()/t[0]);o.each([a],function(e,t){if(y>0&&t%y)v+=m;else{var n=null==e||isNaN(e)||""===e,r=n?0:zF(e,c,p,!0);n&&!d&&t?(h.push([h[h.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(h.push([v,0]),g.push([v,0])),h.push([v,r]),g.push([v,r]),v+=m,d=n}}),l=this._shadowPolygonPts=h,s=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var w=S(1===x);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function S(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new _F,r=new WQ({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),o=new YQ({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(o),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(o,i){aj(e.getAxisProxy(o,i).getTargetSeriesModels(),function(e){if(!n&&!(!0!==t&&nj(sye,e.get("type"))<0)){var a,l=r.getComponent(che(o),i).axis,s=function(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}(o),c=e.coordinateSystem;null!=s&&c.getOtherAxis&&(a=c.getOtherAxis(l).inverse),s=e.getData().mapDimension(s),n={thisAxis:l,series:e,thisDim:o,otherDim:s,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],o=this._displayables.sliderGroup,i=this._size,a=this.dataZoomModel,l=this.api,s=a.get("borderRadius")||0,c=a.get("brushSelect"),u=t.filler=new iye({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});o.add(u),o.add(new iye({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:s},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),aj([0,1],function(t){var i=a.get("handleIcon");!f1[i]&&i.indexOf("path://")<0&&i.indexOf("image://")<0&&(i="path://"+i);var l=m1(i,-1,0,2,2,null,!0);l.attr({cursor:dye(this._orient),draggable:!0,drift:pj(this._onDragMove,this,t),ondragend:pj(this._onDragEnd,this),onmouseover:pj(this._showDataInfo,this,!0),onmouseout:pj(this._showDataInfo,this,!1),z2:5});var s=l.getBoundingRect(),c=a.get("handleSize");this._handleHeight=BF(c,this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),VU(l);var u=a.get("handleColor");null!=u&&(l.style.fill=u),o.add(n[t]=l);var d=a.getModel("textStyle"),p=(a.get("handleLabel")||{}).show||!1;e.add(r[t]=new JG({silent:!0,invisible:!p,style:hY(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(c){var p=BF(a.get("moveHandleSize"),i[1]),f=t.moveHandle=new jG({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),h=.8*p,g=t.moveHandleIcon=m1(a.get("moveHandleIcon"),-h/2,-h/2,h,h,"#fff",!0);g.silent=!0,g.y=i[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(i[1]/2,Math.max(p,10));(d=t.moveZone=new jG({invisible:!0,shape:{y:i[1]-m,height:p+m}})).on("mouseover",function(){l.enterEmphasis(f)}).on("mouseout",function(){l.leaveEmphasis(f)}),o.add(f),o.add(g),o.add(d)}d.attr({draggable:!0,cursor:dye(this._orient),drift:pj(this._onDragMove,this,"all"),ondragstart:pj(this._showDataInfo,this,!0),ondragend:pj(this._onDragEnd,this),onmouseover:pj(this._showDataInfo,this,!0),onmouseout:pj(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[zF(e[0],[0,100],t,!0),zF(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,o=this._getViewExtent(),i=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Gae(t,r,o,n.get("zoomLock")?"all":e,null!=i.minSpan?zF(i.minSpan,a,o,!0):null,null!=i.maxSpan?zF(i.maxSpan,a,o,!0):null);var l=this._range,s=this._range=FF([zF(r[0],o,a,!0),zF(r[1],o,a,!0)]);return!l||l[0]!==s[0]||l[1]!==s[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=FF(n.slice()),o=this._size;aj([0,1],function(e){var r=t.handles[e],i=this._handleHeight;r.attr({scaleX:i/2,scaleY:i/2,x:n[e]+(e?-1:1),y:o[1]/2-i/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:o[1]});var i={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(i),t.moveZone.setShape(i),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",i.x+i.width/2));for(var a=t.dataShadowSegs,l=[0,r[0],r[1],o[0]],s=0;s<a.length;s++){var c=a[s],u=c.getClipPath();u||(u=new jG,c.setClipPath(u)),u.setShape({x:l[s],y:0,width:l[s+1]-l[s],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,o=this._orient,i=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var l=a.getAxisModel().axis,s=this._range,c=e?a.calculateDataWindow({start:s[0],end:s[1]}).valueWindow:a.getDataValueWindow();i=[this._formatLabel(c[0],l),this._formatLabel(c[1],l)]}}var u=FF(this._handleEnds.slice());function d(e){var t=zJ(n.handles[e].parent,this.group),a=HJ(0===e?"right":"left",t),l=this._handleWidth/2+5,s=BJ([u[e]+(0===e?-l:l),this._size[1]/2],t);r[e].setStyle({x:s[0],y:s[1],verticalAlign:o===aye?"middle":a,align:o===aye?a:"center",text:i[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var i=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return gj(r)?r(e,i):mj(r)?r.replace("{value}",i):i},t.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,r=e||this._dragging?n:t,o=this._displayables,i=o.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),o.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](o.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,FL(r.event);var o=BJ([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),i=this._updateInterval(e,o[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),i&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,o=(r[0]+r[1])/2,i=this._updateInterval("all",n[0]-o);this._updateView(),i&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new rz(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;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=FF([zF(n.x,r,o,!0),zF(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(FL(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new iye({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var i=this._brushStart,a=this._displayables.sliderGroup,l=a.transformCoordToLocal(e,t),s=a.transformCoordToLocal(i.x,i.y),c=this._size;l[0]=Math.max(Math.min(c[0],l[0]),0),o.setShape({x:s[0],y:0,width:l[0]-s[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?cye:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=dhe(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(),o=this.api.getHeight();e={x:.2*r,y:.2*o,width:.6*r,height:.6*o}}return e},t.type="dataZoom.slider",t}(yhe);function dye(e){return"vertical"===e?"ns-resize":"ew-resize"}const pye=uye;function fye(e){e.registerComponentModel(oye),e.registerComponentView(pye),Ihe(e)}var hye={get:function(e,t,n){var r=KR((gye[e]||{})[t]);return n&&hj(r)?r[r.length-1]:r}},gye={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]}};const mye=hye;var vye=Doe.mapVisual,yye=Doe.eachVisual,bye=hj,xye=aj,wye=FF,Sye=zF,Cye=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 MR(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&eme(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=pj(e,this),this.controllerVisuals=Jge(this.option.controller,t,e),this.targetVisuals=Jge(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=fV(e),t},t.prototype.eachTargetSeries=function(e,t){aj(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,o=this.option,i=o.precision,a=this.dataBound,l=o.formatter;n=n||["<",">"],hj(e)&&(e=e.slice(),r=!0);var s=t?e:r?[c(e[0]),c(e[1])]:c(e);return mj(l)?l.replace("{value}",r?s[0]:s).replace("{value2}",r?s[1]:s):gj(l)?r?l(e[0],e[1]):l(e):r?e[0]===a[0]?n[0]+" "+s[1]:e[1]===a[1]?n[1]+" "+s[0]:s[0]+" - "+s[1]:s;function c(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=wye([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 o=n[r],i=e.getDimensionInfo(o);if(!i.isCalculationCoord)return i.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={}),o=t.controller||(t.controller={});ZR(r,n),ZR(o,n);var i=this.isCategory();function a(n){bye(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,r),a.call(this,o),function(e,t,n){var r=e[t],o=e[n];r&&!o&&(o=e[n]={},xye(r,function(e,t){if(Doe.isValidType(t)){var n=mye.get(t,"inactive",i);null!=n&&(o[t]=n,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";xye(this.stateList,function(a){var l=this.itemSize,s=e[a];s||(s=e[a]={color:i?r:[r]}),null==s.symbol&&(s.symbol=t&&KR(t)||(i?o:[o])),null==s.symbolSize&&(s.symbolSize=n&&KR(n)||(i?l[0]:[l[0],l[0]])),s.symbol=vye(s.symbol,function(e){return"none"===e?o:e});var c=s.symbolSize;if(null!=c){var u=-1/0;yye(c,function(e){e>u&&(u=e)}),s.symbolSize=vye(c,function(e){return Sye(e,[0,u],[0,l[0]],!0)})}},this)}.call(this,o)},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}(Xq);const _ye=Cye;var kye=[20,140],Mye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(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]=kye[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=kye[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):hj(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),aj(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=FF((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],o=n.getData();o.each(this.getDataDimensionIndex(o),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=Iye(this,"outOfRange",this.getExtent()),n=Iye(this,"inRange",this.option.range.slice()),r=[];function o(t,n){r.push({value:t,color:e(t,n)})}for(var i=0,a=0,l=n.length,s=t.length;a<s&&(!n.length||t[a]<=n[0]);a++)t[a]<n[i]&&o(t[a],"outOfRange");for(var c=1;i<l;i++,c=0)c&&r.length&&o(n[i],"outOfRange"),o(n[i],"inRange");for(c=1;a<s;a++)(!n.length||n[n.length-1]<t[a])&&(c&&(r.length&&o(r[r.length-1].value,"outOfRange"),c=0),o(t[a],"outOfRange"));var u=r.length;return{stops:r,outerColors:[u?r[0].color:"transparent",u?r[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=zY(_ye.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(_ye);function Iye(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,o=n[0],i=[],a=0;a<=200&&o<n[1];a++)i.push(o),o+=r;return i.push(n[1]),i}const Eye=Mye;var Oye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return MR(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Mq(t.get("padding")||0),r=e.getBoundingRect();e.add(new jG({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,o=this.visualMapModel,i={};if("color"===t){var a=o.get("contentColor");i.color=a}function l(e){return i[e]}function s(e,t){i[e]=t}var c=o.controllerVisuals[r||o.getValueState(e)];return aj(Doe.prepareVisualTypes(c),function(r){var o=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",o=c.__alphaForOpacity),Doe.dependsOn(r,t)&&o&&o.applyVisual(e,l,s)}),i[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Fq(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(qZ);const $ye=Oye;var Tye=[["left","right","width"],["top","bottom","height"]];function Pye(e,t,n){var r=e.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var i={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,l=Tye[a],s=[0,null,10],c={},u=0;u<3;u++)c[Tye[1-a][u]]=s[u],c[l[u]]=2===u?n[0]:r[l[u]];var d=[["x","width",3],["y","height",0]][a],p=Hq(c,i,r.padding);return l[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*i[d[1]]?0:1]}function Dye(e,t){return aj(e||[],function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Nye=zF,Aye=aj,Rye=Math.min,jye=Math.max,Lye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return MR(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=pj(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=pj(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var o=this.visualMapModel,i=o.get("textGap"),a=o.itemSize,l=this._shapes.mainGroup,s=this._applyTransform([a[0]/2,0===n?-i:a[1]+i],l),c=this._applyTransform(0===n?"bottom":"top",l),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new JG({style:hY(d,{x:s[0],y:s[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,o=this._orient,i=this._useHandle,a=Pye(t,this.api,r),l=n.mainGroup=this._createBarGroup(a),s=new _F;l.add(s),s.add(n.outOfRange=zye()),s.add(n.inRange=zye(null,i?Hye(this._orient):null,pj(this._dragHandle,this,"all",!1),pj(this._dragHandle,this,"all",!0))),s.setClipPath(new jG({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=t.textStyleModel.getTextRect("\u56fd"),u=jye(c.width,c.height);i&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,l,0,r,u,o),this._createHandle(t,l,1,r,u,o)),this._createIndicator(t,l,r,u,o),e.add(l)},t.prototype._createHandle=function(e,t,n,r,o,i){var a=pj(this._dragHandle,this,n,!1),l=pj(this._dragHandle,this,n,!0),s=uF(e.get("handleSize"),r[0]),c=m1(e.get("handleIcon"),-s/2,-s/2,s,s,null,!0),u=Hye(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:l,onmousemove:function(e){FL(e.event)}}),c.x=r[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),XU(c,!0),t.add(c);var d=this.visualMapModel.textStyleModel,p=new JG({cursor:u,draggable:!0,drift:a,onmousemove:function(e){FL(e.event)},ondragend:l,style:hY(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[s,0],h=this._shapes;h.handleThumbs[n]=c,h.handleLabelPoints[n]=f,h.handleLabels[n]=p},t.prototype._createIndicator=function(e,t,n,r,o){var i=uF(e.get("indicatorSize"),n[0]),a=m1(e.get("indicatorIcon"),-i/2,-i/2,i,i,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=e.getModel("indicatorStyle").getItemStyle();if(a instanceof OG){var s=a.style;a.useStyle(JR({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},l))}else a.useStyle(l);t.add(a);var c=this.visualMapModel.textStyleModel,u=new JG({silent:!0,invisible:!0,style:hY(c,{x:0,y:0,text:""})});this.group.add(u);var d=[("horizontal"===o?r/2:6)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=u,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():Bye(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[Nye(t[0],n,r,!0),Nye(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,o=[0,n.itemSize[1]];Gae(t,r,o,e,0);var i=n.getExtent();this._dataInterval=[Nye(r[0],o,i,!0),Nye(r[1],o,i,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,o=[0,t.itemSize[1]],i=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,i,"inRange"),l=this._createBarVisual(n,n,o,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),this._updateHandle(i,a)},t.prototype._createBarVisual=function(e,t,n,r){var o={forceState:r,convertOpacityToAlpha:!0},i=this._makeColorGradient(e,o),a=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],l=this._createBarPoints(n,a);return{barColor:new dJ(0,0,0,1,i),barPoints:l,handlesColor:[i[0].color,i[i.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<100;o++){var i=e[0]+r*o;if(i>e[1])break;n.push({color:this.getControllerVisual(i,"color",t),offset:o/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},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 _F("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,o=n.handleThumbs,i=n.handleLabels,a=r.itemSize,l=r.getExtent(),s=this._applyTransform("left",n.mainGroup);Aye([0,1],function(c){var u=o[c];u.setStyle("fill",t.handlesColor[c]),u.y=e[c];var d=Nye(e[c],[0,a[1]],l,!0),p=this.getControllerVisual(d,"symbolSize");u.scaleX=u.scaleY=p/a[0],u.x=a[0]-p/2;var f=BJ(n.handleLabelPoints[c],zJ(u,this.group));if("horizontal"===this._orient){var h="left"===s||"top"===s?(a[0]-p)/2:(a[0]-p)/-2;f[1]+=h}i[c].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,t,n,r){var o=this.visualMapModel,i=o.getExtent(),a=o.itemSize,l=[0,a[1]],s=this._shapes,c=s.indicator;if(c){c.attr("invisible",!1);var u=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),p=Nye(e,i,l,!0),f=a[0]-d/2,h={x:c.x,y:c.y};c.y=p,c.x=f;var g=BJ(s.indicatorLabelPoint,zJ(c,this.group)),m=s.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",s.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+o.formatValueText(t),verticalAlign:y?v:"middle",align:y?"center":v});var b={x:f,y:p,style:{fill:u}},x={style:{x:g[0],y:g[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=h.x,c.y=h.y,c.animateTo(b,w),m.animateTo(x,w)}else c.attr(b),m.attr(x);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=Rye(jye(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var o=[0,r[1]],i=n.getExtent();e=Rye(jye(o[0],e),o[1]);var a=function(e,t,n){var r=6,o=e.get("hoverLinkDataSize");o&&(r=Nye(o,t,n,!0)/2);return r}(n,i,o),l=[e-a,e+a],s=Nye(e,o,i,!0),c=[Nye(l[0],o,i,!0),Nye(l[1],o,i,!0)];l[0]<o[0]&&(c[0]=-1/0),l[1]>o[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(s,c[1],"< ",a):c[1]===1/0?this._showIndicator(s,c[0],"> ",a):this._showIndicator(s,s,"\u2248 ",a));var u=this._hoverLinkDataIndices,d=[];(t||Bye(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var p=function(e,t){var n={},r={};return o(e||[],n),o(t||[],r,n),[i(n),i(r)];function o(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=wV(e[r].seriesId,null);if(null==i)return;for(var a=fV(e[r].dataIndex),l=n&&n[i],s=0,c=a.length;s<c;s++){var u=a[s];l&&l[u]?l[u]=null:(t[i]||(t[i]={}))[u]=1}}}function i(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var o=i(e[r],!0);o.length&&n.push({seriesId:r,dataIndex:o})}return n}}(u,d);this._dispatchHighDown("downplay",Dye(p[0],n)),this._dispatchHighDown("highlight",Dye(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(o1(e.target,function(e){var n=eU(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 o=n.getData(t.dataType),i=o.getStore().get(r.getDataDimensionIndex(o),t.dataIndex);isNaN(i)||this._showIndicator(i,i)}}},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<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Dye(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var o=zJ(t,r?null:this.group);return hj(e)?BJ(e,o,n):HJ(e,o,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}($ye);function zye(e,t,n,r){return new WQ({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){FL(e.event)},ondragend:r})}function Bye(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function Hye(e){return"vertical"===e?"ns-resize":"ew-resize"}const Fye=Lye;var Vye={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Wye=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})},Gye=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(function(e,t,n,r){var o={};return aj(e,function(e){var n=Doe.prepareVisualTypes(t[e]);o[e]=n}),{progress:function(e,i){var a,l;function s(e){return J0(i,l,e)}function c(e,t){t1(i,l,e,t)}null!=r&&(a=i.getDimensionIndex(r));for(var u=i.getStore();null!=(l=e.next());){var d=i.getRawDataItem(l);if(!d||!1!==d.visualMap)for(var p=null!=r?u.get(a,l):l,f=n(p),h=t[f],g=o[f],m=0,v=g.length;m<v;m++){var y=g[m];h[y]&&h[y].applyVisual(p,s,c)}}}}}(t.stateList,t.targetVisuals,pj(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(pj(Uye,null,e,t))||{stops:[],outerColors:[]},i=t.getDataDimensionIndex(n);i>=0&&(o.dimension=i,r.push(o))}}),e.getData().setVisual("visualMeta",r)}}];function Uye(e,t,n,r){for(var o=t.targetVisuals[r],i=Doe.prepareVisualTypes(o),a={color:e1(e.getData(),"color")},l=0,s=i.length;l<s;l++){var c=i[l],u=o["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,d,p)}return a.color;function d(e){return a[e]}function p(e,t){a[e]=t}}var Yye=aj;function qye(e){var t=e&&e.visualMap;hj(t)||(t=t?[t]:[]),Yye(t,function(e){if(e){Xye(e,"splitList")&&!Xye(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&hj(t)&&Yye(t,function(e){bj(e)&&(Xye(e,"start")&&!Xye(e,"min")&&(e.min=e.start),Xye(e,"end")&&!Xye(e,"max")&&(e.max=e.end))})}})}function Xye(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Kye=!1;function Zye(e){Kye||(Kye=!0,e.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),e.registerAction(Vye,Wye),aj(Gye,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(qye))}function Qye(e){e.registerComponentModel(Eye),e.registerComponentView(Fye),Zye(e)}var Jye=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return MR(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],ebe[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var o=this.option.categories;this.resetVisual(function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=KR(o)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=lj(this._pieceList,function(e){return e=KR(e),"inRange"!==t&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=Doe.listVisualTypes(),o=this.isCategory();function i(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}aj(t.pieces,function(e){aj(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),aj(n,function(e,n){var r=!1;aj(this.stateList,function(e){r=r||i(t,e,n)||i(t.target,e,n)},this),!r&&aj(this.stateList,function(e){(t[e]||(t[e]={}))[n]=mye.get(n,"inRange"===e?"active":"inactive",o)})},this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,aj(r,function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)},this),"single"===n.selectedMode){var i=!1;aj(r,function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(i?o[n]=!1:i=!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=KR(e)},t.prototype.getValueState=function(e){var t=Doe.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 o=[],i=r.getData();i.each(this.getDataDimensionIndex(i),function(t,r){Doe.findPieceIndex(t,n)===e&&o.push(r)},this),t.push({seriesId:r.id,dataIndex:o})},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,o=this._pieceList.slice();if(o.length){var i=o[0].interval[0];i!==-1/0&&o.unshift({interval:[-1/0,i]}),(i=o[o.length-1].interval[1])!==1/0&&o.push({interval:[i,1/0]})}else o.push({interval:[-1/0,1/0]});var a=-1/0;return aj(o,function(e){var t=e.interval;t&&(t[0]>a&&l([a,t[0]],"outOfRange"),l(t.slice()),a=t[1])},this),{stops:t,outerColors:n}}function l(o,i){var a=r.getRepresentValue({interval:o});i||(i=r.getValueState(a));var l=e(a,i);o[0]===-1/0?n[0]=l:o[1]===1/0?n[1]=l:t.push({value:o[0],color:l},{value:o[1],color:l})}},t.type="visualMap.piecewise",t.defaultOption=zY(_ye.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}(_ye),ebe={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),o=t.splitNumber;o=Math.max(parseInt(o,10),1),t.splitNumber=o;for(var i=(r[1]-r[0])/o;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,l=r[0];a<o;l+=i,a++){var s=a===o-1?r[1]:l+i;e.push({interval:[l,s],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),oV(e),aj(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;aj(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),tbe(t,e)},pieces:function(e){var t=this.option;aj(t.pieces,function(t,n){bj(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var o=r.value=t.value;r.interval=[o,o],r.close=[1,1]}else{for(var i=r.interval=[],a=r.close=[0,0],l=[1,0,1],s=[-1/0,1/0],c=[],u=0;u<2;u++){for(var d=[["gte","gt","min"],["lte","lt","max"]][u],p=0;p<3&&null==i[u];p++)i[u]=t[d[p]],a[u]=l[p],c[u]=2===p;null==i[u]&&(i[u]=s[u])}c[0]&&i[1]===1/0&&(a[0]=0),c[1]&&i[0]===-1/0&&(a[1]=0),i[0]===i[1]&&a[0]&&a[1]&&(r.value=i[0])}r.visual=Doe.retrieveVisuals(t),e.push(r)},this),tbe(t,e),oV(e),aj(e,function(e){var t=e.close,n=[["<","\u2264"][t[1]],[">","\u2265"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)},this)}};function tbe(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}const nbe=Jye;var rbe=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return MR(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,o=r.getFont(),i=r.getTextColor(),a=this._getItemAlign(),l=t.itemSize,s=this._getViewData(),c=s.endsText,u=Ij(t.get("showLabel",!0),!c),d=!t.get("selectedMode");c&&this._renderEndsText(e,c[0],l,u,a),aj(s.viewPieceList,function(r){var s=r.piece,c=new _F;c.onclick=pj(this._onItemClick,this,s),this._enableHoverLink(c,r.indexInModelPieceList);var p=t.getRepresentValue(s);if(this._createItemSymbol(c,p,[0,0,l[0],l[1]],d),u){var f=this.visualMapModel.getValueState(p);c.add(new JG({style:{x:"right"===a?-n:l[0]+n,y:l[1]/2,text:s.text,verticalAlign:"middle",align:a,font:o,fill:i,opacity:"outOfRange"===f?.5:1},silent:d}))}e.add(c)},this),c&&this._renderEndsText(e,c[1],l,u,a),Bq(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:Dye(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return Pye(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,o){if(t){var i=new _F,a=this.visualMapModel.textStyleModel;i.add(new JG({style:hY(a,{x:r?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?o:"center",text:t})})),e.add(i)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=lj(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get("text"),r=e.get("orient"),o=e.get("inverse");return("horizontal"===r?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var o=m1(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));o.silent=r,e.add(o)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var o=KR(n.selected),i=t.getSelectedMapKey(e);"single"===r||!0===r?(o[i]=!0,aj(o,function(e,t){o[t]=t===i})):o[i]=!o[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}($ye);const obe=rbe;function ibe(e){e.registerComponentModel(nbe),e.registerComponentView(obe),Zye(e)}var abe={label:{enabled:!0},decal:{show:!1}},lbe=kV(),sbe={};function cbe(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=KR(abe);ZR(r.label,e.getLocaleModel().get("aria"),!1),ZR(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=Bj();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),lbe(e).scope=n}}),e.eachRawSeries(function(t){if(!e.isSeriesFiltered(t))if(gj(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=SX(t.ecModel,t.name,sbe,e.getSeriesCount()),o=n.getVisual("decal");n.setVisual("decal",c(o,r))}else{var i=t.getRawData(),a={},l=lbe(t).scope;n.each(function(e){var t=n.getRawIndex(e);a[t]=e});var s=i.count();i.each(function(e){var r=a[e],o=i.getName(e)||e+"",u=SX(t.ecModel,o,l,s),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(d,u))})}}function c(e,t){var n=e?JR(JR({},t),e):t;return n.dirty=!0,n}})}}(),function(){var r=t.getZr().dom;if(!r)return;var a=e.getLocaleModel().get("aria"),l=n.getModel("label");if(l.option=ej(l.option,a),!l.get("enabled"))return;if(r.setAttribute("role","img"),l.get("description"))return void r.setAttribute("aria-label",l.get("description"));var s,c=e.getSeriesCount(),u=l.get(["data","maxCount"])||10,d=l.get(["series","maxCount"])||10,p=Math.min(c,d);if(c<1)return;var f=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();s=f?o(l.get(["general","withTitle"]),{title:f}):l.get(["general","withoutTitle"]);var h=[];s+=o(c>1?l.get(["series","multiple","prefix"]):l.get(["series","single","prefix"]),{seriesCount:c}),e.eachSeries(function(e,t){if(t<p){var n=void 0,r=e.get("name")?"withName":"withoutName";n=o(n=c>1?l.get(["series","multiple",r]):l.get(["series","single",r]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:i(e.subType)});var a=e.getData();if(a.count()>u)n+=o(l.get(["data","partialData"]),{displayCnt:u});else n+=l.get(["data","allData"]);for(var s=l.get(["data","separator","middle"]),d=l.get(["data","separator","end"]),f=l.get(["data","excludeDimensionId"]),g=[],m=0;m<a.count();m++)if(m<u){var v=a.getName(m),y=f?cj(a.getValues(m),function(e,t){return-1===nj(f,t)}):a.getValues(m),b=l.get(["data",v?"withName":"withoutName"]);g.push(o(b,{name:v,value:y.join(s)}))}n+=g.join(s)+d,h.push(n)}});var g=l.getModel(["series","multiple","separator"]),m=g.get("middle"),v=g.get("end");s+=h.join(m)+v,r.setAttribute("aria-label",s)}()}function o(e,t){if(!mj(e))return e;var n=e;return aj(t,function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)}),n}function i(t){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function ube(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},aj(["description","general","series","data"],function(e){null!=t[e]&&(t.label[e]=t[e])})}}var dbe={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pbe=function(){function e(e){if(null==(this._condVal=mj(e)?new RegExp(e):kj(e)?e:null)){0,LK("")}}return e.prototype.evaluate=function(e){var t=typeof e;return mj(t)?this._condVal.test(e):!!yj(t)&&this._condVal.test(e+"")},e}(),fbe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),hbe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),gbe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),mbe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),vbe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0},e}();function ybe(e,t){if(!0===e||!1===e){var n=new fbe;return n.value=e,n}return xbe(e)||LK(""),e.and?bbe("and",e,t):e.or?bbe("or",e,t):e.not?function(e,t){var n=e.not,r="";0;xbe(n)||LK(r);var o=new mbe;o.child=ybe(n,t),o.child||LK(r);return o}(e,t):function(e,t){for(var n="",r=t.prepareGetValue(e),o=[],i=dj(e),a=e.parser,l=a?HK(a):null,s=0;s<i.length;s++){var c=i[s];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Wj(dbe,c)?dbe[c]:c,d=e[c],p=l?l(d):d,f=UK(u,p)||"reg"===u&&new pbe(p);f||LK(n),o.push(f)}}o.length||LK(n);var h=new vbe;return h.valueGetterParam=r,h.valueParser=l,h.getValue=t.getValue,h.subCondList=o,h}(e,t)}function bbe(e,t,n){var r=t[e];hj(r)||LK(""),r.length||LK("");var o="and"===e?new hbe:new gbe;return o.children=lj(r,function(e){return ybe(e,n)}),o.children.length||LK(""),o}function xbe(e){return bj(e)&&!ij(e)}var wbe=function(){function e(e,t){this._cond=ybe(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var Sbe={type:"echarts:filter",transform:function(e){for(var t,n,r,o=e.upstream,i=(n=e.config,r={valueGetterAttrMap:Bj({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;Wj(e,"dimension")||LK("");var n=o.getDimensionInfo(t);return n||LK(""),{dimIdx:n.index}},getValue:function(e){return o.retrieveValueFromItem(t,e.dimIdx)}},new wbe(n,r)),a=[],l=0,s=o.count();l<s;l++)t=o.getRawDataItem(l),i.evaluate()&&a.push(t);return{data:a}}};var Cbe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",o=fV(n);o.length||LK(r);var i=[];aj(o,function(e){var n=e.dimension,o=e.order,a=e.parser,l=e.incomparable;if(null==n&&LK(r),"asc"!==o&&"desc"!==o&&LK(r),l&&"min"!==l&&"max"!==l){0,LK("")}if("asc"!==o&&"desc"!==o){0,LK("")}var s=t.getDimensionInfo(n);s||LK(r);var c=a?HK(a):null;a&&!c&&LK(r),i.push({dimIdx:s.index,parser:c,comparator:new WK(o,l)})});var a=t.sourceFormat;a!==tX&&a!==nX&&LK(r);for(var l=[],s=0,c=t.count();s<c;s++)l.push(t.getRawDataItem(s));return l.sort(function(e,n){for(var r=0;r<i.length;r++){var o=i[r],a=t.retrieveValueFromItem(e,o.dimIdx),l=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),l=o.parser(l));var s=o.comparator.evaluate(a,l);if(0!==s)return s}return 0}),{data:l}}};var _be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return MR(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new hZ(this),gZ(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),gZ(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:aX},t}(Xq),kbe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return MR(t,e),t.type="dataset",t}(qZ);var Mbe=eG.CMD;function Ibe(e,t){return Math.abs(e-t)<1e-5}function Ebe(e){var t,n,r,o,i,a=e.data,l=e.len(),s=[],c=0,u=0,d=0,p=0;function f(e,n){t&&t.length>2&&s.push(t),t=[e,n]}function h(e,n,r,o){Ibe(e,r)&&Ibe(n,o)||t.push(e,n,r,o,r,o)}function g(e,n,r,o,i,a){var l=Math.abs(n-e),s=4*Math.tan(l/4)/3,c=n<e?-1:1,u=Math.cos(e),d=Math.sin(e),p=Math.cos(n),f=Math.sin(n),h=u*i+r,g=d*a+o,m=p*i+r,v=f*a+o,y=i*s*c,b=a*s*c;t.push(h-y*d,g+b*u,m+y*f,v-b*p,m,v)}for(var m=0;m<l;){var v=a[m++],y=1===m;switch(y&&(d=c=a[m],p=u=a[m+1],v!==Mbe.L&&v!==Mbe.C&&v!==Mbe.Q||(t=[d,p])),v){case Mbe.M:c=d=a[m++],u=p=a[m++],f(d,p);break;case Mbe.L:h(c,u,n=a[m++],r=a[m++]),c=n,u=r;break;case Mbe.C:t.push(a[m++],a[m++],a[m++],a[m++],c=a[m++],u=a[m++]);break;case Mbe.Q:n=a[m++],r=a[m++],o=a[m++],i=a[m++],t.push(c+2/3*(n-c),u+2/3*(r-u),o+2/3*(n-o),i+2/3*(r-i),o,i),c=o,u=i;break;case Mbe.A:var b=a[m++],x=a[m++],w=a[m++],S=a[m++],C=a[m++],_=a[m++]+C;m+=1;var k=!a[m++];n=Math.cos(C)*w+b,r=Math.sin(C)*S+x,y?f(d=n,p=r):h(c,u,n,r),c=Math.cos(_)*w+b,u=Math.sin(_)*S+x;for(var M=(k?-1:1)*Math.PI/2,I=C;k?I>_:I<_;I+=M){g(I,k?Math.max(I+M,_):Math.min(I+M,_),b,x,w,S)}break;case Mbe.R:d=c=a[m++],p=u=a[m++],n=d+a[m++],r=p+a[m++],f(n,p),h(n,p,n,r),h(n,r,d,r),h(d,r,d,p),h(d,p,n,p);break;case Mbe.Z:t&&h(c,u,d,p),c=d,u=p}}return t&&t.length>2&&s.push(t),s}function Obe(e,t,n,r,o,i,a,l,s,c){if(Ibe(e,n)&&Ibe(t,r)&&Ibe(o,a)&&Ibe(i,l))s.push(a,l);else{var u=2/c,d=u*u,p=a-e,f=l-t,h=Math.sqrt(p*p+f*f);p/=h,f/=h;var g=n-e,m=r-t,v=o-a,y=i-l,b=g*g+m*m,x=v*v+y*y;if(b<d&&x<d)s.push(a,l);else{var w=p*g+f*m,S=-p*v-f*y;if(b-w*w<d&&w>=0&&x-S*S<d&&S>=0)s.push(a,l);else{var C=[],_=[];nB(e,n,o,a,.5,C),nB(t,r,i,l,.5,_),Obe(C[0],_[0],C[1],_[1],C[2],_[2],C[3],_[3],s,c),Obe(C[4],_[4],C[5],_[5],C[6],_[6],C[7],_[7],s,c)}}}}function $be(e,t,n){var r=e[t],o=e[1-t],i=Math.abs(r/o),a=Math.ceil(Math.sqrt(i*n)),l=Math.floor(n/a);0===l&&(l=1,a=n);for(var s=[],c=0;c<a;c++)s.push(l);var u=n-a*l;if(u>0)for(c=0;c<u;c++)s[c%a]+=1;return s}function Tbe(e,t,n){for(var r=e.r0,o=e.r,i=e.startAngle,a=e.endAngle,l=Math.abs(a-i),s=l*o,c=o-r,u=s>Math.abs(c),d=$be([s,c],u?0:1,t),p=(u?l:c)/d.length,f=0;f<d.length;f++)for(var h=(u?c:l)/d[f],g=0;g<d[f];g++){var m={};u?(m.startAngle=i+p*f,m.endAngle=i+p*(f+1),m.r0=r+h*g,m.r=r+h*(g+1)):(m.startAngle=i+h*g,m.endAngle=i+h*(g+1),m.r0=r+p*f,m.r=r+p*(f+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function Pbe(e,t,n,r){return e*r-n*t}function Dbe(e,t,n,r,o,i,a,l){var s=n-e,c=r-t,u=a-o,d=l-i,p=Pbe(u,d,s,c);if(Math.abs(p)<1e-6)return null;var f=Pbe(e-o,t-i,u,d)/p;return f<0||f>1?null:new rz(f*s+e,f*c+t)}function Nbe(e,t,n){var r=new rz;rz.sub(r,n,t),r.normalize();var o=new rz;return rz.sub(o,e,t),o.dot(r)}function Abe(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Rbe(e){var t=e.points,n=[],r=[];EW(t,n,r);var o=new fz(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=o.width,a=o.height,l=o.x,s=o.y,c=new rz,u=new rz;return i>a?(c.x=u.x=l+i/2,c.y=s,u.y=s+a):(c.y=u.y=s+a/2,c.x=l,u.x=l+i),function(e,t,n){for(var r=e.length,o=[],i=0;i<r;i++){var a=e[i],l=e[(i+1)%r],s=Dbe(a[0],a[1],l[0],l[1],t.x,t.y,n.x,n.y);s&&o.push({projPt:Nbe(s,t,n),pt:s,idx:i})}if(o.length<2)return[{points:e},{points:e}];o.sort(function(e,t){return e.projPt-t.projPt});var c=o[0],u=o[o.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}var p=[c.pt.x,c.pt.y],f=[u.pt.x,u.pt.y],h=[p],g=[f];for(i=c.idx+1;i<=u.idx;i++)Abe(h,e[i].slice());for(Abe(h,f),Abe(h,p),i=u.idx+1;i<=c.idx+r;i++)Abe(g,e[i%r].slice());return Abe(g,p),Abe(g,f),[{points:h},{points:g}]}(t,c,u)}function jbe(e,t,n,r){if(1===n)r.push(t);else{var o=Math.floor(n/2),i=e(t);jbe(e,i[0],o,r),jbe(e,i[1],n-o,r)}return r}function Lbe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function zbe(e,t){var n,r=[],o=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var r=e.width,o=e.height,i=r>o,a=$be([r,o],i?0:1,t),l=i?"width":"height",s=i?"height":"width",c=i?"x":"y",u=i?"y":"x",d=e[l]/a.length,p=0;p<a.length;p++)for(var f=e[s]/a[p],h=0;h<a[p];h++){var g={};g[c]=p*d,g[u]=h*f,g[l]=d,g[s]=f,g.x+=e.x,g.y+=e.y,n.push(g)}}(o,t,r),n=jG;break;case"sector":Tbe(o,t,r),n=jQ;break;case"circle":Tbe({r0:0,r:o.r,startAngle:0,endAngle:2*Math.PI,cx:o.cx,cy:o.cy},t,r),n=jQ;break;default:var i=e.getComputedTransform(),a=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,l=lj(function(e,t){var n=Ebe(e),r=[];t=t||1;for(var o=0;o<n.length;o++){var i=n[o],a=[],l=i[0],s=i[1];a.push(l,s);for(var c=2;c<i.length;){var u=i[c++],d=i[c++],p=i[c++],f=i[c++],h=i[c++],g=i[c++];Obe(l,s,u,d,p,f,h,g,a,t),l=h,s=g}r.push(a)}return r}(e.getUpdatedPathProxy(),a),function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)}),s=l.length;if(0===s)jbe(Rbe,{points:l[0]},t,r);else if(s===t)for(var c=0;c<s;c++)r.push({points:l[c]});else{var u=0,d=lj(l,function(e){var t=[],n=[];EW(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});var p=t;for(c=0;c<s;c++){var f=d[c];if(p<=0)break;var h=c===s-1?p:Math.ceil(f.area/u*t);h<0||(jbe(Rbe,{points:f.poly},h,r),p-=h)}}n=WQ}if(!n)return function(e,t){for(var n=[],r=0;r<t;r++)n.push(gQ(e));return n}(e,t);var g=[];for(c=0;c<r.length;c++){var m=new n;m.setShape(r[c]),Lbe(e,m),g.push(m)}return g}function Bbe(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var o=[],i=[],a=n<r?e:t,l=Math.min(n,r),s=Math.abs(r-n)/6,c=(l-2)/6,u=Math.ceil(s/c)+1,d=[a[0],a[1]],p=s,f=2;f<l;){var h=a[f-2],g=a[f-1],m=a[f++],v=a[f++],y=a[f++],b=a[f++],x=a[f++],w=a[f++];if(p<=0)d.push(m,v,y,b,x,w);else{for(var S=Math.min(p,u-1)+1,C=1;C<=S;C++){var _=C/S;nB(h,m,y,x,_,o),nB(g,v,b,w,_,i),h=o[3],g=i[3],d.push(o[1],i[1],o[2],i[2],h,g),m=o[5],v=i[5],y=o[6],b=i[6]}p-=S-1}}return a===e?[d,t]:[e,d]}function Hbe(e,t){for(var n=e.length,r=e[n-2],o=e[n-1],i=[],a=0;a<t.length;)i[a++]=r,i[a++]=o;return i}function Fbe(e){for(var t=0,n=0,r=0,o=e.length,i=0,a=o-2;i<o;a=i,i+=2){var l=e[a],s=e[a+1],c=e[i],u=e[i+1],d=l*u-c*s;t+=d,n+=(l+c)*d,r+=(s+u)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function Vbe(e,t,n,r){for(var o=(e.length-2)/6,i=1/0,a=0,l=e.length,s=l-2,c=0;c<o;c++){for(var u=6*c,d=0,p=0;p<l;p+=2){var f=0===p?u:(u+p-2)%s+2,h=e[f]-n[0],g=e[f+1]-n[1],m=t[p]-r[0]-h,v=t[p+1]-r[1]-g;d+=m*m+v*v}d<i&&(i=d,a=c)}return a}function Wbe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function Gbe(e){return e.__isCombineMorphing}var Ube="__mOriginal_";function Ybe(e,t,n){var r=Ube+t,o=e[r]||e[t];e[r]||(e[r]=e[t]);var i=n.replace,a=n.after,l=n.before;e[t]=function(){var e,t=arguments;return l&&l.apply(this,t),e=i?i.apply(this,t):o.apply(this,t),a&&a.apply(this,t),e}}function qbe(e,t){var n=Ube+t;e[n]&&(e[t]=e[n],e[n]=null)}function Xbe(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],o=0;o<r.length;){var i=r[o],a=r[o+1];r[o++]=t[0]*i+t[2]*a+t[4],r[o++]=t[1]*i+t[3]*a+t[5]}}function Kbe(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),o=function(e,t){for(var n,r,o,i=[],a=[],l=0;l<Math.max(e.length,t.length);l++){var s=e[l],c=t[l],u=void 0,d=void 0;s?c?(r=u=(n=Bbe(s,c))[0],o=d=n[1]):(d=Hbe(o||s,s),u=s):(u=Hbe(r||c,c),d=c),i.push(u),a.push(d)}return[i,a]}(Ebe(n),Ebe(r)),i=o[0],a=o[1],l=e.getComputedTransform(),s=t.getComputedTransform();l&&Xbe(i,l),s&&Xbe(a,s),Ybe(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var c=function(e,t,n,r){for(var o,i=[],a=0;a<e.length;a++){var l=e[a],s=t[a],c=Fbe(l),u=Fbe(s);null==o&&(o=c[2]<0!==u[2]<0);var d=[],p=[],f=0,h=1/0,g=[],m=l.length;o&&(l=Wbe(l));for(var v=6*Vbe(l,s,c,u),y=m-2,b=0;b<y;b+=2){var x=(v+b)%y+2;d[b+2]=l[x]-c[0],d[b+3]=l[x+1]-c[1]}if(d[0]=l[v]-c[0],d[1]=l[v+1]-c[1],n>0)for(var w=r/n,S=-r/2;S<=r/2;S+=w){var C=Math.sin(S),_=Math.cos(S),k=0;for(b=0;b<l.length;b+=2){var M=d[b],I=d[b+1],E=s[b]-u[0],O=s[b+1]-u[1],$=E*_-O*C,T=E*C+O*_;g[b]=$,g[b+1]=T;var P=$-M,D=T-I;k+=P*P+D*D}if(k<h){h=k,f=S;for(var N=0;N<g.length;N++)p[N]=g[N]}}else for(var A=0;A<m;A+=2)p[A]=s[A]-u[0],p[A+1]=s[A+1]-u[1];i.push({from:d,to:p,fromCp:c,toCp:u,rotation:-f})}return i}(i,a,10,Math.PI),u=[];Ybe(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,o=[],i=0;i<c.length;i++){var a=c[i],l=a.from,s=a.to,d=a.rotation*n,p=a.fromCp,f=a.toCp,h=Math.sin(d),g=Math.cos(d);hL(o,p,f,n);for(var m=0;m<l.length;m+=2){var v=l[m],y=l[m+1],b=v*r+(C=s[m])*n,x=y*r+(_=s[m+1])*n;u[m]=b*g-x*h+o[0],u[m+1]=b*h+x*g+o[1]}var w=u[0],S=u[1];e.moveTo(w,S);for(m=2;m<l.length;){var C=u[m++],_=u[m++],k=u[m++],M=u[m++],I=u[m++],E=u[m++];w===C&&S===_&&k===I&&M===E?e.lineTo(I,E):e.bezierCurveTo(C,_,k,M,I,E),w=I,S=E}}}})}function Zbe(e,t,n){if(!e||!t)return t;var r=n.done,o=n.during;return Kbe(e,t),t.__morphT=0,t.animateTo({__morphT:1},ej({during:function(e){t.dirtyShape(),o&&o(e)},done:function(){qbe(t,"buildPath"),qbe(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),r&&r()}},n)),t}function Qbe(e,t,n,r,o,i){e=o===n?0:Math.round(32767*(e-n)/(o-n)),t=i===r?0:Math.round(32767*(t-r)/(i-r));for(var a,l=0,s=32768;s>0;s/=2){var c=0,u=0;(e&s)>0&&(c=1),(t&s)>0&&(u=1),l+=s*s*(3*c^u),0===u&&(1===c&&(e=s-1-e,t=s-1-t),a=e,e=t,t=a)}return l}function Jbe(e){var t=1/0,n=1/0,r=-1/0,o=-1/0,i=lj(e,function(e){var i=e.getBoundingRect(),a=e.getComputedTransform(),l=i.x+i.width/2+(a?a[4]:0),s=i.y+i.height/2+(a?a[5]:0);return t=Math.min(l,t),n=Math.min(s,n),r=Math.max(l,r),o=Math.max(s,o),[l,s]});return lj(i,function(i,a){return{cp:i,z:Qbe(i[0],i[1],t,n,r,o),path:e[a]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function exe(e){return zbe(e.path,e.count)}function txe(e){return hj(e[0])}function nxe(e,t){for(var n=[],r=e.length,o=0;o<r;o++)n.push({one:e[o],many:[]});for(o=0;o<t.length;o++){var i=t[o].length,a=void 0;for(a=0;a<i;a++)n[a%r].many.push(t[o][a])}var l=0;for(o=r-1;o>=0;o--)if(!n[o].many.length){var s=n[l].many;if(s.length<=1){if(!l)return n;l=0}i=s.length;var c=Math.ceil(i/2);n[o].many=s.slice(c,i),n[l].many=s.slice(0,c),l++}return n}var rxe={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var o=gQ(e.path);o.setStyle("opacity",n),t.push(o)}return t},split:null};function oxe(e,t,n,r,o,i){if(e.length&&t.length){var a=eY("update",r,o);if(a&&a.duration>0){var l,s,c=r.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);txe(e)&&(l=e,s=t),txe(t)&&(l=t,s=e);for(var d=l?l===e:e.length>t.length,p=l?nxe(s,l):nxe(d?t:e,[d?e:t]),f=0,h=0;h<p.length;h++)f+=p[h].many.length;var g=0;for(h=0;h<p.length;h++)m(p[h],d,g,f),g+=p[h].many.length}}function m(e,t,r,o,a){var l=e.many,s=e.one;if(1!==l.length||a)for(var d=ej({dividePath:rxe[n],individualDelay:c&&function(e,t,n,i){return c(e+r,o)}},u),p=t?function(e,t,n){var r=[];!function e(t){for(var n=0;n<t.length;n++){var o=t[n];Gbe(o)?e(o.childrenRef()):o instanceof SG&&r.push(o)}}(e);var o=r.length;if(!o)return{fromIndividuals:[],toIndividuals:[],count:0};var i=(n.dividePath||exe)({path:t,count:o});if(i.length!==o)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=Jbe(r),i=Jbe(i);for(var a=n.done,l=n.during,s=n.individualDelay,c=new nF,u=0;u<o;u++){var d=r[u],p=i[u];p.parent=t,p.copyTransform(c),s||Kbe(d,p)}function f(e){for(var t=0;t<i.length;t++)i[t].addSelfToZr(e)}function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,qbe(t,"addSelfToZr"),qbe(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return i},Ybe(t,"addSelfToZr",{after:function(e){f(e)}}),Ybe(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<i.length;t++)i[t].removeSelfFromZr(e)}});var g=i.length;if(s){var m=g,v=function(){0===--m&&(h(),a&&a())};for(u=0;u<g;u++){var y=s?ej({delay:(n.delay||0)+s(u,g,r[u],i[u]),done:v},n):n;Zbe(r[u],i[u],y)}}else t.__morphT=0,t.animateTo({__morphT:1},ej({during:function(e){for(var n=0;n<g;n++){var r=i[n];r.__morphT=t.__morphT,r.dirtyShape()}l&&l(e)},done:function(){h();for(var t=0;t<e.length;t++)qbe(e[t],"updateTransform");a&&a()}},n));return t.__zr&&f(t.__zr),{fromIndividuals:r,toIndividuals:i,count:g}}(l,s,d):function(e,t,n){var r=t.length,o=[],i=n.dividePath||exe;if(Gbe(e)){!function e(t){for(var n=0;n<t.length;n++){var r=t[n];Gbe(r)?e(r.childrenRef()):r instanceof SG&&o.push(r)}}(e.childrenRef());var a=o.length;if(a<r)for(var l=0,s=a;s<r;s++)o.push(gQ(o[l++%a]));o.length=r}else{o=i({path:e,count:r});var c=e.getComputedTransform();for(s=0;s<o.length;s++)o[s].setLocalTransform(c);if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}o=Jbe(o),t=Jbe(t);var u=n.individualDelay;for(s=0;s<r;s++){var d=u?ej({delay:(n.delay||0)+u(s,r,o[s],t[s])},n):n;Zbe(o[s],t[s],d)}return{fromIndividuals:o,toIndividuals:t,count:t.length}}(s,l,d),f=p.fromIndividuals,h=p.toIndividuals,g=f.length,v=0;v<g;v++){y=c?ej({delay:c(v,g)},u):u;i(f[v],h[v],t?l[v]:e.one,t?e.one:l[v],y)}else{var y,b=t?l[0]:s,x=t?s:l[0];if(Gbe(b))m({many:[b],one:x},!0,r,o,!0);else Zbe(b,x,y=c?ej({delay:c(r,o)},u):u),i(b,x,b,x,y)}}}function ixe(e){if(!e)return[];if(hj(e)){for(var t=[],n=0;n<e.length;n++)t.push(ixe(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof SG&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var axe=kV();function lxe(e,t,n,r){var o=function(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var o=e.getDimensionInfo(n[r]);if(o&&0===o.otherDims[t])return n[r]}}(e,r?"itemChildGroupId":"itemGroupId");if(o){var i=function(e,t,n){var r=e.getDimensionInfo(n),o=r&&r.ordinalMeta;if(r){var i=e.get(r.name,t);return o&&o.categories[i]||i+""}}(e,t,o);return i}var a=e.getRawDataItem(t),l=r?"childGroupId":"groupId";return a&&a[l]?a[l]+"":r?void 0:n||e.getId(t)}function sxe(e){var t=[];return aj(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>1e4))for(var o=n.getIndices(),i=0;i<o.length;i++)t.push({data:n,groupId:lxe(n,i,r,!1),childGroupId:lxe(n,i,r,!0),divide:e.divide,dataIndex:i})}),t}function cxe(e,t,n){e.traverse(function(e){e instanceof SG&&rY(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function uxe(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function dxe(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function pxe(e,t,n){var r=eY("update",n,t);r&&e.traverse(function(e){if(e instanceof bW){var t=function(e){return JU(e).oldStyle}(e);t&&e.animateFrom({style:t},r)}})}function fxe(e,t,n){var r=sxe(e),o=sxe(t);function i(e,t,n,r,o){(n||e)&&t.animateFrom({style:n&&n!==e?JR(JR({},n.style),e.style):e.style},o)}var a=!1,l=0,s=Bj(),c=Bj();r.forEach(function(e){e.groupId&&s.set(e.groupId,!0),e.childGroupId&&c.set(e.childGroupId,!0)});for(var u=0;u<o.length;u++){var d=o[u].groupId;if(c.get(d)){l=1;break}var p=o[u].childGroupId;if(p&&s.get(p)){l=2;break}}function f(e,t){return function(n){var r=n.data,o=n.dataIndex;return t?r.getId(o):e?1===l?n.childGroupId:n.groupId:2===l?n.childGroupId:n.groupId}}var h=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var o=e[r],i=t[r];if(o.data.getId(o.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}(r,o),g={};if(!h)for(u=0;u<o.length;u++){var m=o[u],v=m.data.getItemGraphicEl(m.dataIndex);v&&(g[v.id]=!0)}function y(e,t){var n=r[t],l=o[e],s=l.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),u=l.data.getItemGraphicEl(l.dataIndex);c!==u?c&&g[c.id]||u&&(dxe(u),c?(dxe(c),uxe(c),a=!0,oxe(ixe(c),ixe(u),l.divide,s,e,i)):cxe(u,s,e)):u&&pxe(u,l.dataIndex,s)}new $4(r,o,f(!0,h),f(!1,h),null,"multiple").update(y).updateManyToOne(function(e,t){var n=o[e],l=n.data,s=l.hostModel,c=l.getItemGraphicEl(n.dataIndex),u=cj(lj(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==c&&!g[e.id]});c&&(dxe(c),u.length?(aj(u,function(e){dxe(e),uxe(e)}),a=!0,oxe(ixe(u),ixe(c),n.divide,s,e,i)):cxe(c,s,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],l=n.data.getItemGraphicEl(n.dataIndex);if(!l||!g[l.id]){var s=cj(lj(e,function(e){return o[e].data.getItemGraphicEl(o[e].dataIndex)}),function(e){return e&&e!==l}),c=o[e[0]].data.hostModel;s.length&&(aj(s,function(e){return dxe(e)}),l?(dxe(l),uxe(l),a=!0,oxe(ixe(l),ixe(s),n.divide,c,e[0],i)):aj(s,function(t){return cxe(t,c,e[0])}))}}).updateManyToMany(function(e,t){new $4(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return o[e].data.getId(o[e].dataIndex)}).update(function(n,r){y(e[n],t[r])}).execute()}).execute(),a&&aj(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),o=eY("update",t,0);r&&t.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse(function(e){e instanceof SG&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)})})}function hxe(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function gxe(e){return hj(e)?e.sort().join(","):e}function mxe(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function vxe(e,t){var n=Bj(),r=Bj(),o=Bj();return aj(e.oldSeries,function(t,n){var i=e.oldDataGroupIds[n],a=e.oldData[n],l=hxe(t),s=gxe(l);r.set(s,{dataGroupId:i,data:a}),hj(l)&&aj(l,function(e){o.set(e,{key:s,dataGroupId:i,data:a})})}),aj(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),i=e.getData(),a=hxe(e),l=gxe(a),s=r.get(l);if(s)n.set(l,{oldSeries:[{dataGroupId:s.dataGroupId,divide:mxe(s.data),data:s.data}],newSeries:[{dataGroupId:t,divide:mxe(i),data:i}]});else if(hj(a)){0;var c=[];aj(a,function(e){var t=r.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:mxe(t.data),data:t.data})}),c.length&&n.set(l,{oldSeries:c,newSeries:[{dataGroupId:t,data:i,divide:mxe(i)}]})}else{var u=o.get(a);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:mxe(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:i,divide:mxe(i)})}}}}),n}function yxe(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}M4([function(e){e.registerPainter("canvas",t8)}]),M4([function(e){e.registerPainter("svg",f7)}]),M4([function(e){e.registerChartView(Q7),e.registerSeriesModel(g7),e.registerLayout(J7("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,n9("line"))},function(e){e.registerChartView(T9),e.registerSeriesModel(a9),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,fj(B3,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,H3("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,n9("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)})})},function(e){e.registerChartView(U9),e.registerSeriesModel(Q9),n1("pie",e.registerAction),e.registerLayout(fj(R9,"pie")),e.registerProcessor(L9("pie")),e.registerProcessor(function(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!(yj(r)&&!isNaN(r)&&r<0)})}}}("pie"))},function(e){M4(ate),e.registerSeriesModel(eee),e.registerChartView(aee),e.registerLayout(J7("scatter"))},function(e){M4(Mte),e.registerChartView(pte),e.registerSeriesModel(hte),e.registerLayout(lte),e.registerProcessor(L9("radar")),e.registerPreprocessor(ute)},function(e){M4(cre),e.registerChartView(zne),e.registerSeriesModel(Hne),e.registerLayout(Vne),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Fne),n1("map",e.registerAction)},function(e){e.registerChartView(Ere),e.registerSeriesModel(Ure),e.registerLayout(qre),e.registerVisual(Xre),function(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.getNodeByDataIndex(n);r.isExpand=!r.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(t){var r=ire(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)})})}(e)},function(e){e.registerSeriesModel(eoe),e.registerChartView(voe),e.registerVisual(Aoe),e.registerLayout(qoe),function(e){for(var t=0;t<Kre.length;t++)e.registerAction({type:Kre[t],update:"updateView"},Gj);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},function(t,n){var r=Hre(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var o=t.getViewRoot();o&&(e.direction=Vre(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})})}(e)},function(e){e.registerChartView(Jie),e.registerSeriesModel(sae),e.registerProcessor(eie),e.registerVisual(tie),e.registerVisual(rie),e.registerLayout(fie),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,wie),e.registerLayout(Cie),e.registerCoordinateSystem("graphView",{dimensions:Yne.dimensions,create:_ie}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Gj),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Gj),e.registerAction(cae,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(t){var r=ire(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)})})},function(e){e.registerChartView(gae),e.registerSeriesModel(mae)},function(e){e.registerChartView(xae),e.registerSeriesModel(Sae),e.registerLayout(Cae),e.registerProcessor(L9("funnel"))},function(e){M4(ase),e.registerChartView($ae),e.registerSeriesModel(Dae),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Rae)},function(e){e.registerChartView(dse),e.registerSeriesModel(fse),e.registerLayout(hse),e.registerVisual(Mse),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])})})},function(e){e.registerSeriesModel(Ose),e.registerChartView(Rse),e.registerLayout(Lse),e.registerTransform(zse)},function(e){e.registerChartView(lce),e.registerSeriesModel(cce),e.registerPreprocessor(uce),e.registerVisual(qse),e.registerLayout(fce)},function(e){e.registerChartView(yce),e.registerSeriesModel(xce),e.registerLayout(J7("effectScatter"))},function(e){e.registerChartView(Nce),e.registerSeriesModel(zce),e.registerLayout(Pce),e.registerVisual(Fce)},function(e){e.registerChartView(Yce),e.registerSeriesModel(qce)},function(e){e.registerChartView(mue),e.registerSeriesModel(vue),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,fj(B3,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,H3("pictorialBar"))},function(e){e.registerChartView(bue),e.registerSeriesModel(wue),e.registerLayout(Sue),e.registerProcessor(L9("themeRiver"))},function(e){e.registerChartView(Oue),e.registerSeriesModel(Pue),e.registerLayout(fj(Nue,"sunburst")),e.registerProcessor(fj(L9,"sunburst")),e.registerVisual(Rue),function(e){e.registerAction({type:Mue,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t,n){var r=Hre(e,[Mue],t);if(r){var o=t.getViewRoot();o&&(e.direction=Vre(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}})}),e.registerAction({type:Iue,update:"none"},function(e,t,n){e=JR({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){var n=Hre(e,[Iue],t);n&&(e.dataIndex=n.node.dataIndex)}),n.dispatchAction(JR(e,{type:"highlight"}))}),e.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t,n){e=JR({},e),n.dispatchAction(JR(e,{type:"downplay"}))})}(e)},function(e){e.registerChartView(Ede),e.registerSeriesModel(Bue)}]),M4(function(e){M4(ate),M4(Ppe)}),M4(function(e){M4(Ppe),qee.registerAxisPointerClass("PolarAxisPointer",Ape),e.registerCoordinateSystem("polar",Qpe),e.registerComponentModel(Rpe),e.registerComponentView(mfe),hee(e,"angle",Lpe,hfe),hee(e,"radius",zpe,gfe),e.registerComponentView(ife),e.registerComponentView(ufe),e.registerLayout(fj(ffe,"bar"))}),M4(cre),M4(function(e){M4(Ppe),qee.registerAxisPointerClass("SingleAxisPointer",zfe),e.registerComponentView(Bfe),e.registerComponentView(Sfe),e.registerComponentModel(_fe),hee(e,"single",_fe,_fe.defaultOption),e.registerCoordinateSystem("single",Pfe)}),M4(ase),M4(function(e){e.registerComponentModel(Ffe),e.registerComponentView(Wfe),e.registerCoordinateSystem("calendar",qfe)}),M4(function(e){e.registerComponentModel(Jfe),e.registerComponentView(nhe),e.registerPreprocessor(function(e){var t=e.graphic;hj(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}),M4(function(e){e.registerComponentModel(Dhe),e.registerComponentView(Rhe),The("saveAsImage",Lhe),The("magicType",Vhe),The("dataView",Qhe),The("dataZoom",_ge),The("restore",rge),M4(Ehe)}),M4(function(e){M4(Ppe),e.registerComponentModel(kge),e.registerComponentView(qge),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gj),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gj)}),M4(Ppe),M4(function(e){e.registerComponentView(hme),e.registerComponentModel(mme),e.registerPreprocessor(Kge),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sme),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"},Gj),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Gj),The("brush",bme)}),M4(function(e){e.registerComponentModel(xme),e.registerComponentView(wme)}),M4(function(e){e.registerComponentModel(kme),e.registerComponentView(Nme),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),ej({currentIndex:r.option.currentIndex},e)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)})}(e),e.registerPreprocessor(Ame)}),M4(function(e){e.registerComponentModel(Vme),e.registerComponentView(rve),e.registerPreprocessor(function(e){Lme(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}),M4(function(e){e.registerComponentModel(ove),e.registerComponentView(pve),e.registerPreprocessor(function(e){Lme(e.series,"markLine")&&(e.markLine=e.markLine||{})})}),M4(function(e){e.registerComponentModel(fve),e.registerComponentView(Sve),e.registerPreprocessor(function(e){Lme(e.series,"markArea")&&(e.markArea=e.markArea||{})})}),M4(function(e){M4(jve),M4(Gve)}),M4(function(e){M4(rye),M4(fye)}),M4(rye),M4(fye),M4(function(e){M4(Qye),M4(ibe)}),M4(Qye),M4(ibe),M4(function(e){e.registerPreprocessor(ube),e.registerVisual(e.PRIORITY.VISUAL.ARIA,cbe)}),M4(function(e){e.registerTransform(Sbe),e.registerTransform(Cbe)}),M4(function(e){e.registerComponentModel(_be),e.registerComponentView(kbe)}),M4(function(e){e.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){aj(fV(n.seriesTransition),function(e){aj(fV(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][jZ]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(e,t,n){var r=axe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var o=n.seriesTransition;if(o)aj(fV(o),function(e){!function(e,t,n,r){var o=[],i=[];aj(fV(e.from),function(e){var n=yxe(t.oldSeries,e);n>=0&&o.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:mxe(t.oldData[n]),groupIdDim:e.dimension})}),aj(fV(e.to),function(e){var r=yxe(n.updatedSeries,e);if(r>=0){var o=n.updatedSeries[r].getData();i.push({dataGroupId:t.oldDataGroupIds[r],data:o,divide:mxe(o),groupIdDim:e.dimension})}}),o.length>0&&i.length>0&&fxe(o,i,r)}(e,r,n,t)});else{var i=vxe(r,n);aj(i.keys(),function(e){var n=i.get(e);fxe(n.oldSeries,n.newSeries,t)})}aj(n.updatedSeries,function(e){e[jZ]&&(e[jZ]=!1)})}for(var a=e.getSeries(),l=r.oldSeries=[],s=r.oldDataGroupIds=[],c=r.oldData=[],u=0;u<a.length;u++){var d=a[u].getData();d.count()<1e4&&(l.push(a[u]),s.push(a[u].get("dataGroupId")),c.push(d))}})}),M4(Y6);var bxe=n(3362);function xxe(e,t){var n={};return t.forEach(function(t){n[t]=e[t]}),n}function wxe(e){return"function"===typeof e}var Sxe=n(122),Cxe=n.n(Sxe),_xe=function(e){function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n}return MR(t,e),t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!wxe(t)||t(e,this.props)){if(!Cxe()(e.theme,this.props.theme)||!Cxe()(e.opts,this.props.opts)||!Cxe()(e.onEvents,this.props.onEvents))return this.dispose(),void this.renderNewEcharts();var n=["option","notMerge","lazyUpdate","showLoading","loadingOption"];Cxe()(xxe(this.props,n),xxe(e,n))||this.updateEChartsOption(),Cxe()(e.style,this.props.style)&&Cxe()(e.className,this.props.className)||this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},t.prototype.dispose=function(){if(this.ele){try{(0,bxe.IU)(this.ele)}catch(vDe){console.warn(vDe)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){var e=this,t=this.props,n=t.onEvents,r=t.onChartReady,o=this.updateEChartsOption();this.bindEvents(o,n||{}),wxe(r)&&r(o),this.ele&&(0,bxe.oI)(this.ele,function(){e.resize()})},t.prototype.bindEvents=function(e,t){function n(t,n){(function(e){return"string"===typeof e})(t)&&wxe(n)&&e.on(t,function(t){n(t,e)})}for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r,t[r])},t.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=void 0!==n&&n,o=e.lazyUpdate,i=void 0!==o&&o,a=e.showLoading,l=e.loadingOption,s=void 0===l?null:l,c=this.getEchartsInstance();return c.setOption(t,r,i),a?c.showLoading(s):c.hideLoading(),c},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize()}catch(vDe){console.warn(vDe)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,o=void 0===r?"":r,i=IR({height:300},n);return g.createElement("div",{ref:function(t){e.ele=t},style:i,className:"echarts-for-react "+o})},t}(g.PureComponent);const kxe=function(e){function t(t){var n=e.call(this,t)||this;return n.echarts=h,n}return MR(t,e),t}(_xe);var Mxe=n(446),Ixe=n.n(Mxe);const Exe=()=>{const e=Uc(),[t,n]=(0,g.useState)(!1),[r,o]=(0,g.useState)({totalVolunteers:0,totalPoints:0,totalActivities:0,totalRegistrations:0}),[i,a]=(0,g.useState)([]),[l,s]=(0,g.useState)([]),[c,u]=(0,g.useState)({categories:[],totalPoints:[]}),[d,p]=(0,g.useState)([]),[f,h]=(0,g.useState)(!1),[m,v]=(0,g.useState)(null),y=async()=>{try{const e=await xE();0===e.code&&o(e.data)}catch(e){console.error("\u83b7\u53d6\u6982\u89c8\u6570\u636e\u5931\u8d25:",e),Hp.error("\u83b7\u53d6\u6982\u89c8\u6570\u636e\u5931\u8d25")}},b=async()=>{try{const e=await CE(5);0===e.code&&a(e.data)}catch(e){console.error("\u83b7\u53d6\u6700\u65b0\u6d3b\u52a8\u5931\u8d25:",e),Hp.error("\u83b7\u53d6\u6700\u65b0\u6d3b\u52a8\u5931\u8d25")}},x=async()=>{try{const e=await _E(5);0===e.code&&s(e.data)}catch(e){console.error("\u83b7\u53d6\u6700\u65b0\u5fd7\u613f\u8005\u5931\u8d25:",e),Hp.error("\u83b7\u53d6\u6700\u65b0\u5fd7\u613f\u8005\u5931\u8d25")}},w=async()=>{try{const e=await wE("month");0===e.code&&u(e.data)}catch(e){console.error("\u83b7\u53d6\u79ef\u5206\u8d8b\u52bf\u5931\u8d25:",e),Hp.error("\u83b7\u53d6\u79ef\u5206\u8d8b\u52bf\u5931\u8d25")}},S=async()=>{try{const e=await SE();0===e.code&&p(e.data)}catch(e){console.error("\u83b7\u53d6\u6d3b\u52a8\u53c2\u4e0e\u5ea6\u5931\u8d25:",e),Hp.error("\u83b7\u53d6\u6d3b\u52a8\u53c2\u4e0e\u5ea6\u5931\u8d25")}};(0,g.useEffect)(()=>{(async()=>{n(!0);try{await Promise.all([y(),b(),x(),w(),S()])}finally{n(!1)}})()},[]);const C={title:{text:"\u79ef\u5206\u8d8b\u52bf",left:"center"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:c.categories},yAxis:{type:"value"},series:[{name:"\u79ef\u5206\u603b\u6570",type:"line",data:c.totalPoints,smooth:!0,itemStyle:{color:"#1890ff"}}]},_={title:{text:"\u6d3b\u52a8\u53c2\u4e0e\u5ea6",left:"center"},tooltip:{trigger:"item"},series:[{name:"\u53c2\u4e0e\u60c5\u51b5",type:"pie",radius:"50%",data:d,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},k=()=>{h(!1),v(null)},M=e=>{switch(e){case"1":return"\u672a\u5f00\u59cb";case"2":return"\u8fdb\u884c\u4e2d";case"3":return"\u5df2\u7ed3\u675f";default:return e}},I=e=>{switch(e){case"1":case"\u672a\u5f00\u59cb":case"3":case"\u5df2\u7ed3\u675f":default:return"default";case"2":case"\u8fdb\u884c\u4e2d":return"processing";case"\u62a5\u540d\u4e2d":return"warning";case"\u6d3b\u8dc3":return"success"}},E=[{title:"\u53d1\u5e03\u6d3b\u52a8",icon:(0,EE.jsx)(Sf,{}),color:"#1890ff",onClick:()=>e("/activities/create")},{title:"\u67e5\u770b\u5fd7\u613f\u8005",icon:(0,EE.jsx)(U$,{}),color:"#52c41a",onClick:()=>e("/volunteers")},{title:"\u79ef\u5206\u67e5\u8be2",icon:(0,EE.jsx)(B$,{}),color:"#faad14",onClick:()=>e("/volunteers/points")},{title:"\u6570\u636e\u7edf\u8ba1",icon:(0,EE.jsx)(V$,{}),color:"#722ed1",onClick:()=>e("/statistics/overview")}];return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u4e3b\u63a7\u5236\u53f0"}),(0,EE.jsx)("p",{className:"page-description",children:"\u6b22\u8fce\u4f7f\u7528\u5fd7\u613f\u8005\u670d\u52a1\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf"})]}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginBottom:24},children:[(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u5fd7\u613f\u8005\u603b\u6570",value:r.totalVolunteers,prefix:(0,EE.jsx)(Mk,{}),valueStyle:{color:"#1890ff"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u79ef\u5206\u603b\u6570",value:r.totalPoints,prefix:(0,EE.jsx)(B$,{}),valueStyle:{color:"#52c41a"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u6d3b\u52a8\u603b\u6570",value:r.totalActivities,prefix:(0,EE.jsx)(V$,{}),valueStyle:{color:"#faad14"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u62a5\u540d\u603b\u6570",value:r.totalRegistrations,prefix:(0,EE.jsx)(U$,{}),valueStyle:{color:"#722ed1"}})})})]}),(0,EE.jsx)(pT,{gutter:[16,16],style:{marginBottom:24},children:(0,EE.jsx)(fT,{span:24,children:(0,EE.jsx)(zb,{title:"\u5feb\u6377\u64cd\u4f5c",children:(0,EE.jsx)(pT,{gutter:[16,16],children:E.map((e,t)=>(0,EE.jsx)(fT,{xs:12,sm:6,children:(0,EE.jsx)(rk,{type:"dashed",size:"large",icon:e.icon,onClick:e.onClick,style:{width:"100%",height:80,borderColor:e.color,color:e.color},children:e.title})},t))})})})}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginBottom:24},children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(kxe,{option:C,style:{height:300}})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(kxe,{option:_,style:{height:300}})})})]}),(0,EE.jsxs)(pT,{gutter:[16,16],children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{title:"\u6700\u65b0\u6d3b\u52a8",extra:(0,EE.jsx)(rk,{type:"link",onClick:()=>e("/activities"),children:"\u67e5\u770b\u5168\u90e8"}),children:(0,EE.jsx)(YN,{dataSource:i,renderItem:e=>(0,EE.jsxs)(YN.Item,{actions:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(DC,{}),onClick:()=>(v(e),void h(!0)),children:"\u67e5\u770b"})],children:[(0,EE.jsx)(YN.Item.Meta,{title:e.title,description:`${Ixe()(e.date).format("YYYY-MM-DD HH:mm")} | \u53c2\u4e0e\u4eba\u6570: ${e.participants}`}),(0,EE.jsx)(uA,{color:I(e.status),children:M(e.status)})]})})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{title:"\u6700\u65b0\u5fd7\u613f\u8005",extra:(0,EE.jsx)(rk,{type:"link",onClick:()=>e("/volunteers"),children:"\u67e5\u770b\u5168\u90e8"}),children:(0,EE.jsx)(YN,{dataSource:l,renderItem:t=>(0,EE.jsxs)(YN.Item,{actions:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(DC,{}),onClick:()=>e(`/volunteers/${t.id}`),children:"\u67e5\u770b"})],children:[(0,EE.jsx)(YN.Item.Meta,{avatar:(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),title:t.name,description:`\u52a0\u5165\u65f6\u95f4: ${Ixe()(t.joinDate).format("YYYY-MM-DD HH:mm")} | \u79ef\u5206: ${t.points}`}),(0,EE.jsx)(uA,{color:I(t.status),children:t.status})]})})})})]}),(0,EE.jsx)(_R,{title:"\u67e5\u770b\u6d3b\u52a8\u8be6\u60c5",open:f,onCancel:k,footer:[(0,EE.jsx)(rk,{onClick:k,children:"\u5173\u95ed"},"close")],width:800,children:m&&(0,EE.jsxs)("div",{children:[(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u540d\u79f0\uff1a"}),m.title]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5206\u7c7b\uff1a"}),m.categoryDesc||"\u672a\u5206\u7c7b"]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4\uff1a"}),Ixe()(m.startTime||m.date).format("YYYY-MM-DD HH:mm")]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4\uff1a"}),Ixe()(m.endTime).format("YYYY-MM-DD HH:mm")]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5730\u70b9\uff1a"}),m.location||"\u672a\u8bbe\u7f6e"]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u62a5\u540d\u622a\u6b62\u65f6\u95f4\uff1a"}),Ixe()(m.deadline).format("YYYY-MM-DD HH:mm")]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:8,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570\uff1a"}),m.maxParticipants||"\u672a\u8bbe\u7f6e"]})}),(0,EE.jsx)(fT,{span:8,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u79ef\u5206\uff1a"}),m.points||0]})}),(0,EE.jsx)(fT,{span:8,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u72b6\u6001\uff1a"}),M(m.status)]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u521b\u5efa\u65f6\u95f4\uff1a"}),Ixe()(m.createTime).format("YYYY-MM-DD HH:mm")]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u53c2\u4e0e\u4eba\u6570\uff1a"}),m.participants||0]})})]}),m.content&&(0,EE.jsx)(pT,{gutter:[24,16],children:(0,EE.jsxs)(fT,{span:24,children:[(0,EE.jsx)("div",{children:(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5185\u5bb9\uff1a"})}),(0,EE.jsx)("div",{style:{marginTop:"8px",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:m.content})]})}),m.cover&&(0,EE.jsx)(pT,{gutter:[24,16],children:(0,EE.jsxs)(fT,{span:24,children:[(0,EE.jsx)("div",{children:(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5c01\u9762\uff1a"})}),(0,EE.jsx)("div",{style:{marginTop:"8px"},children:(0,EE.jsx)("img",{src:m.cover,alt:"\u6d3b\u52a8\u5c01\u9762",style:{maxWidth:"200px",borderRadius:"4px"}})})]})})]})})]})},{Option:Oxe}=rN,{Option:$xe}=rN,Txe=dp("Popconfirm",e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var Pxe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Dxe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=g.createElement(dd,null),showCancel:u=!0,close:d,onConfirm:p,onCancel:f,onPopupClick:h}=e,{getPrefixCls:m}=g.useContext(qr),[v]=yw("Popconfirm",Bn.Popconfirm),y=b$(o),b=b$(i);return g.createElement("div",{className:`${t}-inner-content`,onClick:h},g.createElement("div",{className:`${t}-message`},c&&g.createElement("span",{className:`${t}-message-icon`},c),g.createElement("div",{className:`${t}-message-text`},y&&g.createElement("div",{className:`${t}-title`},y),b&&g.createElement("div",{className:`${t}-description`},b))),g.createElement("div",{className:`${t}-buttons`},u&&g.createElement(rk,Object.assign({onClick:f,size:"small"},r),a||(null===v||void 0===v?void 0:v.cancelText)),g.createElement(pA,{buttonProps:Object.assign(Object.assign({size:"small"},n_(s)),n),actionFn:p,close:d,prefixCls:m("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(null===v||void 0===v?void 0:v.okText))))},Nxe=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=Pxe(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=g.useContext(qr),l=a("popconfirm",t),[s]=Txe(l);return s(g.createElement(M$,{placement:n,className:po()(l,r),style:o,content:g.createElement(Dxe,Object.assign({prefixCls:l},i))}))};var Axe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const Rxe=g.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:l="primary",icon:s=g.createElement(dd,null),children:c,overlayClassName:u,onOpenChange:d,onVisibleChange:p,overlayStyle:f,styles:h,classNames:m}=e,v=Axe(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:b,style:x,classNames:w,styles:S}=Zr("popconfirm"),[C,_]=Ho(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),k=(e,t)=>{_(e,!0),null===p||void 0===p||p(e),null===d||void 0===d||d(e,t)},M=y("popconfirm",o),I=po()(M,b,u,w.root,null===m||void 0===m?void 0:m.root),E=po()(w.body,null===m||void 0===m?void 0:m.body),[O]=Txe(M);return O(g.createElement($$,Object.assign({},Fp(v,["title"]),{trigger:a,placement:i,onOpenChange:(t,n)=>{const{disabled:r=!1}=e;r||k(t,n)},open:C,ref:t,classNames:{root:I,body:E},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),x),f),null===h||void 0===h?void 0:h.root),body:Object.assign(Object.assign({},S.body),null===h||void 0===h?void 0:h.body)},content:g.createElement(Dxe,Object.assign({okType:l,icon:s},e,{prefixCls:M,close:e=>{k(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;k(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),c))}),jxe=Rxe;jxe._InternalPanelDoNotUseOrYouWillBeFired=Nxe;const Lxe=jxe;var zxe={},Bxe="rc-table-internal-hook";function Hxe(e){var t=g.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,o=g.useRef(n);o.current=n;var i=Q(g.useState(function(){return{getValue:function(){return o.current},listeners:new Set}}),1)[0];return rt(function(){(0,x.unstable_batchedUpdates)(function(){i.listeners.forEach(function(e){e(n)})})},[n]),g.createElement(t.Provider,{value:i},r)},defaultValue:e}}function Fxe(e,t){var n=Lo("function"===typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=g.useContext(null===e||void 0===e?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=g.useRef();l.current=n(r?a():null===e||void 0===e?void 0:e.defaultValue);var s=Q(g.useState({}),2)[1];return rt(function(){if(r)return i.add(e),function(){i.delete(e)};function e(e){var t=n(e);_e(l.current,t,!0)||s({})}},[r]),l.current}function Vxe(){var e=g.createContext(null);function t(){return g.useContext(e)}return{makeImmutable:function(n,r){var o=_o(n),i=function(i,a){var l=o?{ref:a}:{},s=g.useRef(0),c=g.useRef(i);return null!==t()?g.createElement(n,gt({},i,l)):(r&&!r(c.current,i)||(s.current+=1),c.current=i,g.createElement(e.Provider,{value:s.current},g.createElement(n,gt({},i,l))))};return o?g.forwardRef(i):i},responseImmutable:function(e,n){var r=_o(e),o=function(n,o){var i=r?{ref:o}:{};return t(),g.createElement(e,gt({},n,i))};return r?g.memo(g.forwardRef(o),n):g.memo(o,n)},useImmutableMark:t}}var Wxe=Vxe(),Gxe=(Wxe.makeImmutable,Wxe.responseImmutable,Wxe.useImmutableMark,Vxe()),Uxe=Gxe.makeImmutable,Yxe=Gxe.responseImmutable,qxe=Gxe.useImmutableMark;const Xxe=Hxe();const Kxe=g.createContext({renderWithProps:!1});function Zxe(e){var t=[],n={};return e.forEach(function(e){for(var r,o=e||{},i=o.key,a=o.dataIndex,l=i||(r=a,void 0===r||null===r?[]:Array.isArray(r)?r:[r]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Qxe(e){return null!==e&&void 0!==e}function Jxe(e,t,n,r,o,i){var a=g.useContext(Kxe),l=me(function(){if(Qxe(r))return[r];var i=null===t||void 0===t||""===t?[]:Array.isArray(t)?t:[t],l=_n(e,i),s=l,c=void 0;if(o){var u=o(l,e,n);!function(e){return e&&"object"===G(e)&&!Array.isArray(e)&&!g.isValidElement(e)}(u)?s=u:(s=u.children,c=u.props,a.renderWithProps=!0)}return[s,c]},[qxe(),e,r,t,o,n],function(e,t){if(i){var n=Q(e,2)[1],r=Q(t,2)[1];return i(r,n)}return!!a.renderWithProps||!_e(e,t,!0)});return l}function ewe(e){var t,n,r,o,i,a,l,s;var c=e.component,u=e.children,d=e.ellipsis,p=e.scope,f=e.prefixCls,h=e.className,m=e.align,v=e.record,y=e.render,b=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,S=e.index,C=e.rowType,_=e.colSpan,k=e.rowSpan,M=e.fixLeft,I=e.fixRight,E=e.firstFixLeft,O=e.lastFixLeft,$=e.firstFixRight,T=e.lastFixRight,P=e.appendNode,D=e.additionalProps,N=void 0===D?{}:D,A=e.isSticky,R="".concat(f,"-cell"),j=Fxe(Xxe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),L=j.supportSticky,z=j.allColumnsFixedLeft,B=j.rowHoverable,H=Q(Jxe(v,b,x,u,y,w),2),F=H[0],V=H[1],W={},U="number"===typeof M&&L,q="number"===typeof I&&L;U&&(W.position="sticky",W.left=M),q&&(W.position="sticky",W.right=I);var X=null!==(t=null!==(n=null!==(r=null===V||void 0===V?void 0:V.colSpan)&&void 0!==r?r:N.colSpan)&&void 0!==n?n:_)&&void 0!==t?t:1,K=null!==(o=null!==(i=null!==(a=null===V||void 0===V?void 0:V.rowSpan)&&void 0!==a?a:N.rowSpan)&&void 0!==i?i:k)&&void 0!==o?o:1,Z=function(e,t){return Fxe(Xxe,function(n){var r,o,i,a;return[(r=e,o=t||1,i=n.hoverStartRow,a=n.hoverEndRow,r<=a&&r+o-1>=i),n.onHover]})}(S,K),J=Q(Z,2),ee=J[0],te=J[1],re=Lo(function(e){var t;v&&te(S,S+K-1),null===N||void 0===N||null===(t=N.onMouseEnter)||void 0===t||t.call(N,e)}),oe=Lo(function(e){var t;v&&te(-1,-1),null===N||void 0===N||null===(t=N.onMouseLeave)||void 0===t||t.call(N,e)});if(0===X||0===K)return null;var ie=null!==(l=N.title)&&void 0!==l?l:function(e){var t,n=e.ellipsis,r=e.rowType,o=e.children,i=!0===n?{showTitle:!0}:n;return i&&(i.showTitle||"header"===r)&&("string"===typeof o||"number"===typeof o?t=o.toString():g.isValidElement(o)&&"string"===typeof o.props.children&&(t=o.props.children)),t}({rowType:C,ellipsis:d,children:F}),ae=po()(R,h,(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(s={},"".concat(R,"-fix-left"),U&&L),"".concat(R,"-fix-left-first"),E&&L),"".concat(R,"-fix-left-last"),O&&L),"".concat(R,"-fix-left-all"),O&&z&&L),"".concat(R,"-fix-right"),q&&L),"".concat(R,"-fix-right-first"),$&&L),"".concat(R,"-fix-right-last"),T&&L),"".concat(R,"-ellipsis"),d),"".concat(R,"-with-append"),P),"".concat(R,"-fix-sticky"),(U||q)&&A&&L),Y(s,"".concat(R,"-row-hover"),!V&&ee)),N.className,null===V||void 0===V?void 0:V.className),le={};m&&(le.textAlign=m);var se=ne(ne(ne(ne({},null===V||void 0===V?void 0:V.style),W),le),N.style),ce=F;return"object"!==G(ce)||Array.isArray(ce)||g.isValidElement(ce)||(ce=null),d&&(O||$)&&(ce=g.createElement("span",{className:"".concat(R,"-content")},ce)),g.createElement(c,gt({},V,N,{className:ae,style:se,title:ie,scope:p,onMouseEnter:B?re:void 0,onMouseLeave:B?oe:void 0,colSpan:1!==X?X:null,rowSpan:1!==K?K:null}),P,ce)}const twe=g.memo(ewe);function nwe(e,t,n,r,o){var i,a,l=n[e]||{},s=n[t]||{};"left"===l.fixed?i=r.left["rtl"===o?t:e]:"right"===s.fixed&&(a=r.right["rtl"===o?e:t]);var c=!1,u=!1,d=!1,p=!1,f=n[t+1],h=n[e-1],g=f&&!f.fixed||h&&!h.fixed||n.every(function(e){return"left"===e.fixed});if("rtl"===o){if(void 0!==i)p=!(h&&"left"===h.fixed)&&g;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&g}}else if(void 0!==i){c=!(f&&"left"===f.fixed)&&g}else if(void 0!==a){u=!(h&&"right"===h.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:r.isSticky}}const rwe=g.createContext({});var owe=["children"];function iwe(e){return e.children}iwe.Row=function(e){var t=e.children,n=Io(e,owe);return g.createElement("tr",n,t)},iwe.Cell=function(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=void 0===o?1:o,a=e.rowSpan,l=e.align,s=Fxe(Xxe,["prefixCls","direction"]),c=s.prefixCls,u=s.direction,d=g.useContext(rwe),p=d.scrollColumnIndex,f=d.stickyOffsets,h=n+i-1+1===p?i+1:i,m=nwe(n,n+h-1,d.flattenColumns,f,u);return g.createElement(twe,gt({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:l,colSpan:h,rowSpan:a,render:function(){return r}},m))};const awe=iwe;const lwe=Yxe(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Fxe(Xxe,"prefixCls"),i=r.length-1,a=r[i],l=g.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!==a&&void 0!==a&&a.scrollbar?i:null}},[a,r,i,n]);return g.createElement(rwe.Provider,{value:l},g.createElement("tfoot",{className:"".concat(o,"-summary")},t))});var swe=awe,cwe=function(e){if(oe()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function uwe(e,t){return Array.isArray(e)||void 0===t?cwe(e):function(e,t){if(!cwe(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}function dwe(e,t,n,r,o,i,a){var l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});var s=null===o||void 0===o?void 0:o.has(l);if(t&&Array.isArray(t[r])&&s)for(var c=0;c<t[r].length;c+=1)dwe(e,t[r][c],n+1,r,o,i,c)}function pwe(e,t,n,r){var o=g.useMemo(function(){if(null!==n&&void 0!==n&&n.size){for(var o=[],i=0;i<(null===e||void 0===e?void 0:e.length);i+=1){dwe(o,e[i],0,t,n,r,i)}return o}return null===e||void 0===e?void 0:e.map(function(e,t){return{record:e,indent:0,index:t,rowKey:r(e,t)}})},[e,t,n,r]);return o}function fwe(e,t,n,r){var o,i=Fxe(Xxe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=i.flattenColumns,l=i.expandableType,s=i.expandedKeys,c=i.childrenColumnName,u=i.onTriggerExpand,d=i.rowExpandable,p=i.onRow,f=i.expandRowByClick,h=i.rowClassName,g="nest"===l,m="row"===l&&(!d||d(e)),v=m||g,y=s&&s.has(t),b=c&&e&&e[c],x=Lo(u),w=null===p||void 0===p?void 0:p(e,n),S=null===w||void 0===w?void 0:w.onClick;"string"===typeof h?o=h:"function"===typeof h&&(o=h(e,n,r));var C=Zxe(a);return ne(ne({},i),{},{columnsKey:C,nestExpandable:g,expanded:y,hasNestChildren:b,record:e,onTriggerExpand:x,rowSupportExpand:m,expandable:v,rowProps:ne(ne({},w),{},{className:po()(o,null===w||void 0===w?void 0:w.className),onClick:function(t){f&&v&&u(e,t);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===S||void 0===S||S.apply(void 0,[t].concat(r))}})})}const hwe=function(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,s=e.isEmpty,c=e.stickyOffset,u=void 0===c?0:c,d=Fxe(Xxe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),p=d.scrollbarSize,f=d.fixHeader,h=d.fixColumn,m=d.componentWidth,v=d.horizonScroll,y=n;return(s?v&&m:h)&&(y=g.createElement("div",{style:{width:m-u-(f&&!s?p:0),position:"sticky",left:u,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},y)),g.createElement(r,{className:i,style:{display:a?null:"none"}},g.createElement(twe,{component:o,prefixCls:t,colSpan:l},y))};function gwe(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");if(!i)return g.createElement("span",{className:po()(a,"".concat(t,"-row-spaced"))});return g.createElement("span",{className:po()(a,Y(Y({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:function(e){r(n,e),e.stopPropagation()}})}function mwe(e,t,n,r){return"string"===typeof e?e:"function"===typeof e?e(t,n,r):""}function vwe(e,t,n,r,o){var i,a,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,p=e.fixedInfoList,f=e.expandIconColumnIndex,h=e.nestExpandable,m=e.indentSize,v=e.expandIcon,y=e.expanded,b=e.hasNestChildren,x=e.onTriggerExpand,w=e.expandable,S=e.expandedKeys,C=d[n],_=p[n];n===(f||0)&&h&&(a=g.createElement(g.Fragment,null,g.createElement("span",{style:{paddingLeft:"".concat(m*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),v({prefixCls:u,expanded:y,expandable:b,record:c,onExpand:x})));var k=(null===(i=t.onCell)||void 0===i?void 0:i.call(t,c,o))||{};if(s){var M=k.rowSpan,I=void 0===M?1:M;if(w&&I&&n<s){for(var E=I,O=o;O<o+I;O+=1){var $=l[O];S.has($)&&(E+=1)}k.rowSpan=E}}return{key:C,fixedInfo:_,appendCellNode:a,additionalCellProps:k}}const ywe=Yxe(function(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,l=e.rowKeys,s=e.indent,c=void 0===s?0:s,u=e.rowComponent,d=e.cellComponent,p=e.scopeCellComponent,f=e.expandedRowInfo,h=fwe(r,a,o,c),m=h.prefixCls,v=h.flattenColumns,y=h.expandedRowClassName,b=h.expandedRowRender,x=h.rowProps,w=h.expanded,S=h.rowSupportExpand,C=g.useRef(!1);C.current||(C.current=w);var _,k=mwe(y,r,o,c),M=g.createElement(u,gt({},x,{"data-row-key":a,className:po()(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(c),null===x||void 0===x?void 0:x.className,Y({},k,c>=1)),style:ne(ne({},n),null===x||void 0===x?void 0:x.style)}),v.map(function(e,t){var n=e.render,a=e.dataIndex,s=e.className,u=vwe(h,e,t,c,o,l,null===f||void 0===f?void 0:f.offset),v=u.key,y=u.fixedInfo,b=u.appendCellNode,x=u.additionalCellProps;return g.createElement(twe,gt({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?p:d,prefixCls:m,key:v,record:r,index:o,renderIndex:i,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},y,{appendNode:b,additionalProps:x}))}));if(S&&(C.current||w)){var I=b(r,o,c+1,w);_=g.createElement(hwe,{expanded:w,className:po()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(c+1),k),prefixCls:m,component:u,cellComponent:d,colSpan:f?f.colSpan:v.length,stickyOffset:null===f||void 0===f?void 0:f.sticky,isEmpty:!1},I)}return g.createElement(g.Fragment,null,M,_)});function bwe(e){var t=e.columnKey,n=e.onColumnResize,r=g.useRef();return rt(function(){r.current&&n(t,r.current.offsetWidth)},[]),g.createElement(nh,{data:t},g.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},g.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function xwe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=g.useRef(null);return g.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:o},g.createElement(nh.Collection,{onBatchResize:function(e){Fh(o.current)&&e.forEach(function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)})}},n.map(function(e){return g.createElement(bwe,{key:e,columnKey:e,onColumnResize:r})})))}const wwe=Yxe(function(e){var t,n=e.data,r=e.measureColumnWidth,o=Fxe(Xxe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),i=o.prefixCls,a=o.getComponent,l=o.onColumnResize,s=o.flattenColumns,c=o.getRowKey,u=o.expandedKeys,d=o.childrenColumnName,p=o.emptyNode,f=o.expandedRowOffset,h=void 0===f?0:f,m=o.colWidths,v=pwe(n,d,u,c),y=g.useMemo(function(){return v.map(function(e){return e.rowKey})},[v]),b=g.useRef({renderWithProps:!1}),x=g.useMemo(function(){for(var e=s.length-h,t=0,n=0;n<h;n+=1)t+=m[n]||0;return{offset:h,colSpan:e,sticky:t}},[s.length,h,m]),w=a(["body","wrapper"],"tbody"),S=a(["body","row"],"tr"),C=a(["body","cell"],"td"),_=a(["body","cell"],"th");t=n.length?v.map(function(e,t){var n=e.record,r=e.indent,o=e.index,i=e.rowKey;return g.createElement(ywe,{key:i,rowKey:i,rowKeys:y,record:n,index:t,renderIndex:o,rowComponent:S,cellComponent:C,scopeCellComponent:_,indent:r,expandedRowInfo:x})}):g.createElement(hwe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:S,cellComponent:C,colSpan:s.length,isEmpty:!0},p);var k=Zxe(s);return g.createElement(Kxe.Provider,{value:b.current},g.createElement(w,{className:"".concat(i,"-tbody")},r&&g.createElement(xwe,{prefixCls:i,columnsKey:k,onColumnResize:l}),t))});var Swe=["expandable"],Cwe="RC_TABLE_INTERNAL_COL_DEFINE";var _we=["columnType"];const kwe=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=Fxe(Xxe,["tableLayout"]).tableLayout,i=[],a=!1,l=(r||n.length)-1;l>=0;l-=1){var s=t[l],c=n&&n[l],u=void 0,d=void 0;if(c&&(u=c[Cwe],"auto"===o&&(d=c.minWidth)),s||d||u||a){var p=u||{},f=(p.columnType,Io(p,_we));i.unshift(g.createElement("col",gt({key:l,style:{width:s,minWidth:d}},f))),a=!0}}return g.createElement("colgroup",null,i)};var Mwe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var Iwe=g.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,s=e.stickyOffsets,c=e.direction,u=e.fixHeader,d=e.stickyTopOffset,p=e.stickyBottomOffset,f=e.stickyClassName,h=e.onScroll,m=e.maxContentScroll,v=e.children,y=Io(e,Mwe),b=Fxe(Xxe,["prefixCls","scrollbarSize","isSticky","getComponent"]),x=b.prefixCls,w=b.scrollbarSize,S=b.isSticky,C=(0,b.getComponent)(["header","table"],"table"),_=S&&!u?0:w,k=g.useRef(null),M=g.useCallback(function(e){wo(t,e),wo(k,e)},[]);g.useEffect(function(){function e(e){var t=e,n=t.currentTarget,r=t.deltaX;r&&(h({currentTarget:n,scrollLeft:n.scrollLeft+r}),e.preventDefault())}var t=k.current;return null===t||void 0===t||t.addEventListener("wheel",e,{passive:!1}),function(){null===t||void 0===t||t.removeEventListener("wheel",e)}},[]);var I=g.useMemo(function(){return i.every(function(e){return e.width})},[i]),E=i[i.length-1],O={fixed:E?E.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(x,"-cell-scrollbar")}}},$=(0,g.useMemo)(function(){return _?[].concat(ee(o),[O]):o},[_,o]),T=(0,g.useMemo)(function(){return _?[].concat(ee(i),[O]):i},[_,i]),P=(0,g.useMemo)(function(){var e=s.right,t=s.left;return ne(ne({},s),{},{left:"rtl"===c?[].concat(ee(t.map(function(e){return e+_})),[0]):t,right:"rtl"===c?e:[].concat(ee(e.map(function(e){return e+_})),[0]),isSticky:S})},[_,s,S]),D=function(e,t){return(0,g.useMemo)(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(void 0===o)return null;n[r]=o}return n},[e.join("_"),t])}(a,l);return g.createElement("div",{style:ne({overflow:"hidden"},S?{top:d,bottom:p}:{}),ref:M,className:po()(n,Y({},f,!!f))},g.createElement(C,{style:{tableLayout:"fixed",visibility:r||D?null:"hidden"}},(!r||!m||I)&&g.createElement(kwe,{colWidths:D?[].concat(ee(D),[_]):[],columCount:l+1,columns:T}),v(ne(ne({},y),{},{stickyOffsets:P,columns:$,flattenColumns:T}))))});const Ewe=g.memo(Iwe);const Owe=function(e){var t,n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,i=e.rowComponent,a=e.cellComponent,l=e.onHeaderRow,s=e.index,c=Fxe(Xxe,["prefixCls","direction"]),u=c.prefixCls,d=c.direction;l&&(t=l(n.map(function(e){return e.column}),s));var p=Zxe(n.map(function(e){return e.column}));return g.createElement(i,t,n.map(function(e,t){var n,i=e.column,l=nwe(e.colStart,e.colEnd,o,r,d);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),g.createElement(twe,gt({},e,{scope:i.title?e.colSpan>1?"colgroup":"col":null,ellipsis:i.ellipsis,align:i.align,component:a,prefixCls:u,key:p[t]},l,{additionalProps:n,rowType:"header"}))}))};const $we=Yxe(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,o=e.onHeaderRow,i=Fxe(Xxe,["prefixCls","getComponent"]),a=i.prefixCls,l=i.getComponent,s=g.useMemo(function(){return function(e){var t=[];!function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[o]=t[o]||[];var i=r,a=n.filter(Boolean).map(function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,o+1).reduce(function(e,t){return e+t},0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[o].push(r),i+=a,a});return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach(function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)})},o=0;o<n;o+=1)r(o);return t}(n)},[n]),c=l(["header","wrapper"],"thead"),u=l(["header","row"],"tr"),d=l(["header","cell"],"th");return g.createElement(c,{className:"".concat(a,"-thead")},s.map(function(e,n){return g.createElement(Owe,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:d,onHeaderRow:o,index:n})}))});function Twe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var Pwe=["children"],Dwe=["fixed"];function Nwe(e){return kf(e).filter(function(e){return g.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,r=n.children,o=ne({key:t},Io(n,Pwe));return r&&(o.children=Nwe(r)),o})}function Awe(e){return e.filter(function(e){return e&&"object"===G(e)&&!e.hidden}).map(function(e){var t=e.children;return t&&t.length>0?ne(ne({},e),{},{children:Awe(t)}):e})}function Rwe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===G(e)}).reduce(function(e,n,r){var o=n.fixed,i=!0===o?"left":o,a="".concat(t,"-").concat(r),l=n.children;return l&&l.length>0?[].concat(ee(e),ee(Rwe(l,a).map(function(e){return ne({fixed:i},e)}))):[].concat(ee(e),[ne(ne({key:a},n),{},{fixed:i})])},[])}const jwe=function(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,s=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,p=e.expandIconColumnIndex,f=e.expandedRowOffset,h=void 0===f?0:f,m=e.direction,v=e.expandRowByClick,y=e.columnWidth,b=e.fixed,x=e.scrollWidth,w=e.clientWidth,S=g.useMemo(function(){return Awe((r||Nwe(o)||[]).slice())},[r,o]),C=g.useMemo(function(){if(i){var e=S.slice();if(!e.includes(zxe)){var t=p||0;t>=0&&(t||"left"===b||!b)&&e.splice(t,0,zxe),"right"===b&&e.splice(S.length,0,zxe)}0;var r=e.indexOf(zxe);e=e.filter(function(e,t){return e!==zxe||t===r});var o,f=S[r];o=b||(f?f.fixed:null);var m=Y(Y(Y(Y(Y(Y({},Cwe,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",o),"className","".concat(n,"-row-expand-icon-cell")),"width",y),"render",function(e,t,r){var o=s(t,r),i=a.has(o),l=!d||d(t),p=u({prefixCls:n,expanded:i,expandable:l,record:t,onExpand:c});return v?g.createElement("span",{onClick:function(e){return e.stopPropagation()}},p):p});return e.map(function(e,t){var n=e===zxe?m:e;return t<h?ne(ne({},n),{},{fixed:n.fixed||"left"}):n})}return S.filter(function(e){return e!==zxe})},[i,S,s,a,u,m,h]),_=g.useMemo(function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,C,m]),k=g.useMemo(function(){return"rtl"===m?function(e){return e.map(function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),ne({fixed:n},Io(e,Dwe))})}(Rwe(_)):Rwe(_)},[_,m,x]),M=g.useMemo(function(){for(var e=-1,t=k.length-1;t>=0;t-=1){var n=k[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var r=0;r<=e;r+=1){var o=k[r].fixed;if("left"!==o&&!0!==o)return!0}var i=k.findIndex(function(e){return"right"===e.fixed});if(i>=0)for(var a=i;a<k.length;a+=1){if("right"!==k[a].fixed)return!0}return!1},[k]),I=function(e,t,n){return g.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(e){var n=Twe(t,e.width);n?r+=n:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,s=a/o,c=0,u=e.map(function(e){var n=ne({},e),r=Twe(t,n.width);if(r)n.width=r;else{var o=Math.floor(s);n.width=1===l?a:o,a-=o,l-=1}return c+=n.width,n});if(c<i){var d=i/c;a=i,u.forEach(function(e,t){var n=Math.floor(e.width*d);e.width=t===u.length-1?a:n,a-=n})}return[u,Math.max(c,i)]}return[e,t]},[e,t,n])}(k,x,w),E=Q(I,2),O=E[0],$=E[1];return[_,O,$,M]};function Lwe(e,t,n){var r=function(e){var t,n=e.expandable,r=Io(e,Swe);return!1===(t="expandable"in e?ne(ne({},r),n):r).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,s=r.expandedRowRender,c=r.onExpand,u=r.onExpandedRowsChange,d=o||gwe,p=r.childrenColumnName||"children",f=g.useMemo(function(){return s?"row":!!(e.expandable&&e.internalHooks===Bxe&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===G(e)&&e[p]}))&&"nest"},[!!s,t]),h=g.useState(function(){return a||(l?function(e,t,n){var r=[];return function e(o){(o||[]).forEach(function(o,i){r.push(t(o,i)),e(o[n])})}(e),r}(t,n,p):[])}),m=Q(h,2),v=m[0],y=m[1],b=g.useMemo(function(){return new Set(i||v||[])},[i,v]),x=g.useCallback(function(e){var r,o=n(e,t.indexOf(e)),i=b.has(o);i?(b.delete(o),r=ee(b)):r=[].concat(ee(b),[o]),y(r),c&&c(!i,e),u&&u(r)},[n,b,t,c,u]);return[r,f,b,d,p,x]}var zwe=oe()?window:null;const Bwe=function(e,t,n){var r=(0,g.useMemo)(function(){var r=t.length,o=function(n,r,o){for(var i=[],a=0,l=n;l!==r;l+=o)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=o(0,r,1),a=o(r-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}},[e,t,n]);return r};const Hwe=function(e){var t=e.className,n=e.children;return g.createElement("div",{className:t},n)};function Fwe(e,t,n,r){var o=x.unstable_batchedUpdates?function(e){x.unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}function Vwe(e){var t=ho(e).getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Wwe=function(e,t){var n,r,o=e.scrollBodyRef,i=e.onScroll,a=e.offsetScroll,l=e.container,s=e.direction,c=Fxe(Xxe,"prefixCls"),u=(null===(n=o.current)||void 0===n?void 0:n.scrollWidth)||0,d=(null===(r=o.current)||void 0===r?void 0:r.clientWidth)||0,p=u&&d*(d/u),f=g.useRef(),h=function(e){var t=(0,g.useRef)(e),n=Q((0,g.useState)({}),2)[1],r=(0,g.useRef)(null),o=(0,g.useRef)([]);return(0,g.useEffect)(function(){return function(){r.current=null}},[]),[t.current,function(e){o.current.push(e);var i=Promise.resolve();r.current=i,i.then(function(){if(r.current===i){var e=o.current,a=t.current;o.current=[],e.forEach(function(e){t.current=e(t.current)}),r.current=null,a!==t.current&&n({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),m=Q(h,2),v=m[0],y=m[1],b=g.useRef({delta:0,x:0}),x=Q(g.useState(!1),2),w=x[0],S=x[1],C=g.useRef(null);g.useEffect(function(){return function(){vi.cancel(C.current)}},[]);var _=function(){S(!1)},k=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(w&&0!==n){var r=b.current.x+e.pageX-b.current.x-b.current.delta,o="rtl"===s;r=Math.max(o?p-d:0,Math.min(o?0:d-p,r)),(!o||Math.abs(r)+Math.abs(p)<d)&&(i({scrollLeft:r/d*(u+2)}),b.current.x=e.pageX)}else w&&S(!1)},M=function(){vi.cancel(C.current),C.current=vi(function(){if(o.current){var e=Vwe(o.current).top,t=e+o.current.offsetHeight,n=l===window?document.documentElement.scrollTop+window.innerHeight:Vwe(l).top+l.clientHeight;t-xh()<=n||e>=n-a?y(function(e){return ne(ne({},e),{},{isHiddenScrollBar:!0})}):y(function(e){return ne(ne({},e),{},{isHiddenScrollBar:!1})})}})},I=function(e){y(function(t){return ne(ne({},t),{},{scrollLeft:e/u*d||0})})};return g.useImperativeHandle(t,function(){return{setScrollLeft:I,checkScrollBarVisible:M}}),g.useEffect(function(){var e=Fwe(document.body,"mouseup",_,!1),t=Fwe(document.body,"mousemove",k,!1);return M(),function(){e.remove(),t.remove()}},[p,w]),g.useEffect(function(){if(o.current){for(var e=[],t=ho(o.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",M,!1)}),window.addEventListener("resize",M,!1),window.addEventListener("scroll",M,!1),l.addEventListener("scroll",M,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",M)}),window.removeEventListener("resize",M),window.removeEventListener("scroll",M),l.removeEventListener("scroll",M)}}},[l]),g.useEffect(function(){v.isHiddenScrollBar||y(function(e){var t=o.current;return t?ne(ne({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[v.isHiddenScrollBar]),u<=d||!p||v.isHiddenScrollBar?null:g.createElement("div",{style:{height:xh(),width:d,bottom:a},className:"".concat(c,"-sticky-scroll")},g.createElement("div",{onMouseDown:function(e){e.persist(),b.current.delta=e.pageX-v.scrollLeft,b.current.x=0,S(!0),e.preventDefault()},ref:f,className:po()("".concat(c,"-sticky-scroll-bar"),Y({},"".concat(c,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const Gwe=g.forwardRef(Wwe);const Uwe=function(e){return null};const Ywe=function(e){return null};var qwe="rc-table",Xwe=[],Kwe={};function Zwe(){return"No Data"}function Qwe(e,t){var n=ne({rowKey:"key",prefixCls:qwe,emptyText:Zwe},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,l=n.data,s=n.rowKey,c=n.scroll,u=n.tableLayout,d=n.direction,p=n.title,f=n.footer,h=n.summary,m=n.caption,v=n.id,y=n.showHeader,b=n.components,x=n.emptyText,w=n.onRow,S=n.onHeaderRow,C=n.onScroll,_=n.internalHooks,k=n.transformColumns,M=n.internalRefs,I=n.tailor,E=n.getContainerWidth,O=n.sticky,$=n.rowHoverable,T=void 0===$||$,P=l||Xwe,D=!!P.length,N=_===Bxe;var A=g.useCallback(function(e,t){return _n(b,e)||t},[b]),R=g.useMemo(function(){return"function"===typeof s?s:function(e){return e&&e[s]}},[s]),j=A(["body"]),L=function(){var e=Q(g.useState(-1),2),t=e[0],n=e[1],r=Q(g.useState(-1),2),o=r[0],i=r[1],a=g.useCallback(function(e,t){n(e),i(t)},[]);return[t,o,a]}(),z=Q(L,3),B=z[0],H=z[1],F=z[2],V=Q(Lwe(n,P,R),6),W=V[0],U=V[1],q=V[2],X=V[3],K=V[4],Z=V[5],J=null===c||void 0===c?void 0:c.x,ee=Q(g.useState(0),2),te=ee[0],re=ee[1],oe=Q(jwe(ne(ne(ne({},n),W),{},{expandable:!!W.expandedRowRender,columnTitle:W.columnTitle,expandedKeys:q,getRowKey:R,onTriggerExpand:Z,expandIcon:X,expandIconColumnIndex:W.expandIconColumnIndex,direction:d,scrollWidth:N&&I&&"number"===typeof J?J:null,clientWidth:te}),N?k:null),4),ie=oe[0],ae=oe[1],le=oe[2],se=oe[3],ce=null!==le&&void 0!==le?le:J,ue=g.useMemo(function(){return{columns:ie,flattenColumns:ae}},[ie,ae]),de=g.useRef(),pe=g.useRef(),fe=g.useRef(),he=g.useRef();g.useImperativeHandle(t,function(){return{nativeElement:de.current,scrollTo:function(e){var t,n;if(fe.current instanceof HTMLElement){var r=e.index,o=e.top,i=e.key;if("number"!==typeof(n=o)||Number.isNaN(n)){var a,l=null!==i&&void 0!==i?i:R(P[r]);null===(a=fe.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var s;null===(s=fe.current)||void 0===s||s.scrollTo({top:o})}}else null!==(t=fe.current)&&void 0!==t&&t.scrollTo&&fe.current.scrollTo(e)}}});var ge,ve,ye,be=g.useRef(),xe=Q(g.useState(!1),2),we=xe[0],Se=xe[1],Ce=Q(g.useState(!1),2),ke=Ce[0],Me=Ce[1],Ie=Q(g.useState(new Map),2),Ee=Ie[0],Oe=Ie[1],$e=Zxe(ae).map(function(e){return Ee.get(e)}),Te=g.useMemo(function(){return $e},[$e.join("_")]),Pe=Bwe(Te,ae,d),De=c&&Qxe(c.y),Ne=c&&Qxe(ce)||Boolean(W.fixed),Ae=Ne&&ae.some(function(e){return e.fixed}),Re=g.useRef(),je=function(e,t){var n="object"===G(e)?e:{},r=n.offsetHeader,o=void 0===r?0:r,i=n.offsetSummary,a=void 0===i?0:i,l=n.offsetScroll,s=void 0===l?0:l,c=n.getContainer,u=(void 0===c?function(){return zwe}:c)()||zwe,d=!!e;return g.useMemo(function(){return{isSticky:d,stickyClassName:d?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:s,container:u}},[d,s,o,a,t,u])}(O,r),Le=je.isSticky,ze=je.offsetHeader,Be=je.offsetSummary,He=je.offsetScroll,Fe=je.stickyClassName,Ve=je.container,We=g.useMemo(function(){return null===h||void 0===h?void 0:h(P)},[h,P]),Ge=(De||Le)&&g.isValidElement(We)&&We.type===awe&&We.props.fixed;De&&(ve={overflowY:D?"scroll":"auto",maxHeight:c.y}),Ne&&(ge={overflowX:"auto"},De||(ve={overflowY:"hidden"}),ye={width:!0===ce?"auto":ce,minWidth:"100%"});var Ue=g.useCallback(function(e,t){Oe(function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n})},[]),Ye=Q(function(e){var t=(0,g.useRef)(e||null),n=(0,g.useRef)();function r(){window.clearTimeout(n.current)}return(0,g.useEffect)(function(){return r},[]),[function(e){t.current=e,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)},function(){return t.current}]}(null),2),qe=Ye[0],Xe=Ye[1];function Ke(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var Ze=Lo(function(e){var t,n=e.currentTarget,r=e.scrollLeft,o="rtl"===d,i="number"===typeof r?r:n.scrollLeft,a=n||Kwe;Xe()&&Xe()!==a||(qe(a),Ke(i,pe.current),Ke(i,fe.current),Ke(i,be.current),Ke(i,null===(t=Re.current)||void 0===t?void 0:t.setScrollLeft));var l=n||pe.current;if(l){var s=N&&I&&"number"===typeof ce?ce:l.scrollWidth,c=l.clientWidth;if(s===c)return Se(!1),void Me(!1);o?(Se(-i<s-c),Me(-i>0)):(Se(i>0),Me(i<s-c))}}),Qe=Lo(function(e){Ze(e),null===C||void 0===C||C(e)}),Je=function(){var e;Ne&&fe.current?Ze({currentTarget:ho(fe.current),scrollLeft:null===(e=fe.current)||void 0===e?void 0:e.scrollLeft}):(Se(!1),Me(!1))},et=g.useRef(!1);g.useEffect(function(){et.current&&Je()},[Ne,l,ie.length]),g.useEffect(function(){et.current=!0},[]);var tt=Q(g.useState(0),2),nt=tt[0],ot=tt[1],it=Q(g.useState(!0),2),at=it[0],lt=it[1];rt(function(){I&&N||(fe.current instanceof Element?ot(wh(fe.current).width):ot(wh(he.current).width)),lt(uwe("position","sticky"))},[]),g.useEffect(function(){N&&M&&(M.body.current=fe.current)});var st,ct=g.useCallback(function(e){return g.createElement(g.Fragment,null,g.createElement($we,e),"top"===Ge&&g.createElement(lwe,e,We))},[Ge,We]),ut=g.useCallback(function(e){return g.createElement(lwe,e,We)},[We]),dt=A(["table"],"table"),pt=g.useMemo(function(){return u||(Ae?"max-content"===ce?"auto":"fixed":De||Le||ae.some(function(e){return e.ellipsis})?"fixed":"auto")},[De,Ae,ae,u,Le]),ft={colWidths:Te,columCount:ae.length,stickyOffsets:Pe,onHeaderRow:S,fixHeader:De,scroll:c},ht=g.useMemo(function(){return D?null:"function"===typeof x?x():x},[D,x]),mt=g.createElement(wwe,{data:P,measureColumnWidth:De||Ne||Le}),vt=g.createElement(kwe,{colWidths:ae.map(function(e){return e.width}),columns:ae}),yt=null!==m&&void 0!==m?g.createElement("caption",{className:"".concat(r,"-caption")},m):void 0,bt=Sd(n,{data:!0}),xt=Sd(n,{aria:!0});if(De||Le){var wt;"function"===typeof j?(wt=j(P,{scrollbarSize:nt,ref:fe,onScroll:Ze}),ft.colWidths=ae.map(function(e,t){var n=e.width,r=t===ae.length-1?n-nt:n;return"number"!==typeof r||Number.isNaN(r)?0:r})):wt=g.createElement("div",{style:ne(ne({},ge),ve),onScroll:Qe,ref:fe,className:po()("".concat(r,"-body"))},g.createElement(dt,gt({style:ne(ne({},ye),{},{tableLayout:pt})},xt),yt,vt,mt,!Ge&&We&&g.createElement(lwe,{stickyOffsets:Pe,flattenColumns:ae},We)));var St=ne(ne(ne({noData:!P.length,maxContentScroll:Ne&&"max-content"===ce},ft),ue),{},{direction:d,stickyClassName:Fe,onScroll:Ze});st=g.createElement(g.Fragment,null,!1!==y&&g.createElement(Ewe,gt({},St,{stickyTopOffset:ze,className:"".concat(r,"-header"),ref:pe}),ct),wt,Ge&&"top"!==Ge&&g.createElement(Ewe,gt({},St,{stickyBottomOffset:Be,className:"".concat(r,"-summary"),ref:be}),ut),Le&&fe.current&&fe.current instanceof Element&&g.createElement(Gwe,{ref:Re,offsetScroll:He,scrollBodyRef:fe,onScroll:Ze,container:Ve,direction:d}))}else st=g.createElement("div",{style:ne(ne({},ge),ve),className:po()("".concat(r,"-content")),onScroll:Ze,ref:fe},g.createElement(dt,gt({style:ne(ne({},ye),{},{tableLayout:pt})},xt),yt,vt,!1!==y&&g.createElement($we,gt({},ft,ue)),mt,We&&g.createElement(lwe,{stickyOffsets:Pe,flattenColumns:ae},We)));var Ct=g.createElement("div",gt({className:po()(r,o,Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},"".concat(r,"-rtl"),"rtl"===d),"".concat(r,"-ping-left"),we),"".concat(r,"-ping-right"),ke),"".concat(r,"-layout-fixed"),"fixed"===u),"".concat(r,"-fixed-header"),De),"".concat(r,"-fixed-column"),Ae),"".concat(r,"-fixed-column-gapped"),Ae&&se),"".concat(r,"-scroll-horizontal"),Ne),"".concat(r,"-has-fix-left"),ae[0]&&ae[0].fixed),"".concat(r,"-has-fix-right"),ae[ae.length-1]&&"right"===ae[ae.length-1].fixed)),style:a,id:v,ref:de},bt),p&&g.createElement(Hwe,{className:"".concat(r,"-title")},p(P)),g.createElement("div",{ref:he,className:"".concat(r,"-container")},st),f&&g.createElement(Hwe,{className:"".concat(r,"-footer")},f(P)));Ne&&(Ct=g.createElement(nh,{onResize:function(e){var t,n=e.width;null===(t=Re.current)||void 0===t||t.checkScrollBarVisible();var r=de.current?de.current.offsetWidth:n;N&&E&&de.current&&(r=E(de.current,r)||r),r!==te&&(Je(),re(r))}},Ct));var _t=function(e,t,n){var r=e.map(function(r,o){return nwe(o,o,e,t,n)});return me(function(){return r},[r],function(e,t){return!_e(e,t)})}(ae,Pe,d),kt=g.useMemo(function(){return{scrollX:ce,prefixCls:r,getComponent:A,scrollbarSize:nt,direction:d,fixedInfoList:_t,isSticky:Le,supportSticky:at,componentWidth:te,fixHeader:De,fixColumn:Ae,horizonScroll:Ne,tableLayout:pt,rowClassName:i,expandedRowClassName:W.expandedRowClassName,expandIcon:X,expandableType:U,expandRowByClick:W.expandRowByClick,expandedRowRender:W.expandedRowRender,expandedRowOffset:W.expandedRowOffset,onTriggerExpand:Z,expandIconColumnIndex:W.expandIconColumnIndex,indentSize:W.indentSize,allColumnsFixedLeft:ae.every(function(e){return"left"===e.fixed}),emptyNode:ht,columns:ie,flattenColumns:ae,onColumnResize:Ue,colWidths:Te,hoverStartRow:B,hoverEndRow:H,onHover:F,rowExpandable:W.rowExpandable,onRow:w,getRowKey:R,expandedKeys:q,childrenColumnName:K,rowHoverable:T}},[ce,r,A,nt,d,_t,Le,at,te,De,Ae,Ne,pt,i,W.expandedRowClassName,X,U,W.expandRowByClick,W.expandedRowRender,W.expandedRowOffset,Z,W.expandIconColumnIndex,W.indentSize,ht,ie,ae,Ue,Te,B,H,F,W.rowExpandable,w,R,q,K,T]);return g.createElement(Xxe.Provider,{value:kt},Ct)}var Jwe=g.forwardRef(Qwe);function eSe(e){return Uxe(Jwe,e)}var tSe=eSe();tSe.EXPAND_COLUMN=zxe,tSe.INTERNAL_HOOKS=Bxe,tSe.Column=Uwe,tSe.ColumnGroup=Ywe,tSe.Summary=swe;const nSe=tSe;var rSe=Hxe(null),oSe=Hxe(null);const iSe=function(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,l=e.renderIndex,s=e.record,c=e.style,u=e.className,d=e.inverse,p=e.getHeight,f=n.render,h=n.dataIndex,m=n.className,v=n.width,y=Fxe(oSe,["columnsOffset"]).columnsOffset,b=vwe(t,n,r,o,i),x=b.key,w=b.fixedInfo,S=b.appendCellNode,C=b.additionalCellProps,_=C.style,k=C.colSpan,M=void 0===k?1:k,I=C.rowSpan,E=void 0===I?1:I,O=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,M,y),$=M>1?v-O:0,T=ne(ne(ne({},_),c),{},{flex:"0 0 ".concat(O,"px"),width:"".concat(O,"px"),marginRight:$,pointerEvents:"auto"}),P=g.useMemo(function(){return d?E<=1:0===M||0===E||E>1},[E,M,d]);P?T.visibility="hidden":d&&(T.height=null===p||void 0===p?void 0:p(E));var D=P?function(){return null}:f,N={};return 0!==E&&0!==M||(N.rowSpan=1,N.colSpan=1),g.createElement(twe,gt({className:po()(m,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:x,record:s,index:i,renderIndex:l,dataIndex:h,render:D,shouldCellUpdate:n.shouldCellUpdate},w,{appendNode:S,additionalProps:ne(ne({},C),{},{style:T},N)}))};var aSe=["data","index","className","rowKey","style","extra","getHeight"],lSe=g.forwardRef(function(e,t){var n,r=e.data,o=e.index,i=e.className,a=e.rowKey,l=e.style,s=e.extra,c=e.getHeight,u=Io(e,aSe),d=r.record,p=r.indent,f=r.index,h=Fxe(Xxe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=h.scrollX,v=h.flattenColumns,y=h.prefixCls,b=h.fixColumn,x=h.componentWidth,w=Fxe(rSe,["getComponent"]).getComponent,S=fwe(d,a,o,p),C=w(["body","row"],"div"),_=w(["body","cell"],"div"),k=S.rowSupportExpand,M=S.expanded,I=S.rowProps,E=S.expandedRowRender,O=S.expandedRowClassName;if(k&&M){var $=E(d,o,p+1,M),T=mwe(O,d,o,p),P={};b&&(P={style:Y({},"--virtual-width","".concat(x,"px"))});var D="".concat(y,"-expanded-row-cell");n=g.createElement(C,{className:po()("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(p+1),T)},g.createElement(twe,{component:_,prefixCls:y,className:po()(D,Y({},"".concat(D,"-fixed"),b)),additionalProps:P},$))}var N=ne(ne({},l),{},{width:m});s&&(N.position="absolute",N.pointerEvents="none");var A=g.createElement(C,gt({},I,u,{"data-row-key":a,ref:k?null:t,className:po()(i,"".concat(y,"-row"),null===I||void 0===I?void 0:I.className,Y({},"".concat(y,"-row-extra"),s)),style:ne(ne({},N),null===I||void 0===I?void 0:I.style)}),v.map(function(e,t){return g.createElement(iSe,{key:t,component:_,rowInfo:S,column:e,colIndex:t,indent:p,index:o,renderIndex:f,record:d,inverse:s,getHeight:c})}));return k?g.createElement("div",{ref:t},A,n):A});const sSe=Yxe(lSe);var cSe=g.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Fxe(Xxe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,s=o.expandedKeys,c=o.prefixCls,u=o.childrenColumnName,d=o.scrollX,p=o.direction,f=Fxe(rSe),h=f.sticky,m=f.scrollY,v=f.listItemHeight,y=f.getComponent,b=f.onScroll,x=g.useRef(),w=pwe(n,u,s,l),S=g.useMemo(function(){var e=0;return i.map(function(t){var n=t.width;return[t.key,n,e+=n]})},[i]),C=g.useMemo(function(){return S.map(function(e){return e[2]})},[S]);g.useEffect(function(){S.forEach(function(e){var t=Q(e,2),n=t[0],r=t[1];a(n,r)})},[S]),g.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t});var _=function(e,t){var n,r=null===(n=w[t])||void 0===n?void 0:n.record,o=e.onCell;if(o){var i,a=o(r,t);return null!==(i=null===a||void 0===a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},k=g.useMemo(function(){return{columnsOffset:C}},[C]),M="".concat(c,"-tbody"),I=y(["body","wrapper"]),E={};return h&&(E.position="sticky",E.bottom=0,"object"===G(h)&&h.offsetScroll&&(E.bottom=h.offsetScroll)),g.createElement(oSe.Provider,{value:k},g.createElement(eD,{fullHeight:!1,ref:x,prefixCls:"".concat(M,"-virtual"),styles:{horizontalScrollBar:E},className:M,height:m,itemHeight:v||24,data:w,itemKey:function(e){return l(e.record)},component:I,scrollWidth:d,direction:p,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:b,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,o=e.offsetY;if(n<0)return null;for(var a=i.filter(function(e){return 0===_(e,t)}),s=t,c=function(e){if(a=a.filter(function(t){return 0===_(t,e)}),!a.length)return s=e,1},u=t;u>=0&&!c(u);u-=1);for(var d=i.filter(function(e){return 1!==_(e,n)}),p=n,f=function(e){if(d=d.filter(function(t){return 1!==_(t,e)}),!d.length)return p=Math.max(e-1,n),1},h=n;h<w.length&&!f(h);h+=1);for(var m=[],v=function(e){if(!w[e])return 1;i.some(function(t){return _(t,e)>1})&&m.push(e)},y=s;y<=p;y+=1)v(y);var b=m.map(function(e){var t=w[e],n=l(t.record,e),i=r(n);return g.createElement(sSe,{key:e,data:t,rowKey:n,index:e,style:{top:-o+i.top},extra:!0,getHeight:function(t){var o=e+t-1,i=l(w[o].record,o),a=r(n,i);return a.bottom-a.top}})});return b}},function(e,t,n){var r=l(e.record,t);return g.createElement(sSe,{data:e,rowKey:r,index:t,style:n.style})}))});const uSe=Yxe(cSe);var dSe=function(e,t){var n=t.ref,r=t.onScroll;return g.createElement(uSe,{ref:n,data:e,onScroll:r})};function pSe(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,l=void 0===a?qwe:a,s=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,p=o||{},f=p.x,h=p.y;"number"!==typeof f&&(f=1),"number"!==typeof h&&(h=500);var m=Lo(function(e,t){return _n(u,e)||t}),v=Lo(d),y=g.useMemo(function(){return{sticky:i,scrollY:h,listItemHeight:c,getComponent:m,onScroll:v}},[i,h,c,m,v]);return g.createElement(rSe.Provider,{value:y},g.createElement(nSe,gt({},e,{className:po()(s,"".concat(l,"-virtual")),scroll:ne(ne({},o),{},{x:f}),components:ne(ne({},u),{},{body:null!==n&&void 0!==n&&n.length?dSe:void 0}),columns:r,internalHooks:Bxe,tailor:!0,ref:t})))}var fSe=g.forwardRef(pSe);function hSe(e){return Uxe(fSe,e)}hSe();const gSe=e=>null,mSe=e=>null;var vSe=g.createContext(null),ySe=g.createContext({}),bSe=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,i="".concat(t,"-indent-unit"),a=[],l=0;l<n;l+=1)a.push(g.createElement("span",{key:l,className:po()(i,Y(Y({},"".concat(i,"-start"),r[l]),"".concat(i,"-end"),o[l]))}));return g.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)};const xSe=g.memo(bSe);function wSe(e,t){return e[t]}var SSe=["children"];function CSe(e,t){return"".concat(e,"-").concat(t)}function _Se(e,t){return null!==e&&void 0!==e?e:t}function kSe(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function MSe(e){return function e(t){return kf(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return Ce(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,i=ne({key:n},Io(r,SSe)),a=e(o);return a.length&&(i.children=a),i}).filter(function(e){return e})}(e)}function ISe(e,t,n){var r=kSe(n),o=r._title,i=r.key,a=r.children,l=new Set(!0===t?[]:t),s=[];return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(c,u){for(var d,p=CSe(r?r.pos:"0",u),f=_Se(c[i],p),h=0;h<o.length;h+=1){var g=o[h];if(void 0!==c[g]){d=c[g];break}}var m=Object.assign(Fp(c,[].concat(ee(o),[i,a])),{title:d,key:f,parent:r,pos:p,children:null,data:c,isStart:[].concat(ee(r?r.isStart:[]),[0===u]),isEnd:[].concat(ee(r?r.isEnd:[]),[u===n.length-1])});return s.push(m),!0===t||l.has(f)?m.children=e(c[a]||[],m):m.children=[],m})}(e),s}function ESe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,s=i||(arguments.length>2?arguments[2]:void 0),c={},u={},d={posEntities:c,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var r,o=("object"===G(n)?n:{externalGetKey:n})||{},i=o.childrenPropName,a=o.externalGetKey,l=kSe(o.fieldNames),s=l.key,c=l.children,u=i||c;a?"string"===typeof a?r=function(e){return e[a]}:"function"===typeof a&&(r=function(e){return a(e)}):r=function(e,t){return _Se(e[s],t)},function n(o,i,a,l){var s=o?o[u]:e,c=o?CSe(a.pos,i):"0",d=o?[].concat(ee(l),[o]):[];if(o){var p=r(o,c),f={node:o,index:i,pos:c,key:p,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(f)}s&&s.forEach(function(e,t){n(e,t,{node:o,pos:c,level:a?a.level+1:-1},d)})}(null)}(e,function(e){var t=e.node,n=e.index,o=e.pos,i=e.key,a=e.parentPos,l=e.level,s={node:t,nodes:e.nodes,index:n,key:i,pos:o,level:l},p=_Se(i,o);c[o]=s,u[p]=s,s.parent=c[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)},{externalGetKey:s,childrenPropName:a,fieldNames:l}),o&&o(d),d}function OSe(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,u=wSe(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==o.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function $Se(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,s=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,p=e.active,f=e.eventKey,h=ne(ne({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:p,key:f});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Ce(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var TSe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],PSe="open",DSe="close",NSe=function(e){var t,n,r,o=e.eventKey,i=e.className,a=e.style,l=e.dragOver,s=e.dragOverGapTop,c=e.dragOverGapBottom,u=e.isLeaf,d=e.isStart,p=e.isEnd,f=e.expanded,h=e.selected,m=e.checked,v=e.halfChecked,y=e.loading,b=e.domRef,x=e.active,w=e.data,S=e.onMouseMove,C=e.selectable,_=Io(e,TSe),k=g.useContext(vSe),M=g.useContext(ySe),I=g.useRef(null),E=Q(g.useState(!1),2),O=E[0],$=E[1],T=!!(k.disabled||e.disabled||null!==(t=M.nodeDisabled)&&void 0!==t&&t.call(M,w)),P=g.useMemo(function(){return!(!k.checkable||!1===e.checkable)&&k.checkable},[k.checkable,e.checkable]),D=function(t){T||P&&!e.disableCheckbox&&k.onNodeCheck(t,$Se(e),!m)},N=g.useMemo(function(){return"boolean"===typeof C?C:k.selectable},[C,k.selectable]),A=function(t){k.onNodeClick(t,$Se(e)),N?function(t){T||k.onNodeSelect(t,$Se(e))}(t):D(t)},R=function(t){k.onNodeDoubleClick(t,$Se(e))},j=function(t){k.onNodeMouseEnter(t,$Se(e))},L=function(t){k.onNodeMouseLeave(t,$Se(e))},z=function(t){k.onNodeContextMenu(t,$Se(e))},B=g.useMemo(function(){return!(!k.draggable||k.draggable.nodeDraggable&&!k.draggable.nodeDraggable(w))},[k.draggable,w]),H=function(t){y||k.onNodeExpand(t,$Se(e))},F=g.useMemo(function(){var e=(wSe(k.keyEntities,o)||{}).children;return Boolean((e||[]).length)},[k.keyEntities,o]),V=g.useMemo(function(){return!1!==u&&(u||!k.loadData&&!F||k.loadData&&e.loaded&&!F)},[u,k.loadData,F,e.loaded]);g.useEffect(function(){y||"function"!==typeof k.loadData||!f||V||e.loaded||k.onNodeLoad($Se(e))},[y,k.loadData,k.onNodeLoad,f,V,e]);var W=g.useMemo(function(){var e;return null!==(e=k.draggable)&&void 0!==e&&e.icon?g.createElement("span",{className:"".concat(k.prefixCls,"-draggable-icon")},k.draggable.icon):null},[k.draggable]),G=function(t){var n=e.switcherIcon||k.switcherIcon;return"function"===typeof n?n(ne(ne({},e),{},{isLeaf:t})):n},U=g.useMemo(function(){if(!P)return null;var t="boolean"!==typeof P?P:null;return g.createElement("span",{className:po()("".concat(k.prefixCls,"-checkbox"),Y(Y(Y({},"".concat(k.prefixCls,"-checkbox-checked"),m),"".concat(k.prefixCls,"-checkbox-indeterminate"),!m&&v),"".concat(k.prefixCls,"-checkbox-disabled"),T||e.disableCheckbox)),onClick:D,role:"checkbox","aria-checked":v?"mixed":m,"aria-disabled":T||e.disableCheckbox,"aria-label":"Select ".concat("string"===typeof e.title?e.title:"tree node")},t)},[P,m,v,T,e.disableCheckbox,e.title]),q=g.useMemo(function(){return V?null:f?PSe:DSe},[V,f]),X=g.useMemo(function(){return g.createElement("span",{className:po()("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__").concat(q||"docu"),Y({},"".concat(k.prefixCls,"-icon_loading"),y))})},[k.prefixCls,q,y]),K=g.useMemo(function(){var t=Boolean(k.draggable);return!e.disabled&&t&&k.dragOverNodeKey===o?k.dropIndicatorRender({dropPosition:k.dropPosition,dropLevelOffset:k.dropLevelOffset,indent:k.indent,prefixCls:k.prefixCls,direction:k.direction}):null},[k.dropPosition,k.dropLevelOffset,k.indent,k.prefixCls,k.direction,k.draggable,k.dragOverNodeKey,k.dropIndicatorRender]),Z=g.useMemo(function(){var t,n,r=e.title,o=void 0===r?"---":r,i="".concat(k.prefixCls,"-node-content-wrapper");if(k.showIcon){var a=e.icon||k.icon;t=a?g.createElement("span",{className:po()("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__customize"))},"function"===typeof a?a(e):a):X}else k.loadData&&y&&(t=X);return n="function"===typeof o?o(w):k.titleRender?k.titleRender(w):o,g.createElement("span",{ref:I,title:"string"===typeof o?o:"",className:po()(i,"".concat(i,"-").concat(q||"normal"),Y({},"".concat(k.prefixCls,"-node-selected"),!T&&(h||O))),onMouseEnter:j,onMouseLeave:L,onContextMenu:z,onClick:A,onDoubleClick:R},t,g.createElement("span",{className:"".concat(k.prefixCls,"-title")},n),K)},[k.prefixCls,k.showIcon,e,k.icon,X,k.titleRender,w,q,j,L,z,A,R]),J=Sd(_,{aria:!0,data:!0}),ee=(wSe(k.keyEntities,o)||{}).level,te=p[p.length-1],re=!T&&B,oe=k.draggingNodeKey===o,ie=void 0!==C?{"aria-selected":!!C}:void 0;return g.createElement("div",gt({ref:b,role:"treeitem","aria-expanded":u?void 0:f,className:po()(i,"".concat(k.prefixCls,"-treenode"),(r={},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(r,"".concat(k.prefixCls,"-treenode-disabled"),T),"".concat(k.prefixCls,"-treenode-switcher-").concat(f?"open":"close"),!u),"".concat(k.prefixCls,"-treenode-checkbox-checked"),m),"".concat(k.prefixCls,"-treenode-checkbox-indeterminate"),v),"".concat(k.prefixCls,"-treenode-selected"),h),"".concat(k.prefixCls,"-treenode-loading"),y),"".concat(k.prefixCls,"-treenode-active"),x),"".concat(k.prefixCls,"-treenode-leaf-last"),te),"".concat(k.prefixCls,"-treenode-draggable"),B),"dragging",oe),Y(Y(Y(Y(Y(Y(Y(r,"drop-target",k.dropTargetKey===o),"drop-container",k.dropContainerKey===o),"drag-over",!T&&l),"drag-over-gap-top",!T&&s),"drag-over-gap-bottom",!T&&c),"filter-node",null===(n=k.filterTreeNode)||void 0===n?void 0:n.call(k,$Se(e))),"".concat(k.prefixCls,"-treenode-leaf"),V))),style:a,draggable:re,onDragStart:re?function(t){t.stopPropagation(),$(!0),k.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(n){}}:void 0,onDragEnter:B?function(t){t.preventDefault(),t.stopPropagation(),k.onNodeDragEnter(t,e)}:void 0,onDragOver:B?function(t){t.preventDefault(),t.stopPropagation(),k.onNodeDragOver(t,e)}:void 0,onDragLeave:B?function(t){t.stopPropagation(),k.onNodeDragLeave(t,e)}:void 0,onDrop:B?function(t){t.preventDefault(),t.stopPropagation(),$(!1),k.onNodeDrop(t,e)}:void 0,onDragEnd:B?function(t){t.stopPropagation(),$(!1),k.onNodeDragEnd(t,e)}:void 0,onMouseMove:S},ie,J),g.createElement(xSe,{prefixCls:k.prefixCls,level:ee,isStart:d,isEnd:p}),W,function(){if(V){var e=G(!0);return!1!==e?g.createElement("span",{className:po()("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher-noop"))},e):null}var t=G(!1);return!1!==t?g.createElement("span",{onClick:H,className:po()("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher_").concat(f?PSe:DSe))},t):null}(),U,Z)};NSe.isTreeNode=1;const ASe=NSe;function RSe(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function jSe(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function LSe(e){return e.split("-")}function zSe(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var r=t.key,o=t.children;n.push(r),e(o)})}(wSe(t,e).children),n}function BSe(e){if(e.parent){var t=LSe(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function HSe(e,t,n,r,o,i,a,l,s,c){var u,d=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),h=f.top,g=f.height,m=(("rtl"===c?-1:1)*(((null===o||void 0===o?void 0:o.x)||0)-d)-12)/r,v=s.filter(function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length}),y=wSe(l,n.eventKey);if(p<h+g/2){var b=a.findIndex(function(e){return e.key===y.key}),x=a[b<=0?0:b-1].key;y=wSe(l,x)}var w=y.key,S=y,C=y.key,_=0,k=0;if(!v.includes(w))for(var M=0;M<m&&BSe(y);M+=1)y=y.parent,k+=1;var I=t.data,E=y.node,O=!0;return function(e){var t=LSe(e.pos);return 0===Number(t[t.length-1])}(y)&&0===y.level&&p<h+g/2&&i({dragNode:I,dropNode:E,dropPosition:-1})&&y.key===n.eventKey?_=-1:(S.children||[]).length&&v.includes(C)?i({dragNode:I,dropNode:E,dropPosition:0})?_=0:O=!1:0===k?m>-1.5?i({dragNode:I,dropNode:E,dropPosition:1})?_=1:O=!1:i({dragNode:I,dropNode:E,dropPosition:0})?_=0:i({dragNode:I,dropNode:E,dropPosition:1})?_=1:O=!1:i({dragNode:I,dropNode:E,dropPosition:1})?_=1:O=!1,{dropPosition:_,dropLevelOffset:k,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:C,dropContainerKey:0===_?null:(null===(u=y.parent)||void 0===u?void 0:u.key)||null,dropAllowed:O}}function FSe(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function VSe(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==G(e))return Ce(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function WSe(e,t){var n=new Set;function r(e){if(!n.has(e)){var o=wSe(t,e);if(o){n.add(e);var i=o.parent;o.node.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(e){r(e)}),ee(n)}function GSe(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function USe(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!(!n&&!r)||!1===o}function YSe(e,t,n,r){var o,i=[];o=r||USe;var a,l=new Set(e.filter(function(e){var t=!!wSe(n,e);return t||i.push(e),t})),s=new Map,c=0;return Object.keys(n).forEach(function(e){var t=n[e],r=t.level,o=s.get(r);o||(o=new Set,s.set(r,o)),o.add(t),c=Math.max(c,r)}),Ce(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;o.has(t)&&!r(n)&&a.filter(function(e){return!r(e.node)}).forEach(function(e){o.add(e.key)})});for(var l=new Set,s=n;s>=0;s-=1)(t.get(s)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!l.has(e.parent.key))if(r(e.parent.node))l.add(t.key);else{var a=!0,s=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),s||!n&&!i.has(t)||(s=!0)}),a&&o.add(t.key),s&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(GSe(i,o))}}(l,s,c,o):function(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,r=e.children,l=void 0===r?[]:r;i.has(t)||a.has(t)||o(n)||l.filter(function(e){return!o(e.node)}).forEach(function(e){i.delete(e.key)})});a=new Set;for(var s=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!s.has(e.parent.key))if(o(e.parent.node))s.add(t.key);else{var r=!0,l=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)}),r||i.delete(t.key),l&&a.add(t.key),s.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(GSe(a,i))}}(l,t.halfCheckedKeys,s,c,o),a}var qSe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],XSe=(0,g.forwardRef)(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,l=e.disabled,s=e.defaultChecked,c=void 0!==s&&s,u=e.type,d=void 0===u?"checkbox":u,p=e.title,f=e.onChange,h=Io(e,qSe),m=(0,g.useRef)(null),v=(0,g.useRef)(null),y=Q(Ho(c,{value:a}),2),b=y[0],x=y[1];(0,g.useImperativeHandle)(t,function(){return{focus:function(e){var t;null===(t=m.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=m.current)||void 0===e||e.blur()},input:m.current,nativeElement:v.current}});var w=po()(r,o,Y(Y({},"".concat(r,"-checked"),b),"".concat(r,"-disabled"),l));return g.createElement("span",{className:w,title:p,style:i,ref:v},g.createElement("input",gt({},h,{className:"".concat(r,"-input"),ref:m,onChange:function(t){l||("checked"in e||x(t.target.checked),null===f||void 0===f||f({target:ne(ne({},e),{},{type:d,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:l,checked:!!b,type:d})),g.createElement("span",{className:"".concat(r,"-inner")}))});const KSe=XSe,ZSe=g.createContext(null),QSe=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ki(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ki(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ki(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Zi(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${Xe(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n        ${n}:not(${n}-disabled),\n        ${t}:not(${t}-disabled)\n      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n        ${n}-checked:not(${n}-disabled),\n        ${t}-checked:not(${t}-disabled)\n      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function JSe(e,t){const n=ep(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[QSe(n)]}const eCe=dp("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[JSe(n,e)]});function tCe(e){const t=g.useRef(null),n=()=>{vi.cancel(t.current),t.current=null};return[()=>{n(),t.current=vi(()=>{t.current=null})},r=>{t.current&&(r.stopPropagation(),n()),null===e||void 0===e||e(r)}]}var nCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const rCe=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:s,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:p}=e,f=nCe(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:m,checkbox:v}=g.useContext(qr),y=g.useContext(ZSe),{isFormItemInput:b}=g.useContext(Ob),x=g.useContext(no),w=null!==(n=(null===y||void 0===y?void 0:y.disabled)||p)&&void 0!==n?n:x,S=g.useRef(f.value),C=g.useRef(null),_=So(t,C);g.useEffect(()=>{null===y||void 0===y||y.registerValue(f.value)},[]),g.useEffect(()=>{if(!d)return f.value!==S.current&&(null===y||void 0===y||y.cancelValue(S.current),null===y||void 0===y||y.registerValue(f.value),S.current=f.value),()=>null===y||void 0===y?void 0:y.cancelValue(f.value)},[f.value]),g.useEffect(()=>{var e;(null===(e=C.current)||void 0===e?void 0:e.input)&&(C.current.input.indeterminate=l)},[l]);const k=h("checkbox",r),M=Rd(k),[I,E,O]=eCe(k,M),$=Object.assign({},f);y&&!d&&($.onChange=function(){if(f.onChange){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];f.onChange.apply(f,t)}y.toggleOption&&y.toggleOption({label:a,value:f.value})},$.name=y.name,$.checked=y.value.includes(f.value));const T=po()(`${k}-wrapper`,{[`${k}-rtl`]:"rtl"===m,[`${k}-wrapper-checked`]:$.checked,[`${k}-wrapper-disabled`]:w,[`${k}-wrapper-in-form-item`]:b},null===v||void 0===v?void 0:v.className,o,i,O,M,E),P=po()({[`${k}-indeterminate`]:l},WC,E),[D,N]=tCe($.onClick);return I(g.createElement(KC,{component:"Checkbox",disabled:w},g.createElement("label",{className:T,style:Object.assign(Object.assign({},null===v||void 0===v?void 0:v.style),s),onMouseEnter:c,onMouseLeave:u,onClick:D},g.createElement(KSe,Object.assign({},$,{onClick:N,prefixCls:k,className:P,disabled:w,ref:_})),void 0!==a&&null!==a&&g.createElement("span",{className:`${k}-label`},a))))};const oCe=g.forwardRef(rCe);var iCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const aCe=g.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c}=e,u=iCe(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:p}=g.useContext(qr),[f,h]=g.useState(u.value||n||[]),[m,v]=g.useState([]);g.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const y=g.useMemo(()=>o.map(e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e),[o]),b=e=>{v(t=>t.filter(t=>t!==e))},x=e=>{v(t=>[].concat(ee(t),[e]))},w=e=>{const t=f.indexOf(e.value),n=ee(f);-1===t?n.push(e.value):n.splice(t,1),"value"in u||h(n),null===c||void 0===c||c(n.filter(e=>m.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},S=d("checkbox",i),C=`${S}-group`,_=Rd(S),[k,M,I]=eCe(S,_),E=Fp(u,["value","disabled"]),O=o.length?y.map(e=>g.createElement(oCe,{prefixCls:S,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:f.includes(e.value),onChange:e.onChange,className:po()(`${C}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,$=g.useMemo(()=>({toggleOption:w,value:f,disabled:u.disabled,name:u.name,registerValue:x,cancelValue:b}),[w,f,u.disabled,u.name,x,b]),T=po()(C,{[`${C}-rtl`]:"rtl"===p},a,l,I,_,M);return k(g.createElement("div",Object.assign({className:T,style:s},E,{ref:t}),g.createElement(ZSe.Provider,{value:$},O)))}),lCe=aCe,sCe=oCe;sCe.Group=lCe,sCe.__ANT_CHECKBOX=!0;const cCe=sCe,uCe=g.createContext(null),dCe=uCe.Provider,pCe=uCe,fCe=g.createContext(null),hCe=fCe.Provider,gCe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ki(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},mCe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:p,paddingXS:f,dotColorDisabled:h,lineType:g,radioColor:m,radioBgColor:v,calc:y}=e,b=`${t}-inner`,x=y(o).sub(y(4).mul(2)),w=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ki(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Xe(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ki(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n        &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:Object.assign({},Zi(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:w,height:w,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:m,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${y(x).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},vCe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:h,paddingXS:g,borderRadius:m,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:b,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:S,buttonCheckedBgDisabled:C,buttonCheckedColorDisabled:_,colorPrimary:k,colorPrimaryHover:M,colorPrimaryActive:I,buttonSolidCheckedBg:E,buttonSolidCheckedHoverBg:O,buttonSolidCheckedActiveBg:$,calc:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:Xe(T(n).sub(T(o).mul(2)).equal()),background:d,border:`${Xe(o)} ${i} ${a}`,borderBlockStartWidth:T(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:T(o).mul(-1).equal(),insetInlineStart:T(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${Xe(o)} ${i} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:f,fontSize:p,lineHeight:Xe(T(f).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:T(g).sub(o).equal(),paddingBlock:0,lineHeight:Xe(T(h).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},Zi(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:b,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:M,borderColor:M,"&::before":{backgroundColor:M}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:E,borderColor:E,"&:hover":{color:x,background:O,borderColor:O},"&:active":{color:x,background:$,borderColor:$}},"&-disabled":{color:w,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:_,backgroundColor:C,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},yCe=dp("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Xe(n)} ${t}`,o=ep(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[gCe(o),mCe(o),vCe(o)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:h}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+o),dotColorDisabled:s,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?l:d}},{unitless:{radioSize:!0,dotSize:!0}});var bCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const xCe=(e,t)=>{var n,r;const o=g.useContext(pCe),i=g.useContext(fCe),{getPrefixCls:a,direction:l,radio:s}=g.useContext(qr),c=g.useRef(null),u=So(t,c),{isFormItemInput:d}=g.useContext(Ob);const p=t=>{var n,r;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(r=null===o||void 0===o?void 0:o.onChange)||void 0===r||r.call(o,t)},{prefixCls:f,className:h,rootClassName:m,children:v,style:y,title:b}=e,x=bCe(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",f),S="button"===((null===o||void 0===o?void 0:o.optionType)||i),C=S?`${w}-button`:w,_=Rd(w),[k,M,I]=yCe(w,_),E=Object.assign({},x),O=g.useContext(no);o&&(E.name=o.name,E.onChange=p,E.checked=e.value===o.value,E.disabled=null!==(n=E.disabled)&&void 0!==n?n:o.disabled),E.disabled=null!==(r=E.disabled)&&void 0!==r?r:O;const $=po()(`${C}-wrapper`,{[`${C}-wrapper-checked`]:E.checked,[`${C}-wrapper-disabled`]:E.disabled,[`${C}-wrapper-rtl`]:"rtl"===l,[`${C}-wrapper-in-form-item`]:d,[`${C}-wrapper-block`]:!!(null===o||void 0===o?void 0:o.block)},null===s||void 0===s?void 0:s.className,h,m,M,I,_),[T,P]=tCe(E.onClick);return k(g.createElement(KC,{component:"Radio",disabled:E.disabled},g.createElement("label",{className:$,style:Object.assign(Object.assign({},null===s||void 0===s?void 0:s.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:T},g.createElement(KSe,Object.assign({},E,{className:po()(E.className,{[WC]:!S}),type:"radio",prefixCls:C,ref:u,onClick:P})),void 0!==v?g.createElement("span",{className:`${C}-label`},v):null)))};const wCe=g.forwardRef(xCe),SCe=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(qr),{name:o}=g.useContext(Ob),i=Th(Tx(o)),{prefixCls:a,className:l,rootClassName:s,options:c,buttonStyle:u="outline",disabled:d,children:p,size:f,style:h,id:m,optionType:v,name:y=i,defaultValue:b,value:x,block:w=!1,onChange:S,onMouseEnter:C,onMouseLeave:_,onFocus:k,onBlur:M}=e,[I,E]=Ho(b,{value:x}),O=g.useCallback(t=>{const n=I,r=t.target.value;"value"in e||E(r),r!==n&&(null===S||void 0===S||S(t))},[I,E,S]),$=n("radio",a),T=`${$}-group`,P=Rd($),[D,N,A]=yCe($,P);let R=p;c&&c.length>0&&(R=c.map(e=>"string"===typeof e||"number"===typeof e?g.createElement(wCe,{key:e.toString(),prefixCls:$,disabled:d,value:e,checked:I===e},e):g.createElement(wCe,{key:`radio-group-value-options-${e.value}`,prefixCls:$,disabled:e.disabled||d,value:e.value,checked:I===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const j=Vp(f),L=po()(T,`${T}-${u}`,{[`${T}-${j}`]:j,[`${T}-rtl`]:"rtl"===r,[`${T}-block`]:w},l,s,N,A,P),z=g.useMemo(()=>({onChange:O,value:I,disabled:d,name:y,optionType:v,block:w}),[O,I,d,y,v,w]);return D(g.createElement("div",Object.assign({},Sd(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:C,onMouseLeave:_,onFocus:k,onBlur:M,id:m,ref:t}),g.createElement(dCe,{value:z},R)))}),CCe=g.memo(SCe);var _Ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kCe=(e,t)=>{const{getPrefixCls:n}=g.useContext(qr),{prefixCls:r}=e,o=_Ce(e,["prefixCls"]),i=n("radio",r);return g.createElement(hCe,{value:"button"},g.createElement(wCe,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},MCe=g.forwardRef(kCe),ICe=wCe;ICe.Button=MCe,ICe.Group=CCe,ICe.__ANT_RADIO=!0;const ECe=ICe,OCe={},$Ce="SELECT_ALL",TCe="SELECT_INVERT",PCe="SELECT_NONE",DCe=[],NCe=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(t||[]).forEach(t=>{n.push(t),t&&"object"===typeof t&&e in t&&NCe(e,t[e],n)}),n},ACe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:c,onSelectNone:u,onSelectMultiple:d,columnWidth:p,type:f,selections:h,fixed:m,renderCell:v,hideSelectAll:y,checkStrictly:b=!0}=t||{},{prefixCls:x,data:w,pageData:S,getRecordByKey:C,getRowKey:_,expandType:k,childrenColumnName:M,locale:I,getPopupContainer:E}=e,O=Pn("Table"),[$,T]=function(e){const[t,n]=(0,g.useState)(null),r=(0,g.useCallback)((r,o,i)=>{const a=null!==t&&void 0!==t?t:r,l=Math.min(a||0,r),s=Math.max(a||0,r),c=o.slice(l,s+1).map(t=>e(t)),u=c.some(e=>!i.has(e)),d=[];return c.forEach(e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))}),n(u?s:null),d},[t]);return[r,e=>{n(e)}]}(e=>e),[P,D]=Ho(r||o||DCe,{value:r}),N=g.useRef(new Map),A=(0,g.useCallback)(e=>{if(n){const t=new Map;e.forEach(e=>{let n=C(e);!n&&N.current.has(e)&&(n=N.current.get(e)),t.set(e,n)}),N.current=t}},[C,n]);g.useEffect(()=>{A(P)},[P]);const R=(0,g.useMemo)(()=>NCe(M,S),[M,S]),{keyEntities:j}=(0,g.useMemo)(()=>{if(b)return{keyEntities:null};let e=w;if(n){const t=new Set(R.map((e,t)=>_(e,t))),n=Array.from(N.current).reduce((e,n)=>{let[r,o]=n;return t.has(r)?e:e.concat(o)},[]);e=[].concat(ee(e),ee(n))}return ESe(e,{externalGetKey:_,childrenPropName:M})},[w,_,b,M,n,R]),L=(0,g.useMemo)(()=>{const e=new Map;return R.forEach((t,n)=>{const r=_(t,n),o=(i?i(t):null)||{};e.set(r,o)}),e},[R,_,i]),z=(0,g.useCallback)(e=>{const t=_(e);let n;return n=L.has(t)?L.get(_(e)):i?i(e):void 0,!!(null===n||void 0===n?void 0:n.disabled)},[L,_]),[B,H]=(0,g.useMemo)(()=>{if(b)return[P||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=YSe(P,!0,j,z);return[e||[],t]},[P,b,j,z]),F=(0,g.useMemo)(()=>{const e="radio"===f?B.slice(0,1):B;return new Set(e)},[B,f]),V=(0,g.useMemo)(()=>"radio"===f?new Set:new Set(H),[H,f]);g.useEffect(()=>{t||D(DCe)},[!!t]);const W=(0,g.useCallback)((e,t)=>{let r,o;A(e),n?(r=e,o=e.map(e=>N.current.get(e))):(r=[],o=[],e.forEach(e=>{const t=C(e);void 0!==t&&(r.push(e),o.push(t))})),D(r),null===a||void 0===a||a(r,o,{type:t})},[D,C,a,n]),G=(0,g.useCallback)((e,t,n,r)=>{if(l){const o=n.map(e=>C(e));l(C(e),t,o,r)}W(n,"single")},[l,C,W]),U=(0,g.useMemo)(()=>{if(!h||y)return null;return(!0===h?[$Ce,TCe,PCe]:h).map(e=>e===$Ce?{key:"all",text:I.selectionAll,onSelect(){W(w.map((e,t)=>_(e,t)).filter(e=>{const t=L.get(e);return!(null===t||void 0===t?void 0:t.disabled)||F.has(e)}),"all")}}:e===TCe?{key:"invert",text:I.selectInvert,onSelect(){const e=new Set(F);S.forEach((t,n)=>{const r=_(t,n),o=L.get(r);(null===o||void 0===o?void 0:o.disabled)||(e.has(r)?e.delete(r):e.add(r))});const t=Array.from(e);c&&(O.deprecated(!1,"onSelectInvert","onChange"),c(t)),W(t,"invert")}}:e===PCe?{key:"none",text:I.selectNone,onSelect(){null===u||void 0===u||u(),W(Array.from(F).filter(e=>{const t=L.get(e);return null===t||void 0===t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(o)),T(null)}}))},[h,F,S,_,c,W]),Y=(0,g.useCallback)(e=>{var n;if(!t)return e.filter(e=>e!==OCe);let r=ee(e);const o=new Set(F),i=R.map(_).filter(e=>!L.get(e).disabled),a=i.every(e=>o.has(e)),l=i.some(e=>o.has(e)),c=()=>{const e=[];a?i.forEach(t=>{o.delete(t),e.push(t)}):i.forEach(t=>{o.has(t)||(o.add(t),e.push(t))});const t=Array.from(o);null===s||void 0===s||s(!a,t.map(e=>C(e)),e.map(e=>C(e))),W(t,"all"),T(null)};let u,w,S;if("radio"!==f){let e;if(U){const t={getPopupContainer:E,items:U.map((e,t)=>{const{key:n,text:r,onSelect:o}=e;return{key:null!==n&&void 0!==n?n:t,onClick:()=>{null===o||void 0===o||o(i)},label:r}})};e=g.createElement("div",{className:`${x}-selection-extra`},g.createElement(d$,{menu:t,getPopupContainer:E},g.createElement("span",null,g.createElement(KD,null))))}const t=R.map((e,t)=>{const n=_(e,t),r=L.get(n)||{};return Object.assign({checked:o.has(n)},r)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===R.length,r=n&&t.every(e=>{let{checked:t}=e;return t}),s=n&&t.some(e=>{let{checked:t}=e;return t});w=g.createElement(cCe,{checked:n?r:!!R.length&&a,indeterminate:n?!r&&s:!a&&l,onChange:c,disabled:0===R.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),u=!y&&g.createElement("div",{className:`${x}-selection`},w,e)}S="radio"===f?(e,t,n)=>{const r=_(t,n),i=o.has(r),a=L.get(r);return{node:g.createElement(ECe,Object.assign({},a,{checked:i,onClick:e=>{var t;e.stopPropagation(),null===(t=null===a||void 0===a?void 0:a.onClick)||void 0===t||t.call(a,e)},onChange:e=>{var t;o.has(r)||G(r,!0,[r],e.nativeEvent),null===(t=null===a||void 0===a?void 0:a.onChange)||void 0===t||t.call(a,e)}})),checked:i}}:(e,t,n)=>{var r;const a=_(t,n),l=o.has(a),s=V.has(a),c=L.get(a);let u;return u="nest"===k?s:null!==(r=null===c||void 0===c?void 0:c.indeterminate)&&void 0!==r?r:s,{node:g.createElement(cCe,Object.assign({},c,{indeterminate:u,checked:l,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null===c||void 0===c?void 0:c.onClick)||void 0===t||t.call(c,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:r}=n,s=i.findIndex(e=>e===a),u=B.some(e=>i.includes(e));if(r&&b&&u){const e=$(s,i,o),t=Array.from(o);null===d||void 0===d||d(!l,t.map(e=>C(e)),e.map(e=>C(e))),W(t,"multiple")}else{const e=B;if(b){const t=l?RSe(e,a):jSe(e,a);G(a,!l,t,n)}else{const t=YSe([].concat(ee(e),[a]),!0,j,z),{checkedKeys:r,halfCheckedKeys:o}=t;let i=r;if(l){const e=new Set(r);e.delete(a),i=YSe(Array.from(e),{checked:!1,halfCheckedKeys:o},j,z).checkedKeys}G(a,!l,i,n)}}T(l?null:s),null===(t=null===c||void 0===c?void 0:c.onChange)||void 0===t||t.call(c,e)}})),checked:l}};if(!r.includes(OCe))if(0===r.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[Cwe])||void 0===t?void 0:t.columnType)})){const[e,...t]=r;r=[e,OCe].concat(ee(t))}else r=[OCe].concat(ee(r));const M=r.indexOf(OCe);r=r.filter((e,t)=>e!==OCe||t===M);const I=r[M-1],O=r[M+1];let P=m;void 0===P&&(void 0!==(null===O||void 0===O?void 0:O.fixed)?P=O.fixed:void 0!==(null===I||void 0===I?void 0:I.fixed)&&(P=I.fixed)),P&&I&&"EXPAND_COLUMN"===(null===(n=I[Cwe])||void 0===n?void 0:n.columnType)&&void 0===I.fixed&&(I.fixed=P);const D=po()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&"checkbox"===f}),N={fixed:P,width:p,className:`${x}-selection-column`,title:(null===t||void 0===t?void 0:t.columnTitle)?"function"===typeof t.columnTitle?t.columnTitle(w):t.columnTitle:u,render:(e,t,n)=>{const{node:r,checked:o}=S(e,t,n);return v?v(o,t,n,r):r},onCell:t.onCell,align:t.align,[Cwe]:{className:D}};return r.map(e=>e===OCe?N:e)},[_,R,t,B,F,V,p,U,k,L,d,G,z]);return[Y,F]};function RCe(e,t){return(0,g.useImperativeHandle)(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!==typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(o=e,(r=n)._antProxy=r._antProxy||{},Object.keys(o).forEach(e=>{if(!(e in r._antProxy)){const t=r[e];r._antProxy[e]=t,r[e]=o[e]}}),r);var r,o})}function jCe(e){return null!==e&&void 0!==e&&e===e.window}const LCe=e=>{var t,n;if("undefined"===typeof window)return 0;let r=0;return jCe(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!jCe(e)&&"number"!==typeof r&&(r=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),r};const zCe=function(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,l=`${n}-row-expand-icon`;return g.createElement("button",{type:"button",onClick:e=>{r(o,e),e.stopPropagation()},className:po()(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}};const BCe=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function HCe(e,t){return t?`${t}-${e}`:`${e}`}const FCe=(e,t)=>"function"===typeof e?e(t):e;const VCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var WCe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:VCe}))};const GCe=g.forwardRef(WCe);const UCe=function(e){var t=e.dropPosition,n=e.dropLevelOffset,r=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:o.top=0,o.left=-n*r;break;case 1:o.bottom=0,o.left=-n*r;break;case 0:o.bottom=0,o.left=r}return g.createElement("div",{style:o})};function YCe(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const qCe=function(e,t){var n=Q(g.useState(!1),2),r=n[0],o=n[1];rt(function(){if(r)return e(),function(){t()}},[r]),rt(function(){return o(!0),function(){o(!1)}},[])};var XCe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],KCe=g.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,l=e.onMotionStart,s=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=Io(e,XCe),p=Q(g.useState(!0),2),f=p[0],h=p[1],m=g.useContext(vSe).prefixCls,v=i&&"hide"!==a;rt(function(){i&&v!==f&&h(v)},[i]);var y=g.useRef(!1),b=function(){i&&!y.current&&(y.current=!0,s())};qCe(function(){i&&l()},b);return i?g.createElement(Ai,gt({ref:t,visible:f},o,{motionAppear:"show"===a,onVisibleChanged:function(e){v===e&&b()}}),function(e,t){var n=e.className,r=e.style;return g.createElement("div",{ref:t,className:po()("".concat(m,"-treenode-motion"),n),style:r},i.map(function(e){var t=Object.assign({},(YCe(e.data),e.data)),n=e.title,r=e.key,o=e.isStart,i=e.isEnd;delete t.children;var a=OSe(r,u);return g.createElement(ASe,gt({},t,a,{title:n,active:c,data:e.data,key:r,isStart:o,isEnd:i}))}))}):g.createElement(ASe,gt({domRef:t,className:n,style:r},d,{active:c}))});const ZCe=KCe;function QCe(e,t,n){var r=e.findIndex(function(e){return e.key===n}),o=e[r+1],i=t.findIndex(function(e){return e.key===n});if(o){var a=t.findIndex(function(e){return e.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var JCe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],e_e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},t_e=function(){},n_e="RC_TREE_MOTION_".concat(Math.random()),r_e={key:n_e},o_e={key:n_e,level:0,index:0,pos:"0",node:r_e,nodes:[r_e]},i_e={parent:null,children:[],pos:o_e.pos,data:r_e,title:null,key:n_e,isStart:[],isEnd:[]};function a_e(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function l_e(e){return _Se(e.key,e.pos)}var s_e=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.data,o=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,p=e.dragging,f=e.dragOverNodeKey,h=e.dropPosition,m=e.motion,v=e.height,y=e.itemHeight,b=e.virtual,x=e.scrollWidth,w=e.focusable,S=e.activeItem,C=e.focused,_=e.tabIndex,k=e.onKeyDown,M=e.onFocus,I=e.onBlur,E=e.onActiveChange,O=e.onListChangeStart,$=e.onListChangeEnd,T=Io(e,JCe),P=g.useRef(null),D=g.useRef(null);g.useImperativeHandle(t,function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return D.current.offsetWidth}}});var N=Q(g.useState(o),2),A=N[0],R=N[1],j=Q(g.useState(r),2),L=j[0],z=j[1],B=Q(g.useState(r),2),H=B[0],F=B[1],V=Q(g.useState([]),2),W=V[0],G=V[1],U=Q(g.useState(null),2),Y=U[0],q=U[1],X=g.useRef(r);function K(){var e=X.current;z(e),F(e),G([]),q(null),$()}X.current=r,rt(function(){R(o);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function o(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var r=t.filter(function(e){return!n.has(e)});return 1===r.length?r[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}(A,o);if(null!==e.key)if(e.add){var t=L.findIndex(function(t){return t.key===e.key}),n=a_e(QCe(L,r,e.key),b,v,y),i=L.slice();i.splice(t+1,0,i_e),F(i),G(n),q("show")}else{var a=r.findIndex(function(t){return t.key===e.key}),l=a_e(QCe(r,L,e.key),b,v,y),s=r.slice();s.splice(a+1,0,i_e),F(s),G(l),q("hide")}else L!==r&&(z(r),F(r))},[o,r]),g.useEffect(function(){p||K()},[p]);var Z=m?H:r,J={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:f,dropPosition:h,keyEntities:u};return g.createElement(g.Fragment,null,C&&S&&g.createElement("span",{style:e_e,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(S)),g.createElement("div",null,g.createElement("input",{style:e_e,disabled:!1===w||d,tabIndex:!1!==w?_:null,onKeyDown:k,onFocus:M,onBlur:I,value:"",onChange:t_e,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(n,"-indent")},g.createElement("div",{ref:D,className:"".concat(n,"-indent-unit")}))),g.createElement(eD,gt({},T,{data:Z,itemKey:l_e,height:v,fullHeight:!1,virtual:b,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:P,role:"tree",onVisibleChange:function(e){e.every(function(e){return l_e(e)!==n_e})&&K()}}),function(e){var t=e.pos,n=Object.assign({},(YCe(e.data),e.data)),r=e.title,o=e.key,i=e.isStart,a=e.isEnd,l=_Se(o,t);delete n.key,delete n.children;var s=OSe(l,J);return g.createElement(ZCe,gt({},n,s,{title:r,active:!!S&&o===S.key,pos:t,data:e.data,isStart:i,isEnd:a,motion:m,motionNodes:o===n_e?W:null,motionType:Y,onMotionStart:O,onMotionEnd:K,treeNodeRequiredProps:J,onMouseMove:function(){E(null)}}))}))});const c_e=s_e;var u_e=function(e){Po(n,e);var t=Ro(n);function n(){var e;ke(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Y(Ao(e=t.call.apply(t,[this].concat(o))),"destroyed",!1),Y(Ao(e),"delayedDragEnterLogic",void 0),Y(Ao(e),"loadingRetryTimes",{}),Y(Ao(e),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:kSe()}),Y(Ao(e),"dragStartMousePosition",null),Y(Ao(e),"dragNodeProps",null),Y(Ao(e),"currentMouseOverDroppableNodeKey",null),Y(Ao(e),"listRef",g.createRef()),Y(Ao(e),"onNodeDragStart",function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var s=RSe(o,l);e.setState({draggingNodeKey:l,dragChildrenKeys:zSe(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(s),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:$Se(n)})}),Y(Ao(e),"onNodeDragEnter",function(t,n){var r=e.state,o=r.expandedKeys,i=r.keyEntities,a=r.dragChildrenKeys,l=r.flattenNodes,s=r.indent,c=e.props,u=c.onDragEnter,d=c.onExpand,p=c.allowDrop,f=c.direction,h=n.pos,g=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),e.dragNodeProps){var m=HSe(t,e.dragNodeProps,n,s,e.dragStartMousePosition,p,l,i,o,f),v=m.dropPosition,y=m.dropLevelOffset,b=m.dropTargetKey,x=m.dropContainerKey,w=m.dropTargetPos,S=m.dropAllowed,C=m.dragOverNodeKey;!a.includes(b)&&S?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[h]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var r=ee(o),a=wSe(i,n.eventKey);a&&(a.children||[]).length&&(r=jSe(o,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(r),null===d||void 0===d||d(r,{node:$Se(n),expanded:!0,nativeEvent:t.nativeEvent})}},800)),e.dragNodeProps.eventKey!==b||0!==y?(e.setState({dragOverNodeKey:C,dropPosition:v,dropLevelOffset:y,dropTargetKey:b,dropContainerKey:x,dropTargetPos:w,dropAllowed:S}),null===u||void 0===u||u({event:t,node:$Se(n),expandedKeys:o})):e.resetDragState()):e.resetDragState()}else e.resetDragState()}),Y(Ao(e),"onNodeDragOver",function(t,n){var r=e.state,o=r.dragChildrenKeys,i=r.flattenNodes,a=r.keyEntities,l=r.expandedKeys,s=r.indent,c=e.props,u=c.onDragOver,d=c.allowDrop,p=c.direction;if(e.dragNodeProps){var f=HSe(t,e.dragNodeProps,n,s,e.dragStartMousePosition,d,i,a,l,p),h=f.dropPosition,g=f.dropLevelOffset,m=f.dropTargetKey,v=f.dropContainerKey,y=f.dropTargetPos,b=f.dropAllowed,x=f.dragOverNodeKey;!o.includes(m)&&b&&(e.dragNodeProps.eventKey===m&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():h===e.state.dropPosition&&g===e.state.dropLevelOffset&&m===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&b===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:h,dropLevelOffset:g,dropTargetKey:m,dropContainerKey:v,dropTargetPos:y,dropAllowed:b,dragOverNodeKey:x}),null===u||void 0===u||u({event:t,node:$Se(n)}))}}),Y(Ao(e),"onNodeDragLeave",function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var r=e.props.onDragLeave;null===r||void 0===r||r({event:t,node:$Se(n)})}),Y(Ao(e),"onWindowDragEnd",function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)}),Y(Ao(e),"onNodeDragEnd",function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===r||void 0===r||r({event:t,node:$Se(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)}),Y(Ao(e),"onNodeDrop",function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,s=i.dropTargetKey,c=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==s){var d=ne(ne({},OSe(s,e.getTreeNodeRequiredProps())),{},{active:(null===(r=e.getActiveItem())||void 0===r?void 0:r.key)===s,data:wSe(e.state.keyEntities,s).node}),p=a.includes(s);Ce(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var f=LSe(c),h={event:t,node:$Se(d),dragNode:e.dragNodeProps?$Se(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(f[f.length-1])};o||null===u||void 0===u||u(h),e.dragNodeProps=null}}}),Y(Ao(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),Y(Ao(e),"triggerExpandActionExpand",function(t,n){var r=e.state,o=r.expandedKeys,i=r.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var s=i.filter(function(e){return e.key===l})[0],c=$Se(ne(ne({},OSe(l,e.getTreeNodeRequiredProps())),{},{data:s.data}));e.setExpandedKeys(a?RSe(o,l):jSe(o,l)),e.onNodeExpand(t,c)}}),Y(Ao(e),"onNodeClick",function(t,n){var r=e.props,o=r.onClick;"click"===r.expandAction&&e.triggerExpandActionExpand(t,n),null===o||void 0===o||o(t,n)}),Y(Ao(e),"onNodeDoubleClick",function(t,n){var r=e.props,o=r.onDoubleClick;"doubleClick"===r.expandAction&&e.triggerExpandActionExpand(t,n),null===o||void 0===o||o(t,n)}),Y(Ao(e),"onNodeSelect",function(t,n){var r=e.state.selectedKeys,o=e.state,i=o.keyEntities,a=o.fieldNames,l=e.props,s=l.onSelect,c=l.multiple,u=n.selected,d=n[a.key],p=!u,f=(r=p?c?jSe(r,d):[d]:RSe(r,d)).map(function(e){var t=wSe(i,e);return t?t.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:r}),null===s||void 0===s||s(r,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})}),Y(Ao(e),"onNodeCheck",function(t,n,r){var o,i=e.state,a=i.keyEntities,l=i.checkedKeys,s=i.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,p=n.key,f={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var h=r?jSe(l,p):RSe(l,p);o={checked:h,halfChecked:RSe(s,p)},f.checkedNodes=h.map(function(e){return wSe(a,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:h})}else{var g=YSe([].concat(ee(l),[p]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var y=new Set(m);y.delete(p);var b=YSe(Array.from(y),{checked:!1,halfCheckedKeys:v},a);m=b.checkedKeys,v=b.halfCheckedKeys}o=m,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,m.forEach(function(e){var t=wSe(a,e);if(t){var n=t.node,r=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:r})}}),e.setUncontrolledState({checkedKeys:m},!1,{halfCheckedKeys:v})}null===d||void 0===d||d(o,f)}),Y(Ao(e),"onNodeLoad",function(t){var n,r=t.key,o=wSe(e.state.keyEntities,r);if(null===o||void 0===o||null===(n=o.children)||void 0===n||!n.length){var i=new Promise(function(n,o){e.setState(function(i){var a=i.loadedKeys,l=void 0===a?[]:a,s=i.loadingKeys,c=void 0===s?[]:s,u=e.props,d=u.loadData,p=u.onLoad;return!d||l.includes(r)||c.includes(r)?null:(d(t).then(function(){var o=jSe(e.state.loadedKeys,r);null===p||void 0===p||p(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState(function(e){return{loadingKeys:RSe(e.loadingKeys,r)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:RSe(e.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var i=e.state.loadedKeys;Ce(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:jSe(i,r)}),n()}o(t)}),{loadingKeys:jSe(c,r)})})});return i.catch(function(){}),i}}),Y(Ao(e),"onNodeMouseEnter",function(t,n){var r=e.props.onMouseEnter;null===r||void 0===r||r({event:t,node:n})}),Y(Ao(e),"onNodeMouseLeave",function(t,n){var r=e.props.onMouseLeave;null===r||void 0===r||r({event:t,node:n})}),Y(Ao(e),"onNodeContextMenu",function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))}),Y(Ao(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===t||void 0===t||t.apply(void 0,r)}),Y(Ao(e),"onBlur",function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===t||void 0===t||t.apply(void 0,r)}),Y(Ao(e),"getTreeNodeRequiredProps",function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}}),Y(Ao(e),"setExpandedKeys",function(t){var n=e.state,r=ISe(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)}),Y(Ao(e),"onNodeExpand",function(t,n){var r=e.state.expandedKeys,o=e.state,i=o.listChanging,a=o.fieldNames,l=e.props,s=l.onExpand,c=l.loadData,u=n.expanded,d=n[a.key];if(!i){var p=r.includes(d),f=!u;if(Ce(u&&p||!u&&!p,"Expand state not sync with index check"),r=f?jSe(r,d):RSe(r,d),e.setExpandedKeys(r),null===s||void 0===s||s(r,{node:n,expanded:f,nativeEvent:t.nativeEvent}),f&&c){var h=e.onNodeLoad(n);h&&h.then(function(){var t=ISe(e.state.treeData,r,a);e.setUncontrolledState({flattenNodes:t})}).catch(function(){var t=RSe(e.state.expandedKeys,d);e.setExpandedKeys(t)})}}}),Y(Ao(e),"onListChangeStart",function(){e.setUncontrolledState({listChanging:!0})}),Y(Ao(e),"onListChangeEnd",function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})}),Y(Ao(e),"onActiveChange",function(t){var n=e.state.activeKey,r=e.props,o=r.onActiveChange,i=r.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null===o||void 0===o||o(t))}),Y(Ao(e),"getActiveItem",function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find(function(e){return e.key===n})||null}),Y(Ao(e),"offsetActiveKey",function(t){var n=e.state,r=n.flattenNodes,o=n.activeKey,i=r.findIndex(function(e){return e.key===o});-1===i&&t<0&&(i=r.length);var a=r[i=(i+t+r.length)%r.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)}),Y(Ao(e),"onKeyDown",function(t){var n=e.state,r=n.activeKey,o=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,s=l.onKeyDown,c=l.checkable,u=l.selectable;switch(t.which){case bd.UP:e.offsetActiveKey(-1),t.preventDefault();break;case bd.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var p=e.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data[a.children]||[]).length,h=$Se(ne(ne({},OSe(r,p)),{},{data:d.data,active:!0}));switch(t.which){case bd.LEFT:f&&o.includes(r)?e.onNodeExpand({},h):d.parent&&e.onActiveChange(d.parent.key),t.preventDefault();break;case bd.RIGHT:f&&!o.includes(r)?e.onNodeExpand({},h):d.children&&d.children.length&&e.onActiveChange(d.children[0].key),t.preventDefault();break;case bd.ENTER:case bd.SPACE:!c||h.disabled||!1===h.checkable||h.disableCheckbox?c||!u||h.disabled||!1===h.selectable||e.onNodeSelect({},h):e.onNodeCheck({},h,!i.includes(r))}}null===s||void 0===s||s(t)}),Y(Ao(e),"setUncontrolledState",function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var o=!1,i=!0,a={};Object.keys(t).forEach(function(n){e.props.hasOwnProperty(n)?i=!1:(o=!0,a[n]=t[n])}),!o||n&&!i||e.setState(ne(ne({},a),r))}}),Y(Ao(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return Ie(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,r=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:r}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,o=t.keyEntities,i=t.draggingNodeKey,a=t.activeKey,l=t.dropLevelOffset,s=t.dropContainerKey,c=t.dropTargetKey,u=t.dropPosition,d=t.dragOverNodeKey,p=t.indent,f=this.props,h=f.prefixCls,m=f.className,v=f.style,y=f.showLine,b=f.focusable,x=f.tabIndex,w=void 0===x?0:x,S=f.selectable,C=f.showIcon,_=f.icon,k=f.switcherIcon,M=f.draggable,I=f.checkable,E=f.checkStrictly,O=f.disabled,$=f.motion,T=f.loadData,P=f.filterTreeNode,D=f.height,N=f.itemHeight,A=f.scrollWidth,R=f.virtual,j=f.titleRender,L=f.dropIndicatorRender,z=f.onContextMenu,B=f.onScroll,H=f.direction,F=f.rootClassName,V=f.rootStyle,W=Sd(this.props,{aria:!0,data:!0});M&&(e="object"===G(M)?M:"function"===typeof M?{nodeDraggable:M}:{});var U={prefixCls:h,selectable:S,showIcon:C,icon:_,switcherIcon:k,draggable:e,draggingNodeKey:i,checkable:I,checkStrictly:E,disabled:O,keyEntities:o,dropLevelOffset:l,dropContainerKey:s,dropTargetKey:c,dropPosition:u,dragOverNodeKey:d,indent:p,direction:H,dropIndicatorRender:L,loadData:T,filterTreeNode:P,titleRender:j,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return g.createElement(vSe.Provider,{value:U},g.createElement("div",{className:po()(h,m,F,Y(Y(Y({},"".concat(h,"-show-line"),y),"".concat(h,"-focused"),n),"".concat(h,"-active-focused"),null!==a)),style:V},g.createElement(c_e,gt({ref:this.listRef,prefixCls:h,style:v,data:r,disabled:O,selectable:S,checkable:!!I,motion:$,dragging:null!==i,height:D,itemHeight:N,virtual:R,focusable:b,focused:n,tabIndex:w,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:z,onScroll:B,scrollWidth:A},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o={prevProps:e};function i(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=kSe(e.fieldNames),o.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&(Ce(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=MSe(e.children)),n){o.treeData=n;var l=ESe(n,{fieldNames:a});o.keyEntities=ne(Y({},n_e,o_e),l.keyEntities)}var s,c=o.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?WSe(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=ne({},c);delete u[n_e];var d=[];Object.keys(u).forEach(function(e){var t=u[e];t.children&&t.children.length&&d.push(t.key)}),o.expandedKeys=d}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?WSe(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var p=ISe(n||t.treeData,o.expandedKeys||t.expandedKeys,a);o.flattenNodes=p}if((e.selectable&&(i("selectedKeys")?o.selectedKeys=FSe(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=FSe(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?s=VSe(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=VSe(e.defaultCheckedKeys)||{}:n&&(s=VSe(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var f=s,h=f.checkedKeys,g=void 0===h?[]:h,m=f.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var y=YSe(g,!0,c);g=y.checkedKeys,v=y.halfCheckedKeys}o.checkedKeys=g,o.halfCheckedKeys=v}return i("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(g.Component);Y(u_e,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:UCe,allowDrop:function(){return!0},expandAction:!1}),Y(u_e,"TreeNode",ASe);const d_e=u_e;const p_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var f_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:p_e}))};const h_e=g.forwardRef(f_e);const g_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var m_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:g_e}))};const v_e=g.forwardRef(m_e);const y_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var b_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:y_e}))};const x_e=g.forwardRef(b_e);const w_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var S_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:w_e}))};const C_e=g.forwardRef(S_e),__e=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`&:has(${t}-drop-indicator)`]:{position:"relative"},[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:a,[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},k_e=new xn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),M_e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),I_e=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Xe(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),E_e=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Ki(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Zi(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:k_e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:Xe(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},M_e(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},I_e(e,t)),{"&:hover":{backgroundColor:s},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${Xe(t.calc(i).div(2).equal())} !important`}})}},O_e=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=ep(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[E_e(e,a),n&&__e(a)].filter(Boolean)},$_e=dp("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:JSe(`${n}-checkbox`,e)},O_e(n,e),tx(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})});const T_e=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a="ltr"===i?"left":"right",l="ltr"===i?"right":"left",s={[a]:-n*o+4,[l]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=o+4}return g.createElement("div",{style:s,className:`${r}-drop-indicator`})};const P_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var D_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:P_e}))};const N_e=g.forwardRef(D_e);const A_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var R_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:A_e}))};const j_e=g.forwardRef(R_e);const L_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var z_e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:L_e}))};const B_e=g.forwardRef(z_e),H_e=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:a,switcherLoadingIcon:l}=e,{isLeaf:s,expanded:c,loading:u}=i;if(u)return g.isValidElement(l)?l:g.createElement(vd,{className:`${r}-switcher-loading-icon`});let d;if(a&&"object"===typeof a&&(d=a.showLeafIcon),s){if(!a)return null;if("boolean"!==typeof d&&d){const e="function"===typeof d?d(i):d,n=`${r}-switcher-line-custom-icon`;return g.isValidElement(e)?zx(e,{className:po()(null===(t=e.props)||void 0===t?void 0:t.className,n)}):e}return d?g.createElement(h_e,{className:`${r}-switcher-line-icon`}):g.createElement("span",{className:`${r}-switcher-leaf-line`})}const p=`${r}-switcher-icon`,f="function"===typeof o?o(i):o;return g.isValidElement(f)?zx(f,{className:po()(null===(n=f.props)||void 0===n?void 0:n.className,p)}):void 0!==f?f:a?c?g.createElement(j_e,{className:`${r}-switcher-line-icon`}):g.createElement(B_e,{className:`${r}-switcher-line-icon`}):g.createElement(N_e,{className:p})},F_e=g.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=g.useContext(qr),{prefixCls:l,className:s,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:p,blockNode:f=!1,children:h,checkable:m=!1,selectable:v=!0,draggable:y,motion:b,style:x}=e,w=r("tree",l),S=r(),C=null!==b&&void 0!==b?b:Object.assign(Object.assign({},_v(S)),{motionAppear:!1}),_=Object.assign(Object.assign({},e),{checkable:m,selectable:v,showIcon:c,motion:C,blockNode:f,showLine:Boolean(u),dropIndicatorRender:T_e}),[k,M,I]=$_e(w),[,E]=Gi(),O=E.paddingXS/2+((null===(n=E.Tree)||void 0===n?void 0:n.titleHeight)||E.controlHeightSM),$=g.useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||g.createElement(C_e,null)),e},[y]);return k(g.createElement(d_e,Object.assign({itemHeight:O,ref:t,virtual:i},_,{style:Object.assign(Object.assign({},null===a||void 0===a?void 0:a.style),x),prefixCls:w,className:po()({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:f,[`${w}-unselectable`]:!v,[`${w}-rtl`]:"rtl"===o},null===a||void 0===a?void 0:a.className,s,M,I),direction:o,checkable:m?g.createElement("span",{className:`${w}-checkbox-inner`}):m,selectable:v,switcherIcon:e=>g.createElement(H_e,{prefixCls:w,switcherIcon:d,switcherLoadingIcon:p,treeNodeProps:e,showLine:u}),draggable:$}),h))});const V_e=F_e;function W_e(e,t,n){const{key:r,children:o}=n;e.forEach(function(e){const i=e[r],a=e[o];!1!==t(i,e)&&W_e(a||[],t,n)})}function G_e(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=0;if(r&&r===o)return[r];if(!r||!o)return[];return W_e(t,e=>{if(2===l)return!1;if(function(e){return e===r||e===o}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)},kSe(i)),a}function U_e(e,t,n){const r=ee(t),o=[];return W_e(e,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(o.push(t),r.splice(n,1)),!!r.length},kSe(n)),o}var Y_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function q_e(e){const{isLeaf:t,expanded:n}=e;return t?g.createElement(h_e,null):n?g.createElement(v_e,null):g.createElement(x_e,null)}function X_e(e){let{treeData:t,children:n}=e;return t||MSe(n)}const K_e=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=Y_e(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=g.useRef(null),l=g.useRef(null),[s,c]=g.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[u,d]=g.useState(()=>(()=>{const{keyEntities:e}=ESe(X_e(i));let t;return t=n?Object.keys(e):r?WSe(i.expandedKeys||o||[],e):i.expandedKeys||o||[],t})());g.useEffect(()=>{"selectedKeys"in i&&c(i.selectedKeys)},[i.selectedKeys]),g.useEffect(()=>{"expandedKeys"in i&&d(i.expandedKeys)},[i.expandedKeys]);const{getPrefixCls:p,direction:f}=g.useContext(qr),{prefixCls:h,className:m,showIcon:v=!0,expandAction:y="click"}=i,b=Y_e(i,["prefixCls","className","showIcon","expandAction"]),x=p("tree",h),w=po()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===f},m);return g.createElement(V_e,Object.assign({icon:q_e,ref:t,blockNode:!0},b,{showIcon:v,expandAction:y,prefixCls:x,className:w,expandedKeys:u,selectedKeys:s,onSelect:(e,t)=>{var n;const{multiple:r,fieldNames:o}=i,{node:s,nativeEvent:d}=t,{key:p=""}=s,f=X_e(i),h=Object.assign(Object.assign({},t),{selected:!0}),g=(null===d||void 0===d?void 0:d.ctrlKey)||(null===d||void 0===d?void 0:d.metaKey),m=null===d||void 0===d?void 0:d.shiftKey;let v;r&&g?(v=e,a.current=p,l.current=v,h.selectedNodes=U_e(f,v,o)):r&&m?(v=Array.from(new Set([].concat(ee(l.current||[]),ee(G_e({treeData:f,expandedKeys:u,startKey:p,endKey:a.current,fieldNames:o}))))),h.selectedNodes=U_e(f,v,o)):(v=[p],a.current=p,l.current=v,h.selectedNodes=U_e(f,v,o)),null===(n=i.onSelect)||void 0===n||n.call(i,v,h),"selectedKeys"in i||c(v)},onExpand:(e,t)=>{var n;return"expandedKeys"in i||d(e),null===(n=i.onExpand)||void 0===n?void 0:n.call(i,e,t)}}))};const Z_e=g.forwardRef(K_e),Q_e=V_e;Q_e.DirectoryTree=Z_e,Q_e.TreeNode=ASe;const J_e=Q_e,eke=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?g.createElement("div",{className:`${r}-filter-dropdown-search`},g.createElement(vC,{prefix:g.createElement(HC,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},tke=e=>{const{keyCode:t}=e;t===bd.ENTER&&e.stopPropagation()},nke=g.forwardRef((e,t)=>g.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:tke,ref:t},e.children));const rke=nke;function oke(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[].concat(ee(t),ee(oke(r))))}),t}function ike(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function ake(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((e,t)=>{const l=String(e.value);if(e.children)return{key:l||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:ake({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const s=o?cCe:ECe,c={key:void 0!==e.value?l:t,label:g.createElement(g.Fragment,null,g.createElement(s,{checked:r.includes(l)}),g.createElement("span",null,e.text))};return i.trim()?"function"===typeof a?a(i,e)?c:null:ike(i,e.text)?c:null:c})}function lke(e){return e||[]}const ske=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:l,dropdownPrefixCls:s,columnKey:c,filterOnClose:u,filterMultiple:d,filterMode:p="menu",filterSearch:f=!1,filterState:h,triggerFilter:m,locale:v,children:y,getPopupContainer:b,rootClassName:x}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:S,filterDropdownProps:C={},filterDropdownOpen:_,filterDropdownVisible:k,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:I}=l,[E,O]=g.useState(!1),$=!(!h||!(null===(t=h.filteredKeys)||void 0===t?void 0:t.length)&&!h.forceFiltered),T=e=>{var t;O(e),null===(t=C.onOpenChange)||void 0===t||t.call(C,e),null===I||void 0===I||I(e),null===M||void 0===M||M(e)};const P=null!==(o=null!==(r=null!==(n=C.open)&&void 0!==n?n:_)&&void 0!==r?r:k)&&void 0!==o?o:E,D=null===h||void 0===h?void 0:h.filteredKeys,[N,A]=function(e){const t=g.useRef(e),n=Yx();return[()=>t.current,e=>{t.current=e,n()}]}(lke(D)),R=e=>{let{selectedKeys:t}=e;A(t)},j=(e,t)=>{let{node:n,checked:r}=t;R(d?{selectedKeys:e}:{selectedKeys:r&&n.key?[n.key]:[]})};g.useEffect(()=>{E&&R({selectedKeys:lke(D)})},[D]);const[L,z]=g.useState([]),B=e=>{z(e)},[H,F]=g.useState(""),V=e=>{const{value:t}=e.target;F(t)};g.useEffect(()=>{E||F("")},[E]);const W=e=>{const t=(null===e||void 0===e?void 0:e.length)?e:null;return null!==t||h&&h.filteredKeys?_e(t,null===h||void 0===h?void 0:h.filteredKeys,!0)?null:void m({column:l,key:c,filteredKeys:t}):null},G=()=>{T(!1),W(N())},U=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&W([]),t&&T(!1),F(""),A(w?(S||[]).map(e=>String(e)):[])},Y=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&T(!1),W(N())},q=po()({[`${s}-menu-without-submenu`]:(X=l.filters||[],!X.some(e=>{let{children:t}=e;return t}))});var X;const K=e=>{if(e.target.checked){const e=oke(null===l||void 0===l?void 0:l.filters).map(e=>String(e));A(e)}else A([])},Z=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(r.children=Z({filters:e.children})),r})},Q=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>Q(e)))||[]})};let J;const{direction:ee,renderEmpty:te}=g.useContext(qr);if("function"===typeof l.filterDropdown)J=l.filterDropdown({prefixCls:`${s}-custom`,setSelectedKeys:e=>R({selectedKeys:e}),selectedKeys:N(),confirm:Y,clearFilters:U,filters:l.filters,visible:P,close:()=>{T(!1)}});else if(l.filterDropdown)J=l.filterDropdown;else{const e=N()||[],t=()=>{var t,n;const r=null!==(t=null===te||void 0===te?void 0:te("Table.filter"))&&void 0!==t?t:g.createElement(RT,{image:RT.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(l.filters||[]).length)return r;if("tree"===p)return g.createElement(g.Fragment,null,g.createElement(eke,{filterSearch:f,value:H,onChange:V,tablePrefixCls:i,locale:v}),g.createElement("div",{className:`${i}-filter-dropdown-tree`},d?g.createElement(cCe,{checked:e.length===oke(l.filters).length,indeterminate:e.length>0&&e.length<oke(l.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:K},null!==(n=null===v||void 0===v?void 0:v.filterCheckall)&&void 0!==n?n:null===v||void 0===v?void 0:v.filterCheckAll):null,g.createElement(J_e,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:`${s}-menu`,onCheck:j,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Z({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:H.trim()?e=>"function"===typeof f?f(H,Q(e)):ike(H,e.title):void 0})));const o=ake({filters:l.filters||[],filterSearch:f,prefixCls:a,filteredKeys:N(),filterMultiple:d,searchValue:H}),c=o.every(e=>null===e);return g.createElement(g.Fragment,null,g.createElement(eke,{filterSearch:f,value:H,onChange:V,tablePrefixCls:i,locale:v}),c?r:g.createElement(NO,{selectable:!0,multiple:d,prefixCls:`${s}-menu`,className:q,onSelect:R,onDeselect:R,selectedKeys:e,getPopupContainer:b,openKeys:L,onOpenChange:B,items:o}))},n=()=>w?_e((S||[]).map(e=>String(e)),e,!0):0===e.length;J=g.createElement(g.Fragment,null,t(),g.createElement("div",{className:`${a}-dropdown-btns`},g.createElement(rk,{type:"link",size:"small",disabled:n(),onClick:()=>U()},v.filterReset),g.createElement(rk,{type:"primary",size:"small",onClick:G},v.filterConfirm)))}l.filterDropdown&&(J=g.createElement(hO,{selectable:void 0},J)),J=g.createElement(rke,{className:`${a}-dropdown`},J);const ne=IT({trigger:["click"],placement:"rtl"===ee?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"===typeof l.filterIcon?l.filterIcon($):l.filterIcon?l.filterIcon:g.createElement(GCe,null),g.createElement("span",{role:"button",tabIndex:-1,className:po()(`${a}-trigger`,{active:$}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:b},Object.assign(Object.assign({},C),{rootClassName:po()(x,C.rootClassName),open:P,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==D&&A(lke(D)),T(e),e||l.filterDropdown||!u||G())},popupRender:()=>"function"===typeof(null===C||void 0===C?void 0:C.dropdownRender)?C.dropdownRender(J):J}));return g.createElement("div",{className:`${a}-column`},g.createElement("span",{className:`${i}-column-title`},y),g.createElement(d$,Object.assign({},ne)))},cke=(e,t,n)=>{let r=[];return(e||[]).forEach((e,o)=>{var i;const a=HCe(o,n),l=void 0!==e.filterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(i=null===t||void 0===t?void 0:t.map(String))&&void 0!==i?i:t),r.push({column:e,key:BCe(e,a),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:BCe(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(ee(r),ee(cke(e.children,t,a))))}),r};function uke(e,t,n,r,o,i,a,l,s){return n.map((n,c)=>{const u=HCe(c,l),{filterOnClose:d=!0,filterMultiple:p=!0,filterMode:f,filterSearch:h}=n;let m=n;if(m.filters||m.filterDropdown){const l=BCe(m,u),c=r.find(e=>{let{key:t}=e;return l===t});m=Object.assign(Object.assign({},m),{title:r=>g.createElement(ske,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:l,filterState:c,filterOnClose:d,filterMultiple:p,filterMode:f,filterSearch:h,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:s},FCe(n.title,r))})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:uke(e,t,m.children,r,o,i,a,u,s)})),m})}const dke=e=>{const t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:o}=e;const i=n,{filters:a,filterDropdown:l}=o;if(l)t[i]=r||null;else if(Array.isArray(r)){const e=oke(a);t[i]=e.filter(e=>r.includes(String(e)))}else t[i]=null}),t},pke=(e,t,n)=>{const r=t.reduce((e,r)=>{const{column:{onFilter:o,filters:i},filteredKeys:a}=r;return o&&a&&a.length?e.map(e=>Object.assign({},e)).filter(e=>a.some(r=>{const a=oke(i),l=a.findIndex(e=>String(e)===String(r)),s=-1!==l?a[l]:r;return e[n]&&(e[n]=pke(e[n],t,n)),o(s,e)})):e},e);return r},fke=e=>e.flatMap(e=>"children"in e?[e].concat(ee(fke(e.children||[]))):[e]),hke=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e,s=(Pn("Table"),g.useMemo(()=>fke(r||[]),[r])),[c,u]=g.useState(()=>cke(s,!0)),d=g.useMemo(()=>{const e=cke(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1}),t){const e=(s||[]).map((e,t)=>BCe(e,HCe(t)));return c.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{const n=s[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[s,c]),p=g.useMemo(()=>dke(d),[d]),f=e=>{const t=d.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),u(t),o(dke(t),t)};return[e=>uke(t,n,e,d,a,f,i,void 0,l),d,p]},gke=(e,t,n)=>{const r=g.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function l(e){e.forEach((e,r)=>{const o=n(e,r);a.set(o,e),e&&"object"===typeof e&&t in e&&l(e[t]||[])})}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]};var mke=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const vke=10;const yke=function(e,t,n){const r=n&&"object"===typeof n?n:{},{total:o=0}=r,i=mke(r,["total"]),[a,l]=(0,g.useState)(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:vke})),s=IT(a,i,{total:o>0?o:e}),c=Math.ceil((o||e)/s.pageSize);s.current>c&&(s.current=c||1);const u=(e,t)=>{l({current:null!==e&&void 0!==e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,r)=>{var o;n&&(null===(o=n.onChange)||void 0===o||o.call(n,e,r)),u(e,r),t(e,r||(null===s||void 0===s?void 0:s.pageSize))}}),u]};const bke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var xke=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:bke}))};const wke=g.forwardRef(xke);const Ske={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var Cke=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:Ske}))};const _ke=g.forwardRef(Cke),kke="ascend",Mke="descend",Ike=e=>"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple,Eke=e=>"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare,Oke=(e,t,n)=>{let r=[];const o=(e,t)=>{r.push({column:e,key:BCe(e,t),multiplePriority:Ike(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=HCe(i,n);e.children?("sortOrder"in e&&o(e,a),r=[].concat(ee(r),ee(Oke(e.children,t,a)))):e.sorter&&("sortOrder"in e?o(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:BCe(e,a),multiplePriority:Ike(e),sortOrder:e.defaultSortOrder}))}),r},$ke=(e,t,n,r,o,i,a,l)=>{const s=(t||[]).map((t,s)=>{const c=HCe(s,l);let u=t;if(u.sorter){const l=u.sortDirections||o,s=void 0===u.showSorterTooltip?a:u.showSorterTooltip,d=BCe(u,c),p=n.find(e=>{let{key:t}=e;return t===d}),f=p?p.sortOrder:null,h=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(l,f);let m;if(t.sortIcon)m=t.sortIcon({sortOrder:f});else{const t=l.includes(kke)&&g.createElement(_ke,{className:po()(`${e}-column-sorter-up`,{active:f===kke})}),n=l.includes(Mke)&&g.createElement(wke,{className:po()(`${e}-column-sorter-down`,{active:f===Mke})});m=g.createElement("span",{className:po()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},g.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:v,triggerAsc:y,triggerDesc:b}=i||{};let x=v;h===Mke?x=b:h===kke&&(x=y);const w="object"===typeof s?Object.assign({title:x},s):{title:x};u=Object.assign(Object.assign({},u),{className:po()(u.className,{[`${e}-column-sort`]:f}),title:n=>{const r=`${e}-column-sorters`,o=g.createElement("span",{className:`${e}-column-title`},FCe(t.title,n)),i=g.createElement("div",{className:r},o,m);return s?"boolean"!==typeof s&&"sorter-icon"===(null===s||void 0===s?void 0:s.target)?g.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},o,g.createElement(aS,Object.assign({},w),m)):g.createElement(aS,Object.assign({},w),i):i},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},a=i.onClick,l=i.onKeyDown;i.onClick=e=>{r({column:t,key:d,sortOrder:h,multiplePriority:Ike(t)}),null===a||void 0===a||a(e)},i.onKeyDown=e=>{e.keyCode===bd.ENTER&&(r({column:t,key:d,sortOrder:h,multiplePriority:Ike(t)}),null===l||void 0===l||l(e))};const s=((e,t)=>{const n=FCe(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),c=null===s||void 0===s?void 0:s.toString();return f&&(i["aria-sort"]="ascend"===f?"ascending":"descending"),i["aria-label"]=c||"",i.className=po()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!==s&&void 0!==s?s:"").toString()),i}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:$ke(e,u.children,n,r,o,i,a,c)})),u});return s},Tke=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Pke=e=>{const t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(Tke);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},Tke(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Dke=(e,t,n)=>{const r=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),i=r.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return Eke(t)&&n});return i.length?o.sort((e,t)=>{for(let n=0;n<i.length;n+=1){const r=i[n],{column:{sorter:o},sortOrder:a}=r,l=Eke(o);if(l&&a){const n=l(e,t,a);if(0!==n)return a===kke?n:-n}}return 0}).map(e=>{const r=e[n];return r?Object.assign(Object.assign({},e),{[n]:Dke(r,t,n)}):e}):o},Nke=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[l,s]=g.useState(()=>Oke(n,!0)),c=(e,t)=>{const n=[];return e.forEach((e,r)=>{const o=HCe(r,t);if(n.push(BCe(e,o)),Array.isArray(e.children)){const t=c(e.children,o);n.push.apply(n,ee(t))}}),n},u=g.useMemo(()=>{let e=!0;const t=Oke(n,!1);if(!t.length){const e=c(n);return l.filter(t=>{let{key:n}=t;return e.includes(n)})}const r=[];function o(t){e?r.push(t):r.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach(t=>{null===i?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),o(t))}),r},[n,l]),d=g.useMemo(()=>{var e,t;const n=u.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}},[u]),p=e=>{let t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(ee(u.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e],s(t),a(Pke(t),t)};return[e=>$ke(t,e,u,p,r,o,i),u,d,()=>Pke(u)]},Ake=(e,t)=>{const n=e.map(e=>{const n=Object.assign({},e);return n.title=FCe(e.title,t),"children"in n&&(n.children=Ake(n.children,t)),n});return n},Rke=e=>[g.useCallback(t=>Ake(t,e),[e])],jke=eSe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Lke=jke,zke=hSe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Bke=zke,Hke=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${Xe(n)} ${r} ${o}`,u=(e,r,o)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Xe(s(r).mul(-1).equal())}\n              ${Xe(s(s(o).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`\n            > ${t}-content,\n            > ${t}-header,\n            > ${t}-body,\n            > ${t}-summary\n          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n                > tbody > tr > th,\n                > tbody > tr > td\n              ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Xe(s(a).mul(-1).equal())} ${Xe(s(s(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n                > tr${t}-expanded-row,\n                > tr${t}-placeholder\n              `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Xe(n)} 0 ${Xe(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Fke=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Xi),{wordBreak:"keep-all",[`\n          &${t}-cell-fix-left-last,\n          &${t}-cell-fix-right-first\n        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Vke=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n          &:hover > th,\n          &:hover > td,\n        ":{background:e.colorBgContainer}}}}},Wke=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:h,expandIconMarginTop:g,expandIconSize:m,expandIconHalfInner:v,expandIconScale:y,calc:b}=e,x=`${Xe(o)} ${a} ${l}`,w=b(h).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},ea(e)),{position:"relative",float:"left",width:m,height:m,color:"inherit",lineHeight:Xe(m),background:s,border:x,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:w,insetInlineStart:w,height:o},"&::after":{top:w,bottom:w,insetInlineStart:v,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Xe(b(d).mul(-1).equal())} ${Xe(b(p).mul(-1).equal())}`,padding:`${Xe(d)} ${Xe(p)}`}}}},Gke=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:m,colorIcon:v,colorPrimary:y,tableHeaderFilterActiveBg:b,colorTextDisabled:x,tableFilterDropdownBg:w,tableFilterDropdownHeight:S,controlItemBgHover:C,controlItemBgActive:_,boxShadowSecondary:k,filterDropdownMenuBg:M,calc:I}=e,E=`${n}-dropdown`,O=`${t}-filter-dropdown`,$=`${n}-tree`,T=`${Xe(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(a).mul(-1).equal(),marginInline:`${Xe(a)} ${Xe(I(h).div(2).mul(-1).equal())}`,padding:`0 ${Xe(a)}`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:v,background:b},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[O]:Object.assign(Object.assign({},Ki(e)),{minWidth:o,backgroundColor:w,borderRadius:g,boxShadow:k,overflow:"hidden",[`${E}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:M,"&:empty::after":{display:"block",padding:`${Xe(l)} 0`,color:x,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${O}-tree`]:{paddingBlock:`${Xe(l)} 0`,paddingInline:l,[$]:{padding:0},[`${$}-treenode ${$}-node-content-wrapper:hover`]:{backgroundColor:C},[`${$}-treenode-checkbox-checked ${$}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${O}-search`]:{padding:l,borderBottom:T,"&-input":{input:{minWidth:i},[r]:{color:x}}},[`${O}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${O}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Xe(I(l).sub(c).equal())} ${Xe(l)}`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${O}, ${O}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Uke=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,c=r;return{[`${t}-wrapper`]:{[`\n        ${t}-cell-fix-left,\n        ${t}-cell-fix-right\n      `]:{position:"sticky !important",zIndex:i,background:a},[`\n        ${t}-cell-fix-left-first::after,\n        ${t}-cell-fix-left-last::after\n      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n        ${t}-cell-fix-right-first::after,\n        ${t}-cell-fix-right-last::after\n      `]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n          ${t}-cell-fix-left-first::after,\n          ${t}-cell-fix-left-last::after\n        `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n          ${t}-cell-fix-right-first::after,\n          ${t}-cell-fix-right-last::after\n        `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[`\n        ${t}-cell-fix-left-first::after,\n        ${t}-cell-fix-left-last::after,\n        ${t}-cell-fix-right-first::after,\n        ${t}-cell-fix-right-last::after\n      `]:{boxShadow:"none"}}}}},Yke=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${Xe(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},qke=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Xe(n)} ${Xe(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${Xe(n)} ${Xe(n)}`}}}}},Xke=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Kke=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(o).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(o).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`\n        table tr th${t}-selection-column,\n        table tr td${t}-selection-column,\n        ${t}-selection-column\n      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:Xe(h(f).div(4).equal()),[r]:{color:l,fontSize:o,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},Zke=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(e,o,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n        ${t}-title,\n        ${t}-footer,\n        ${t}-cell,\n        ${t}-thead > tr > th,\n        ${t}-tbody > tr > th,\n        ${t}-tbody > tr > td,\n        tfoot > tr > th,\n        tfoot > tr > td\n      `]:{padding:`${Xe(o)} ${Xe(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Xe(r(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Xe(r(o).mul(-1).equal())} ${Xe(r(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Xe(r(o).mul(-1).equal()),marginInline:`${Xe(r(n).sub(i).equal())} ${Xe(r(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Xe(r(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Qke=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n          &${t}-cell-fix-left:hover,\n          &${t}-cell-fix-right:hover\n        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Jke=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:u,tableBorderColor:d}=e,p=`${Xe(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Xe(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},eMe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${Xe(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Xe(o(n).mul(-1).equal())} 0 ${r}`}}}},tMe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${Xe(r)} ${o} ${i}`,s=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n            & > ${t}-row, \n            & > div:not(${t}-row) > ${t}-row\n          `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Xe(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},nMe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:m,tableFooterBg:v,calc:y}=e,b=`${Xe(a)} ${l} ${s}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},Ki(e)),{fontSize:c,background:u,borderRadius:`${Xe(d)} ${Xe(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Xe(d)} ${Xe(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n          ${t}-cell,\n          ${t}-thead > tr > th,\n          ${t}-tbody > tr > th,\n          ${t}-tbody > tr > td,\n          tfoot > tr > th,\n          tfoot > tr > td\n        `]:{position:"relative",padding:`${Xe(r)} ${Xe(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Xe(r)} ${Xe(o)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:b,[`\n              > ${t}-wrapper:only-child,\n              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n            `]:{[t]:{marginBlock:Xe(y(r).mul(-1).equal()),marginInline:`${Xe(y(i).sub(o).equal())}\n                ${Xe(y(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:h,borderBottom:b,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${Xe(r)} ${Xe(o)}`,color:m,background:v}})}},rMe=dp("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:m,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:b,borderColor:x,footerBg:w,footerColor:S,headerBorderRadius:C,cellFontSize:_,cellFontSizeMD:k,cellFontSizeSM:M,headerSplitColor:I,fixedHeaderSortActiveBg:E,headerFilterHoverBg:O,filterDropdownBg:$,expandIconBg:T,selectionColumnWidth:P,stickyScrollBarBg:D,calc:N}=e,A=ep(e,{tableFontSize:_,tableBg:r,tableRadius:C,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:m,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:b,tableBorderColor:x,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:S,tableFooterBg:w,tableHeaderCellSplitColor:I,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:E,tableHeaderFilterActiveBg:O,tableFilterDropdownBg:$,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:N(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:M,tableSelectionColumnWidth:P,tableExpandIconBg:T,tableExpandColumnWidth:N(o).add(N(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:D,tableScrollThumbBgHover:t,tableScrollBg:n});return[nMe(A),Yke(A),eMe(A),Qke(A),Gke(A),Hke(A),qke(A),Wke(A),eMe(A),Vke(A),Kke(A),Uke(A),Jke(A),Fke(A),Zke(A),Xke(A),tMe(A)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:h,fontSize:g,fontSizeSM:m,lineHeight:v,lineWidth:y,colorIcon:b,colorIconHover:x,opacityLoading:w,controlInteractiveSize:S}=e,C=new Zn(o).onBackground(n).toHexString(),_=new Zn(i).onBackground(n).toHexString(),k=new Zn(t).onBackground(n).toHexString(),M=new Zn(b),I=new Zn(x),E=S/2-y,O=2*E+3*y;return{headerBg:k,headerColor:r,headerSortActiveBg:C,headerSortHoverBg:_,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:k,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-3*y)/2-Math.ceil((1.4*m-3*y)/2),headerIconColor:M.clone().setA(M.a*w).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*w).toRgbString(),expandIconHalfInner:E,expandIconSize:O,expandIconScale:S/O}},{unitless:{expandIconScale:!0}}),oMe=[],iMe=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,size:s,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:p,rowSelection:f,rowKey:h="key",rowClassName:m,columns:v,children:y,childrenColumnName:b,onChange:x,getPopupContainer:w,loading:S,expandIcon:C,expandable:_,expandedRowRender:k,expandIconColumnIndex:M,indentSize:I,scroll:E,sortDirections:O,locale:$,showSorterTooltip:T={target:"full-header"},virtual:P}=e;Pn("Table");const D=g.useMemo(()=>v||Nwe(y),[v,y]),N=g.useMemo(()=>D.some(e=>e.responsive),[D]),A=qx(N),R=g.useMemo(()=>{const e=new Set(Object.keys(A).filter(e=>A[e]));return D.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[D,A]),j=Fp(e,["className","style","columns"]),{locale:L=Bn,direction:z,table:B,renderEmpty:H,getPrefixCls:F,getPopupContainer:V}=g.useContext(qr),W=Vp(s),G=Object.assign(Object.assign({},L.Table),$),U=d||oMe,Y=F("table",o),q=F("dropdown",u),[,X]=Gi(),K=Rd(Y),[Z,Q,J]=rMe(Y,K),ee=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:M},_),{expandIcon:null!==(n=null===_||void 0===_?void 0:_.expandIcon)&&void 0!==n?n:null===(r=null===B||void 0===B?void 0:B.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:te="children"}=ee,ne=g.useMemo(()=>U.some(e=>null===e||void 0===e?void 0:e[te])?"nest":k||(null===_||void 0===_?void 0:_.expandedRowRender)?"row":null,[U]),re={body:g.useRef(null)},oe=function(e){return(t,n)=>{const r=t.querySelector(`.${e}-container`);let o=n;if(r){const e=getComputedStyle(r);o=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return o}}(Y),ie=g.useRef(null),ae=g.useRef(null);RCe(t,()=>Object.assign(Object.assign({},ae.current),{nativeElement:ie.current}));const le=g.useMemo(()=>"function"===typeof h?h:e=>null===e||void 0===e?void 0:e[h],[h]),[se]=gke(U,te,le),ce={},ue=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var r,o,i,a;const l=Object.assign(Object.assign({},ce),e);n&&(null===(r=ce.resetPagination)||void 0===r||r.call(ce),(null===(o=l.pagination)||void 0===o?void 0:o.current)&&(l.pagination.current=1),p&&(null===(i=p.onChange)||void 0===i||i.call(p,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),E&&!1!==E.scrollToFirstRowOnChange&&re.body.current&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=LCe(i),l=Date.now(),s=()=>{const t=Date.now()-l,n=function(e,t,n,r){const o=n-t;return(e/=r/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(t>o?o:t,a,e,o);jCe(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<o?vi(s):"function"===typeof r&&r()};vi(s)}(0,{getContainer:()=>re.body.current}),null===x||void 0===x||x(l.pagination,l.filters,l.sorter,{currentDataSource:pke(Dke(U,l.sorterStates,te),l.filterStates,te),action:t})},[de,pe,fe,he]=Nke({prefixCls:Y,mergedColumns:R,onSorterChange:(e,t)=>{ue({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:G,showSorterTooltip:T}),ge=g.useMemo(()=>Dke(U,pe,te),[U,pe]);ce.sorter=he(),ce.sorterStates=pe;const[me,ve,ye]=hke({prefixCls:Y,locale:G,dropdownPrefixCls:q,mergedColumns:R,onFilterChange:(e,t)=>{ue({filters:e,filterStates:t},"filter",!0)},getPopupContainer:w||V,rootClassName:po()(a,K)}),be=pke(ge,ve,te);ce.filters=ye,ce.filterStates=ve;const xe=g.useMemo(()=>{const e={};return Object.keys(ye).forEach(t=>{null!==ye[t]&&(e[t]=ye[t])}),Object.assign(Object.assign({},fe),{filters:e})},[fe,ye]),[we]=Rke(xe),[Se,Ce]=yke(be.length,(e,t)=>{ue({pagination:Object.assign(Object.assign({},ce.pagination),{current:e,pageSize:t})},"paginate")},p);ce.pagination=!1===p?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"===typeof t?t:{};return Object.keys(r).forEach(t=>{const r=e[t];"function"!==typeof r&&(n[t]=r)}),n}(Se,p),ce.resetPagination=Ce;const _e=g.useMemo(()=>{if(!1===p||!Se.pageSize)return be;const{current:e=1,total:t,pageSize:n=vke}=Se;return be.length<t?be.length>n?be.slice((e-1)*n,e*n):be:be.slice((e-1)*n,e*n)},[!!p,be,null===Se||void 0===Se?void 0:Se.current,null===Se||void 0===Se?void 0:Se.pageSize,null===Se||void 0===Se?void 0:Se.total]),[ke,Me]=ACe({prefixCls:Y,data:be,pageData:_e,getRowKey:le,getRecordByKey:se,expandType:ne,childrenColumnName:te,locale:G,getPopupContainer:w||V},f);ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||C||zCe(G),"nest"===ne&&void 0===ee.expandIconColumnIndex?ee.expandIconColumnIndex=f?1:0:ee.expandIconColumnIndex>0&&f&&(ee.expandIconColumnIndex-=1),"number"!==typeof ee.indentSize&&(ee.indentSize="number"===typeof I?I:15);const Ie=g.useCallback(e=>we(ke(me(de(e)))),[de,me,ke]);let Ee,Oe,$e;if(!1!==p&&(null===Se||void 0===Se?void 0:Se.total)){let e;e=Se.size?Se.size:"small"===W||"middle"===W?"small":void 0;const t=t=>g.createElement(bN,Object.assign({},Se,{className:po()(`${Y}-pagination ${Y}-pagination-${t}`,Se.className),size:e})),n="rtl"===z?"left":"right",{position:r}=Se;if(null!==r&&Array.isArray(r)){const e=r.find(e=>e.includes("top")),o=r.find(e=>e.includes("bottom")),i=r.every(e=>"none"===`${e}`);e||o||i||(Oe=t(n)),e&&(Ee=t(e.toLowerCase().replace("top",""))),o&&(Oe=t(o.toLowerCase().replace("bottom","")))}else Oe=t(n)}"boolean"===typeof S?$e={spinning:S}:"object"===typeof S&&($e=Object.assign({spinning:!0},S));const Te=po()(J,K,`${Y}-wrapper`,null===B||void 0===B?void 0:B.className,{[`${Y}-wrapper-rtl`]:"rtl"===z},i,a,Q),Pe=Object.assign(Object.assign({},null===B||void 0===B?void 0:B.style),l),De="undefined"!==typeof(null===$||void 0===$?void 0:$.emptyText)?$.emptyText:(null===H||void 0===H?void 0:H("Table"))||g.createElement(jT,{componentName:"Table"}),Ne=P?Bke:Lke,Ae={},Re=g.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:r,paddingXS:o,paddingSM:i}=X,a=Math.floor(e*t);switch(W){case"middle":return 2*i+a+n;case"small":return 2*o+a+n;default:return 2*r+a+n}},[X,W]);return P&&(Ae.listItemHeight=Re),Z(g.createElement("div",{ref:ie,className:Te,style:Pe},g.createElement(NN,Object.assign({spinning:!1},$e),Ee,g.createElement(Ne,Object.assign({},Ae,j,{ref:ae,columns:R,direction:z,expandable:ee,prefixCls:Y,className:po()({[`${Y}-middle`]:"middle"===W,[`${Y}-small`]:"small"===W,[`${Y}-bordered`]:c,[`${Y}-empty`]:0===U.length},J,K,Q),data:_e,rowKey:le,rowClassName:(e,t,n)=>{let r;return r="function"===typeof m?po()(m(e,t,n)):po()(m),po()({[`${Y}-row-selected`]:Me.has(le(e,t))},r)},emptyText:De,internalHooks:Bxe,internalRefs:re,transformColumns:Ie,getContainerWidth:oe})),Oe)))},aMe=g.forwardRef(iMe),lMe=(e,t)=>{const n=g.useRef(0);return n.current+=1,g.createElement(aMe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},sMe=g.forwardRef(lMe);sMe.SELECTION_COLUMN=OCe,sMe.EXPAND_COLUMN=zxe,sMe.SELECTION_ALL=$Ce,sMe.SELECTION_INVERT=TCe,sMe.SELECTION_NONE=PCe,sMe.Column=gSe,sMe.ColumnGroup=mSe,sMe.Summary=swe;const cMe=sMe;const uMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};var dMe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:uMe}))};const pMe=g.forwardRef(dMe);function fMe(){return"function"===typeof BigInt}function hMe(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function gMe(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(r)}}function mMe(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function vMe(e){var t=String(e);if(mMe(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return null!==r&&void 0!==r&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&bMe(t)?t.length-t.indexOf(".")-1:0}function yMe(e){var t=String(e);if(mMe(e)){if(e>Number.MAX_SAFE_INTEGER)return String(fMe()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(fMe()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(vMe(t))}return gMe(t).fullStr}function bMe(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var xMe=function(){function e(t){if(ke(this,e),Y(this,"origin",""),Y(this,"negative",void 0),Y(this,"integer",void 0),Y(this,"decimal",void 0),Y(this,"decimalLen",void 0),Y(this,"empty",void 0),Y(this,"nan",void 0),hMe(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(mMe(n)&&(n=Number(n)),bMe(n="string"===typeof n?n:yMe(n))){var r=gMe(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return Ie(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"cal",value:function(t,n,r){var o=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(o),t.alignDecimal(o)).toString(),a=r(o),l=gMe(i),s=l.negativeStr,c=l.trimStr,u="".concat(s).concat(c.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);return n.isInvalidate()?this:this.cal(n,function(e,t){return e+t},function(e){return e})}},{key:"multi",value:function(t){var n=new e(t);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(e,t){return e*t},function(e){return 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":gMe("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),wMe=function(){function e(t){ke(this,e),Y(this,"origin",""),Y(this,"number",void 0),Y(this,"empty",void 0),hMe(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return Ie(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(vMe(this.number),vMe(n));return new e(r.toFixed(o))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var r=this.number*n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(vMe(this.number),vMe(n));return new e(r.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":yMe(this.number):this.origin}}]),e}();function SMe(e){return fMe()?new xMe(e):new wMe(e)}function CMe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=gMe(e),i=o.negativeStr,a=o.integerStr,l=o.decimalStr,s="".concat(t).concat(l),c="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!r?CMe(SMe(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,r):0===n?c:"".concat(c).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===s?c:"".concat(c).concat(s)}const _Me=SMe;const kMe=function(){var e=Q((0,g.useState)(!1),2),t=e[0],n=e[1];return rt(function(){n(Cf())},[]),t};function MMe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,l=g.useRef(),s=g.useRef([]),c=g.useRef();c.current=a;var u=function(){clearTimeout(l.current)},d=function(e,t){e.preventDefault(),u(),c.current(t),l.current=setTimeout(function e(){c.current(t),l.current=setTimeout(e,200)},600)};if(g.useEffect(function(){return function(){u(),s.current.forEach(function(e){return vi.cancel(e)})}},[]),kMe())return null;var p="".concat(t,"-handler"),f=po()(p,"".concat(p,"-up"),Y({},"".concat(p,"-up-disabled"),o)),h=po()(p,"".concat(p,"-down"),Y({},"".concat(p,"-down-disabled"),i)),m=function(){return s.current.push(vi(u))},v={unselectable:"on",role:"button",onMouseUp:m,onMouseLeave:m};return g.createElement("div",{className:"".concat(p,"-wrap")},g.createElement("span",gt({},v,{onMouseDown:function(e){d(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:f}),n||g.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),g.createElement("span",gt({},v,{onMouseDown:function(e){d(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:h}),r||g.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function IMe(e){var t="number"===typeof e?yMe(e):gMe(e).fullStr;return t.includes(".")?gMe(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var EMe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],OMe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],$Me=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},TMe=function(e){var t=_Me(e);return t.isInvalidate()?null:t},PMe=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,l=e.step,s=void 0===l?1:l,c=e.defaultValue,u=e.value,d=e.disabled,p=e.readOnly,f=e.upHandler,h=e.downHandler,m=e.keyboard,v=e.changeOnWheel,y=void 0!==v&&v,b=e.controls,x=void 0===b||b,w=(e.classNames,e.stringMode),S=e.parser,C=e.formatter,_=e.precision,k=e.decimalSeparator,M=e.onChange,I=e.onInput,E=e.onPressEnter,O=e.onStep,$=e.changeOnBlur,T=void 0===$||$,P=e.domRef,D=Io(e,EMe),N="".concat(n,"-input"),A=g.useRef(null),R=Q(g.useState(!1),2),j=R[0],L=R[1],z=g.useRef(!1),B=g.useRef(!1),H=g.useRef(!1),F=Q(g.useState(function(){return _Me(null!==u&&void 0!==u?u:c)}),2),V=F[0],W=F[1];var U=g.useCallback(function(e,t){if(!t)return _>=0?_:Math.max(vMe(e),vMe(s))},[_,s]),q=g.useCallback(function(e){var t=String(e);if(S)return S(t);var n=t;return k&&(n=n.replace(k,".")),n.replace(/[^\w.-]+/g,"")},[S,k]),X=g.useRef(""),K=g.useCallback(function(e,t){if(C)return C(e,{userTyping:t,input:String(X.current)});var n="number"===typeof e?yMe(e):e;if(!t){var r=U(n,t);if(bMe(n)&&(k||r>=0))n=CMe(n,k||".",r)}return n},[C,U,k]),Z=Q(g.useState(function(){var e=null!==c&&void 0!==c?c:u;return V.isInvalidate()&&["string","number"].includes(G(e))?Number.isNaN(e)?"":e:K(V.toString(),!1)}),2),J=Z[0],ee=Z[1];function te(e,t){ee(K(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}X.current=J;var ne=g.useMemo(function(){return TMe(a)},[a,_]),re=g.useMemo(function(){return TMe(i)},[i,_]),oe=g.useMemo(function(){return!(!ne||!V||V.isInvalidate())&&ne.lessEquals(V)},[ne,V]),ie=g.useMemo(function(){return!(!re||!V||V.isInvalidate())&&V.lessEquals(re)},[re,V]),ae=function(e,t){var n=(0,g.useRef)(null);return[function(){try{var t=e.selectionStart,r=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(r);n.current={start:t,end:r,value:o,beforeTxt:i,afterTxt:a}}catch(vDe){}},function(){if(e&&n.current&&t)try{var r=e.value,o=n.current,i=o.beforeTxt,a=o.afterTxt,l=o.start,s=r.length;if(r.startsWith(i))s=i.length;else if(r.endsWith(a))s=r.length-n.current.afterTxt.length;else{var c=i[l-1],u=r.indexOf(c,l-1);-1!==u&&(s=u+1)}e.setSelectionRange(s,s)}catch(vDe){Ce(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(vDe.message))}}]}(A.current,j),le=Q(ae,2),se=le[0],ce=le[1],ue=function(e){return ne&&!e.lessEquals(ne)?ne:re&&!re.lessEquals(e)?re:null},de=function(e){return!ue(e)},pe=function(e,t){var n,r=e,o=de(r)||r.isEmpty();if(r.isEmpty()||t||(r=ue(r)||r,o=!0),!p&&!d&&o){var i=r.toString(),a=U(i,t);return a>=0&&(r=_Me(CMe(i,".",a)),de(r)||(r=_Me(CMe(i,".",a,!0)))),r.equals(V)||(n=r,void 0===u&&W(n),null===M||void 0===M||M(r.isEmpty()?null:$Me(w,r)),void 0===u&&te(r,t)),r}return V},fe=function(){var e=(0,g.useRef)(0),t=function(){vi.cancel(e.current)};return(0,g.useEffect)(function(){return t},[]),function(n){t(),e.current=vi(function(){n()})}}(),he=function e(t){if(se(),X.current=t,ee(t),!B.current){var n=q(t),r=_Me(n);r.isNaN()||pe(r,!0)}null===I||void 0===I||I(t),fe(function(){var n=t;S||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)})},ge=function(e){var t;if(!(e&&oe||!e&&ie)){z.current=!1;var n=_Me(H.current?IMe(s):s);e||(n=n.negate());var r=(V||_Me(0)).add(n.toString()),o=pe(r,!1);null===O||void 0===O||O($Me(w,o),{offset:H.current?IMe(s):s,type:e?"up":"down"}),null===(t=A.current)||void 0===t||t.focus()}},me=function(e){var t,n=_Me(q(J));t=n.isNaN()?pe(V,e):pe(n,e),void 0!==u?te(V,!1):t.isNaN()||te(t,!1)};g.useEffect(function(){if(y&&j){var e=function(e){ge(e.deltaY<0),e.preventDefault()},t=A.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}});return nt(function(){V.isInvalidate()||te(V,!1)},[_,C]),nt(function(){var e=_Me(u);W(e);var t=_Me(q(J));e.equals(t)&&z.current&&!C||te(e,z.current)},[u]),nt(function(){C&&ce()},[J]),g.createElement("div",{ref:P,className:po()(n,r,Y(Y(Y(Y(Y({},"".concat(n,"-focused"),j),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),p),"".concat(n,"-not-a-number"),V.isNaN()),"".concat(n,"-out-of-range"),!V.isInvalidate()&&!de(V))),style:o,onFocus:function(){L(!0)},onBlur:function(){T&&me(!1),L(!1),z.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;z.current=!0,H.current=n,"Enter"===t&&(B.current||(z.current=!1),me(!1),null===E||void 0===E||E(e)),!1!==m&&!B.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(ge("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){z.current=!1,H.current=!1},onCompositionStart:function(){B.current=!0},onCompositionEnd:function(){B.current=!1,he(A.current.value)},onBeforeInput:function(){z.current=!0}},x&&g.createElement(MMe,{prefixCls:n,upNode:f,downNode:h,upDisabled:oe,downDisabled:ie,onStep:ge}),g.createElement("div",{className:"".concat(N,"-wrap")},g.createElement("input",gt({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:s},D,{ref:So(A,t),className:N,value:J,onChange:function(e){he(e.target.value)},disabled:d,readOnly:p}))))}),DMe=g.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=void 0===o?"rc-input-number":o,a=e.value,l=e.prefix,s=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,p=e.classNames,f=Io(e,OMe),h=g.useRef(null),m=g.useRef(null),v=g.useRef(null),y=function(e){v.current&&rC(v.current,e)};return g.useImperativeHandle(t,function(){return e=v.current,t={focus:y,nativeElement:h.current.nativeElement||m.current},"undefined"!==typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var r=e[n];return"function"===typeof r?r.bind(e):r}}):e;var e,t}),g.createElement(iC,{className:d,triggerFocus:y,prefixCls:i,value:a,disabled:n,style:r,prefix:l,suffix:s,addonAfter:u,addonBefore:c,classNames:p,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},g.createElement(PMe,gt({prefixCls:i,disabled:n,ref:v,domRef:m,className:null===p||void 0===p?void 0:p.input},f)))});const NMe=DMe,AMe=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i="lg"===t?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},RMe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:p,paddingInlineLG:f,colorIcon:h,motionDurationMid:g,handleHoverColor:m,handleOpacity:v,paddingInline:y,paddingBlock:b,handleBg:x,handleActiveBg:w,colorTextDisabled:S,borderRadiusSM:C,borderRadiusLG:_,controlWidth:k,handleBorderColor:M,filledHandleBg:I,lineHeightLG:E,calc:O}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),WS(e)),{display:"inline-block",width:k,margin:0,padding:0,borderRadius:o}),OS(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${Xe(n)} ${r} ${M}`}}})),AS(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${Xe(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:x}}})),BS(e,{[`${t}-handler-wrap`]:{background:x,[`${t}-handler-down`]:{borderBlockStart:`${Xe(n)} ${r} ${M}`}}})),PS(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:E,borderRadius:_,[`input${t}-input`]:{height:O(l).sub(O(n).mul(2)).equal(),padding:`${Xe(p)} ${Xe(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:O(s).sub(O(n).mul(2)).equal(),padding:`${Xe(d)} ${Xe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ki(e)),GS(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},TS(e)),jS(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{width:"100%",padding:`${Xe(b)} ${Xe(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),HS(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n              ${t}-handler-up-inner,\n              ${t}-handler-down-inner\n            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Xe(n)} ${r} ${M}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`\n              ${t}-handler-up-inner,\n              ${t}-handler-down-inner\n            `]:{color:m}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},AMe(e,"lg")),AMe(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n          ${t}-handler-up-disabled,\n          ${t}-handler-down-disabled\n        `]:{cursor:"not-allowed"},[`\n          ${t}-handler-up-disabled:hover &-handler-up-inner,\n          ${t}-handler-down-disabled:hover &-handler-down-inner\n        `]:{color:S}})}]},jMe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Xe(n)} 0`}},WS(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${Xe(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Xe(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},LMe=dp("InputNumber",e=>{const t=ep(e,CS(e));return[RMe(t),jMe(t),SS(t)]},e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",r=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},_S(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Zn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?r:0})},{unitless:{handleOpacity:!0},resetFont:!1});var zMe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const BMe=g.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=g.useContext(qr),o=g.useRef(null);g.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:u,addonAfter:d,prefix:p,suffix:f,bordered:h,readOnly:m,status:v,controls:y,variant:b}=e,x=zMe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),S=Rd(w),[C,_,k]=LMe(w,S),{compactSize:M,compactItemClassnames:I}=Dw(w,r);let E=g.createElement(pMe,{className:`${w}-handler-up-inner`}),O=g.createElement(KD,{className:`${w}-handler-down-inner`});const $="boolean"===typeof y?y:void 0;"object"===typeof y&&(E="undefined"===typeof y.upIcon?E:g.createElement("span",{className:`${w}-handler-up-inner`},y.upIcon),O="undefined"===typeof y.downIcon?O:g.createElement("span",{className:`${w}-handler-down-inner`},y.downIcon));const{hasFeedback:T,status:P,isFormItemInput:D,feedbackIcon:N}=g.useContext(Ob),A=fC(P,v),R=Vp(e=>{var t;return null!==(t=null!==l&&void 0!==l?l:M)&&void 0!==t?t:e}),j=g.useContext(no),L=null!==s&&void 0!==s?s:j,[z,B]=Pb("inputNumber",b,h),H=T&&g.createElement(g.Fragment,null,N),F=po()({[`${w}-lg`]:"large"===R,[`${w}-sm`]:"small"===R,[`${w}-rtl`]:"rtl"===r,[`${w}-in-form-item`]:D},_),V=`${w}-group`;return C(g.createElement(NMe,Object.assign({ref:o,disabled:L,className:po()(k,S,i,a,I),upHandler:E,downHandler:O,prefixCls:w,readOnly:m,controls:$,prefix:p,suffix:H||f,addonBefore:u&&g.createElement(jw,{form:!0,space:!0},u),addonAfter:d&&g.createElement(jw,{form:!0,space:!0},d),classNames:{input:F,variant:po()({[`${w}-${z}`]:B},pC(w,A,T)),affixWrapper:po()({[`${w}-affix-wrapper-sm`]:"small"===R,[`${w}-affix-wrapper-lg`]:"large"===R,[`${w}-affix-wrapper-rtl`]:"rtl"===r,[`${w}-affix-wrapper-without-controls`]:!1===y||L},_),wrapper:po()({[`${V}-rtl`]:"rtl"===r},_),groupWrapper:po()({[`${w}-group-wrapper-sm`]:"small"===R,[`${w}-group-wrapper-lg`]:"large"===R,[`${w}-group-wrapper-rtl`]:"rtl"===r,[`${w}-group-wrapper-${z}`]:B},pC(`${w}-group-wrapper`,A,T),_)}},x)))}),HMe=BMe;HMe._InternalPanelDoNotUseOrYouWillBeFired=e=>g.createElement(fa,{theme:{components:{InputNumber:{handleVisible:!0}}}},g.createElement(BMe,Object.assign({},e)));const FMe=HMe;const VMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};var WMe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:VMe}))};const GMe=g.forwardRef(WMe);const UMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};var YMe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:UMe}))};const qMe=g.forwardRef(YMe),{Option:XMe}=rN,{TextArea:KMe}=Ck,ZMe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),[i,a]=(0,g.useState)(!1),[l,s]=(0,g.useState)([]),[c,u]=(0,g.useState)({current:1,pageSize:10,total:0}),[d,p]=(0,g.useState)({}),f=(0,g.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.current,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.pageSize,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{a(!0);const o={page:e,size:t,...d,...n};console.log("\u8c03\u7528\u63a5\u53e3\u83b7\u53d6\u7533\u62a5\u9879\u76ee\u914d\u7f6e\u5217\u8868:",o);const i=await kE(o);if(console.log("\u63a5\u53e3\u54cd\u5e94:",i),0===i.code){var r;const e=(null===(r=i.data.content)||void 0===r?void 0:r.map(e=>({id:e.id,category:e.categoryDesc,content:e.secondary||"\u65e0",points:e.points,pointsType:1===e.isPositive?"\u52a0\u79ef\u5206":"\u51cf\u79ef\u5206",status:"1"===e.isActive?"\u542f\u7528":"\u7981\u7528",createTime:e.createTime?new Date(e.createTime).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(/\//g,"-"):"",originalData:e})))||[];s(e),u(e=>({...e,total:i.data.totalElements||0}))}}catch(o){console.error("\u83b7\u53d6\u7533\u62a5\u9879\u76ee\u914d\u7f6e\u5217\u8868\u5931\u8d25:",o),Hp.error("\u83b7\u53d6\u7533\u62a5\u9879\u76ee\u914d\u7f6e\u5217\u8868\u5931\u8d25")}finally{a(!1)}},[d]);(0,g.useEffect)(()=>{console.log("\u9875\u9762\u521d\u59cb\u5316\uff0c\u5f00\u59cb\u52a0\u8f7d\u6570\u636e"),f()},[]);const h=[{value:1,name:"\u515a\u7684\u5efa\u8bbe"},{value:2,name:"\u7ecf\u6d4e\u53d1\u5c55"},{value:3,name:"\u5e73\u5b89\u6cd5\u6cbb"},{value:4,name:"\u6c11\u751f\u670d\u52a1"},{value:5,name:"\u5931\u4fe1\u8fdd\u6cd5"}],m=[{title:"\u7c7b\u522b",dataIndex:"category",key:"category",render:e=>(0,EE.jsx)(uA,{color:"blue",children:e})},{title:"\u7c7b\u522b\u5185\u5bb9",dataIndex:"content",key:"content",ellipsis:!1,width:300},{title:"\u79ef\u5206",dataIndex:"points",key:"points",render:(e,t)=>(0,EE.jsxs)("span",{style:{color:"\u51cf\u79ef\u5206"===t.pointsType?"#ff4d4f":"#52c41a"},children:["\u51cf\u79ef\u5206"===t.pointsType?"-":"+",e]})},{title:"\u79ef\u5206\u7c7b\u578b",dataIndex:"pointsType",key:"pointsType",render:e=>(0,EE.jsx)(uA,{color:"\u51cf\u79ef\u5206"===e?"error":"success",children:e})},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:e=>(0,EE.jsx)(uA,{color:"\u542f\u7528"===e?"success":"default",children:e})},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime"},{title:"\u64cd\u4f5c",key:"action",render:(e,t)=>(0,EE.jsxs)(a$,{size:"middle",children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(GMe,{}),onClick:()=>v(t),children:"\u7f16\u8f91"}),(0,EE.jsx)(Lxe,{title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u9879\u76ee\u5417\uff1f",onConfirm:()=>y(t.id),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,EE.jsx)(rk,{type:"link",danger:!0,icon:(0,EE.jsx)(qMe,{}),children:"\u5220\u9664"})})]})}],v=t=>{o(t);const r=h.find(e=>e.name===t.category),i=r?r.value:t.category;e.setFieldsValue({...t,category:i}),n(!0)},y=async e=>{try{0===(await IE(e.toString())).code&&(Hp.success("\u5220\u9664\u6210\u529f"),f())}catch(t){console.error("\u5220\u9664\u7533\u62a5\u9879\u76ee\u914d\u7f6e\u5931\u8d25:",t),Hp.error("\u5220\u9664\u5931\u8d25")}};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u7533\u62a5\u9879\u76ee\u8bbe\u7f6e"}),(0,EE.jsx)("p",{className:"page-description",children:"\u914d\u7f6e\u79ef\u5206\u7533\u62a5\u7684\u9879\u76ee\u548c\u79ef\u5206\u89c4\u5219"})]}),(0,EE.jsxs)(zb,{children:[(0,EE.jsx)("div",{className:"table-actions",children:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Sf,{}),onClick:()=>{o(null),e.resetFields(),n(!0)},children:"\u65b0\u589e\u89c4\u5219"})}),(0,EE.jsx)(cMe,{columns:m,dataSource:l,rowKey:"id",loading:i,pagination:{current:c.current,pageSize:c.pageSize,total:c.total,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{u(t=>({...t,current:e.current,pageSize:e.pageSize})),f(e.current,e.pageSize)}})]}),(0,EE.jsx)(_R,{title:r?"\u7f16\u8f91\u7533\u62a5\u89c4\u5219":"\u65b0\u589e\u7533\u62a5\u89c4\u5219",open:t,onOk:async()=>{try{var t;const o=await e.validateFields();a(!0);const i=h.find(e=>e.value===o.category),l=i?i.name:"",s={id:null===r||void 0===r||null===(t=r.originalData)||void 0===t?void 0:t.id,category:o.category,categoryDesc:l,secondary:o.content||"",points:o.points,isPositive:"\u52a0\u79ef\u5206"===o.pointsType?1:0,isActive:"\u542f\u7528"===o.status?"1":"0"};0===(await ME(s)).code&&(Hp.success(r?"\u66f4\u65b0\u6210\u529f":"\u6dfb\u52a0\u6210\u529f"),n(!1),f())}catch(o){console.error("\u4fdd\u5b58\u7533\u62a5\u9879\u76ee\u914d\u7f6e\u5931\u8d25:",o),Hp.error("\u4fdd\u5b58\u5931\u8d25")}finally{a(!1)}},onCancel:()=>{n(!1),e.resetFields()},confirmLoading:i,width:600,children:(0,EE.jsxs)(bS,{form:e,layout:"vertical",initialValues:{status:"\u542f\u7528",pointsType:"\u52a0\u79ef\u5206"},children:[(0,EE.jsx)(bS.Item,{name:"category",label:"\u7c7b\u522b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u7c7b\u522b"}],children:(0,EE.jsx)(rN,{placeholder:"\u8bf7\u9009\u62e9\u7c7b\u522b",onChange:t=>{const n=h.find(e=>e.value===t),r="\u5931\u4fe1\u8fdd\u6cd5"===(n?n.name:"")?"\u51cf\u79ef\u5206":"\u52a0\u79ef\u5206";e.setFieldsValue({pointsType:r})},children:h.map(e=>(0,EE.jsx)(XMe,{value:e.value,children:e.name},e.value))})}),(0,EE.jsx)(bS.Item,{name:"content",label:"\u7c7b\u522b\u5185\u5bb9",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7c7b\u522b\u5185\u5bb9"}],children:(0,EE.jsx)(KMe,{rows:3,placeholder:"\u8bf7\u8f93\u5165\u7c7b\u522b\u5185\u5bb9\u63cf\u8ff0"})}),(0,EE.jsx)(bS.Item,{name:"points",label:"\u79ef\u5206",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u79ef\u5206\u6570\u91cf"}],children:(0,EE.jsx)(FMe,{min:1,max:1e3,placeholder:"\u8bf7\u8f93\u5165\u79ef\u5206\u6570\u91cf",style:{width:"100%"}})}),(0,EE.jsx)(bS.Item,{name:"pointsType",label:"\u79ef\u5206\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u79ef\u5206\u7c7b\u578b"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u79ef\u5206\u7c7b\u578b",disabled:!0,children:[(0,EE.jsx)(XMe,{value:"\u52a0\u79ef\u5206",children:"\u52a0\u79ef\u5206"}),(0,EE.jsx)(XMe,{value:"\u51cf\u79ef\u5206",children:"\u51cf\u79ef\u5206"})]})}),(0,EE.jsx)(bS.Item,{name:"status",label:"\u72b6\u6001",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u72b6\u6001"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",children:[(0,EE.jsx)(XMe,{value:"\u542f\u7528",children:"\u542f\u7528"}),(0,EE.jsx)(XMe,{value:"\u7981\u7528",children:"\u7981\u7528"})]})})]})})]})};var QMe=n(9223),JMe=n.n(QMe),eIe=n(199),tIe=n.n(eIe),nIe=n(6865),rIe=n.n(nIe),oIe=n(6556),iIe=n.n(oIe),aIe=n(7076),lIe=n.n(aIe),sIe=n(8988),cIe=n.n(sIe);Ixe().extend(cIe()),Ixe().extend(lIe()),Ixe().extend(JMe()),Ixe().extend(tIe()),Ixe().extend(rIe()),Ixe().extend(iIe()),Ixe().extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});var uIe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},dIe=function(e){return uIe[e]||e.split("_")[0]},pIe=function(){},fIe={getNow:function(){var e=Ixe()();return"function"===typeof e.tz?e.tz():e},getFixedDate:function(e){return Ixe()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return Ixe()().locale(dIe(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(dIe(e)).weekday(0)},getWeek:function(e,t){return t.locale(dIe(e)).week()},getShortWeekDays:function(e){return Ixe()().locale(dIe(e)).localeData().weekdaysMin()},getShortMonths:function(e){return Ixe()().locale(dIe(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(dIe(e)).format(n)},parse:function(e,t,n){for(var r=dIe(e),o=0;o<n.length;o+=1){var i=n[o],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],s=a.split("-")[1],c=Ixe()(l,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=c.add(u,"week");if(d.format("Wo")===s)return d}return pIe(),null}var p=Ixe()(a,i,!0).locale(r);if(p.isValid())return p}return null}}};const hIe=fIe;const gIe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};var mIe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:gIe}))};const vIe=g.forwardRef(mIe);const yIe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};var bIe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:yIe}))};const xIe=g.forwardRef(bIe);const wIe=g.createContext(null);var SIe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};const CIe=function(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,i=e.transitionName,a=e.getPopupContainer,l=e.children,s=e.range,c=e.placement,u=e.builtinPlacements,d=void 0===u?SIe:u,p=e.direction,f=e.visible,h=e.onClose,m=g.useContext(wIe).prefixCls,v="".concat(m,"-dropdown"),y=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(c,"rtl"===p);return g.createElement(ng,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:d,prefixCls:v,popupTransitionName:i,popup:t,popupAlign:o,popupVisible:f,popupClassName:po()(r,Y(Y({},"".concat(v,"-range"),s),"".concat(v,"-rtl"),"rtl"===p)),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(e){e||h()}},l)};function _Ie(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function kIe(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function MIe(e,t,n){var r=ee(e);return r[t]=n,r}function IIe(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}function EIe(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function OIe(e,t,n){var r=void 0!==n?n:t[t.length-1],o=t.find(function(t){return e[t]});return r!==o?e[o]:void 0}function $Ie(e){return IIe(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function TIe(e,t,n,r){var o=g.useMemo(function(){return e||function(e,r){var o=e;return t&&"date"===r.type?t(o,r.today):n&&"month"===r.type?n(o,r.locale):r.originNode}},[e,n,t]),i=g.useCallback(function(e,t){return o(e,ne(ne({},t),{},{range:r}))},[o,r]);return i}function PIe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Q(g.useState([!1,!1]),2),o=r[0],i=r[1],a=g.useMemo(function(){return o.map(function(r,o){if(r)return!0;var i=e[o];return!!i&&(!n[o]&&!i||!(!i||!t(i,{activeIndex:o})))})},[e,o,t,n]);return[a,function(e,t){i(function(n){return MIe(n,t,e)})}]}function DIe(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function NIe(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return g.useMemo(function(){return function(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,s=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,p=e.fieldQuarterFormat,f=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,m=e.dayFormat,v=e.cellDateFormat,y=DIe(t,n,r,o,i);return ne(ne({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:s||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:f||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||m||"D"})}(e,n,r,o,i,a)},[e,n,r,o,i,a])}function AIe(e,t,n){return null!==n&&void 0!==n?n:t.some(function(t){return e.includes(t)})}var RIe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function jIe(e){return e&&"string"===typeof e}function LIe(e,t,n,r){return[e,t,n,r].some(function(e){return void 0!==e})}function zIe(e,t,n,r,o){var i=t,a=n,l=r;if(e||i||a||l||o){if(e){var s,c,u,d=[i,a,l].some(function(e){return!1===e}),p=[i,a,l].some(function(e){return!0===e}),f=!!d||!p;i=null!==(s=i)&&void 0!==s?s:f,a=null!==(c=a)&&void 0!==c?c:f,l=null!==(u=l)&&void 0!==u?u:f}}else i=!0,a=!0,l=!0;return[i,a,l,o]}function BIe(e){var t=e.showTime,n=function(e){var t=IIe(e,RIe),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o="object"===G(o)?o.format:o),"time"===r&&(t.format=o),[t,o]}(e),r=Q(n,2),o=r[0],i=r[1],a=t&&"object"===G(t)?t:{},l=ne(ne({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),s=l.showMillisecond,c=l.showHour,u=l.showMinute,d=l.showSecond,p=Q(zIe(LIe(c,u,d,s),c,u,d,s),3);return c=p[0],u=p[1],d=p[2],[l,ne(ne({},l),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:s}),l.format,i]}function HIe(e,t,n,r,o){if("datetime"===e||"time"===e){for(var i=r,a=EIe(e,o,null),l=[t,n],s=0;s<l.length;s+=1){var c=kIe(l[s])[0];if(jIe(c)){a=c;break}}var u=i.showHour,d=i.showMinute,p=i.showSecond,f=i.showMillisecond,h=AIe(a,["a","A","LT","LLL","LTS"],i.use12Hours),g=LIe(u,d,p,f);g||(u=AIe(a,["H","h","k","LT","LLL"]),d=AIe(a,["m","LT","LLL"]),p=AIe(a,["s","LTS"]),f=AIe(a,["SSS"]));var m=Q(zIe(g,u,d,p,f),3);u=m[0],d=m[1],p=m[2];var v=t||DIe(u,d,p,f,h);return ne(ne({},i),{},{format:v,showHour:u,showMinute:d,showSecond:p,showMillisecond:f,use12Hours:h})}return null}function FIe(e,t,n){return!1===t?null:(t&&"object"===G(t)?t:{}).clearIcon||n||g.createElement("span",{className:"".concat(e,"-clear-btn")})}function VIe(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function WIe(e,t,n){return VIe(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function GIe(e,t,n){return VIe(t,n,function(){return e.getYear(t)===e.getYear(n)})}function UIe(e,t){return Math.floor(e.getMonth(t)/3)+1}function YIe(e,t,n){return VIe(t,n,function(){return GIe(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function qIe(e,t,n){return VIe(t,n,function(){return GIe(e,t,n)&&YIe(e,t,n)&&e.getDate(t)===e.getDate(n)})}function XIe(e,t,n){return VIe(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function KIe(e,t,n){return VIe(t,n,function(){return qIe(e,t,n)&&XIe(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function ZIe(e,t,n,r){return VIe(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return GIe(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function QIe(e,t,n,r,o){switch(o){case"date":return qIe(e,n,r);case"week":return ZIe(e,t.locale,n,r);case"month":return YIe(e,n,r);case"quarter":return function(e,t,n){return VIe(t,n,function(){return GIe(e,t,n)&&UIe(e,t)===UIe(e,n)})}(e,n,r);case"year":return GIe(e,n,r);case"decade":return WIe(e,n,r);case"time":return XIe(e,n,r);default:return KIe(e,n,r)}}function JIe(e,t,n,r){return!!(t&&n&&r)&&(e.isAfter(r,t)&&e.isAfter(n,r))}function eEe(e,t,n,r,o){return!!QIe(e,t,n,r,o)||e.isAfter(n,r)}function tEe(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?"function"===typeof o?o(e):n.locale.format(r.locale,e,o):""}function nEe(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach(function(t,i){r=n?e[t](r,e[o[i]](n)):e[t](r,0)}),r}function rEe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=g.useMemo(function(){var n=e?kIe(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return n}function oEe(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=void 0===o?"date":o,a=e.prefixCls,l=void 0===a?"rc-picker":a,s=e.styles,c=void 0===s?{}:s,u=e.classNames,d=void 0===u?{}:u,p=e.order,f=void 0===p||p,h=e.components,m=void 0===h?{}:h,v=e.inputRender,y=e.allowClear,b=e.clearIcon,x=e.needConfirm,w=e.multiple,S=e.format,C=e.inputReadOnly,_=e.disabledDate,k=e.minDate,M=e.maxDate,I=e.showTime,E=e.value,O=e.defaultValue,$=e.pickerValue,T=e.defaultPickerValue,P=rEe(E),D=rEe(O),N=rEe($),A=rEe(T),R="date"===i&&I?"datetime":i,j="time"===R||"datetime"===R,L=j||w,z=null!==x&&void 0!==x?x:j,B=Q(BIe(e),4),H=B[0],F=B[1],V=B[2],W=B[3],U=NIe(r,F),Y=g.useMemo(function(){return HIe(R,V,W,H,U)},[R,V,W,H,U]);var q=g.useMemo(function(){return ne(ne({},e),{},{prefixCls:l,locale:U,picker:i,styles:c,classNames:d,order:f,components:ne({input:v},m),clearIcon:FIe(l,y,b),showTime:Y,value:P,defaultValue:D,pickerValue:N,defaultPickerValue:A},null===t||void 0===t?void 0:t())},[e]),X=function(e,t,n){return g.useMemo(function(){var r=kIe(EIe(e,t,n)),o=r[0],i="object"===G(o)&&"mask"===o.type?o.format:null;return[r.map(function(e){return"string"===typeof e||"function"===typeof e?e:e.format}),i]},[e,t,n])}(R,U,S),K=Q(X,2),Z=K[0],J=K[1],ee=function(e,t,n){return!("function"!==typeof e[0]&&!n)||t}(Z,C,w),te=function(e,t,n,r,o){var i=Lo(function(i,a){return!(!n||!n(i,a))||!(!r||!e.isAfter(r,i)||QIe(e,t,r,i,a.type))||!(!o||!e.isAfter(i,o)||QIe(e,t,o,i,a.type))});return i}(n,r,_,k,M),re=function(e,t,n,r){var o=Lo(function(o,i){var a=ne({type:t},i);if(delete a.activeIndex,!e.isValidate(o)||n&&n(o,a))return!0;if(("date"===t||"time"===t)&&r){var l,s=i&&1===i.activeIndex?"end":"start",c=(null===(l=r.disabledTime)||void 0===l?void 0:l.call(r,o,s,{from:a.from}))||{},u=c.disabledHours,d=c.disabledMinutes,p=c.disabledSeconds,f=c.disabledMilliseconds,h=r.disabledHours,g=r.disabledMinutes,m=r.disabledSeconds,v=u||h,y=d||g,b=p||m,x=e.getHour(o),w=e.getMinute(o),S=e.getSecond(o),C=e.getMillisecond(o);if(v&&v().includes(x))return!0;if(y&&y(x).includes(w))return!0;if(b&&b(x,w).includes(S))return!0;if(f&&f(x,w,S).includes(C))return!0}return!1});return o}(n,i,te,Y);return[g.useMemo(function(){return ne(ne({},q),{},{needConfirm:z,inputReadOnly:ee,disabledDate:te})},[q,z,ee,te]),R,L,Z,J,re]}function iEe(e,t){var n=arguments.length>3?arguments[3]:void 0,r=function(e,t,n){var r=Q(Ho(t,{value:e}),2),o=r[0],i=r[1],a=g.useRef(e),l=g.useRef(),s=function(){vi.cancel(l.current)},c=Lo(function(){i(a.current),n&&o!==a.current&&n(a.current)}),u=Lo(function(e,t){s(),a.current=e,e||t?c():l.current=vi(c)});return g.useEffect(function(){return s},[]),[o,u]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every(function(e){return e})&&e,t||!1,n),o=Q(r,2),i=o[0],a=o[1];return[i,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!i||a(e,t.force)}]}function aEe(e){var t=g.useRef();return g.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function lEe(e,t){return g.useMemo(function(){return e||(t?(Ce(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=Q(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function sEe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=g.useRef(t);r.current=t,nt(function(){if(!e){var t=vi(function(){r.current(e)},n);return function(){vi.cancel(t)}}r.current(e)},[e])}function cEe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Q(g.useState(0),2),o=r[0],i=r[1],a=Q(g.useState(!1),2),l=a[0],s=a[1],c=g.useRef([]),u=g.useRef(null),d=g.useRef(null),p=function(e){u.current=e};return sEe(l||n,function(){l||(c.current=[],p(null))}),g.useEffect(function(){l&&c.current.push(o)},[l,o]),[l,function(e){s(e)},function(e){return e&&(d.current=e),d.current},o,i,function(n){var r=c.current,o=new Set(r.filter(function(e){return n[e]||t[e]})),i=0===r[r.length-1]?1:0;return o.size>=2||e[i]?null:i},c.current,p,function(e){return u.current===e}]}function uEe(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,10*r);case"decade":return e.addYear(n,100*r);default:return n}}var dEe=[];function pEe(e,t,n,r,o,i,a,l){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:dEe,c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:dEe,u=arguments.length>11?arguments[11]:void 0,d=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,f="time"===a,h=i||0,m=function(t){var r=e.getNow();return f&&(r=nEe(e,r)),s[t]||n[t]||r},v=Q(arguments.length>9&&void 0!==arguments[9]?arguments[9]:dEe,2),y=v[0],b=v[1],x=Q(Ho(function(){return m(0)},{value:y}),2),w=x[0],S=x[1],C=Q(Ho(function(){return m(1)},{value:b}),2),_=C[0],k=C[1],M=g.useMemo(function(){var t=[w,_][h];return f?t:nEe(e,t,c[h])},[f,w,_,h,e,c]),I=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,k][h])(n);var i=[w,_];i[h]=n,!u||QIe(e,t,w,i[0],a)&&QIe(e,t,_,i[1],a)||u(i,{source:o,range:1===h?"end":"start",mode:r})},E=g.useRef(null);return rt(function(){if(o&&!s[h]){var r=f?null:e.getNow();if(null!==E.current&&E.current!==h?r=[w,_][1^h]:n[h]?r=0===h?n[0]:function(n,r){if(l){var o={date:"month",week:"month",month:"year",quarter:"year"}[a];if(o&&!QIe(e,t,n,r,o))return uEe(e,a,r,-1);if("year"===a&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return uEe(e,a,r,-1)}return r}(n[0],n[1]):n[1^h]&&(r=n[1^h]),r){d&&e.isAfter(d,r)&&(r=d);var i=l?uEe(e,a,r,1):r;p&&e.isAfter(i,p)&&(r=l?uEe(e,a,p,-1):p),I(r,"reset")}}},[o,h,n[h]]),g.useEffect(function(){E.current=o?h:null},[o,h]),rt(function(){o&&s&&s[h]&&I(s[h],"reset")},[o,h]),[M,I]}function fEe(e,t){var n=g.useRef(e),r=Q(g.useState({}),2)[1],o=function(e){return e&&void 0!==t?t:n.current};return[o,function(e){n.current=e,r({})},o(!0)]}var hEe=[];function gEe(e,t,n){return[function(r){return r.map(function(r){return tEe(r,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var r=Math.max(t.length,n.length),o=-1,i=0;i<r;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!KIe(e,a,l)){o=i;break}}return[o<0,0!==o]}]}function mEe(e,t){return ee(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function vEe(e,t,n,r,o,i,a,l,s){var c=Q(Ho(i,{value:a}),2),u=c[0],d=c[1],p=u||hEe,f=function(e){var t=Q(fEe(e),2),n=t[0],r=t[1],o=Lo(function(){r(e)});return g.useEffect(function(){o()},[e]),[n,r]}(p),h=Q(f,2),m=h[0],v=h[1],y=Q(gEe(e,t,n),2),b=y[0],x=y[1],w=Lo(function(t){var n=ee(t);if(r)for(var i=0;i<2;i+=1)n[i]=n[i]||null;else o&&(n=mEe(n.filter(function(e){return e}),e));var a=Q(x(m(),n),2),s=a[0],c=a[1];if(!s&&(v(n),l)){var u=b(n);l(n,u,{range:c?"end":"start"})}});return[p,d,m,w,function(){s&&s(m())}]}function yEe(e,t,n,r,o,i,a,l,s,c){var u=e.generateConfig,d=e.locale,p=e.picker,f=e.onChange,h=e.allowEmpty,m=e.order,v=!i.some(function(e){return e})&&m,y=Q(gEe(u,d,a),2),b=y[0],x=y[1],w=Q(fEe(t),2),S=w[0],C=w[1],_=Lo(function(){C(t)});g.useEffect(function(){_()},[t]);var k=Lo(function(e){var r=null===e,a=ee(e||S());if(r)for(var l=Math.max(i.length,a.length),s=0;s<l;s+=1)i[s]||(a[s]=null);v&&a[0]&&a[1]&&(a=mEe(a,u)),o(a);var g=Q(a,2),y=g[0],w=g[1],C=!y,_=!w,k=!h||(!C||h[0])&&(!_||h[1]),M=!m||C||_||QIe(u,d,y,w,p)||u.isAfter(w,y),I=(i[0]||!y||!c(y,{activeIndex:0}))&&(i[1]||!w||!c(w,{from:y,activeIndex:1})),E=r||k&&M&&I;if(E){n(a);var O=Q(x(a,t),1)[0];f&&!O&&f(r&&a.every(function(e){return!e})?null:a,b(a))}return E}),M=Lo(function(e,t){var n=MIe(S(),e,r()[e]);C(n),t&&k()}),I=!l&&!s;return sEe(!I,function(){I&&(k(),o(t),_())},2),[M,k]}function bEe(e,t,n,r,o){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==r?r:!o&&("date"===e||"time"===e))}function xEe(){return[]}function wEe(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,s=e;s<=t;s+=l){var c=o.includes(s);c&&r||a.push({label:_Ie(s,i),value:s,disabled:c})}return a}function SEe(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},r=n.use12Hours,o=n.hourStep,i=void 0===o?1:o,a=n.minuteStep,l=void 0===a?1:a,s=n.secondStep,c=void 0===s?1:s,u=n.millisecondStep,d=void 0===u?100:u,p=n.hideDisabledOptions,f=n.disabledTime,h=n.disabledHours,m=n.disabledMinutes,v=n.disabledSeconds,y=g.useMemo(function(){return t||e.getNow()},[t,e]),b=g.useCallback(function(e){var t=(null===f||void 0===f?void 0:f(e))||{};return[t.disabledHours||h||xEe,t.disabledMinutes||m||xEe,t.disabledSeconds||v||xEe,t.disabledMilliseconds||xEe]},[f,h,m,v]),x=Q(g.useMemo(function(){return b(y)},[y,b]),4),w=x[0],S=x[1],C=x[2],_=x[3],k=g.useCallback(function(e,t,n,o){var a=wEe(0,23,i,p,e()),s=r?a.map(function(e){return ne(ne({},e),{},{label:_Ie(e.value%12||12,2)})}):a;return[s,function(e){return wEe(0,59,l,p,t(e))},function(e,t){return wEe(0,59,c,p,n(e,t))},function(e,t,n){return wEe(0,999,d,p,o(e,t,n),3)}]},[p,i,r,d,l,c]),M=Q(g.useMemo(function(){return k(w,S,C,_)},[k,w,S,C,_]),4),I=M[0],E=M[1],O=M[2],$=M[3];return[function(t,n){var r=function(){return I},o=E,i=O,a=$;if(n){var l=Q(b(n),4),s=l[0],c=l[1],u=l[2],d=l[3],p=Q(k(s,c,u,d),4),f=p[0];r=function(){return f},o=p[1],i=p[2],a=p[3]}var h=function(e,t,n,r,o,i){var a=e;function l(e,t,n){var r=i[e](a),o=n.find(function(e){return e.value===r});if(!o||o.disabled){var l=n.filter(function(e){return!e.disabled}),s=ee(l).reverse().find(function(e){return e.value<=r})||l[0];s&&(r=s.value,a=i[t](a,r))}return r}var s=l("getHour","setHour",t()),c=l("getMinute","setMinute",n(s)),u=l("getSecond","setSecond",r(s,c));return l("getMillisecond","setMillisecond",o(s,c,u)),a}(t,r,o,i,a,e);return h},I,E,O,$]}function CEe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,l=e.onNow,s=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,p=g.useContext(wIe),f=p.prefixCls,h=p.locale,m=p.button,v=void 0===m?"button":m,y=u.getNow(),b=Q(SEe(u,i,y),1)[0],x=null===r||void 0===r?void 0:r(t),w=d(y,{type:t}),S="".concat(f,"-now"),C="".concat(S,"-btn"),_=o&&g.createElement("li",{className:S},g.createElement("a",{className:po()(C,w&&"".concat(C,"-disabled")),"aria-disabled":w,onClick:function(){if(!w){var e=b(y);l(e)}}},"date"===n?h.today:h.now)),k=c&&g.createElement("li",{className:"".concat(f,"-ok")},g.createElement(v,{disabled:s,onClick:a},h.ok)),M=(_||k)&&g.createElement("ul",{className:"".concat(f,"-ranges")},_,k);return x||M?g.createElement("div",{className:"".concat(f,"-footer")},x&&g.createElement("div",{className:"".concat(f,"-footer-extra")},x),M):null}function _Ee(e,t,n){return function(r,o){var i=r.findIndex(function(r){return QIe(e,t,r,o,n)});if(-1===i)return[].concat(ee(r),[o]);var a=ee(r);return a.splice(i,1),a}}var kEe=g.createContext(null);function MEe(){return g.useContext(kEe)}function IEe(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,s=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,p=e.values,f=e.pickerValue,h=e.onSelect,g=e.prevIcon,m=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,b=r.getNow();return[{now:b,values:p,pickerValue:f,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:s,hoverValue:c,hoverRangeValue:u,onHover:d,locale:o,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:m,superPrevIcon:v,superNextIcon:y},b]}var EEe=g.createContext({});function OEe(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,l=e.titleFormat,s=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,p=void 0===d||d,f=e.disabledDate,h=MEe(),m=h.prefixCls,v=h.panelType,y=h.now,b=h.disabledDate,x=h.cellRender,w=h.onHover,S=h.hoverValue,C=h.hoverRangeValue,_=h.generateConfig,k=h.values,M=h.locale,I=h.onSelect,E=f||b,O="".concat(m,"-cell"),$=g.useContext(EEe).onCellDblClick,T=function(e){return k.some(function(t){return t&&QIe(_,M,e,t,v)})},P=[],D=0;D<t;D+=1){for(var N=[],A=void 0,R=function(){var e=o(r,D*n+j),t=null===E||void 0===E?void 0:E(e,{type:v});0===j&&(A=e,i&&N.push(i(A)));var a=!1,u=!1,d=!1;if(p&&C){var f=Q(C,2),h=f[0],b=f[1];a=JIe(_,h,b,e),u=QIe(_,M,e,h,v),d=QIe(_,M,e,b,v)}var k=l?tEe(e,{locale:M,format:l,generateConfig:_}):void 0,P=g.createElement("div",{className:"".concat(O,"-inner")},s(e));N.push(g.createElement("td",{key:j,title:k,className:po()(O,ne(Y(Y(Y(Y(Y(Y({},"".concat(O,"-disabled"),t),"".concat(O,"-hover"),(S||[]).some(function(t){return QIe(_,M,e,t,v)})),"".concat(O,"-in-range"),a&&!u&&!d),"".concat(O,"-range-start"),u),"".concat(O,"-range-end"),d),"".concat(m,"-cell-selected"),!C&&"week"!==v&&T(e)),c(e))),onClick:function(){t||I(e)},onDoubleClick:function(){!t&&$&&$()},onMouseEnter:function(){t||null===w||void 0===w||w(e)},onMouseLeave:function(){t||null===w||void 0===w||w(null)}},x?x(e,{prefixCls:m,originNode:P,today:y,type:v,locale:M}):P))},j=0;j<n;j+=1)R();P.push(g.createElement("tr",{key:D,className:null===a||void 0===a?void 0:a(A)},N))}return g.createElement("div",{className:"".concat(m,"-body")},g.createElement("table",{className:"".concat(m,"-content")},u&&g.createElement("thead",null,g.createElement("tr",null,u)),g.createElement("tbody",null,P)))}var $Ee={visibility:"hidden"};const TEe=function(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,i=e.getEnd,a=e.children,l=MEe(),s=l.prefixCls,c=l.prevIcon,u=void 0===c?"\u2039":c,d=l.nextIcon,p=void 0===d?"\u203a":d,f=l.superPrevIcon,h=void 0===f?"\xab":f,m=l.superNextIcon,v=void 0===m?"\xbb":m,y=l.minDate,b=l.maxDate,x=l.generateConfig,w=l.locale,S=l.pickerValue,C=l.panelType,_="".concat(s,"-header"),k=g.useContext(EEe),M=k.hidePrev,I=k.hideNext,E=k.hideHeader,O=g.useMemo(function(){if(!y||!t||!i)return!1;var e=i(t(-1,S));return!eEe(x,w,e,y,C)},[y,t,S,i,x,w,C]),$=g.useMemo(function(){if(!y||!n||!i)return!1;var e=i(n(-1,S));return!eEe(x,w,e,y,C)},[y,n,S,i,x,w,C]),T=g.useMemo(function(){if(!b||!t||!o)return!1;var e=o(t(1,S));return!eEe(x,w,b,e,C)},[b,t,S,o,x,w,C]),P=g.useMemo(function(){if(!b||!n||!o)return!1;var e=o(n(1,S));return!eEe(x,w,b,e,C)},[b,n,S,o,x,w,C]),D=function(e){t&&r(t(e,S))},N=function(e){n&&r(n(e,S))};if(E)return null;var A="".concat(_,"-prev-btn"),R="".concat(_,"-next-btn"),j="".concat(_,"-super-prev-btn"),L="".concat(_,"-super-next-btn");return g.createElement("div",{className:_},n&&g.createElement("button",{type:"button","aria-label":w.previousYear,onClick:function(){return N(-1)},tabIndex:-1,className:po()(j,$&&"".concat(j,"-disabled")),disabled:$,style:M?$Ee:{}},h),t&&g.createElement("button",{type:"button","aria-label":w.previousMonth,onClick:function(){return D(-1)},tabIndex:-1,className:po()(A,O&&"".concat(A,"-disabled")),disabled:O,style:M?$Ee:{}},u),g.createElement("div",{className:"".concat(_,"-view")},a),t&&g.createElement("button",{type:"button","aria-label":w.nextMonth,onClick:function(){return D(1)},tabIndex:-1,className:po()(R,T&&"".concat(R,"-disabled")),disabled:T,style:I?$Ee:{}},p),n&&g.createElement("button",{type:"button","aria-label":w.nextYear,onClick:function(){return N(1)},tabIndex:-1,className:po()(L,P&&"".concat(L,"-disabled")),disabled:P,style:I?$Ee:{}},v))};function PEe(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.locale,i=e.generateConfig,a=e.pickerValue,l=e.onPickerValueChange,s=e.onModeChange,c=e.mode,u=void 0===c?"date":c,d=e.disabledDate,p=e.onSelect,f=e.onHover,h=e.showWeek,m="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),y="week"===u,b=Q(IEe(e,u),2),x=b[0],w=b[1],S=i.locale.getWeekFirstDay(o.locale),C=i.setDate(a,1),_=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(o.locale,i,C),k=i.getMonth(a),M=(void 0===h?y:h)?function(e){var t=null===d||void 0===d?void 0:d(e,{type:"week"});return g.createElement("td",{key:"week",className:po()(v,"".concat(v,"-week"),Y({},"".concat(v,"-disabled"),t)),onClick:function(){t||p(e)},onMouseEnter:function(){t||null===f||void 0===f||f(e)},onMouseLeave:function(){t||null===f||void 0===f||f(null)}},g.createElement("div",{className:"".concat(v,"-inner")},i.locale.getWeek(o.locale,e)))}:null,I=[],E=o.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(o.locale):[]);M&&I.push(g.createElement("th",{key:"empty"},g.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var O=0;O<7;O+=1)I.push(g.createElement("th",{key:O},E[(O+S)%7]));var $=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),T=g.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){s("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},tEe(a,{locale:o,format:o.yearFormat,generateConfig:i})),P=g.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){s("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?tEe(a,{locale:o,format:o.monthFormat,generateConfig:i}):$[k]),D=o.monthBeforeYear?[P,T]:[T,P];return g.createElement(kEe.Provider,{value:x},g.createElement("div",{className:po()(m,h&&"".concat(m,"-show-week"))},g.createElement(TEe,{offset:function(e){return i.addMonth(a,e)},superOffset:function(e){return i.addYear(a,e)},onChange:l,getStart:function(e){return i.setDate(e,1)},getEnd:function(e){var t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},D),g.createElement(OEe,gt({titleFormat:o.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:_,headerCells:I,getCellDate:function(e,t){return i.addDate(e,t)},getCellText:function(e){return tEe(e,{locale:o,format:o.cellDateFormat,generateConfig:i})},getCellClassName:function(e){return Y(Y({},"".concat(t,"-cell-in-view"),YIe(i,e,a)),"".concat(t,"-cell-today"),qIe(i,e,w))},prefixColumn:M,cellSelection:!y}))))}var DEe=1/3;function NEe(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")}function AEe(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,i=e.onChange,a=e.onHover,l=e.onDblClick,s=e.changeOnScroll,c=MEe(),u=c.prefixCls,d=c.cellRender,p=c.now,f=c.locale,h="".concat(u,"-time-panel"),m="".concat(u,"-time-panel-cell"),v=g.useRef(null),y=g.useRef(),b=function(){clearTimeout(y.current)},x=function(e,t){var n=g.useRef(!1),r=g.useRef(null),o=g.useRef(null),i=function(){vi.cancel(r.current),n.current=!1},a=g.useRef(),l=Lo(function(){var l=e.current;if(o.current=null,a.current=0,l){var s=l.querySelector('[data-value="'.concat(t,'"]')),c=l.querySelector("li");s&&c&&function e(){i(),n.current=!0,a.current+=1;var t=l.scrollTop,u=c.offsetTop,d=s.offsetTop,p=d-u;if(0===d&&s!==c||!Fh(l))a.current<=5&&(r.current=vi(e));else{var f=t+(p-t)*DEe,h=Math.abs(p-f);if(null!==o.current&&o.current<h)i();else{if(o.current=h,h<=1)return l.scrollTop=p,void i();l.scrollTop=f,r.current=vi(e)}}}()}});return[l,i,function(){return n.current}]}(v,null!==n&&void 0!==n?n:r),w=Q(x,3),S=w[0],C=w[1],_=w[2];rt(function(){return S(),b(),function(){C(),b()}},[n,r,NEe(t)]);var k="".concat(h,"-column");return g.createElement("ul",{className:k,ref:v,"data-type":o,onScroll:function(e){b();var n=e.target;!_()&&s&&(y.current=setTimeout(function(){var e=v.current,r=e.querySelector("li").offsetTop,o=Array.from(e.querySelectorAll("li")).map(function(e){return e.offsetTop-r}).map(function(e,r){return t[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)}),a=Math.min.apply(Math,ee(o)),l=o.findIndex(function(e){return e===a}),s=t[l];s&&!s.disabled&&i(s.value)},300))}},t.map(function(e){var t=e.label,r=e.value,s=e.disabled,c=g.createElement("div",{className:"".concat(m,"-inner")},t);return g.createElement("li",{key:r,className:po()(m,Y(Y({},"".concat(m,"-selected"),n===r),"".concat(m,"-disabled"),s)),onClick:function(){s||i(r)},onDoubleClick:function(){!s&&l&&l()},onMouseEnter:function(){a(r)},onMouseLeave:function(){a(null)},"data-value":r},d?d(r,{prefixCls:u,originNode:c,today:p,type:"time",subType:o,locale:f}):c)}))}function REe(e){return e<12}function jEe(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,i=e.use12Hours,a=e.changeOnScroll,l=MEe(),s=l.prefixCls,c=l.values,u=l.generateConfig,d=l.locale,p=l.onSelect,f=l.onHover,h=void 0===f?function(){}:f,m=l.pickerValue,v=(null===c||void 0===c?void 0:c[0])||null,y=g.useContext(EEe).onCellDblClick,b=Q(SEe(u,e,v),5),x=b[0],w=b[1],S=b[2],C=b[3],_=b[4],k=function(e){return[v&&u[e](v),m&&u[e](m)]},M=Q(k("getHour"),2),I=M[0],E=M[1],O=Q(k("getMinute"),2),$=O[0],T=O[1],P=Q(k("getSecond"),2),D=P[0],N=P[1],A=Q(k("getMillisecond"),2),R=A[0],j=A[1],L=null===I?null:REe(I)?"am":"pm",z=g.useMemo(function(){return i?REe(I)?w.filter(function(e){return REe(e.value)}):w.filter(function(e){return!REe(e.value)}):w},[I,w,i]),B=function(e,t){var n,r=e.filter(function(e){return!e.disabled});return null!==t&&void 0!==t?t:null===r||void 0===r||null===(n=r[0])||void 0===n?void 0:n.value},H=B(w,I),F=g.useMemo(function(){return S(H)},[S,H]),V=B(F,$),W=g.useMemo(function(){return C(H,V)},[C,H,V]),G=B(W,D),U=g.useMemo(function(){return _(H,V,G)},[_,H,V,G]),Y=B(U,R),q=g.useMemo(function(){if(!i)return[];var e=u.getNow(),t=u.setHour(e,6),n=u.setHour(e,18),r=function(e,t){var n=d.cellMeridiemFormat;return n?tEe(e,{generateConfig:u,locale:d,format:n}):t};return[{label:r(t,"AM"),value:"am",disabled:w.every(function(e){return e.disabled||!REe(e.value)})},{label:r(n,"PM"),value:"pm",disabled:w.every(function(e){return e.disabled||REe(e.value)})}]},[w,i,u,d]),X=function(e){var t=x(e);p(t)},K=g.useMemo(function(){var e=v||m||u.getNow(),t=function(e){return null!==e&&void 0!==e};return t(I)?(e=u.setHour(e,I),e=u.setMinute(e,$),e=u.setSecond(e,D),e=u.setMillisecond(e,R)):t(E)?(e=u.setHour(e,E),e=u.setMinute(e,T),e=u.setSecond(e,N),e=u.setMillisecond(e,j)):t(H)&&(e=u.setHour(e,H),e=u.setMinute(e,V),e=u.setSecond(e,G),e=u.setMillisecond(e,Y)),e},[v,m,I,$,D,R,H,V,G,Y,E,T,N,j,u]),Z=function(e,t){return null===e?null:u[t](K,e)},J=function(e){return Z(e,"setHour")},ee=function(e){return Z(e,"setMinute")},te=function(e){return Z(e,"setSecond")},ne=function(e){return Z(e,"setMillisecond")},re=function(e){return null===e?null:"am"!==e||REe(I)?"pm"===e&&REe(I)?u.setHour(K,I+12):K:u.setHour(K,I-12)},oe={onDblClick:y,changeOnScroll:a};return g.createElement("div",{className:"".concat(s,"-content")},t&&g.createElement(AEe,gt({units:z,value:I,optionalValue:E,type:"hour",onChange:function(e){X(J(e))},onHover:function(e){h(J(e))}},oe)),n&&g.createElement(AEe,gt({units:F,value:$,optionalValue:T,type:"minute",onChange:function(e){X(ee(e))},onHover:function(e){h(ee(e))}},oe)),r&&g.createElement(AEe,gt({units:W,value:D,optionalValue:N,type:"second",onChange:function(e){X(te(e))},onHover:function(e){h(te(e))}},oe)),o&&g.createElement(AEe,gt({units:U,value:R,optionalValue:j,type:"millisecond",onChange:function(e){X(ne(e))},onHover:function(e){h(ne(e))}},oe)),i&&g.createElement(AEe,gt({units:q,value:L,type:"meridiem",onChange:function(e){X(re(e))},onHover:function(e){h(re(e))}},oe)))}function LEe(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,i=e.showTime,a=(i||{}).format,l="".concat(t,"-time-panel"),s=Q(IEe(e,"time"),1)[0];return g.createElement(kEe.Provider,{value:s},g.createElement("div",{className:po()(l)},g.createElement(TEe,null,n?tEe(n,{locale:r,format:a,generateConfig:o}):"\xa0"),g.createElement(jEe,i)))}var zEe={date:PEe,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,i=e.value,a=e.pickerValue,l=e.onHover,s="".concat(t,"-datetime-panel"),c=Q(SEe(n,r),1)[0],u=function(e){return nEe(n,e,i||a)};return g.createElement("div",{className:s},g.createElement(PEe,gt({},e,{onSelect:function(e){var t=u(e);o(c(t,t))},onHover:function(e){null===l||void 0===l||l(e?u(e):e)}})),g.createElement(LEe,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.hoverValue,a=e.hoverRangeValue,l=r.locale,s="".concat(t,"-week-panel-row");return g.createElement(PEe,gt({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(a){var r=Q(a,2),c=r[0],u=r[1],d=ZIe(n,l,c,e),p=ZIe(n,l,u,e);t["".concat(s,"-range-start")]=d,t["".concat(s,"-range-end")]=p,t["".concat(s,"-range-hover")]=!d&&!p&&JIe(n,c,u,e)}return i&&(t["".concat(s,"-hover")]=i.some(function(t){return ZIe(n,l,e,t)})),po()(s,Y({},"".concat(s,"-selected"),!a&&ZIe(n,l,o,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-month-panel"),c=Q(IEe(e,"month"),1)[0],u=r.setMonth(o,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),p=i?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,r.getMonth(n)+1),a=r.addDate(o,-1);return i(n,t)&&i(a,t)}:null,f=g.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},tEe(o,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(kEe.Provider,{value:c},g.createElement("div",{className:s},g.createElement(TEe,{superOffset:function(e){return r.addYear(o,e)},onChange:a,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},f),g.createElement(OEe,gt({},e,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:function(e,t){return r.addMonth(e,t)},getCellText:function(e){var t=r.getMonth(e);return n.monthFormat?tEe(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},getCellClassName:function(){return Y({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.onPickerValueChange,a=e.onModeChange,l="".concat(t,"-quarter-panel"),s=Q(IEe(e,"quarter"),1)[0],c=r.setMonth(o,0),u=g.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},tEe(o,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(kEe.Provider,{value:s},g.createElement("div",{className:l},g.createElement(TEe,{superOffset:function(e){return r.addYear(o,e)},onChange:i,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},u),g.createElement(OEe,gt({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:c,getCellDate:function(e,t){return r.addMonth(e,3*t)},getCellText:function(e){return tEe(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},getCellClassName:function(){return Y({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,l=e.onModeChange,s="".concat(t,"-year-panel"),c=Q(IEe(e,"year"),1)[0],u=function(e){var t=10*Math.floor(r.getYear(e)/10);return r.setYear(e,t)},d=function(e){var t=u(e);return r.addYear(t,9)},p=u(o),f=d(o),h=r.addYear(p,-1),m=i?function(e,t){var n=r.setMonth(e,0),o=r.setDate(n,1),a=r.addYear(o,1),l=r.addDate(a,-1);return i(o,t)&&i(l,t)}:null,v=g.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},tEe(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-",tEe(f,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(kEe.Provider,{value:c},g.createElement("div",{className:s},g.createElement(TEe,{superOffset:function(e){return r.addYear(o,10*e)},onChange:a,getStart:u,getEnd:d},v),g.createElement(OEe,gt({},e,{disabledDate:m,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return r.addYear(e,t)},getCellText:function(e){return tEe(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},getCellClassName:function(e){return Y({},"".concat(t,"-cell-in-view"),GIe(r,e,p)||GIe(r,e,f)||JIe(r,p,f,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,l="".concat(t,"-decade-panel"),s=Q(IEe(e,"decade"),1)[0],c=function(e){var t=100*Math.floor(r.getYear(e)/100);return r.setYear(e,t)},u=function(e){var t=c(e);return r.addYear(t,99)},d=c(o),p=u(o),f=r.addYear(d,-10),h=i?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,0),a=r.setYear(o,10*Math.floor(r.getYear(o)/10)),l=r.addYear(a,10),s=r.addDate(l,-1);return i(a,t)&&i(s,t)}:null,m="".concat(tEe(d,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(tEe(p,{locale:n,format:n.yearFormat,generateConfig:r}));return g.createElement(kEe.Provider,{value:s},g.createElement("div",{className:l},g.createElement(TEe,{superOffset:function(e){return r.addYear(o,100*e)},onChange:a,getStart:c,getEnd:u},m),g.createElement(OEe,gt({},e,{disabledDate:h,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return r.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,o=tEe(e,{locale:n,format:t,generateConfig:r}),i=tEe(r.addYear(e,9),{locale:n,format:t,generateConfig:r});return"".concat(o,"-").concat(i)},getCellClassName:function(e){return Y({},"".concat(t,"-cell-in-view"),WIe(r,e,d)||WIe(r,e,p)||JIe(r,d,p,e))}}))))},time:LEe};function BEe(e,t){var n,r=e.locale,o=e.generateConfig,i=e.direction,a=e.prefixCls,l=e.tabIndex,s=void 0===l?0:l,c=e.multiple,u=e.defaultValue,d=e.value,p=e.onChange,f=e.onSelect,h=e.defaultPickerValue,m=e.pickerValue,v=e.onPickerValueChange,y=e.mode,b=e.onPanelChange,x=e.picker,w=void 0===x?"date":x,S=e.showTime,C=e.hoverValue,_=e.hoverRangeValue,k=e.cellRender,M=e.dateRender,I=e.monthCellRender,E=e.components,O=void 0===E?{}:E,$=e.hideHeader,T=(null===(n=g.useContext(wIe))||void 0===n?void 0:n.prefixCls)||a||"rc-picker",P=g.useRef();g.useImperativeHandle(t,function(){return{nativeElement:P.current}});var D=Q(BIe(e),4),N=D[0],A=D[1],R=D[2],j=D[3],L=NIe(r,A),z="date"===w&&S?"datetime":w,B=g.useMemo(function(){return HIe(z,R,j,N,L)},[z,R,j,N,L]),H=o.getNow(),F=Q(Ho(w,{value:y,postState:function(e){return e||"date"}}),2),V=F[0],W=F[1],G="date"===V&&B?"datetime":V,U=_Ee(o,r,z),q=Q(Ho(u,{value:d}),2),X=q[0],K=q[1],Z=g.useMemo(function(){var e=kIe(X).filter(function(e){return e});return c?e:e.slice(0,1)},[X,c]),J=Lo(function(e){K(e),p&&(null===e||Z.length!==e.length||Z.some(function(t,n){return!QIe(o,r,t,e[n],z)}))&&(null===p||void 0===p||p(c?e:e[0]))}),te=Lo(function(e){if(null===f||void 0===f||f(e),V===w){var t=c?U(Z,e):[e];J(t)}}),re=Q(Ho(h||Z[0]||H,{value:m}),2),oe=re[0],ie=re[1];g.useEffect(function(){Z[0]&&!m&&ie(Z[0])},[Z[0]]);var ae=function(e,t){null===b||void 0===b||b(e||m,t||V)},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ie(e),null===v||void 0===v||v(e),t&&ae(e)},se=function(e,t){W(e),t&&le(t),ae(t,e)},ce=g.useMemo(function(){var e,t;if(Array.isArray(_)){var n=Q(_,2);e=n[0],t=n[1]}else e=_;return e||t?(e=e||t,t=t||e,o.isAfter(e,t)?[t,e]:[e,t]):null},[_,o]),ue=TIe(k,M,I),de=O[G]||zEe[G]||PEe,pe=g.useContext(EEe),fe=g.useMemo(function(){return ne(ne({},pe),{},{hideHeader:$})},[pe,$]);var he="".concat(T,"-panel"),ge=IIe(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return g.createElement(EEe.Provider,{value:fe},g.createElement("div",{ref:P,tabIndex:s,className:po()(he,Y({},"".concat(he,"-rtl"),"rtl"===i))},g.createElement(de,gt({},ge,{showTime:B,prefixCls:T,locale:L,generateConfig:o,onModeChange:se,pickerValue:oe,onPickerValueChange:function(e){le(e,!0)},value:Z[0],onSelect:function(e){if(te(e),le(e),V!==w){var t=["decade","year"],n=[].concat(t,["month"]),r={quarter:[].concat(t,["quarter"]),week:[].concat(ee(n),["week"]),date:[].concat(ee(n),["date"])}[w]||n,o=r.indexOf(V),i=r[o+1];i&&se(i,e)}},values:Z,cellRender:ue,hoverRangeValue:ce,hoverValue:C}))))}const HEe=g.memo(g.forwardRef(BEe));function FEe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,l=e.range,s=e.hoverValue,c=g.useContext(wIe),u=c.prefixCls,d=c.generateConfig,p=g.useCallback(function(e,n){return uEe(d,t,e,n)},[d,t]),f=g.useMemo(function(){return p(r,1)},[r,p]),h={onCellDblClick:function(){i&&a()}},m="time"===t,v=ne(ne({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:m});return l?v.hoverRangeValue=s:v.hoverValue=s,n?g.createElement("div",{className:"".concat(u,"-panels")},g.createElement(EEe.Provider,{value:ne(ne({},h),{},{hideNext:!0})},g.createElement(HEe,v)),g.createElement(EEe.Provider,{value:ne(ne({},h),{},{hidePrev:!0})},g.createElement(HEe,gt({},v,{pickerValue:f,onPickerValueChange:function(e){o(p(e,-1))}})))):g.createElement(EEe.Provider,{value:ne({},h)},g.createElement(HEe,v))}function VEe(e){return"function"===typeof e?e():e}function WEe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?g.createElement("div",{className:"".concat(t,"-presets")},g.createElement("ul",null,n.map(function(e,t){var n=e.label,i=e.value;return g.createElement("li",{key:t,onClick:function(){r(VEe(i))},onMouseEnter:function(){o(VEe(i))},onMouseLeave:function(){o(null)}},n)}))):null}function GEe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,l=e.activeInfo,s=void 0===l?[0,0,0]:l,c=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,p=e.onFocus,f=e.onBlur,h=e.onPanelMouseDown,m=e.direction,v=e.value,y=e.onSelect,b=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,S=e.onSubmit,C=g.useContext(wIe).prefixCls,_="".concat(C,"-panel"),k="rtl"===m,M=g.useRef(null),I=g.useRef(null),E=Q(g.useState(0),2),O=E[0],$=E[1],T=Q(g.useState(0),2),P=T[0],D=T[1],N=Q(g.useState(0),2),A=N[0],R=N[1],j=Q(s,3),L=j[0],z=j[1],B=j[2],H=Q(g.useState(0),2),F=H[0],V=H[1];function W(e){return e.filter(function(e){return e})}g.useEffect(function(){V(10)},[L]),g.useEffect(function(){if(i&&I.current){var e,t=(null===(e=M.current)||void 0===e?void 0:e.offsetWidth)||0,n=I.current.getBoundingClientRect();if(!n.height||n.right<0)return void V(function(e){return Math.max(0,e-1)});var r=(k?z-t:L)-n.left;if(R(r),O&&O<B){var o=k?n.right-(z-t+O):L+t-n.left-O,a=Math.max(0,o);D(a)}else D(0)}},[F,k,O,L,z,B,i]);var G=g.useMemo(function(){return W(kIe(v))},[v]),U="time"===r&&!G.length,q=g.useMemo(function(){return U?W([x]):G},[U,G,x]),X=U?x:G,K=g.useMemo(function(){return!q.length||q.some(function(e){return b(e)})},[q,b]),Z=g.createElement("div",{className:"".concat(C,"-panel-layout")},g.createElement(WEe,{prefixCls:C,presets:c,onClick:d,onHover:u}),g.createElement("div",null,g.createElement(FEe,gt({},e,{value:X})),g.createElement(CEe,gt({},e,{showNow:!a&&o,invalid:K,onSubmit:function(){U&&y(x),w(),S()}}))));t&&(Z=t(Z));var J="".concat(_,"-container"),ee="marginLeft",te="marginRight",ne=g.createElement("div",{onMouseDown:h,tabIndex:-1,className:po()(J,"".concat(C,"-").concat(n,"-panel-container")),style:Y(Y({},k?te:ee,P),k?ee:te,"auto"),onFocus:p,onBlur:f},Z);return i&&(ne=g.createElement("div",{onMouseDown:h,ref:I,className:po()("".concat(C,"-range-wrapper"),"".concat(C,"-").concat(r,"-range-wrapper"))},g.createElement("div",{ref:M,className:"".concat(C,"-range-arrow"),style:{left:A}}),g.createElement(nh,{onResize:function(e){e.width&&$(e.width)}},ne))),ne}function UEe(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,l=e.inputReadOnly,s=e.required,c=e["aria-required"],u=e.onSubmit,d=e.onFocus,p=e.onBlur,f=e.onInputChange,h=e.onInvalid,m=e.open,v=e.onOpenChange,y=e.onKeyDown,b=e.onChange,x=e.activeHelp,w=e.name,S=e.autoComplete,C=e.id,_=e.value,k=e.invalid,M=e.placeholder,I=e.disabled,E=e.activeIndex,O=e.allHelp,$=e.picker,T=function(e,t){var n=o.locale.parse(i.locale,e,[t]);return n&&o.isValidate(n)?n:null},P=n[0],D=g.useCallback(function(e){return tEe(e,{locale:i,format:P,generateConfig:o})},[i,o,P]),N=g.useMemo(function(){return _.map(D)},[_,D]),A=g.useMemo(function(){var e="time"===$?8:10,t="function"===typeof P?P(o.getNow()).length:P.length;return Math.max(e,t)+2},[P,$,o]),R=function(e){for(var t=0;t<n.length;t+=1){var r=n[t];if("string"===typeof r){var o=T(e,r);if(o)return o}}return!1};return[function(n){function o(e){return void 0!==n?e[n]:e}var i=ne(ne({},Sd(e,{aria:!0,data:!0})),{},{format:r,validateFormat:function(e){return!!R(e)},preserveInvalidOnBlur:a,readOnly:l,required:s,"aria-required":c,name:w,autoComplete:S,size:A,id:o(C),value:o(N)||"",invalid:o(k),placeholder:o(M),active:E===n,helped:O||x&&E===n,disabled:o(I),onFocus:function(e){d(e,n)},onBlur:function(e){p(e,n)},onSubmit:u,onChange:function(e){f();var t=R(e);if(t)return h(!1,n),void b(t,n);h(!!e,n)},onHelp:function(){v(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null===y||void 0===y||y(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":v(!1,{index:n});break;case"Enter":m||v(!0)}}},null===t||void 0===t?void 0:t({valueTexts:N}));return Object.keys(i).forEach(function(e){void 0===i[e]&&delete i[e]}),i},D]}var YEe=["onMouseEnter","onMouseLeave"];function qEe(e){return g.useMemo(function(){return IIe(e,YEe)},[e])}var XEe=["icon","type"],KEe=["onClear"];function ZEe(e){var t=e.icon,n=e.type,r=Io(e,XEe),o=g.useContext(wIe).prefixCls;return t?g.createElement("span",gt({className:"".concat(o,"-").concat(n)},r),t):null}function QEe(e){var t=e.onClear,n=Io(e,KEe);return g.createElement(ZEe,gt({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var JEe=["YYYY","MM","DD","HH","mm","ss","SSS"],eOe=function(){function e(t){ke(this,e),Y(this,"format",void 0),Y(this,"maskFormat",void 0),Y(this,"cells",void 0),Y(this,"maskCells",void 0),this.format=t;var n=JEe.map(function(e){return"(".concat(e,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(e){return"\u9867".repeat(e.length)});var o=new RegExp("(".concat(JEe.join("|"),")")),i=(t.split(o)||[]).filter(function(e){return e}),a=0;this.cells=i.map(function(e){var t=JEe.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return Ie(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],r=e[t];if(!r||"\u9867"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var o=this.maskCells[r],i=o.start,a=o.end;if(e>=i&&e<=a)return r;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=r)}return n}}]),e}();var tOe=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],nOe=g.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=void 0===r||r,i=e.suffixIcon,a=e.format,l=e.validateFormat,s=e.onChange,c=(e.onInput,e.helped),u=e.onHelp,d=e.onSubmit,p=e.onKeyDown,f=e.preserveInvalidOnBlur,h=void 0!==f&&f,m=e.invalid,v=e.clearIcon,y=Io(e,tOe),b=e.value,x=e.onFocus,w=e.onBlur,S=e.onMouseUp,C=g.useContext(wIe),_=C.prefixCls,k=C.input,M=void 0===k?"input":k,I="".concat(_,"-input"),E=Q(g.useState(!1),2),O=E[0],$=E[1],T=Q(g.useState(b),2),P=T[0],D=T[1],N=Q(g.useState(""),2),A=N[0],R=N[1],j=Q(g.useState(null),2),L=j[0],z=j[1],B=Q(g.useState(null),2),H=B[0],F=B[1],V=P||"";g.useEffect(function(){D(b)},[b]);var W=g.useRef(),G=g.useRef();g.useImperativeHandle(t,function(){return{nativeElement:W.current,inputElement:G.current,focus:function(e){G.current.focus(e)},blur:function(){G.current.blur()}}});var U=g.useMemo(function(){return new eOe(a||"")},[a]),q=Q(g.useMemo(function(){return c?[0,0]:U.getSelection(L)},[U,L,c]),2),X=q[0],K=q[1],Z=function(e){e&&e!==a&&e!==b&&u()},J=Lo(function(e){l(e)&&s(e),D(e),Z(e)}),ee=g.useRef(!1),te=function(e){w(e)};sEe(n,function(){n||h||D(b)});var ne=function(e){"Enter"===e.key&&l(V)&&d(),null===p||void 0===p||p(e)},re=g.useRef();rt(function(){if(O&&a&&!ee.current){if(U.match(V))return G.current.setSelectionRange(X,K),re.current=vi(function(){G.current.setSelectionRange(X,K)}),function(){vi.cancel(re.current)};J(a)}},[U,a,O,V,L,X,K,H,J]);var oe=a?{onFocus:function(e){$(!0),z(0),R(""),x(e)},onBlur:function(e){$(!1),te(e)},onKeyDown:function(e){ne(e);var t=e.key,n=null,r=null,o=K-X,i=a.slice(X,K),l=function(e){z(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,U.size()-1)})},s=function(e){var t=function(e){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}(i),n=Q(t,3),r=n[0],o=n[1],a=n[2],l=V.slice(X,K),s=Number(l);if(isNaN(s))return String(a||(e>0?r:o));var c=o-r+1;return String(r+(c+(s+e)-r)%c)};switch(t){case"Backspace":case"Delete":n="",r=i;break;case"ArrowLeft":n="",l(-1);break;case"ArrowRight":n="",l(1);break;case"ArrowUp":n="",r=s(1);break;case"ArrowDown":n="",r=s(-1);break;default:isNaN(Number(t))||(r=n=A+t)}if(null!==n&&(R(n),n.length>=o&&(l(1),R(""))),null!==r){var c=V.slice(0,X)+_Ie(r,o)+V.slice(K);J(c.slice(0,a.length))}F({})},onMouseDown:function(){ee.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=U.getMaskCellIndex(t);z(n),F({}),null===S||void 0===S||S(e),ee.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");l(t)&&J(t)}}:{};return g.createElement("div",{ref:W,className:po()(I,Y(Y({},"".concat(I,"-active"),n&&o),"".concat(I,"-placeholder"),c))},g.createElement(M,gt({ref:G,"aria-invalid":m,autoComplete:"off"},y,{onKeyDown:ne,onBlur:te},oe,{value:V,onChange:function(e){if(!a){var t=e.target.value;Z(t),D(t),s(t)}}})),g.createElement(ZEe,{type:"suffix",icon:i}),v)});const rOe=nOe;var oOe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],iOe=["index"];function aOe(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=e.suffixIcon,a=e.separator,l=void 0===a?"~":a,s=e.activeIndex,c=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),d=e.className,p=e.style,f=e.onClick,h=e.onClear,m=e.value,v=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),y=e.invalid,b=(e.inputReadOnly,e.direction),x=(e.onOpenChange,e.onActiveInfo),w=(e.placement,e.onMouseDown),S=(e.required,e["aria-required"],e.autoFocus),C=e.tabIndex,_=Io(e,oOe),k="rtl"===b,M=g.useContext(wIe).prefixCls,I=g.useMemo(function(){if("string"===typeof n)return[n];var e=n||{};return[e.start,e.end]},[n]),E=g.useRef(),O=g.useRef(),$=g.useRef(),T=function(e){var t;return null===(t=[O,$][e])||void 0===t?void 0:t.current};g.useImperativeHandle(t,function(){return{nativeElement:E.current,focus:function(e){if("object"===G(e)){var t,n=e||{},r=n.index,o=void 0===r?0:r,i=Io(n,iOe);null===(t=T(o))||void 0===t||t.focus(i)}else{var a;null===(a=T(null!==e&&void 0!==e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}});var P=qEe(_),D=g.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),N=Q(UEe(ne(ne({},e),{},{id:I,placeholder:D})),1)[0],A=Q(g.useState({position:"absolute",width:0}),2),R=A[0],j=A[1],L=Lo(function(){var e=T(s);if(e){var t=e.nativeElement.getBoundingClientRect(),n=E.current.getBoundingClientRect(),r=t.left-n.left;j(function(e){return ne(ne({},e),{},{width:t.width,left:r})}),x([t.left,t.right,n.width])}});g.useEffect(function(){L()},[s]);var z=o&&(m[0]&&!v[0]||m[1]&&!v[1]),B=S&&!v[0],H=S&&!B&&!v[1];return g.createElement(nh,{onResize:L},g.createElement("div",gt({},P,{className:po()(M,"".concat(M,"-range"),Y(Y(Y(Y({},"".concat(M,"-focused"),c),"".concat(M,"-disabled"),v.every(function(e){return e})),"".concat(M,"-invalid"),y.some(function(e){return e})),"".concat(M,"-rtl"),k),d),style:p,ref:E,onClick:f,onMouseDown:function(e){var t=e.target;t!==O.current.inputElement&&t!==$.current.inputElement&&e.preventDefault(),null===w||void 0===w||w(e)}}),r&&g.createElement("div",{className:"".concat(M,"-prefix")},r),g.createElement(rOe,gt({ref:O},N(0),{autoFocus:B,tabIndex:C,"date-range":"start"})),g.createElement("div",{className:"".concat(M,"-range-separator")},l),g.createElement(rOe,gt({ref:$},N(1),{autoFocus:H,tabIndex:C,"date-range":"end"})),g.createElement("div",{className:"".concat(M,"-active-bar"),style:R}),g.createElement(ZEe,{type:"suffix",icon:i}),z&&g.createElement(QEe,{icon:o,onClear:h})))}const lOe=g.forwardRef(aOe);function sOe(e,t){var n=null!==e&&void 0!==e?e:t;return Array.isArray(n)?n:[n,n]}function cOe(e){return 1===e?"end":"start"}function uOe(e,t){var n=oEe(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:sOe(t,!1),allowEmpty:sOe(n,!1)}}),r=Q(n,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=o.prefixCls,d=o.styles,p=o.classNames,f=o.defaultValue,h=o.value,m=o.needConfirm,v=o.onKeyDown,y=o.disabled,b=o.allowEmpty,x=o.disabledDate,w=o.minDate,S=o.maxDate,C=o.defaultOpen,_=o.open,k=o.onOpenChange,M=o.locale,I=o.generateConfig,E=o.picker,O=o.showNow,$=o.showToday,T=o.showTime,P=o.mode,D=o.onPanelChange,N=o.onCalendarChange,A=o.onOk,R=o.defaultPickerValue,j=o.pickerValue,L=o.onPickerValueChange,z=o.inputReadOnly,B=o.suffixIcon,H=o.onFocus,F=o.onBlur,V=o.presets,W=o.ranges,G=o.components,U=o.cellRender,Y=o.dateRender,q=o.monthCellRender,X=o.onClick,K=aEe(t),Z=Q(iEe(_,C,y,k),2),J=Z[0],te=Z[1],re=function(e,t){!y.some(function(e){return!e})&&e||te(e,t)},oe=Q(vEe(I,M,l,!0,!1,f,h,N,A),5),ie=oe[0],ae=oe[1],le=oe[2],se=oe[3],ce=oe[4],ue=le(),de=Q(cEe(y,b,J),9),pe=de[0],fe=de[1],he=de[2],ge=de[3],me=de[4],ve=de[5],ye=de[6],be=de[7],xe=de[8],we=function(e,t){fe(!0),null===H||void 0===H||H(e,{range:cOe(null!==t&&void 0!==t?t:ge)})},Se=function(e,t){fe(!1),null===F||void 0===F||F(e,{range:cOe(null!==t&&void 0!==t?t:ge)})},Ce=g.useMemo(function(){if(!T)return null;var e=T.disabledTime,t=e?function(t){var n=cOe(ge),r=OIe(ue,ye,ge);return e(t,n,{from:r})}:void 0;return ne(ne({},T),{},{disabledTime:t})},[T,ge,ue,ye]),_e=Q(Ho([E,E],{value:P}),2),ke=_e[0],Me=_e[1],Ie=ke[ge]||E,Ee="date"===Ie&&Ce?"datetime":Ie,Oe=Ee===E&&"time"!==Ee,$e=bEe(E,Ie,O,$,!0),Te=Q(yEe(o,ie,ae,le,se,y,l,pe,J,c),2),Pe=Te[0],De=Te[1],Ne=function(e,t,n,r,o,i){var a=n[n.length-1];return function(l,s){var c=Q(e,2),u=c[0],d=c[1],p=ne(ne({},s),{},{from:OIe(e,n)});return!(1!==a||!t[0]||!u||QIe(r,o,u,l,p.type)||!r.isAfter(u,l))||!(0!==a||!t[1]||!d||QIe(r,o,d,l,p.type)||!r.isAfter(l,d))||(null===i||void 0===i?void 0:i(l,p))}}(ue,y,ye,I,M,x),Ae=Q(PIe(ue,c,b),2),Re=Ae[0],je=Ae[1],Le=Q(pEe(I,M,ue,ke,J,ge,i,Oe,R,j,null===Ce||void 0===Ce?void 0:Ce.defaultOpenValue,L,w,S),2),ze=Le[0],Be=Le[1],He=Lo(function(e,t,n){var r=MIe(ke,ge,t);if(r[0]===ke[0]&&r[1]===ke[1]||Me(r),D&&!1!==n){var o=ee(ue);e&&(o[ge]=e),D(o,r)}}),Fe=function(e,t){return MIe(ue,t,e)},Ve=function(e,t){var n=ue;e&&(n=Fe(e,ge)),be(ge);var r=ve(n);se(n),Pe(ge,null===r),null===r?re(!1,{force:!0}):t||K.current.focus({index:r})},We=Q(g.useState(null),2),Ge=We[0],Ue=We[1],Ye=Q(g.useState(null),2),qe=Ye[0],Xe=Ye[1],Ke=g.useMemo(function(){return qe||ue},[ue,qe]);g.useEffect(function(){J||Xe(null)},[J]);var Ze=Q(g.useState([0,0,0]),2),Qe=Ze[0],Je=Ze[1],et=lEe(V,W),tt=TIe(U,Y,q,cOe(ge)),nt=ue[ge]||null,ot=Lo(function(e){return c(e,{activeIndex:ge})}),it=g.useMemo(function(){var e=Sd(o,!1);return Fp(o,[].concat(ee(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[o]),at=g.createElement(GEe,gt({},it,{showNow:$e,showTime:Ce,range:!0,multiplePanel:Oe,activeInfo:Qe,disabledDate:Ne,onFocus:function(e){re(!0),we(e)},onBlur:Se,onPanelMouseDown:function(){he("panel")},picker:E,mode:Ie,internalMode:Ee,onPanelChange:He,format:s,value:nt,isInvalid:ot,onChange:null,onSelect:function(e){var t=MIe(ue,ge,e);se(t),m||a||i!==Ee||Ve(e)},pickerValue:ze,defaultOpenValue:kIe(null===T||void 0===T?void 0:T.defaultOpenValue)[ge],onPickerValueChange:Be,hoverValue:Ke,onHover:function(e){Xe(e?Fe(e,ge):null),Ue("cell")},needConfirm:m,onSubmit:Ve,onOk:ce,presets:et,onPresetHover:function(e){Xe(e),Ue("preset")},onPresetSubmit:function(e){De(e)&&re(!1,{force:!0})},onNow:function(e){Ve(e)},cellRender:tt})),lt=g.useMemo(function(){return{prefixCls:u,locale:M,generateConfig:I,button:G.button,input:G.input}},[u,M,I,G.button,G.input]);return rt(function(){J&&void 0!==ge&&He(null,E,!1)},[J,ge,E]),rt(function(){var e=he();J||"input"!==e||(re(!1),Ve(null,!0)),J||!a||m||"panel"!==e||(re(!0),Ve())},[J]),g.createElement(wIe.Provider,{value:lt},g.createElement(CIe,gt({},$Ie(o),{popupElement:at,popupStyle:d.popup,popupClassName:p.popup,visible:J,onClose:function(){re(!1)},range:!0}),g.createElement(lOe,gt({},o,{ref:K,suffixIcon:B,activeIndex:pe||J?ge:null,activeHelp:!!qe,allHelp:!!qe&&"preset"===Ge,focused:pe,onFocus:function(e,t){var n=ye.length,r=ye[n-1];n&&r!==t&&m&&!b[r]&&!xe(r)&&ue[r]?K.current.focus({index:r}):(he("input"),re(!0,{inherit:!0}),ge!==t&&J&&!m&&a&&Ve(null,!0),me(t),we(e,t))},onBlur:function(e,t){if(re(!1),!m&&"input"===he()){var n=ve(ue);Pe(ge,null===n)}Se(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Ve(null,!0),null===v||void 0===v||v(e,t)},onSubmit:Ve,value:Ke,maskFormat:s,onChange:function(e,t){var n=Fe(e,t);se(n)},onInputChange:function(){he("input")},format:l,inputReadOnly:z,disabled:y,open:J,onOpenChange:re,onClick:function(e){var t,n=e.target.getRootNode();if(!K.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var r=y.findIndex(function(e){return!e});r>=0&&K.current.focus({index:r})}re(!0),null===X||void 0===X||X(e)},onClear:function(){De(null),re(!1,{force:!0})},invalid:Re,onInvalid:je,onActiveInfo:Je}))))}const dOe=g.forwardRef(uOe);function pOe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=void 0===o?"\xd7":o,a=e.formatDate,l=e.disabled,s=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),p="".concat(d,"-overflow");function f(e,t){return g.createElement("span",{className:po()("".concat(d,"-item")),title:"string"===typeof e?e:null},g.createElement("span",{className:"".concat(d,"-item-content")},e),!l&&t&&g.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(d,"-item-remove")},i))}return g.createElement("div",{className:u},g.createElement(Pg,{prefixCls:p,data:n,renderItem:function(e){return f(a(e),function(t){t&&t.stopPropagation(),r(e)})},renderRest:function(e){return f("+ ".concat(e.length," ..."))},itemKey:function(e){return a(e)},maxCount:s}),!n.length&&g.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var fOe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function hOe(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=e.suffixIcon,a=(e.activeHelp,e.allHelp,e.focused),l=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),s=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,p=e.onClick,f=e.onClear,h=e.internalPicker,m=e.value,v=e.onChange,y=e.onSubmit,b=(e.onInputChange,e.multiple),x=e.maxTagCount,w=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),S=e.invalid,C=(e.inputReadOnly,e.direction),_=(e.onOpenChange,e.onMouseDown),k=(e.required,e["aria-required"],e.autoFocus),M=e.tabIndex,I=e.removeIcon,E=Io(e,fOe),O="rtl"===C,$=g.useContext(wIe).prefixCls,T=g.useRef(),P=g.useRef();g.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(e){var t;null===(t=P.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=P.current)||void 0===e||e.blur()}}});var D=qEe(E),N=UEe(ne(ne({},e),{},{onChange:function(e){v([e])}}),function(e){return{value:e.valueTexts[0]||"",active:a}}),A=Q(N,2),R=A[0],j=A[1],L=!(!o||!m.length||w),z=b?g.createElement(g.Fragment,null,g.createElement(pOe,{prefixCls:$,value:m,onRemove:function(e){var t=m.filter(function(t){return t&&!QIe(s,l,t,e,h)});v(t),n||y()},formatDate:j,maxTagCount:x,disabled:w,removeIcon:I,placeholder:c}),g.createElement("input",{className:"".concat($,"-multiple-input"),value:m.map(j).join(","),ref:P,readOnly:!0,autoFocus:k,tabIndex:M}),g.createElement(ZEe,{type:"suffix",icon:i}),L&&g.createElement(QEe,{icon:o,onClear:f})):g.createElement(rOe,gt({ref:P},R(),{autoFocus:k,tabIndex:M,suffixIcon:i,clearIcon:L&&g.createElement(QEe,{icon:o,onClear:f}),showActiveCls:!1}));return g.createElement("div",gt({},D,{className:po()($,Y(Y(Y(Y(Y({},"".concat($,"-multiple"),b),"".concat($,"-focused"),a),"".concat($,"-disabled"),w),"".concat($,"-invalid"),S),"".concat($,"-rtl"),O),u),style:d,ref:T,onClick:p,onMouseDown:function(e){var t;e.target!==(null===(t=P.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null===_||void 0===_||_(e)}}),r&&g.createElement("div",{className:"".concat($,"-prefix")},r),z)}const gOe=g.forwardRef(hOe);function mOe(e,t){var n=Q(oEe(e),6),r=n[0],o=n[1],i=n[2],a=n[3],l=n[4],s=n[5],c=r,u=c.prefixCls,d=c.styles,p=c.classNames,f=c.order,h=c.defaultValue,m=c.value,v=c.needConfirm,y=c.onChange,b=c.onKeyDown,x=c.disabled,w=c.disabledDate,S=c.minDate,C=c.maxDate,_=c.defaultOpen,k=c.open,M=c.onOpenChange,I=c.locale,E=c.generateConfig,O=c.picker,$=c.showNow,T=c.showToday,P=c.showTime,D=c.mode,N=c.onPanelChange,A=c.onCalendarChange,R=c.onOk,j=c.multiple,L=c.defaultPickerValue,z=c.pickerValue,B=c.onPickerValueChange,H=c.inputReadOnly,F=c.suffixIcon,V=c.removeIcon,W=c.onFocus,G=c.onBlur,U=c.presets,Y=c.components,q=c.cellRender,X=c.dateRender,K=c.monthCellRender,Z=c.onClick,J=aEe(t);function te(e){return null===e?null:j?e:e[0]}var re=_Ee(E,I,o),oe=Q(iEe(k,_,[x],M),2),ie=oe[0],ae=oe[1],le=Q(vEe(E,I,a,!1,f,h,m,function(e,t,n){if(A){var r=ne({},n);delete r.range,A(te(e),te(t),r)}},function(e){null===R||void 0===R||R(te(e))}),5),se=le[0],ce=le[1],ue=le[2],de=le[3],pe=le[4],fe=ue(),he=Q(cEe([x]),4),ge=he[0],me=he[1],ve=he[2],ye=he[3],be=function(e){me(!0),null===W||void 0===W||W(e,{})},xe=function(e){me(!1),null===G||void 0===G||G(e,{})},we=Q(Ho(O,{value:D}),2),Se=we[0],Ce=we[1],_e="date"===Se&&P?"datetime":Se,ke=bEe(O,Se,$,T),Me=y&&function(e,t){y(te(e),te(t))},Ie=Q(yEe(ne(ne({},r),{},{onChange:Me}),se,ce,ue,de,[],a,ge,ie,s),2)[1],Ee=Q(PIe(fe,s),2),Oe=Ee[0],$e=Ee[1],Te=g.useMemo(function(){return Oe.some(function(e){return e})},[Oe]),Pe=Q(pEe(E,I,fe,[Se],ie,ye,o,!1,L,z,kIe(null===P||void 0===P?void 0:P.defaultOpenValue),function(e,t){if(B){var n=ne(ne({},t),{},{mode:t.mode[0]});delete n.range,B(e[0],n)}},S,C),2),De=Pe[0],Ne=Pe[1],Ae=Lo(function(e,t,n){if(Ce(t),N&&!1!==n){var r=e||fe[fe.length-1];N(r,t)}}),Re=function(){Ie(ue()),ae(!1,{force:!0})},je=Q(g.useState(null),2),Le=je[0],ze=je[1],Be=Q(g.useState(null),2),He=Be[0],Fe=Be[1],Ve=g.useMemo(function(){var e=[He].concat(ee(fe)).filter(function(e){return e});return j?e:e.slice(0,1)},[fe,He,j]),We=g.useMemo(function(){return!j&&He?[He]:fe.filter(function(e){return e})},[fe,He,j]);g.useEffect(function(){ie||Fe(null)},[ie]);var Ge=lEe(U),Ue=function(e){var t=j?re(ue(),e):[e];Ie(t)&&!j&&ae(!1,{force:!0})},Ye=TIe(q,X,K),qe=g.useMemo(function(){var e=Sd(r,!1);return ne(ne({},Fp(r,[].concat(ee(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:r.multiple})},[r]),Xe=g.createElement(GEe,gt({},qe,{showNow:ke,showTime:P,disabledDate:w,onFocus:function(e){ae(!0),be(e)},onBlur:xe,picker:O,mode:Se,internalMode:_e,onPanelChange:Ae,format:l,value:fe,isInvalid:s,onChange:null,onSelect:function(e){if(ve("panel"),!j||_e===O){var t=j?re(ue(),e):[e];de(t),v||i||o!==_e||Re()}},pickerValue:De,defaultOpenValue:null===P||void 0===P?void 0:P.defaultOpenValue,onPickerValueChange:Ne,hoverValue:Ve,onHover:function(e){Fe(e),ze("cell")},needConfirm:v,onSubmit:Re,onOk:pe,presets:Ge,onPresetHover:function(e){Fe(e),ze("preset")},onPresetSubmit:Ue,onNow:function(e){Ue(e)},cellRender:Ye})),Ke=g.useMemo(function(){return{prefixCls:u,locale:I,generateConfig:E,button:Y.button,input:Y.input}},[u,I,E,Y.button,Y.input]);return rt(function(){ie&&void 0!==ye&&Ae(null,O,!1)},[ie,ye,O]),rt(function(){var e=ve();ie||"input"!==e||(ae(!1),Re()),ie||!i||v||"panel"!==e||Re()},[ie]),g.createElement(wIe.Provider,{value:Ke},g.createElement(CIe,gt({},$Ie(r),{popupElement:Xe,popupStyle:d.popup,popupClassName:p.popup,visible:ie,onClose:function(){ae(!1)}}),g.createElement(gOe,gt({},r,{ref:J,suffixIcon:F,removeIcon:V,activeHelp:!!He,allHelp:!!He&&"preset"===Le,focused:ge,onFocus:function(e){ve("input"),ae(!0,{inherit:!0}),be(e)},onBlur:function(e){ae(!1),xe(e)},onKeyDown:function(e,t){"Tab"===e.key&&Re(),null===b||void 0===b||b(e,t)},onSubmit:Re,value:We,maskFormat:l,onChange:function(e){de(e)},onInputChange:function(){ve("input")},internalPicker:o,format:a,inputReadOnly:H,disabled:x,open:ie,onOpenChange:ae,onClick:function(e){x||J.current.nativeElement.contains(document.activeElement)||J.current.focus(),ae(!0),null===Z||void 0===Z||Z(e)},onClear:function(){Ie(null),ae(!1,{force:!0})},invalid:Te,onInvalid:function(e){$e(e,0)}}))))}const vOe=g.forwardRef(mOe),yOe=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=SD(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:Xe(i.itemLineHeight)}}}]},bOe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=ep(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=ep(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[yOe(o,"small"),yOe(e),yOe(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},CD(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},xOe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:s,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:p,cellBgDisabled:f,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Xe(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n    &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Xe(l)} ${s} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,\n      &-in-view${t}-range-start,\n      &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n      &-in-view${t}-range-start,\n      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:f}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},wOe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:s,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:p,borderRadiusLG:f,colorPrimary:h,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:x,colorIconHover:w,fontWeightStrong:S,cellHeight:C,pickerCellPaddingVertical:_,colorTextDisabled:k,colorText:M,fontSize:I,motionDurationSlow:E,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:$,borderRadiusSM:T,colorTextLightSolid:P,cellHoverBg:D,timeColumnHeight:N,timeColumnWidth:A,timeCellHeight:R,controlItemBgActive:j,marginXXS:L,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:B}=e,H=e.calc(a).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:f,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,\n              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${Xe(s)}`,color:g,borderBottom:`${Xe(d)} ${p} ${m}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:Xe(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:S,lineHeight:Xe(b),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:h}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:B,insetInlineStart:B,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(_).mul(2)).equal(),color:M,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Xe(_)} 0`,color:k,cursor:"pointer","&-in-view":{color:M}},xOe(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(O).mul(4).equal()},[r]:{padding:`0 ${Xe(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:$}},"&-decade-panel":{[r]:{padding:`0 ${Xe(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${Xe(s)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${Xe(s)} ${Xe(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},\n            &-selected ${r},\n            ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:T,borderEndStartRadius:T},"&:last-child:before":{borderStartEndRadius:T,borderEndEndRadius:T}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Zn(P).setA(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:j}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Xe(s)} ${Xe(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Xe(d)} ${p} ${m}`},[`${t}-date-panel,\n          ${t}-time-panel`]:{transition:`opacity ${E}`},"&-active":{[`${t}-date-panel,\n            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:N},"&-column":{flex:"1 0 auto",width:A,margin:`${Xe(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Xe(R)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Xe(d)} ${p} ${m}`},"&-active":{background:new Zn(j).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(A).sub(e.calc(L).mul(2)).equal(),height:R,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(A).sub(R).div(2).equal(),color:M,lineHeight:Xe(R),borderRadius:T,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:D}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:j}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},SOe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Xe(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Xe(o)}`,lineHeight:Xe(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Xe(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Xe(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Xe(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},COe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},OS(e)),BS(e)),AS(e)),PS(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},_Oe=(e,t)=>({padding:`${Xe(e)} ${Xe(t)}`}),kOe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},MOe=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:l,borderRadius:s,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,fontSizeLG:p,inputFontSizeLG:f,fontSizeSM:h,inputFontSizeSM:g,controlHeightSM:m,paddingInlineSM:v,paddingXS:y,marginXS:b,colorIcon:x,lineWidthBold:w,colorPrimary:S,motionDurationSlow:C,zIndexPopup:_,paddingXXS:k,sizePopupArrow:M,colorBgElevated:I,borderRadiusLG:E,boxShadowSecondary:O,borderRadiusSM:$,colorSplit:T,cellHoverBg:P,presetsWidth:D,presetsMaxWidth:N,boxShadowPopoverArrow:A,fontHeight:R,lineHeightLG:j}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},Ki(e)),_Oe(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:null!==(t=e.inputFontSize)&&void 0!==t?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},HS(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},_Oe(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:null!==f&&void 0!==f?f:p,lineHeight:j}}),"&-small":Object.assign(Object.assign({},_Oe(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:null!==g&&void 0!==g?g:h}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:x}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:x},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:w,background:S,opacity:0,transition:`all ${C} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${Xe(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ki(e)),wOe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,\n            &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,\n            &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n          &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,\n          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Dv},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n          &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,\n          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,\n          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Tv},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n          &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Nv},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,\n          &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Pv},[`${n}-panel > ${n}-time-panel`]:{paddingTop:k},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${C} ease-out`},zw(e,I,A)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:I,borderRadius:E,boxShadow:O,transition:`margin ${C}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:D,maxWidth:N,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${Xe(i)} ${a} ${T}`,li:Object.assign(Object.assign({},Xi),{borderRadius:$,paddingInline:y,paddingBlock:e.calc(m).sub(R).div(2).equal(),cursor:"pointer",transition:`all ${C}`,"+ li":{marginTop:b},"&:hover":{background:P}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${Xe(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Bv(e,"slide-up"),Bv(e,"slide-down"),GO(e,"move-up"),GO(e,"move-down")]},IOe=dp("DatePicker",e=>{const t=ep(CS(e),(e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}})(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[SOe(t),MOe(t),COe(t),kOe(t),bOe(t),SS(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},_S(e)),(e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,l=2*i,s=2*a,c=Math.min(n-l,n-s),u=Math.min(r-l,r-s),d=Math.min(o-l,o-s);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Zn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Zn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*o,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:o,withoutTimeCellHeight:1.65*o,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(e)),Lw(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));function EOe(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function OOe(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function $Oe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=ZD(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[g.useMemo(()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:r},e)},[n,r]),o]}const[TOe,POe]=["week","WeekPicker"],[DOe,NOe]=["month","MonthPicker"],[AOe,ROe]=["year","YearPicker"],[jOe,LOe]=["quarter","QuarterPicker"],[zOe,BOe]=["time","TimePicker"],HOe=e=>g.createElement(rk,Object.assign({size:"small",type:"primary"},e));function FOe(e){return(0,g.useMemo)(()=>Object.assign({button:HOe},e),[e])}function VOe(e){const t=e||{};for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((e,n)=>(Object.keys(n||{}).forEach(r=>{const o=t[r],i=n[r];if(o&&"object"===typeof o)if(i&&"object"===typeof i)e[r]=VOe(o,e[r],i);else{const{_default:t}=o;e[r]=e[r]||{},e[r][t]=po()(e[r][t],i)}else e[r]=po()(e[r],i)}),e),{})}function WOe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return g.useMemo(()=>VOe.apply(void 0,[e].concat(n)),[n])}function GOe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g.useMemo(()=>t.reduce(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(n=>{e[n]=Object.assign(Object.assign({},e[n]),t[n])}),e},{}),[t])}function UOe(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(e=>{if("_default"!==e){const r=t[e],o=n[e]||{};n[e]=r?UOe(o,r):o}}),n}function YOe(e,t,n){const r=WOe.apply(void 0,[n].concat(ee(e))),o=GOe.apply(void 0,ee(t));return g.useMemo(()=>[UOe(r,n),UOe(o,n)],[r,o])}const qOe=(e,t,n,r,o)=>{const{classNames:i,styles:a}=Zr(e),[l,s]=YOe([i,t],[a,n],{popup:{_default:"root"}});return g.useMemo(()=>{var e,t;return[Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:po()(null===(e=l.popup)||void 0===e?void 0:e.root,r)})}),Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Object.assign(Object.assign({},null===(t=s.popup)||void 0===t?void 0:t.root),o)})})]},[l,s,r,o])};var XOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const KOe=e=>{const t=(0,g.forwardRef)((t,n)=>{var r;const{prefixCls:o,getPopupContainer:i,components:a,className:l,style:s,placement:c,size:u,disabled:d,bordered:p=!0,placeholder:f,popupStyle:h,popupClassName:m,dropdownClassName:v,status:y,rootClassName:b,variant:x,picker:w,styles:S,classNames:C}=t,_=XOe(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),k=w===zOe?"timePicker":"datePicker",M=g.useRef(null),{getPrefixCls:I,direction:E,getPopupContainer:O,rangePicker:$}=(0,g.useContext)(qr),T=I("picker",o),{compactSize:P,compactItemClassnames:D}=Dw(T,E),N=I(),[A,R]=Pb("rangePicker",x,p),j=Rd(T),[L,z,B]=IOe(T,j);const[H,F]=qOe(k,C,S,m||v,h),[V]=$Oe(t,T),W=FOe(a),G=Vp(e=>{var t;return null!==(t=null!==u&&void 0!==u?u:P)&&void 0!==t?t:e}),U=g.useContext(no),Y=null!==d&&void 0!==d?d:U,q=(0,g.useContext)(Ob),{hasFeedback:X,status:K,feedbackIcon:Z}=q,Q=g.createElement(g.Fragment,null,w===zOe?g.createElement(vIe,null):g.createElement(V$,null),X&&Z);(0,g.useImperativeHandle)(n,()=>M.current);const[J]=yw("Calendar",Ln),ee=Object.assign(Object.assign({},J),t.locale),[te]=Fd("DatePicker",null===(r=F.popup.root)||void 0===r?void 0:r.zIndex);return L(g.createElement(jw,{space:!0},g.createElement(dOe,Object.assign({separator:g.createElement("span",{"aria-label":"to",className:`${T}-separator`},g.createElement(xIe,null)),disabled:Y,ref:M,placement:c,placeholder:OOe(ee,w,f),suffixIcon:Q,prevIcon:g.createElement("span",{className:`${T}-prev-icon`}),nextIcon:g.createElement("span",{className:`${T}-next-icon`}),superPrevIcon:g.createElement("span",{className:`${T}-super-prev-icon`}),superNextIcon:g.createElement("span",{className:`${T}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:w},_,{className:po()({[`${T}-${G}`]:G,[`${T}-${A}`]:R},pC(T,fC(K,y),X),z,D,l,null===$||void 0===$?void 0:$.className,B,j,b,H.root),style:Object.assign(Object.assign(Object.assign({},null===$||void 0===$?void 0:$.style),s),F.root),locale:ee.lang,prefixCls:T,getPopupContainer:i||O,generateConfig:e,components:W,direction:E,classNames:{popup:po()(z,B,j,b,H.popup.root)},styles:{popup:Object.assign(Object.assign({},F.popup.root),{zIndex:te})},allowClear:V}))))});return t};var ZOe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const QOe=e=>{const t=(t,n)=>{const r=n===BOe?"timePicker":"datePicker",o=(0,g.forwardRef)((n,o)=>{var i;const{prefixCls:a,getPopupContainer:l,components:s,style:c,className:u,rootClassName:d,size:p,bordered:f,placement:h,placeholder:m,popupStyle:v,popupClassName:y,dropdownClassName:b,disabled:x,status:w,variant:S,onCalendarChange:C,styles:_,classNames:k}=n,M=ZOe(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:I,direction:E,getPopupContainer:O,[r]:$}=(0,g.useContext)(qr),T=I("picker",a),{compactSize:P,compactItemClassnames:D}=Dw(T,E),N=g.useRef(null),[A,R]=Pb("datePicker",S,f),j=Rd(T),[L,z,B]=IOe(T,j);(0,g.useImperativeHandle)(o,()=>N.current);const H=t||n.picker,F=I(),{onSelect:V,multiple:W}=M,G=V&&"time"===t&&!W;const[U,Y]=qOe(r,k,_,y||b,v),[q,X]=$Oe(n,T),K=FOe(s),Z=Vp(e=>{var t;return null!==(t=null!==p&&void 0!==p?p:P)&&void 0!==t?t:e}),Q=g.useContext(no),J=null!==x&&void 0!==x?x:Q,ee=(0,g.useContext)(Ob),{hasFeedback:te,status:ne,feedbackIcon:re}=ee,oe=g.createElement(g.Fragment,null,"time"===H?g.createElement(vIe,null):g.createElement(V$,null),te&&re),[ie]=yw("DatePicker",Ln),ae=Object.assign(Object.assign({},ie),n.locale),[le]=Fd("DatePicker",null===(i=Y.popup.root)||void 0===i?void 0:i.zIndex);return L(g.createElement(jw,{space:!0},g.createElement(vOe,Object.assign({ref:N,placeholder:EOe(ae,H,m),suffixIcon:oe,placement:h,prevIcon:g.createElement("span",{className:`${T}-prev-icon`}),nextIcon:g.createElement("span",{className:`${T}-next-icon`}),superPrevIcon:g.createElement("span",{className:`${T}-super-prev-icon`}),superNextIcon:g.createElement("span",{className:`${T}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null===C||void 0===C||C(e,t,n),G&&V(e)}},{showToday:!0},M,{locale:ae.lang,className:po()({[`${T}-${Z}`]:Z,[`${T}-${A}`]:R},pC(T,fC(ne,w),te),z,D,null===$||void 0===$?void 0:$.className,u,B,j,d,U.root),style:Object.assign(Object.assign(Object.assign({},null===$||void 0===$?void 0:$.style),c),Y.root),prefixCls:T,getPopupContainer:l||O,generateConfig:e,components:K,direction:E,disabled:J,classNames:{popup:po()(z,B,j,d,U.popup.root)},styles:{popup:Object.assign(Object.assign({},Y.popup.root),{zIndex:le})},allowClear:q,removeIcon:X}))))});return o},n=t(),r=t(TOe,POe),o=t(DOe,NOe),i=t(AOe,ROe),a=t(jOe,LOe);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:t(zOe,BOe),QuarterPicker:a}},JOe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=QOe(e),l=KOe(e),s=t;return s.WeekPicker=n,s.MonthPicker=r,s.YearPicker=o,s.RangePicker=l,s.TimePicker=i,s.QuarterPicker=a,s},e$e=JOe(hIe),t$e=jO(e$e,"popupAlign",void 0,"picker");e$e._InternalPanelDoNotUseOrYouWillBeFired=t$e;const n$e=jO(e$e.RangePicker,"popupAlign",void 0,"picker");e$e._InternalRangePanelDoNotUseOrYouWillBeFired=n$e,e$e.generatePicker=JOe;const r$e=e$e,{Option:o$e}=rN,{RangePicker:i$e}=r$e,a$e=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),[i,a]=(0,g.useState)(!1),[l]=bS.useForm(),[s,c]=(0,g.useState)(!1),[u,d]=(0,g.useState)(null),[p,f]=(0,g.useState)([]),[h,m]=(0,g.useState)({current:1,pageSize:10,total:0}),[v,y]=(0,g.useState)({}),b=Uc(),x=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{a(!0);const t={page:h.current,size:h.pageSize,...v,...e},n=await fE(t);0===n.code&&(f(n.data.content||[]),m(e=>({...e,total:n.data.totalElements||0})))}catch(t){console.error("\u83b7\u53d6\u6d3b\u52a8\u5217\u8868\u5931\u8d25:",t),Hp.error("\u83b7\u53d6\u6d3b\u52a8\u5217\u8868\u5931\u8d25")}finally{a(!1)}};(0,g.useEffect)(()=>{x()},[h.current,h.pageSize]);const w=[{title:"\u6d3b\u52a8\u540d\u79f0",dataIndex:"title",key:"title",width:200},{title:"\u6d3b\u52a8\u5206\u7c7b",dataIndex:"categoryDesc",key:"categoryDesc",width:120,render:e=>(0,EE.jsx)(uA,{color:{"\u515a\u7684\u5efa\u8bbe":"red","\u7ecf\u6d4e\u53d1\u5c55":"blue","\u5e73\u5b89\u6cd5\u6cbb":"green","\u6c11\u751f\u670d\u52a1":"orange","\u5931\u4fe1\u8fdd\u6cd5":"purple"}[e],children:e})},{title:"\u6d3b\u52a8\u65f6\u95f4",key:"time",width:200,render:(e,t)=>(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{children:["\u5f00\u59cb\uff1a",Ixe()(t.startTime).format("MM-DD HH:mm")]}),(0,EE.jsxs)("div",{children:["\u7ed3\u675f\uff1a",Ixe()(t.endTime).format("MM-DD HH:mm")]})]})},{title:"\u6d3b\u52a8\u5730\u70b9",dataIndex:"location",key:"location",width:150},{title:"\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570",dataIndex:"maxParticipants",key:"maxParticipants",width:120,render:e=>(0,EE.jsx)("span",{children:e})},{title:"\u62a5\u540d\u622a\u6b62\u65f6\u95f4",dataIndex:"deadline",key:"deadline",width:150,render:e=>Ixe()(e).format("YYYY-MM-DD HH:mm")},{title:"\u6d3b\u52a8\u79ef\u5206",dataIndex:"points",key:"points",width:80,render:e=>(0,EE.jsxs)("span",{style:{color:"#52c41a",fontWeight:"bold"},children:["+",e]})},{title:"\u72b6\u6001",dataIndex:"status",key:"status",width:100,render:e=>{const t={1:{text:"\u672a\u5f00\u59cb",color:"default"},2:{text:"\u8fdb\u884c\u4e2d",color:"processing"},3:{text:"\u5df2\u7ed3\u675f",color:"success"}}[e]||{text:"\u672a\u77e5",color:"default"};return(0,EE.jsx)(uA,{color:t.color,children:t.text})}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime",width:150,render:e=>Ixe()(e).format("YYYY-MM-DD HH:mm")},{title:"\u64cd\u4f5c",key:"action",width:200,render:(e,t)=>(0,EE.jsxs)(a$,{size:"middle",children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(DC,{}),onClick:()=>S(t),children:"\u67e5\u770b"}),(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(Mk,{}),onClick:()=>b(`/activities/registrations/${t.id}`),children:"\u62a5\u540d\u7ba1\u7406"}),"\u5df2\u7ed3\u675f"!==t.status&&(0,EE.jsxs)(EE.Fragment,{children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(GMe,{}),onClick:()=>C(t),children:"\u7f16\u8f91"}),(0,EE.jsx)(Lxe,{title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u6d3b\u52a8\u5417\uff1f",onConfirm:()=>_(t.id),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,EE.jsx)(rk,{type:"link",danger:!0,icon:(0,EE.jsx)(qMe,{}),children:"\u5220\u9664"})})]})]})}],S=e=>{d(e),c(!0)},C=e=>{b(`/activities/edit/${e.id}`)},_=async e=>{try{0===(await mE(e.toString())).code&&(Hp.success("\u5220\u9664\u6210\u529f"),x())}catch(t){console.error("\u5220\u9664\u6d3b\u52a8\u5931\u8d25:",t),Hp.error("\u5220\u9664\u6d3b\u52a8\u5931\u8d25")}},k=()=>{c(!1)};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u6d3b\u52a8\u5217\u8868"}),(0,EE.jsx)("p",{className:"page-description",children:"\u7ba1\u7406\u6240\u6709\u5fd7\u613f\u8005\u6d3b\u52a8\uff0c\u67e5\u770b\u6d3b\u52a8\u72b6\u6001\u548c\u62a5\u540d\u60c5\u51b5"})]}),(0,EE.jsx)(zb,{className:"search-form",children:(0,EE.jsxs)(bS,{form:l,layout:"inline",onFinish:e=>{const t={...e};e.timeRange&&2===e.timeRange.length&&(t.createStart=e.timeRange[0].format("YYYY-MM-DD"),t.createEnd=e.timeRange[1].format("YYYY-MM-DD"),delete t.timeRange),y(t),m(e=>({...e,current:1})),x({...t,page:1})},children:[(0,EE.jsxs)(pT,{gutter:[16,16],style:{width:"100%"},children:[(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"title",label:"\u6d3b\u52a8\u540d\u79f0",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u540d\u79f0"})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"category",label:"\u6d3b\u52a8\u5206\u7c7b",children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5206\u7c7b",allowClear:!0,children:[(0,EE.jsx)(o$e,{value:"\u515a\u7684\u5efa\u8bbe",children:"\u515a\u7684\u5efa\u8bbe"}),(0,EE.jsx)(o$e,{value:"\u7ecf\u6d4e\u53d1\u5c55",children:"\u7ecf\u6d4e\u53d1\u5c55"}),(0,EE.jsx)(o$e,{value:"\u5e73\u5b89\u6cd5\u6cbb",children:"\u5e73\u5b89\u6cd5\u6cbb"}),(0,EE.jsx)(o$e,{value:"\u6c11\u751f\u670d\u52a1",children:"\u6c11\u751f\u670d\u52a1"}),(0,EE.jsx)(o$e,{value:"\u5931\u4fe1\u8fdd\u6cd5",children:"\u5931\u4fe1\u8fdd\u6cd5"})]})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"status",label:"\u6d3b\u52a8\u72b6\u6001",children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u72b6\u6001",allowClear:!0,children:[(0,EE.jsx)(o$e,{value:"\u62a5\u540d\u4e2d",children:"\u62a5\u540d\u4e2d"}),(0,EE.jsx)(o$e,{value:"\u8fdb\u884c\u4e2d",children:"\u8fdb\u884c\u4e2d"}),(0,EE.jsx)(o$e,{value:"\u5df2\u7ed3\u675f",children:"\u5df2\u7ed3\u675f"}),(0,EE.jsx)(o$e,{value:"\u5df2\u53d6\u6d88",children:"\u5df2\u53d6\u6d88"})]})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"timeRange",label:"\u6d3b\u52a8\u65f6\u95f4",children:(0,EE.jsx)(i$e,{style:{width:"100%"}})})})]}),(0,EE.jsxs)("div",{className:"form-actions",children:[(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",children:"\u641c\u7d22"}),(0,EE.jsx)(rk,{onClick:()=>{l.resetFields(),y({}),m(e=>({...e,current:1})),x({page:1})},children:"\u91cd\u7f6e"})]})]})}),(0,EE.jsxs)(zb,{children:[(0,EE.jsx)("div",{className:"table-actions",children:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Sf,{}),onClick:()=>{b("/activities/create")},children:"\u53d1\u5e03\u6d3b\u52a8"})}),(0,EE.jsx)(cMe,{columns:w,dataSource:p,rowKey:"id",loading:i,scroll:{x:1400},pagination:{current:h.current,pageSize:h.pageSize,total:h.total,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{m(t=>({...t,current:e.current,pageSize:e.pageSize}))}})]}),(0,EE.jsx)(_R,{title:"\u67e5\u770b\u6d3b\u52a8\u8be6\u60c5",open:s,onCancel:k,footer:[(0,EE.jsx)(rk,{onClick:k,children:"\u5173\u95ed"},"close")],width:800,children:u&&(0,EE.jsxs)("div",{children:[(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u540d\u79f0\uff1a"}),u.title]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5206\u7c7b\uff1a"}),u.categoryDesc]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4\uff1a"}),Ixe()(u.startTime).format("YYYY-MM-DD HH:mm")]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4\uff1a"}),Ixe()(u.endTime).format("YYYY-MM-DD HH:mm")]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5730\u70b9\uff1a"}),u.location]})}),(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u62a5\u540d\u622a\u6b62\u65f6\u95f4\uff1a"}),Ixe()(u.deadline).format("YYYY-MM-DD HH:mm")]})})]}),(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{span:8,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570\uff1a"}),u.maxParticipants]})}),(0,EE.jsx)(fT,{span:8,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u79ef\u5206\uff1a"}),u.points]})}),(0,EE.jsx)(fT,{span:8,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u72b6\u6001\uff1a"}),{1:"\u672a\u5f00\u59cb",2:"\u8fdb\u884c\u4e2d",3:"\u5df2\u7ed3\u675f"}[u.status]||"\u672a\u77e5"]})})]}),(0,EE.jsx)(pT,{gutter:[24,16],children:(0,EE.jsx)(fT,{span:12,children:(0,EE.jsxs)("div",{children:[(0,EE.jsx)("strong",{children:"\u521b\u5efa\u65f6\u95f4\uff1a"}),Ixe()(u.createTime).format("YYYY-MM-DD HH:mm")]})})}),(0,EE.jsx)(pT,{gutter:[24,16],children:(0,EE.jsxs)(fT,{span:24,children:[(0,EE.jsx)("div",{children:(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5185\u5bb9\uff1a"})}),(0,EE.jsx)("div",{style:{marginTop:"8px",padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:u.content})]})}),u.cover&&(0,EE.jsx)(pT,{gutter:[24,16],children:(0,EE.jsxs)(fT,{span:24,children:[(0,EE.jsx)("div",{children:(0,EE.jsx)("strong",{children:"\u6d3b\u52a8\u5c01\u9762\uff1a"})}),(0,EE.jsx)("div",{style:{marginTop:"8px"},children:(0,EE.jsx)("img",{src:u.cover,alt:"\u6d3b\u52a8\u5c01\u9762",style:{maxWidth:"200px",borderRadius:"4px"}})})]})})]})})]})},l$e=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&(Ce(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function s$e(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(vDe){return t}}function c$e(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var r=e.data[t];Array.isArray(r)?r.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),s$e(t)):e.onSuccess(s$e(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(e){null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort:function(){t.abort()}}}var u$e=function(){var e=Iu(ku().mark(function e(t,n){var r,o,i,a,l,s,c,u;return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=function(){return(s=Iu(ku().mark(function e(t){return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(r){n(r)?(t.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),e(r)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return s.apply(this,arguments)},a=function(){return a=Iu(ku().mark(function e(t){var n,r,o,i,a;return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),r=[];case 2:return e.next=5,new Promise(function(e){n.readEntries(e,function(){return e([])})});case 5:if(o=e.sent,i=o.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)r.push(o[a]);e.next=2;break;case 12:return e.abrupt("return",r);case 13:case"end":return e.stop()}},e)})),a.apply(this,arguments)},i=function(e){return a.apply(this,arguments)},r=[],o=[],t.forEach(function(e){return o.push(e.webkitGetAsEntry())}),c=function(){var e=Iu(ku().mark(function e(t,n){var a,s;return ku().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&r.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:s=e.sent,o.push.apply(o,ee(s));case 15:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<o.length)){e.next=15;break}return e.next=12,c(o[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",r);case 16:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();const d$e=u$e;var p$e=+new Date,f$e=0;function h$e(){return"rc-upload-".concat(p$e,"-").concat(++f$e)}var g$e=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],m$e=function(e){Po(n,e);var t=Ro(n);function n(){var e;ke(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Y(Ao(e=t.call.apply(t,[this].concat(o))),"state",{uid:h$e()}),Y(Ao(e),"reqs",{}),Y(Ao(e),"fileInput",void 0),Y(Ao(e),"_isMounted",void 0),Y(Ao(e),"onChange",function(t){var n=e.props,r=n.accept,o=n.directory,i=ee(t.target.files).filter(function(e){return!o||l$e(e,r)});e.uploadFiles(i),e.reset()}),Y(Ao(e),"onClick",function(t){var n=e.fileInput;if(n){var r=t.target,o=e.props.onClick;if(r&&"BUTTON"===r.tagName)n.parentNode.focus(),r.blur();n.click(),o&&o(t)}}),Y(Ao(e),"onKeyDown",function(t){"Enter"===t.key&&e.onClick(t)}),Y(Ao(e),"onDataTransferFiles",function(){var t=Iu(ku().mark(function t(n,r){var o,i,a,l,s,c,u;return ku().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props,i=o.multiple,a=o.accept,l=o.directory,s=ee(n.items||[]),((c=ee(n.files||[])).length>0||s.some(function(e){return"file"===e.kind}))&&(null===r||void 0===r||r()),!l){t.next=11;break}return t.next=7,d$e(Array.prototype.slice.call(s),function(t){return l$e(t,e.props.accept)});case 7:c=t.sent,e.uploadFiles(c),t.next=14;break;case 11:u=ee(c).filter(function(e){return l$e(e,a)}),!1===i&&(u=c.slice(0,1)),e.uploadFiles(u);case 14:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),Y(Ao(e),"onFilePaste",function(){var t=Iu(ku().mark(function t(n){var r;return ku().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==n.type){t.next=6;break}return r=n.clipboardData,t.abrupt("return",e.onDataTransferFiles(r,function(){n.preventDefault()}));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),Y(Ao(e),"onFileDragOver",function(e){e.preventDefault()}),Y(Ao(e),"onFileDrop",function(){var t=Iu(ku().mark(function t(n){var r;return ku().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),"drop"!==n.type){t.next=4;break}return r=n.dataTransfer,t.abrupt("return",e.onDataTransferFiles(r));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),Y(Ao(e),"uploadFiles",function(t){var n=ee(t),r=n.map(function(t){return t.uid=h$e(),e.processFile(t,n)});Promise.all(r).then(function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),Y(Ao(e),"processFile",function(){var t=Iu(ku().mark(function t(n,r){var o,i,a,l,s,c,u,d,p;return ku().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.props.beforeUpload,i=n,!o){t.next=14;break}return t.prev=3,t.next=6,o(n,r);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!==typeof(s=e.props.data)){t.next=29;break}return t.next=26,s(n);case 26:c=t.sent,t.next=30;break;case 29:c=s;case 30:return u="object"!==G(i)&&"string"!==typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(p=d).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:p,action:l});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),Y(Ao(e),"saveFileInput",function(t){e.fileInput=t}),e}return Ie(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,o=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,s=a.customRequest,c=a.name,u=a.headers,d=a.withCredentials,p=a.method,f=r.uid,h=s||c$e,g={action:o,filename:c,data:n,file:i,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,i)},onSuccess:function(e,n){var r=t.props.onSuccess;null===r||void 0===r||r(e,i,n),delete t.reqs[f]},onError:function(e,n){var r=t.props.onError;null===r||void 0===r||r(e,n,i),delete t.reqs[f]}};l(r),this.reqs[f]=h(g)}}},{key:"reset",value:function(){this.setState({uid:h$e()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,r=e.className,o=e.classNames,i=void 0===o?{}:o,a=e.disabled,l=e.id,s=e.name,c=e.style,u=e.styles,d=void 0===u?{}:u,p=e.multiple,f=e.accept,h=e.capture,m=e.children,v=e.directory,y=e.openFileDialogOnClick,b=e.onMouseEnter,x=e.onMouseLeave,w=e.hasControlInside,S=Io(e,g$e),C=po()(Y(Y(Y({},n,!0),"".concat(n,"-disabled"),a),r,r)),_=v?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},k=a?{}:{onClick:y?this.onClick:function(){},onKeyDown:y?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:x,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:w?void 0:"0"};return g.createElement(t,gt({},k,{className:C,role:w?void 0:"button",style:c}),g.createElement("input",gt({},Sd(S,{aria:!0,data:!0}),{id:l,name:s,disabled:a,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:ne({display:"none"},d.input),className:i.input,accept:f},_,{multiple:p,onChange:this.onChange},null!=h?{capture:h}:{})),m)}}]),n}(g.Component);const v$e=m$e;function y$e(){}var b$e=function(e){Po(n,e);var t=Ro(n);function n(){var e;ke(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Y(Ao(e=t.call.apply(t,[this].concat(o))),"uploader",void 0),Y(Ao(e),"saveUploader",function(t){e.uploader=t}),e}return Ie(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return g.createElement(v$e,gt({},this.props,{ref:this.saveUploader}))}}]),n}(g.Component);Y(b$e,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:y$e,onError:y$e,onSuccess:y$e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const x$e=b$e,w$e=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Xe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n          &:not(${t}-disabled):hover,\n          &-hover:not(${t}-disabled)\n        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Xe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n            p${t}-text,\n            p${t}-hint\n          `]:{color:e.colorTextDisabled}}}}}},S$e=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Xi),{padding:`0 ${Xe(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[s]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n              ${s}:focus-visible,\n              &.picture ${s}\n            `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},C$e=e=>{const{componentCls:t}=e,n=new xn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new xn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:zA(e)},n,r]},_$e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n        ${a}${a}-picture,\n        ${a}${a}-picture-card,\n        ${a}${a}-picture-circle\n      `]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},Xi),{width:r,height:r,lineHeight:Xe(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:o,width:`calc(100% - ${Xe(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${pr[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${pr.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},k$e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return{[`\n      ${t}-wrapper${t}-picture-card-wrapper,\n      ${t}-wrapper${t}-picture-circle-wrapper\n    `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Xe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Xe(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Xe(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n            ${n}-eye,\n            ${n}-download,\n            ${n}-delete\n          `]:{zIndex:10,width:r,margin:`0 ${Xe(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Xe(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Xe(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},M$e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},I$e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ki(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},E$e=dp("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=ep(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[I$e(a),w$e(a),_$e(a),k$e(a),S$e(a),C$e(a),M$e(a),tx(a)]},e=>({actionsColor:e.colorIcon}));const O$e={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"};var $$e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:O$e}))};const T$e=g.forwardRef($$e);const P$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};var D$e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:P$e}))};const N$e=g.forwardRef(D$e);const A$e={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"};var R$e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:A$e}))};const j$e=g.forwardRef(R$e);function L$e(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function z$e(e,t){const n=ee(t),r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return-1===r?n.push(e):n[r]=e,n}function B$e(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}const H$e=e=>0===e.indexOf("image/"),F$e=e=>{if(e.type&&!e.thumbUrl)return H$e(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},V$e=200;function W$e(e){return new Promise(t=>{if(!e.type||!H$e(e.type))return void t("");const n=document.createElement("canvas");n.width=V$e,n.height=V$e,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:e,height:i}=o;let a=V$e,l=V$e,s=0,c=0;e>i?(l=i*(V$e/e),c=-(l-a)/2):(a=e*(V$e/i),s=-(a-l)/2),r.drawImage(o,s,c,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"===typeof t.result&&(o.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const G$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};var U$e=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:G$e}))};const Y$e=g.forwardRef(U$e);var q$e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},X$e=function(){var e=(0,g.useRef)([]),t=(0,g.useRef)(null);return(0,g.useEffect)(function(){var n=Date.now(),r=!1;e.current.forEach(function(e){if(e){r=!0;var o=e.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(o.transitionDuration="0s, 0s")}}),r&&(t.current=Date.now())}),e.current};var K$e=0,Z$e=oe();const Q$e=function(e){var t=Q(g.useState(),2),n=t[0],r=t[1];return g.useEffect(function(){r("rc_progress_".concat(function(){var e;return Z$e?(e=K$e,K$e+=1):e="TEST_OR_SSR",e}()))},[]),e||n};var J$e=function(e){var t=e.bg,n=e.children;return g.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function eTe(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var tTe=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,l=e.ptg,s=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,p=r&&"object"===G(r),f=p?"#FFF":void 0,h=u/2,m=g.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:f,strokeLinecap:s,strokeWidth:c,opacity:0===l?0:1,style:a,ref:t});if(!p)return m;var v="".concat(o,"-conic"),y=d?"".concat(180+d/2,"deg"):"0deg",b=eTe(r,(360-d)/360),x=eTe(r,1),w="conic-gradient(from ".concat(y,", ").concat(b.join(", "),")"),S="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(x.join(", "),")");return g.createElement(g.Fragment,null,g.createElement("mask",{id:v},m),g.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},g.createElement(J$e,{bg:S},g.createElement(J$e,{bg:w}))))});const nTe=tTe;var rTe=100,oTe=function(e,t,n,r,o,i,a,l,s,c){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-r)/100*t;"round"===s&&100!==r&&(f+=c/2)>=t&&(f=t-.01);return{stroke:"string"===typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(o+d+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},iTe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function aTe(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}const lTe=function(e){var t=ne(ne({},q$e),e),n=t.id,r=t.prefixCls,o=t.steps,i=t.strokeWidth,a=t.trailWidth,l=t.gapDegree,s=void 0===l?0:l,c=t.gapPosition,u=t.trailColor,d=t.strokeLinecap,p=t.style,f=t.className,h=t.strokeColor,m=t.percent,v=Io(t,iTe),y=Q$e(n),b="".concat(y,"-gradient"),x=50-i/2,w=2*Math.PI*x,S=s>0?90+s/2:-90,C=w*((360-s)/360),_="object"===G(o)?o:{count:o,gap:2},k=_.count,M=_.gap,I=aTe(m),E=aTe(h),O=E.find(function(e){return e&&"object"===G(e)}),$=O&&"object"===G(O)?"butt":d,T=oTe(w,C,0,100,S,s,c,u,$,i),P=X$e();return g.createElement("svg",gt({className:po()("".concat(r,"-circle"),f),viewBox:"0 0 ".concat(rTe," ").concat(rTe),style:p,id:n,role:"presentation"},v),!k&&g.createElement("circle",{className:"".concat(r,"-circle-trail"),r:x,cx:50,cy:50,stroke:u,strokeLinecap:$,strokeWidth:a||i,style:T}),k?function(){var e=Math.round(k*(I[0]/100)),t=100/k,n=0;return new Array(k).fill(null).map(function(o,a){var l=a<=e-1?E[0]:u,d=l&&"object"===G(l)?"url(#".concat(b,")"):void 0,p=oTe(w,C,n,t,S,s,c,l,"butt",i,M);return n+=100*(C-p.strokeDashoffset+M)/C,g.createElement("circle",{key:a,className:"".concat(r,"-circle-path"),r:x,cx:50,cy:50,stroke:d,strokeWidth:i,opacity:1,style:p,ref:function(e){P[a]=e}})})}():function(){var e=0;return I.map(function(t,n){var o=E[n]||E[E.length-1],a=oTe(w,C,e,t,S,s,c,o,$,i);return e+=t,g.createElement(nTe,{key:n,color:o,ptg:t,radius:x,prefixCls:r,gradientId:b,style:a,strokeLinecap:$,strokeWidth:i,gapDegree:s,ref:function(e){P[n]=e},size:rTe})}).reverse()}())};function sTe(e){return!e||e<0?0:e>100?100:e}function cTe(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const uTe=(e,t,n)=>{var r,o,i,a;let l=-1,s=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(l="small"===e?2:14,s=null!==r&&void 0!==r?r:8):"number"===typeof e?[l,s]=[e,e]:[l=14,s=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?s=t||("small"===e?6:8):"number"===typeof e?[l,s]=[e,e]:[l=-1,s=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[l,s]="small"===e?[60,60]:[120,120]:"number"===typeof e?[l,s]=[e,e]:Array.isArray(e)&&(l=null!==(o=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==o?o:120,s=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,s]},dTe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:s,success:c,size:u=a,steps:d}=e,[p,f]=uTe(u,"circle");let{strokeWidth:h}=e;void 0===h&&(h=Math.max((e=>3/e*100)(p),6));const m={width:p,height:f,fontSize:.15*p+6},v=g.useMemo(()=>i||0===i?i:"dashboard"===l?75:void 0,[i,l]),y=(e=>{let{percent:t,success:n,successPercent:r}=e;const o=sTe(cTe({success:n,successPercent:r}));return[o,sTe(sTe(t)-o)]})(e),b=o||"dashboard"===l&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),w=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||rr.green,n||null]})({success:c,strokeColor:e.strokeColor}),S=po()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),C=g.createElement(lTe,{steps:d,percent:d?y[1]:y,strokeWidth:h,trailWidth:h,strokeColor:d?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:b}),_=p<=20,k=g.createElement("div",{className:S,style:m},C,!_&&s);return _?g.createElement(aS,{title:s},k):k},pTe="--progress-line-stroke-color",fTe="--progress-percent",hTe=e=>{const t=e?"100%":"-100%";return new xn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},gTe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ki(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${pTe})`]},height:"100%",width:`calc(1 / var(${fTe}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Xe(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:hTe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:hTe(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},mTe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},vTe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},yTe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},bTe=dp("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=ep(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[gTe(n),mTe(n),vTe(n),yTe(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}));var xTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const wTe=(e,t)=>{const{from:n=rr.blue,to:r=rr.blue,direction:o=("rtl"===t?"to left":"to right")}=e,i=xTe(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=(e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(", ")})(i),t=`linear-gradient(${o}, ${e})`;return{background:t,[pTe]:t}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[pTe]:a}},STe=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,percentPosition:u,success:d}=e,{align:p,type:f}=u,h=a&&"string"!==typeof a?wTe(a,n):{[pTe]:a,background:a},m="square"===l||"butt"===l?0:void 0,v=null!==o&&void 0!==o?o:[-1,i||("small"===o?6:8)],[y,b]=uTe(v,"line",{strokeWidth:i});const x={backgroundColor:c||void 0,borderRadius:m},w=Object.assign(Object.assign({width:`${sTe(r)}%`,height:b,borderRadius:m},h),{[fTe]:sTe(r)/100}),S=cTe(e),C={width:`${sTe(S)}%`,height:b,borderRadius:m,backgroundColor:null===d||void 0===d?void 0:d.strokeColor},_={width:y<0?"100%":y},k=g.createElement("div",{className:`${t}-inner`,style:x},g.createElement("div",{className:po()(`${t}-bg`,`${t}-bg-${f}`),style:w},"inner"===f&&s),void 0!==S&&g.createElement("div",{className:`${t}-success-bg`,style:C})),M="outer"===f&&"start"===p,I="outer"===f&&"end"===p;return"outer"===f&&"center"===p?g.createElement("div",{className:`${t}-layout-bottom`},k,s):g.createElement("div",{className:`${t}-outer`,style:_},M&&s,k,I&&s)},CTe=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:s,children:c}=e,u=r(n*(o/100)),d=null!==t&&void 0!==t?t:["small"===t?2:14,i],[p,f]=uTe(d,"step",{steps:n,strokeWidth:i}),h=p/n,m=Array.from({length:n});for(let v=0;v<n;v++){const e=Array.isArray(a)?a[v]:a;m[v]=g.createElement("div",{key:v,className:po()(`${s}-steps-item`,{[`${s}-steps-item-active`]:v<=u-1}),style:{backgroundColor:v<=u-1?e:l,width:h,height:f}})}return g.createElement("div",{className:`${s}-steps-outer`},m,c)};var _Te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const kTe=["normal","exception","active","success"],MTe=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:l=0,size:s="default",showInfo:c=!0,type:u="line",status:d,format:p,style:f,percentPosition:h={}}=e,m=_Te(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=h,b=Array.isArray(a)?a[0]:a,x="string"===typeof a||Array.isArray(a)?a:void 0,w=g.useMemo(()=>{if(b){const e="string"===typeof b?b:Object.values(b)[0];return new Zn(e).isLight()}return!1},[a]),S=g.useMemo(()=>{var t,n;const r=cTe(e);return parseInt(void 0!==r?null===(t=null!==r&&void 0!==r?r:0)||void 0===t?void 0:t.toString():null===(n=null!==l&&void 0!==l?l:0)||void 0===n?void 0:n.toString(),10)},[l,e.success,e.successPercent]),C=g.useMemo(()=>!kTe.includes(d)&&S>=100?"success":d||"normal",[d,S]),{getPrefixCls:_,direction:k,progress:M}=g.useContext(qr),I=_("progress",n),[E,O,$]=bTe(I),T="line"===u,P=T&&!i,D=g.useMemo(()=>{if(!c)return null;const t=cTe(e);let n;const r=p||(e=>`${e}%`),o=T&&w&&"inner"===y;return"inner"===y||p||"exception"!==C&&"success"!==C?n=r(sTe(l),sTe(t)):"exception"===C?n=T?g.createElement(sd,null):g.createElement(Sp,null):"success"===C&&(n=T?g.createElement(id,null):g.createElement(YD,null)),g.createElement("span",{className:po()(`${I}-text`,{[`${I}-text-bright`]:o,[`${I}-text-${v}`]:P,[`${I}-text-${y}`]:P}),title:"string"===typeof n?n:void 0},n)},[c,l,S,C,u,I,p]);let N;"line"===u?N=i?g.createElement(CTe,Object.assign({},e,{strokeColor:x,prefixCls:I,steps:"object"===typeof i?i.count:i}),D):g.createElement(STe,Object.assign({},e,{strokeColor:b,prefixCls:I,direction:k,percentPosition:{align:v,type:y}}),D):"circle"!==u&&"dashboard"!==u||(N=g.createElement(dTe,Object.assign({},e,{strokeColor:b,prefixCls:I,progressStatus:C}),D));const A=po()(I,`${I}-status-${C}`,{[`${I}-${"dashboard"===u?"circle":u}`]:"line"!==u,[`${I}-inline-circle`]:"circle"===u&&uTe(s,"circle")[0]<=20,[`${I}-line`]:P,[`${I}-line-align-${v}`]:P,[`${I}-line-position-${y}`]:P,[`${I}-steps`]:i,[`${I}-show-info`]:c,[`${I}-${s}`]:"string"===typeof s,[`${I}-rtl`]:"rtl"===k},null===M||void 0===M?void 0:M.className,r,o,O,$);return E(g.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),f),className:A,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Fp(m,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),N))});const ITe=MTe,ETe=g.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:l,items:s,progress:c,iconRender:u,actionIconRender:d,itemRender:p,isImgUrl:f,showPreviewIcon:h,showRemoveIcon:m,showDownloadIcon:v,previewIcon:y,removeIcon:b,downloadIcon:x,extra:w,onPreview:S,onDownload:C,onClose:_}=e;var k,M;const{status:I}=l,[E,O]=g.useState(I);g.useEffect(()=>{"removed"!==I&&O(I)},[I]);const[$,T]=g.useState(!1);g.useEffect(()=>{const e=setTimeout(()=>{T(!0)},300);return()=>{clearTimeout(e)}},[]);const P=u(l);let D=g.createElement("div",{className:`${n}-icon`},P);if("picture"===a||"picture-card"===a||"picture-circle"===a)if("uploading"===E||!l.thumbUrl&&!l.url){const e=po()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==E});D=g.createElement("div",{className:e},P)}else{const e=(null===f||void 0===f?void 0:f(l))?g.createElement("img",{src:l.thumbUrl||l.url,alt:l.name,className:`${n}-list-item-image`,crossOrigin:l.crossOrigin}):P,t=po()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:f&&!f(l)});D=g.createElement("a",{className:t,onClick:e=>S(l,e),href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const N=po()(`${n}-list-item`,`${n}-list-item-${E}`),A="string"===typeof l.linkProps?JSON.parse(l.linkProps):l.linkProps,R=("function"===typeof m?m(l):m)?d(("function"===typeof b?b(l):b)||g.createElement(qMe,null),()=>_(l),n,i.removeFile,!0):null,j=("function"===typeof v?v(l):v)&&"done"===E?d(("function"===typeof x?x(l):x)||g.createElement(Y$e,null),()=>C(l),n,i.downloadFile):null,L="picture-card"!==a&&"picture-circle"!==a&&g.createElement("span",{key:"download-delete",className:po()(`${n}-list-item-actions`,{picture:"picture"===a})},j,R),z="function"===typeof w?w(l):w,B=z&&g.createElement("span",{className:`${n}-list-item-extra`},z),H=po()(`${n}-list-item-name`),F=l.url?g.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:H,title:l.name},A,{href:l.url,onClick:e=>S(l,e)}),l.name,B):g.createElement("span",{key:"view",className:H,onClick:e=>S(l,e),title:l.name},l.name,B),V=("function"===typeof h?h(l):h)&&(l.url||l.thumbUrl)?g.createElement("a",{href:l.url||l.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>S(l,e),title:i.previewFile},"function"===typeof y?y(l):y||g.createElement(DC,null)):null,W=("picture-card"===a||"picture-circle"===a)&&"uploading"!==E&&g.createElement("span",{className:`${n}-list-item-actions`},V,"done"===E&&j,R),{getPrefixCls:G}=g.useContext(qr),U=G(),Y=g.createElement("div",{className:N},D,F,L,W,$&&g.createElement(Ai,{motionName:`${U}-fade`,visible:"uploading"===E,motionDeadline:2e3},e=>{let{className:t}=e;const r="percent"in l?g.createElement(ITe,Object.assign({type:"line",percent:l.percent,"aria-label":l["aria-label"],"aria-labelledby":l["aria-labelledby"]},c)):null;return g.createElement("div",{className:po()(`${n}-list-item-progress`,t)},r)})),q=l.response&&"string"===typeof l.response?l.response:(null===(k=l.error)||void 0===k?void 0:k.statusText)||(null===(M=l.error)||void 0===M?void 0:M.message)||i.uploadError,X="error"===E?g.createElement(aS,{title:q,getPopupContainer:e=>e.parentNode},Y):Y;return g.createElement("div",{className:po()(`${n}-list-item-container`,r),style:o,ref:t},p?p(X,l,s,{download:C.bind(null,l),preview:S.bind(null,l),remove:_.bind(null,l)}):X)}),OTe=ETe,$Te=(e,t)=>{const{listType:n="text",previewFile:r=W$e,onPreview:o,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:c=F$e,prefixCls:u,items:d=[],showPreviewIcon:p=!0,showRemoveIcon:f=!0,showDownloadIcon:h=!1,removeIcon:m,previewIcon:v,downloadIcon:y,extra:b,progress:x={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:S=!0,itemRender:C,disabled:_}=e,k=Yx(),[M,I]=g.useState(!1),E=["picture-card","picture-circle"].includes(n);g.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null===r||void 0===r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",k()}))})},[n,d,r]),g.useEffect(()=>{I(!0)},[]);const O=(e,t)=>{if(o)return null===t||void 0===t||t.preventDefault(),o(e)},$=e=>{"function"===typeof i?i(e):e.url&&window.open(e.url)},T=e=>{null===a||void 0===a||a(e)},P=e=>{if(s)return s(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const r="picture"===n?g.createElement(vd,null):l.uploading,o=(null===c||void 0===c?void 0:c(e))?g.createElement(j$e,null):g.createElement(T$e,null);return t?r:o}return t?g.createElement(vd,null):g.createElement(N$e,null)},D=(e,t,n,r,o)=>{const i={type:"text",size:"small",title:r,onClick:n=>{var r,o;t(),g.isValidElement(e)&&(null===(o=(r=e.props).onClick)||void 0===o||o.call(r,n))},className:`${n}-list-item-action`,disabled:!!o&&_};return g.isValidElement(e)?g.createElement(rk,Object.assign({},i,{icon:zx(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):g.createElement(rk,Object.assign({},i),g.createElement("span",null,e))};g.useImperativeHandle(t,()=>({handlePreview:O,handleDownload:$}));const{getPrefixCls:N}=g.useContext(qr),A=N("upload",u),R=N(),j=po()(`${A}-list`,`${A}-list-${n}`),L=g.useMemo(()=>Fp(_v(R),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[R]),z=Object.assign(Object.assign({},E?{}:L),{motionDeadline:2e3,motionName:`${A}-${E?"animate-inline":"animate"}`,keys:ee(d.map(e=>({key:e.uid,file:e}))),motionAppear:M});return g.createElement("div",{className:j},g.createElement(Ni,Object.assign({},z,{component:!1}),e=>{let{key:t,file:r,className:o,style:i}=e;return g.createElement(OTe,{key:t,locale:l,prefixCls:A,className:o,style:i,file:r,items:d,progress:x,listType:n,isImgUrl:c,showPreviewIcon:p,showRemoveIcon:f,showDownloadIcon:h,removeIcon:m,previewIcon:v,downloadIcon:y,extra:b,iconRender:P,actionIconRender:D,itemRender:C,onPreview:O,onDownload:$,onClose:T})}),w&&g.createElement(Ai,Object.assign({},z,{visible:S,forceRender:!0}),e=>{let{className:t,style:n}=e;return zx(w,e=>({className:po()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}))}))};const TTe=g.forwardRef($Te);var PTe=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(vDe){i(vDe)}}function l(e){try{s(r.throw(e))}catch(vDe){i(vDe)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}s((r=r.apply(e,t||[])).next())})};const DTe=`__LIST_IGNORE_${Date.now()}__`,NTe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:l,onDownload:s,onChange:c,onDrop:u,previewFile:d,disabled:p,locale:f,iconRender:h,isImageUrl:m,progress:v,prefixCls:y,className:b,type:w="select",children:S,style:C,itemRender:_,maxCount:k,data:M={},multiple:I=!1,hasControlInside:E=!0,action:O="",accept:$="",supportServerRender:T=!0,rootClassName:P}=e,D=g.useContext(no),N=null!==p&&void 0!==p?p:D,[A,R]=Ho(r||[],{value:n,postState:e=>null!==e&&void 0!==e?e:[]}),[j,L]=g.useState("drop"),z=g.useRef(null),B=g.useRef(null);g.useMemo(()=>{const e=Date.now();(n||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[n]);const H=(e,t,n)=>{let r=ee(t),o=!1;1===k?r=r.slice(-1):k&&(o=r.length>k,r=r.slice(0,k)),(0,x.flushSync)(()=>{R(r)});const i={file:e,fileList:r};n&&(i.event=n),o&&"removed"!==e.status&&!r.some(t=>t.uid===e.uid)||(0,x.flushSync)(()=>{null===c||void 0===c||c(i)})},F=e=>{const t=e.filter(e=>!e.file[DTe]);if(!t.length)return;const n=t.map(e=>L$e(e.file));let r=ee(A);n.forEach(e=>{r=z$e(e,r)}),n.forEach((e,n)=>{let o=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(aK){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,o=n}H(o,r)})},V=(e,t,n)=>{try{"string"===typeof e&&(e=JSON.parse(e))}catch(aK){}if(!B$e(t,A))return;const r=L$e(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const o=z$e(r,A);H(r,o)},W=(e,t)=>{if(!B$e(t,A))return;const n=L$e(t);n.status="uploading",n.percent=e.percent;const r=z$e(n,A);H(n,r,e)},G=(e,t,n)=>{if(!B$e(n,A))return;const r=L$e(n);r.error=e,r.response=t,r.status="error";const o=z$e(r,A);H(r,o)},U=e=>{let t;Promise.resolve("function"===typeof o?o(e):o).then(n=>{var r;if(!1===n)return;const o=function(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}(e,A);o&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null===A||void 0===A||A.forEach(e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(r=z.current)||void 0===r||r.abort(t),H(t,o))})},Y=e=>{L(e.type),"drop"===e.type&&(null===u||void 0===u||u(e))};g.useImperativeHandle(t,()=>({onBatchStart:F,onSuccess:V,onProgress:W,onError:G,fileList:A,upload:z.current,nativeElement:B.current}));const{getPrefixCls:q,direction:X,upload:K}=g.useContext(qr),Z=q("upload",y),Q=Object.assign(Object.assign({onBatchStart:F,onError:G,onProgress:W,onSuccess:V},e),{data:M,multiple:I,action:O,accept:$,supportServerRender:T,prefixCls:Z,disabled:N,beforeUpload:(t,n)=>PTe(void 0,void 0,void 0,function*(){const{beforeUpload:r,transformFile:o}=e;let i=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[DTe],e===DTe)return Object.defineProperty(t,DTe,{value:!0,configurable:!0}),!1;"object"===typeof e&&e&&(i=e)}return o&&(i=yield o(i)),i}),onChange:void 0,hasControlInside:E});delete Q.className,delete Q.style,S&&!N||delete Q.id;const J=`${Z}-wrapper`,[te,ne,re]=E$e(Z,J),[oe]=yw("Upload",Bn.Upload),{showRemoveIcon:ie,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:se,previewIcon:ce,downloadIcon:ue,extra:de}="boolean"===typeof i?{}:i,pe="undefined"===typeof ie?!N:ie,fe=(e,t)=>i?g.createElement(TTe,{prefixCls:Z,listType:a,items:A,previewFile:d,onPreview:l,onDownload:s,onRemove:U,showRemoveIcon:pe,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:se,previewIcon:ce,downloadIcon:ue,iconRender:h,extra:de,locale:Object.assign(Object.assign({},oe),f),isImageUrl:m,progress:v,appendAction:e,appendActionVisible:t,itemRender:_,disabled:N}):e,he=po()(J,b,P,ne,re,null===K||void 0===K?void 0:K.className,{[`${Z}-rtl`]:"rtl"===X,[`${Z}-picture-card-wrapper`]:"picture-card"===a,[`${Z}-picture-circle-wrapper`]:"picture-circle"===a}),ge=Object.assign(Object.assign({},null===K||void 0===K?void 0:K.style),C);if("drag"===w){const e=po()(ne,Z,`${Z}-drag`,{[`${Z}-drag-uploading`]:A.some(e=>"uploading"===e.status),[`${Z}-drag-hover`]:"dragover"===j,[`${Z}-disabled`]:N,[`${Z}-rtl`]:"rtl"===X});return te(g.createElement("span",{className:he,ref:B},g.createElement("div",{className:e,style:ge,onDrop:Y,onDragOver:Y,onDragLeave:Y},g.createElement(x$e,Object.assign({},Q,{ref:z,className:`${Z}-btn`}),g.createElement("div",{className:`${Z}-drag-container`},S))),fe()))}const me=po()(Z,`${Z}-select`,{[`${Z}-disabled`]:N,[`${Z}-hidden`]:!S}),ve=g.createElement("div",{className:me,style:ge},g.createElement(x$e,Object.assign({},Q,{ref:z})));return te("picture-card"===a||"picture-circle"===a?g.createElement("span",{className:he,ref:B},fe(ve,!!S)):g.createElement("span",{className:he,ref:B},ve,fe()))};const ATe=g.forwardRef(NTe);var RTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const jTe=g.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:o=!1}=e,i=RTe(e,["style","height","hasControlInside"]);return g.createElement(ATe,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});const LTe=jTe,zTe=ATe;zTe.Dragger=LTe,zTe.LIST_IGNORE=DTe;const BTe=zTe;const HTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};var FTe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:HTe}))};const VTe=g.forwardRef(FTe),{Option:WTe}=rN,{TextArea:GTe}=Ck,UTe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1),r=Uc();return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u53d1\u5e03\u6d3b\u52a8"}),(0,EE.jsx)("p",{className:"page-description",children:"\u521b\u5efa\u65b0\u7684\u5fd7\u613f\u8005\u6d3b\u52a8\uff0c\u8bbe\u7f6e\u6d3b\u52a8\u4fe1\u606f\u548c\u79ef\u5206\u89c4\u5219"})]}),(0,EE.jsx)(zb,{children:(0,EE.jsxs)(bS,{form:e,layout:"vertical",onFinish:async e=>{try{n(!0);const t={1:"\u515a\u7684\u5efa\u8bbe",2:"\u7ecf\u6d4e\u53d1\u5c55",3:"\u5e73\u5b89\u6cd5\u6cbb",4:"\u6c11\u751f\u670d\u52a1",5:"\u5931\u4fe1\u8fdd\u6cd5"},o={...e,categoryDesc:t[e.category]||e.category,startTime:e.startTime.toISOString(),endTime:e.endTime.toISOString(),deadline:e.deadline.toISOString(),currentVolunteers:0,status:"\u62a5\u540d\u4e2d",createTime:(new Date).toISOString()};0===(await gE(o)).code?(Hp.success("\u6d3b\u52a8\u53d1\u5e03\u6210\u529f\uff01"),r("/activities")):Hp.error("\u53d1\u5e03\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f")}catch(t){console.error("\u53d1\u5e03\u6d3b\u52a8\u5931\u8d25:",t),Hp.error("\u53d1\u5e03\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f")}finally{n(!1)}},onFinishFailed:e=>{console.log("Failed:",e),Hp.error("\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f")},initialValues:{category:"4",maxParticipants:30,points:10},children:[(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"title",label:"\u6d3b\u52a8\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u540d\u79f0"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u540d\u79f0"})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"category",label:"\u6d3b\u52a8\u5206\u7c7b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5206\u7c7b"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5206\u7c7b",children:[(0,EE.jsx)(WTe,{value:"1",children:"\u515a\u7684\u5efa\u8bbe"}),(0,EE.jsx)(WTe,{value:"2",children:"\u7ecf\u6d4e\u53d1\u5c55"}),(0,EE.jsx)(WTe,{value:"3",children:"\u5e73\u5b89\u6cd5\u6cbb"}),(0,EE.jsx)(WTe,{value:"4",children:"\u6c11\u751f\u670d\u52a1"}),(0,EE.jsx)(WTe,{value:"5",children:"\u5931\u4fe1\u8fdd\u6cd5"})]})})})]}),(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"startTime",label:"\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4"}],children:(0,EE.jsx)(r$e,{showTime:!0,format:"YYYY-MM-DD HH:mm",style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4"})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"endTime",label:"\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4"}],children:(0,EE.jsx)(r$e,{showTime:!0,format:"YYYY-MM-DD HH:mm",style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4"})})})]}),(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"location",label:"\u6d3b\u52a8\u5730\u70b9",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u5730\u70b9"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u5730\u70b9"})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"deadline",label:"\u62a5\u540d\u622a\u6b62\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u62a5\u540d\u622a\u6b62\u65f6\u95f4"}],children:(0,EE.jsx)(r$e,{showTime:!0,format:"YYYY-MM-DD HH:mm",style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u62a5\u540d\u622a\u6b62\u65f6\u95f4"})})})]}),(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,md:8,children:(0,EE.jsx)(bS.Item,{name:"maxParticipants",label:"\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570"}],children:(0,EE.jsx)(FMe,{min:1,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570"})})}),(0,EE.jsx)(fT,{xs:24,md:8,children:(0,EE.jsx)(bS.Item,{name:"points",label:"\u6d3b\u52a8\u79ef\u5206",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u79ef\u5206"}],children:(0,EE.jsx)(FMe,{min:0,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u79ef\u5206"})})}),(0,EE.jsx)(fT,{xs:24,md:8,children:(0,EE.jsx)(bS.Item,{name:"placeholder",label:"",children:(0,EE.jsx)("div",{className:"tip-box"})})})]}),(0,EE.jsx)(bS.Item,{name:"content",label:"\u6d3b\u52a8\u5185\u5bb9",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u5185\u5bb9"}],children:(0,EE.jsx)(GTe,{rows:6,placeholder:"\u8bf7\u8be6\u7ec6\u63cf\u8ff0\u6d3b\u52a8\u5185\u5bb9\u3001\u8981\u6c42\u3001\u6ce8\u610f\u4e8b\u9879\u7b49"})}),(0,EE.jsx)(bS.Item,{name:"cover",label:"\u6d3b\u52a8\u5c01\u9762",children:(0,EE.jsx)(BTe,{name:"cover",listType:"picture-card",maxCount:5,beforeUpload:()=>!1,multiple:!0,children:(0,EE.jsxs)("div",{className:"upload-button",children:[(0,EE.jsx)(VTe,{className:"upload-icon"}),(0,EE.jsx)("div",{className:"upload-text",children:"\u4e0a\u4f20\u5c01\u9762"})]})})}),(0,EE.jsxs)("div",{className:"form-actions",children:[(0,EE.jsx)(rk,{onClick:()=>{r("/activities")},children:"\u53d6\u6d88"}),(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",loading:t,children:"\u53d1\u5e03\u6d3b\u52a8"})]})]})})]})},{Option:YTe}=rN,{TextArea:qTe}=Ck,XTe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1),[r,o]=(0,g.useState)(!0),i=Uc(),{id:a}=Yc(),[l,s]=(0,g.useState)(null);(0,g.useEffect)(()=>{a&&(async()=>{try{o(!0);const t=await hE(a);if(0===t.code){const n=t.data;s(n);const r={"\u515a\u7684\u5efa\u8bbe":"1","\u7ecf\u6d4e\u53d1\u5c55":"2","\u5e73\u5b89\u6cd5\u6cbb":"3","\u6c11\u751f\u670d\u52a1":"4","\u5931\u4fe1\u8fdd\u6cd5":"5"};e.setFieldsValue({...n,category:r[n.categoryDesc]||n.category,maxParticipants:n.maxParticipants||n.maxVolunteers,startTime:Ixe()(n.startTime),endTime:Ixe()(n.endTime),deadline:Ixe()(n.deadline)})}else Hp.error("\u83b7\u53d6\u6d3b\u52a8\u8be6\u60c5\u5931\u8d25"),i("/activities")}catch(t){console.error("\u83b7\u53d6\u6d3b\u52a8\u8be6\u60c5\u5931\u8d25:",t),Hp.error("\u83b7\u53d6\u6d3b\u52a8\u8be6\u60c5\u5931\u8d25"),i("/activities")}finally{o(!1)}})()},[a]);return r?(0,EE.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,EE.jsx)(NN,{size:"large"}),(0,EE.jsx)("div",{style:{marginTop:"16px"},children:"\u52a0\u8f7d\u4e2d..."})]}):l?(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u7f16\u8f91\u6d3b\u52a8"}),(0,EE.jsx)("p",{className:"page-description",children:"\u4fee\u6539\u6d3b\u52a8\u4fe1\u606f\uff0c\u786e\u4fdd\u4fe1\u606f\u51c6\u786e\u5b8c\u6574"})]}),(0,EE.jsx)(zb,{children:(0,EE.jsxs)(bS,{className:"form-container",form:e,layout:"vertical",onFinish:async e=>{try{n(!0);const t={1:"\u515a\u7684\u5efa\u8bbe",2:"\u7ecf\u6d4e\u53d1\u5c55",3:"\u5e73\u5b89\u6cd5\u6cbb",4:"\u6c11\u751f\u670d\u52a1",5:"\u5931\u4fe1\u8fdd\u6cd5"},r={...l,...e,categoryDesc:t[e.category]||e.category,startTime:e.startTime.toISOString(),endTime:e.endTime.toISOString(),deadline:e.deadline.toISOString()};0===(await gE(r)).code?(Hp.success("\u6d3b\u52a8\u66f4\u65b0\u6210\u529f\uff01"),i("/activities")):Hp.error("\u66f4\u65b0\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f")}catch(t){console.error("\u66f4\u65b0\u6d3b\u52a8\u5931\u8d25:",t),Hp.error("\u66f4\u65b0\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u8868\u5355\u4fe1\u606f")}finally{n(!1)}},initialValues:{category:"4",maxParticipants:30,points:10},children:[(0,EE.jsxs)("div",{className:"form-row",children:[(0,EE.jsx)("h3",{children:"\u57fa\u672c\u4fe1\u606f"}),(0,EE.jsxs)(pT,{gutter:[32,24],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"title",label:"\u6d3b\u52a8\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u540d\u79f0"}],children:(0,EE.jsx)(Ck,{size:"large",placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u540d\u79f0",style:{borderRadius:"6px"}})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"category",label:"\u6d3b\u52a8\u5206\u7c7b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5206\u7c7b"}],children:(0,EE.jsxs)(rN,{size:"large",placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5206\u7c7b",style:{borderRadius:"6px"},children:[(0,EE.jsx)(YTe,{value:"1",children:"\u515a\u7684\u5efa\u8bbe"}),(0,EE.jsx)(YTe,{value:"2",children:"\u7ecf\u6d4e\u53d1\u5c55"}),(0,EE.jsx)(YTe,{value:"3",children:"\u5e73\u5b89\u6cd5\u6cbb"}),(0,EE.jsx)(YTe,{value:"4",children:"\u6c11\u751f\u670d\u52a1"}),(0,EE.jsx)(YTe,{value:"5",children:"\u5931\u4fe1\u8fdd\u6cd5"})]})})})]})]}),(0,EE.jsxs)("div",{className:"form-row",children:[(0,EE.jsx)("h3",{children:"\u65f6\u95f4\u5b89\u6392"}),(0,EE.jsxs)(pT,{gutter:[32,24],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"startTime",label:"\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4"}],children:(0,EE.jsx)(r$e,{showTime:!0,format:"YYYY-MM-DD HH:mm",size:"large",style:{width:"100%",borderRadius:"6px"},placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u5f00\u59cb\u65f6\u95f4"})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"endTime",label:"\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4"}],children:(0,EE.jsx)(r$e,{showTime:!0,format:"YYYY-MM-DD HH:mm",size:"large",style:{width:"100%",borderRadius:"6px"},placeholder:"\u8bf7\u9009\u62e9\u6d3b\u52a8\u7ed3\u675f\u65f6\u95f4"})})})]}),(0,EE.jsxs)(pT,{gutter:[32,24],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"location",label:"\u6d3b\u52a8\u5730\u70b9",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u5730\u70b9"}],children:(0,EE.jsx)(Ck,{size:"large",placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u5730\u70b9",style:{borderRadius:"6px"}})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(bS.Item,{name:"deadline",label:"\u62a5\u540d\u622a\u6b62\u65f6\u95f4",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u62a5\u540d\u622a\u6b62\u65f6\u95f4"}],children:(0,EE.jsx)(r$e,{showTime:!0,format:"YYYY-MM-DD HH:mm",size:"large",style:{width:"100%",borderRadius:"6px"},placeholder:"\u8bf7\u9009\u62e9\u62a5\u540d\u622a\u6b62\u65f6\u95f4"})})})]})]}),(0,EE.jsxs)("div",{className:"form-row",children:[(0,EE.jsx)("h3",{children:"\u6d3b\u52a8\u8bbe\u7f6e"}),(0,EE.jsxs)(pT,{gutter:[32,24],children:[(0,EE.jsx)(fT,{xs:24,md:8,children:(0,EE.jsx)(bS.Item,{name:"maxParticipants",label:"\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570"}],children:(0,EE.jsx)(FMe,{min:1,size:"large",style:{width:"100%",borderRadius:"6px"},placeholder:"\u8bf7\u8f93\u5165\u6700\u5927\u5fd7\u613f\u8005\u4eba\u6570"})})}),(0,EE.jsx)(fT,{xs:24,md:8,children:(0,EE.jsx)(bS.Item,{name:"points",label:"\u6d3b\u52a8\u79ef\u5206",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u79ef\u5206"}],children:(0,EE.jsx)(FMe,{min:0,size:"large",style:{width:"100%",borderRadius:"6px"},placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u79ef\u5206"})})}),(0,EE.jsx)(fT,{xs:24,md:8,children:(0,EE.jsx)(bS.Item,{name:"placeholder",label:"",children:(0,EE.jsx)("div",{className:"tip-box",children:(0,EE.jsxs)("div",{className:"tip-content",children:[(0,EE.jsx)("div",{className:"tip-title",children:"\u63d0\u793a"}),(0,EE.jsx)("div",{className:"tip-text"})]})})})})]})]}),(0,EE.jsxs)("div",{className:"form-row",children:[(0,EE.jsx)("h3",{children:"\u6d3b\u52a8\u5185\u5bb9"}),(0,EE.jsx)(bS.Item,{name:"content",label:"\u6d3b\u52a8\u5185\u5bb9",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u5185\u5bb9"}],children:(0,EE.jsx)(qTe,{rows:6,placeholder:"\u8bf7\u8be6\u7ec6\u63cf\u8ff0\u6d3b\u52a8\u5185\u5bb9\u3001\u8981\u6c42\u3001\u6ce8\u610f\u4e8b\u9879\u7b49",showCount:!0,maxLength:500,style:{borderRadius:"6px"}})})]}),(0,EE.jsxs)("div",{className:"form-row",children:[(0,EE.jsx)("h3",{children:"\u6d3b\u52a8\u5c01\u9762"}),(0,EE.jsx)(bS.Item,{name:"cover",label:"\u6d3b\u52a8\u5c01\u9762",children:(0,EE.jsx)(BTe,{name:"cover",listType:"picture-card",maxCount:5,beforeUpload:()=>!1,multiple:!0,children:(0,EE.jsxs)("div",{className:"upload-button",children:[(0,EE.jsx)(VTe,{className:"upload-icon"}),(0,EE.jsx)("div",{className:"upload-text",children:"\u4e0a\u4f20\u5c01\u9762"})]})})})]}),(0,EE.jsxs)("div",{className:"form-actions",children:[(0,EE.jsx)(rk,{onClick:()=>{i("/activities")},size:"large",style:{borderRadius:"6px",padding:"8px 24px",marginRight:"16px"},children:"\u53d6\u6d88"}),(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",loading:t,size:"large",style:{borderRadius:"6px",padding:"8px 24px"},children:"\u66f4\u65b0\u6d3b\u52a8"})]})]})})]}):(0,EE.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,EE.jsx)("div",{children:"\u6d3b\u52a8\u4e0d\u5b58\u5728"}),(0,EE.jsx)(rk,{type:"primary",onClick:()=>i("/activities"),style:{marginTop:"16px"},children:"\u8fd4\u56de\u6d3b\u52a8\u5217\u8868"})]})},KTe=()=>{const e=Uc(),{id:t}=Yc(),[n,r]=(0,g.useState)([]),[o,i]=(0,g.useState)(!1),[a,l]=(0,g.useState)({current:1,pageSize:10,total:0}),s=(0,g.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{i(!0);const o={activityId:t,page:a.current,size:a.pageSize,...e},s=await vE(o);if(0===s.code){var n;const e=null===(n=s.data.content)||void 0===n?void 0:n.map(e=>(console.log("\u539f\u59cb\u72b6\u6001\u503c:",e.status,"\u7c7b\u578b:",typeof e.status),{id:e.id,volunteerName:e.userName,phone:e.userPhone,registerTime:e.createTime?Ixe()(e.createTime).format("YYYY-MM-DD HH:mm"):"",checkInLocation:e.checkinLocation||"",checkInTime:e.checkinTime?Ixe()(e.checkinTime).format("YYYY-MM-DD HH:mm"):"",checkOutLocation:e.checkoutLocation||"",checkOutTime:e.checkoutTime?Ixe()(e.checkoutTime).format("YYYY-MM-DD HH:mm"):"",status:1===e.status||"1"===e.status?"1":2===e.status||"2"===e.status?"2":3===e.status||"3"===e.status?"3":"\u672a\u77e5",originalData:e}));console.log("\u8f6c\u6362\u540e\u7684\u6570\u636e:",e),r(e),l(e=>({...e,total:s.data.totalElements||0}))}}catch(o){console.error("\u83b7\u53d6\u62a5\u540d\u5217\u8868\u5931\u8d25:",o),Hp.error("\u83b7\u53d6\u62a5\u540d\u5217\u8868\u5931\u8d25")}finally{i(!1)}},[t,a.current,a.pageSize]);(0,g.useEffect)(()=>{t&&s()},[t,s]);const c=[{title:"\u5fd7\u613f\u8005",key:"volunteer",width:150,render:(e,t)=>(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),(0,EE.jsxs)("div",{children:[(0,EE.jsx)("div",{style:{fontWeight:"bold"},children:t.volunteerName}),(0,EE.jsx)("div",{style:{fontSize:"12px",color:"#8c8c8c"},children:t.phone})]})]})},{title:"\u62a5\u540d\u65f6\u95f4",dataIndex:"registerTime",key:"registerTime",width:150,render:e=>e||"-"},{title:"\u7b7e\u5230\u5730\u70b9",dataIndex:"checkInLocation",key:"checkInLocation",width:120,render:e=>e||"-"},{title:"\u7b7e\u5230\u65f6\u95f4",dataIndex:"checkInTime",key:"checkInTime",width:150,render:e=>e||"-"},{title:"\u7b7e\u9000\u5730\u70b9",dataIndex:"checkOutLocation",key:"checkOutLocation",width:120,render:e=>e||"-"},{title:"\u7b7e\u9000\u65f6\u95f4",dataIndex:"checkOutTime",key:"checkOutTime",width:150,render:e=>e||"-"},{title:"\u72b6\u6001",dataIndex:"status",key:"status",width:100,render:e=>{const t={1:{text:"\u5df2\u62a5\u540d\uff09",color:"blue"},2:{text:"\u5df2\u7b7e\u5230",color:"green"},3:{text:"\u5df2\u7b7e\u9000",color:"purple"},"\u672a\u77e5":{text:"\u672a\u77e5",color:"default"}}[e]||{text:e,color:"default"};return(0,EE.jsx)(uA,{color:t.color,children:t.text})}},{title:"\u64cd\u4f5c",key:"action",width:200,render:(e,t)=>(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(DC,{}),onClick:()=>u(t),children:"\u8be6\u60c5"}),"1"===t.status&&(0,EE.jsx)(Lxe,{title:"\u786e\u5b9a\u8981\u79fb\u9664\u8fd9\u4e2a\u62a5\u540d\u8005\u5417\uff1f",onConfirm:()=>d(t.id),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,EE.jsx)(rk,{type:"link",danger:!0,icon:(0,EE.jsx)(qMe,{}),children:"\u79fb\u9664"})})]})}],u=t=>{e(`/activities/registrations/detail/${t.id}`)},d=async e=>{try{0===(await bE(e)).code?(Hp.success("\u5df2\u79fb\u9664\u62a5\u540d\u8005"),s()):Hp.error("\u79fb\u9664\u5931\u8d25")}catch(t){console.error("\u79fb\u9664\u62a5\u540d\u8005\u5931\u8d25:",t),Hp.error("\u79fb\u9664\u5931\u8d25")}};return t?(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u62a5\u540d\u7ba1\u7406"}),(0,EE.jsx)("p",{className:"page-description",children:"\u7ba1\u7406\u6d3b\u52a8\u62a5\u540d\u8005\uff0c\u5ba1\u6838\u62a5\u540d\u7533\u8bf7"})]}),(0,EE.jsx)(zb,{children:(0,EE.jsx)(cMe,{columns:c,dataSource:n,rowKey:"id",scroll:{x:1200},loading:o,pagination:{...a,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{l(t=>({...t,current:e.current,pageSize:e.pageSize})),s({page:e.current,size:e.pageSize})}})})]}):(0,EE.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,EE.jsx)("div",{children:"\u6d3b\u52a8ID\u4e0d\u5b58\u5728"}),(0,EE.jsx)(rk,{type:"primary",onClick:()=>e("/activities"),style:{marginTop:"16px"},children:"\u8fd4\u56de\u6d3b\u52a8\u5217\u8868"})]})},ZTe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},QTe=g.createContext({});var JTe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function ePe(e,t,n){const r=g.useMemo(()=>t||kf(n).map(e=>Object.assign(Object.assign({},null===e||void 0===e?void 0:e.props),{key:e.key})),[t,n]),o=g.useMemo(()=>r.map(t=>{var{span:n}=t,r=JTe(t,["span"]);return"filled"===n?Object.assign(Object.assign({},r),{filled:!0}):Object.assign(Object.assign({},r),{span:"number"===typeof n?n:Gx(e,n)})}),[r,e]);return o}var tPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const nPe=(e,t)=>{const[n,r]=(0,g.useMemo)(()=>function(e,t){let n=[],r=[],o=!1,i=0;return e.filter(e=>e).forEach(e=>{const{filled:a}=e,l=tPe(e,["filled"]);if(a)return r.push(l),n.push(r),r=[],void(i=0);const s=t-i;i+=e.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},l),{span:s}))):r.push(l),n.push(r),r=[],i=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(e=>{const n=e.reduce((e,t)=>e+(t.span||1),0);if(n<t){const r=e[e.length-1];return r.span=t-(n-(r.span||1)),e}return e}),[n,o]}(t,e),[t,e]);return n},rPe=e=>{let{children:t}=e;return t};function oPe(e){return void 0!==e&&null!==e}const iPe=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:i,labelStyle:a,contentStyle:l,bordered:s,label:c,content:u,colon:d,type:p,styles:f}=e,h=n,m=g.useContext(QTe),{classNames:v}=m;return s?g.createElement(h,{className:po()({[`${t}-item-label`]:"label"===p,[`${t}-item-content`]:"content"===p,[`${null===v||void 0===v?void 0:v.label}`]:"label"===p,[`${null===v||void 0===v?void 0:v.content}`]:"content"===p},o),style:i,colSpan:r},oPe(c)&&g.createElement("span",{style:Object.assign(Object.assign({},a),null===f||void 0===f?void 0:f.label)},c),oPe(u)&&g.createElement("span",{style:Object.assign(Object.assign({},a),null===f||void 0===f?void 0:f.content)},u)):g.createElement(h,{className:po()(`${t}-item`,o),style:i,colSpan:r},g.createElement("div",{className:`${t}-item-container`},(c||0===c)&&g.createElement("span",{className:po()(`${t}-item-label`,null===v||void 0===v?void 0:v.label,{[`${t}-item-no-colon`]:!d}),style:Object.assign(Object.assign({},a),null===f||void 0===f?void 0:f.label)},c),(u||0===u)&&g.createElement("span",{className:po()(`${t}-item-content`,null===v||void 0===v?void 0:v.content),style:Object.assign(Object.assign({},l),null===f||void 0===f?void 0:f.content)},u)))};function aPe(e,t,n){let{colon:r,prefixCls:o,bordered:i}=t,{component:a,type:l,showLabel:s,showContent:c,labelStyle:u,contentStyle:d,styles:p}=n;return e.map((e,t)=>{let{label:n,children:f,prefixCls:h=o,className:m,style:v,labelStyle:y,contentStyle:b,span:x=1,key:w,styles:S}=e;return"string"===typeof a?g.createElement(iPe,{key:`${l}-${w||t}`,className:m,style:v,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),null===p||void 0===p?void 0:p.label),y),null===S||void 0===S?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},d),null===p||void 0===p?void 0:p.content),b),null===S||void 0===S?void 0:S.content)},span:x,colon:r,component:a,itemPrefixCls:h,bordered:i,label:s?n:null,content:c?f:null,type:l}):[g.createElement(iPe,{key:`label-${w||t}`,className:m,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),null===p||void 0===p?void 0:p.label),v),y),null===S||void 0===S?void 0:S.label),span:1,colon:r,component:a[0],itemPrefixCls:h,bordered:i,label:n,type:"label"}),g.createElement(iPe,{key:`content-${w||t}`,className:m,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),null===p||void 0===p?void 0:p.content),v),b),null===S||void 0===S?void 0:S.content),span:2*x-1,component:a[1],itemPrefixCls:h,bordered:i,content:f,type:"content"})]})}const lPe=e=>{const t=g.useContext(QTe),{prefixCls:n,vertical:r,row:o,index:i,bordered:a}=e;return r?g.createElement(g.Fragment,null,g.createElement("tr",{key:`label-${i}`,className:`${n}-row`},aPe(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),g.createElement("tr",{key:`content-${i}`,className:`${n}-row`},aPe(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):g.createElement("tr",{key:i,className:`${n}-row`},aPe(o,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},sPe=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Xe(e.padding)} ${Xe(e.paddingLG)}`,borderInlineEnd:`${Xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Xe(e.paddingSM)} ${Xe(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${Xe(e.paddingXS)} ${Xe(e.padding)}`}}}}}},cPe=dp("Descriptions",e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Ki(e)),sPe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},Xi),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${Xe(a)} ${Xe(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})(ep(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));var uPe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const dPe=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:i=!0,bordered:a,layout:l,children:s,className:c,rootClassName:u,style:d,size:p,labelStyle:f,contentStyle:h,styles:m,items:v,classNames:y}=e,b=uPe(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:x,direction:w,className:S,style:C,classNames:_,styles:k}=Zr("descriptions"),M=x("descriptions",t),I=qx();const E=g.useMemo(()=>{var e;return"number"===typeof o?o:null!==(e=Gx(I,Object.assign(Object.assign({},ZTe),o)))&&void 0!==e?e:3},[I,o]),O=ePe(I,v,s),$=Vp(p),T=nPe(E,O),[P,D,N]=cPe(M),A=g.useMemo(()=>({labelStyle:f,contentStyle:h,styles:{content:Object.assign(Object.assign({},k.content),null===m||void 0===m?void 0:m.content),label:Object.assign(Object.assign({},k.label),null===m||void 0===m?void 0:m.label)},classNames:{label:po()(_.label,null===y||void 0===y?void 0:y.label),content:po()(_.content,null===y||void 0===y?void 0:y.content)}}),[f,h,m,y,_,k]);return P(g.createElement(QTe.Provider,{value:A},g.createElement("div",Object.assign({className:po()(M,S,_.root,null===y||void 0===y?void 0:y.root,{[`${M}-${$}`]:$&&"default"!==$,[`${M}-bordered`]:!!a,[`${M}-rtl`]:"rtl"===w},c,u,D,N),style:Object.assign(Object.assign(Object.assign(Object.assign({},C),k.root),null===m||void 0===m?void 0:m.root),d)},b),(n||r)&&g.createElement("div",{className:po()(`${M}-header`,_.header,null===y||void 0===y?void 0:y.header),style:Object.assign(Object.assign({},k.header),null===m||void 0===m?void 0:m.header)},n&&g.createElement("div",{className:po()(`${M}-title`,_.title,null===y||void 0===y?void 0:y.title),style:Object.assign(Object.assign({},k.title),null===m||void 0===m?void 0:m.title)},n),r&&g.createElement("div",{className:po()(`${M}-extra`,_.extra,null===y||void 0===y?void 0:y.extra),style:Object.assign(Object.assign({},k.extra),null===m||void 0===m?void 0:m.extra)},r)),g.createElement("div",{className:`${M}-view`},g.createElement("table",null,g.createElement("tbody",null,T.map((e,t)=>g.createElement(lPe,{key:t,index:t,colon:i,prefixCls:M,vertical:"vertical"===l,bordered:a,row:e}))))))))};dPe.Item=rPe;const pPe=dPe;const fPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};var hPe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:fPe}))};const gPe=g.forwardRef(hPe),mPe=()=>{const e=Uc(),{id:t}=Yc(),[n,r]=(0,g.useState)(null),[o,i]=(0,g.useState)(!1),a=(0,g.useCallback)(async()=>{try{i(!0);const u=await yE(t);if(0===u.code){var n,o,a,l,s,c;const e=u.data,t={id:e.id,volunteerName:e.userName,phone:e.userPhone,registerTime:e.createTime?Ixe()(e.createTime).format("YYYY-MM-DD HH:mm"):"",checkInLocation:e.checkinLocation||"",checkInTime:e.checkinTime?Ixe()(e.checkinTime).format("YYYY-MM-DD HH:mm"):"",checkOutLocation:e.checkoutLocation||"",checkOutTime:e.checkoutTime?Ixe()(e.checkoutTime).format("YYYY-MM-DD HH:mm"):"",status:1===e.status||"1"===e.status?"1":2===e.status||"2"===e.status?"2":3===e.status||"3"===e.status?"3":"\u672a\u77e5",serviceHours:e.serviceHours||0,earnedPoints:e.earnedPoints||0,activityTitle:(null===(n=e.volActivities)||void 0===n?void 0:n.title)||"",activityCategory:(null===(o=e.volActivities)||void 0===o?void 0:o.categoryDesc)||"",activityStartTime:null!==(a=e.volActivities)&&void 0!==a&&a.startTime?Ixe()(e.volActivities.startTime).format("YYYY-MM-DD HH:mm"):"",activityEndTime:null!==(l=e.volActivities)&&void 0!==l&&l.endTime?Ixe()(e.volActivities.endTime).format("YYYY-MM-DD HH:mm"):"",activityLocation:(null===(s=e.volActivities)||void 0===s?void 0:s.location)||"",activityPoints:(null===(c=e.volActivities)||void 0===c?void 0:c.points)||0,originalData:e};r(t)}else Hp.error("\u83b7\u53d6\u62a5\u540d\u8be6\u60c5\u5931\u8d25"),e(-1)}catch(u){console.error("\u83b7\u53d6\u62a5\u540d\u8be6\u60c5\u5931\u8d25:",u),Hp.error("\u83b7\u53d6\u62a5\u540d\u8be6\u60c5\u5931\u8d25"),e(-1)}finally{i(!1)}},[t,e]);(0,g.useEffect)(()=>{t&&a()},[t,a]);return o?(0,EE.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,EE.jsx)(NN,{size:"large"}),(0,EE.jsx)("div",{style:{marginTop:"16px"},children:"\u52a0\u8f7d\u4e2d..."})]}):n?(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)(rk,{icon:(0,EE.jsx)(gPe,{}),onClick:()=>{e(-1)},style:{marginBottom:"16px"},children:"\u8fd4\u56de"}),(0,EE.jsx)("h1",{className:"page-title",children:"\u62a5\u540d\u8be6\u60c5"}),(0,EE.jsx)("p",{className:"page-description",children:"\u67e5\u770b\u5fd7\u613f\u8005\u62a5\u540d\u8be6\u7ec6\u4fe1\u606f\uff0c\u7ba1\u7406\u670d\u52a1\u65f6\u957f\u548c\u79ef\u5206"})]}),(0,EE.jsxs)(pT,{gutter:[24,24],children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{title:"\u57fa\u672c\u4fe1\u606f",className:"detail-card",children:(0,EE.jsxs)(pPe,{column:1,size:"small",children:[(0,EE.jsx)(pPe.Item,{label:"\u5fd7\u613f\u8005\u59d3\u540d",children:(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),n.volunteerName]})}),(0,EE.jsx)(pPe.Item,{label:"\u8054\u7cfb\u7535\u8bdd",children:n.phone}),(0,EE.jsx)(pPe.Item,{label:"\u62a5\u540d\u65f6\u95f4",children:Ixe()(n.registerTime).format("YYYY-MM-DD HH:mm:ss")}),(0,EE.jsx)(pPe.Item,{label:"\u62a5\u540d\u72b6\u6001",children:(0,EE.jsx)(uA,{color:(l=n.status,{1:"blue",2:"green",3:"purple","\u672a\u77e5":"default"}[l]||"default"),children:(e=>({1:"\u5df2\u62a5\u540d",2:"\u5df2\u7b7e\u5230",3:"\u5df2\u7b7e\u9000","\u672a\u77e5":"\u672a\u77e5"}[e]||e))(n.status)})})]})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{title:"\u6d3b\u52a8\u4fe1\u606f",className:"detail-card",children:(0,EE.jsxs)(pPe,{column:1,size:"small",children:[(0,EE.jsx)(pPe.Item,{label:"\u6d3b\u52a8\u540d\u79f0",children:n.activityTitle}),(0,EE.jsx)(pPe.Item,{label:"\u6d3b\u52a8\u5206\u7c7b",children:(0,EE.jsx)(uA,{color:"blue",children:n.activityCategory})}),(0,EE.jsxs)(pPe.Item,{label:"\u6d3b\u52a8\u65f6\u95f4",children:[Ixe()(n.activityStartTime).format("MM-DD HH:mm")," - ",Ixe()(n.activityEndTime).format("MM-DD HH:mm")]}),(0,EE.jsx)(pPe.Item,{label:"\u6d3b\u52a8\u5730\u70b9",children:n.activityLocation}),(0,EE.jsx)(pPe.Item,{label:"\u6d3b\u52a8\u79ef\u5206",children:(0,EE.jsxs)("span",{style:{color:"#52c41a",fontWeight:"bold"},children:["+",n.activityPoints]})})]})})}),(0,EE.jsx)(fT,{xs:24,children:(0,EE.jsx)(zb,{title:"\u7b7e\u5230\u7b7e\u9000\u4fe1\u606f",className:"detail-card",children:(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsxs)(pPe,{title:"\u7b7e\u5230\u4fe1\u606f",column:1,size:"small",children:[(0,EE.jsx)(pPe.Item,{label:"\u7b7e\u5230\u5730\u70b9",children:n.checkInLocation||"\u672a\u7b7e\u5230"}),(0,EE.jsx)(pPe.Item,{label:"\u7b7e\u5230\u65f6\u95f4",children:n.checkInTime?Ixe()(n.checkInTime).format("YYYY-MM-DD HH:mm:ss"):"\u672a\u7b7e\u5230"})]})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsxs)(pPe,{title:"\u7b7e\u9000\u4fe1\u606f",column:1,size:"small",children:[(0,EE.jsx)(pPe.Item,{label:"\u7b7e\u9000\u5730\u70b9",children:n.checkOutLocation||"\u672a\u7b7e\u9000"}),(0,EE.jsx)(pPe.Item,{label:"\u7b7e\u9000\u65f6\u95f4",children:n.checkOutTime?Ixe()(n.checkOutTime).format("YYYY-MM-DD HH:mm:ss"):"\u672a\u7b7e\u9000"})]})})]})})}),(0,EE.jsx)(fT,{xs:24,children:(0,EE.jsx)(zb,{title:"\u670d\u52a1\u65f6\u957f\u548c\u79ef\u5206\u7ba1\u7406",className:"detail-card",children:(0,EE.jsxs)(pT,{gutter:[24,16],children:[(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(pPe,{column:1,size:"small",children:(0,EE.jsx)(pPe.Item,{label:"\u670d\u52a1\u65f6\u957f",children:(0,EE.jsxs)("span",{style:{fontSize:"16px",fontWeight:"bold",color:"#1890ff"},children:[n.serviceHours," \u5c0f\u65f6"]})})})}),(0,EE.jsx)(fT,{xs:24,md:12,children:(0,EE.jsx)(pPe,{column:1,size:"small",children:(0,EE.jsx)(pPe.Item,{label:"\u83b7\u53d6\u79ef\u5206",children:(0,EE.jsxs)("span",{style:{fontSize:"16px",fontWeight:"bold",color:"#52c41a"},children:["+",n.earnedPoints," \u5206"]})})})})]})})})]})]}):(0,EE.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,EE.jsx)("div",{children:"\u62a5\u540d\u8be6\u60c5\u4e0d\u5b58\u5728"}),(0,EE.jsx)(rk,{type:"primary",onClick:()=>e(-1),style:{marginTop:"16px"},children:"\u8fd4\u56de"})]});var l},{Option:vPe}=rN,yPe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)("\u5168\u90e8"),[r,o]=(0,g.useState)([]),[i,a]=(0,g.useState)(!1),[l,s]=(0,g.useState)({current:1,pageSize:10,total:0}),[c,u]=(0,g.useState)({}),[d,p]=(0,g.useState)({visible:!1,id:null,name:""}),[f]=bS.useForm(),h=Uc(),m=(0,g.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{a(!0);const n={page:l.current,size:l.pageSize,...c,...e},r=await uE(n);if(0===r.code){var t;const e=(null===(t=r.data.content)||void 0===t?void 0:t.map(e=>{var t,n,r;return console.log("\u72b6\u6001\u503c:",e.status,"\u7c7b\u578b:",typeof e.status),{id:e.id,name:e.name,idCard:e.idCard,phone:e.phone,createTime:e.createTime,status:0===e.status||"0"===e.status?"\u5f85\u5ba1\u6838":1===e.status||"1"===e.status?"\u901a\u8fc7":2===e.status||"2"===e.status?"\u4e0d\u901a\u8fc7":"\u672a\u77e5",totalPoints:(null===(t=e.applicationsCount)||void 0===t?void 0:t.points)||0,activities:(null===(n=e.applicationsCount)||void 0===n?void 0:n.activityNum)||0,serviceHours:(null===(r=e.applicationsCount)||void 0===r?void 0:r.serviceHours)||0,originalData:e}}))||[];console.log("\u8f6c\u6362\u540e\u7684\u6570\u636e:",e),o(e),s(e=>({...e,total:r.data.totalElements||0}))}}catch(n){console.error("\u83b7\u53d6\u5fd7\u613f\u8005\u5217\u8868\u5931\u8d25:",n),Hp.error("\u83b7\u53d6\u5fd7\u613f\u8005\u5217\u8868\u5931\u8d25")}finally{a(!1)}},[l.current,l.pageSize,c]);(0,g.useEffect)(()=>{m()},[m]);const v=e=>{switch(e){case"\u901a\u8fc7":return"success";case"\u5f85\u5ba1\u6838":return"warning";case"\u4e0d\u901a\u8fc7":return"error";default:return"default"}},y=[{title:"\u5fd7\u613f\u8005",key:"volunteer",width:200,render:(e,t)=>(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),(0,EE.jsx)("div",{style:{fontWeight:"bold"},children:t.name})]})},{title:"\u8054\u7cfb\u65b9\u5f0f",key:"contact",width:180,render:(e,t)=>(0,EE.jsxs)("div",{children:[(0,EE.jsx)("div",{children:t.phone}),(0,EE.jsx)("div",{style:{fontSize:"12px",color:"#8c8c8c"},children:t.email})]})},{title:"\u79ef\u5206",dataIndex:"totalPoints",key:"totalPoints",width:100,render:e=>(0,EE.jsx)("span",{style:{color:"#52c41a",fontWeight:"bold",fontSize:"16px"},children:e})},{title:"\u53c2\u4e0e\u6d3b\u52a8",dataIndex:"activities",key:"activities",width:100,render:e=>(0,EE.jsxs)("span",{style:{color:"#1890ff"},children:[e,"\u6b21"]})},{title:"\u670d\u52a1\u65f6\u957f",dataIndex:"serviceHours",key:"serviceHours",width:100,render:e=>(0,EE.jsxs)("span",{style:{color:"#faad14"},children:[e,"\u5c0f\u65f6"]})},{title:"\u52a0\u5165\u65f6\u95f4",dataIndex:"createTime",key:"createTime",width:150,render:e=>e?new Date(e).toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(/\//g,"-"):"-"},{title:"\u72b6\u6001",dataIndex:"status",key:"status",width:100,render:e=>(0,EE.jsx)(uA,{color:v(e),children:e})},{title:"\u64cd\u4f5c",key:"action",width:200,render:(e,t)=>(0,EE.jsxs)(a$,{size:"middle",children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(DC,{}),onClick:()=>x(t),children:"\u67e5\u770b\u8be6\u60c5"}),"\u5f85\u5ba1\u6838"===t.status&&(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(YD,{}),onClick:()=>b(t),children:"\u5ba1\u6838"})]})}],b=e=>{p({visible:!0,id:e.id,name:e.name}),f.resetFields()},x=async e=>{try{0===(await dE(e.id)).code?h(`/volunteers/${e.id}`):Hp.error("\u83b7\u53d6\u5fd7\u613f\u8005\u8be6\u60c5\u5931\u8d25")}catch(t){console.error("\u83b7\u53d6\u5fd7\u613f\u8005\u8be6\u60c5\u5931\u8d25:",t),Hp.error("\u83b7\u53d6\u5fd7\u613f\u8005\u8be6\u60c5\u5931\u8d25")}};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u5fd7\u613f\u8005\u5217\u8868"}),(0,EE.jsx)("p",{className:"page-description",children:"\u7ba1\u7406\u6240\u6709\u5fd7\u613f\u8005\u4fe1\u606f\uff0c\u67e5\u770b\u5fd7\u613f\u8005\u79ef\u5206\u548c\u6d3b\u52a8\u53c2\u4e0e\u60c5\u51b5"})]}),(0,EE.jsx)(zb,{className:"search-form",children:(0,EE.jsxs)(bS,{form:e,layout:"inline",onFinish:e=>{console.log("\u641c\u7d22\u6761\u4ef6:",e),n(e.status||"\u5168\u90e8"),u(e),s(e=>({...e,current:1})),m({...e,page:1})},children:[(0,EE.jsxs)(pT,{gutter:[16,16],style:{width:"100%"},children:[(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"name",label:"\u59d3\u540d",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u59d3\u540d"})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"phone",label:"\u624b\u673a\u53f7",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"status",label:"\u72b6\u6001",children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",allowClear:!0,children:[(0,EE.jsx)(vPe,{value:"0",children:"\u5f85\u5ba1\u6838"}),(0,EE.jsx)(vPe,{value:"1",children:"\u5ba1\u6838\u901a\u8fc7"}),(0,EE.jsx)(vPe,{value:"2",children:"\u5ba1\u6838\u4e0d\u901a\u8fc7"})]})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"gender",label:"\u6027\u522b",children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u6027\u522b",allowClear:!0,children:[(0,EE.jsx)(vPe,{value:"\u7537",children:"\u7537"}),(0,EE.jsx)(vPe,{value:"\u5973",children:"\u5973"})]})})})]}),(0,EE.jsxs)("div",{className:"form-actions",children:[(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",children:"\u641c\u7d22"}),(0,EE.jsx)(rk,{onClick:()=>{e.resetFields(),n("\u5168\u90e8"),u({}),s(e=>({...e,current:1})),m({page:1})},children:"\u91cd\u7f6e"})]})]})}),(0,EE.jsx)(zb,{children:(0,EE.jsx)(cMe,{columns:y,dataSource:r,rowKey:"id",scroll:{x:1200},loading:i,pagination:{...l,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{s(t=>({...t,current:e.current,pageSize:e.pageSize})),m({page:e.current,size:e.pageSize})}})}),(0,EE.jsxs)(_R,{title:"\u5ba1\u6838\u5fd7\u613f\u8005\u7533\u8bf7",open:d.visible,onOk:async()=>{try{const e=await f.validateFields();0===(await pE({id:d.id,status:e.status,reviewComment:e.reviewComment||""})).code?(Hp.success("\u5ba1\u6838\u6210\u529f"),p({visible:!1,id:null,name:""}),m()):Hp.error("\u5ba1\u6838\u5931\u8d25")}catch(e){console.error("\u5ba1\u6838\u5931\u8d25:",e),Hp.error("\u5ba1\u6838\u5931\u8d25")}},onCancel:()=>{p({visible:!1,id:null,name:""}),f.resetFields()},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",width:500,children:[(0,EE.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,EE.jsx)("strong",{children:"\u5fd7\u613f\u8005\u59d3\u540d\uff1a"}),d.name]}),(0,EE.jsxs)(bS,{form:f,layout:"vertical",initialValues:{status:"1"},children:[(0,EE.jsx)(bS.Item,{name:"status",label:"\u5ba1\u6838\u7ed3\u679c",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5ba1\u6838\u7ed3\u679c"}],children:(0,EE.jsxs)(ECe.Group,{children:[(0,EE.jsx)(ECe,{value:"1",children:"\u901a\u8fc7"}),(0,EE.jsx)(ECe,{value:"2",children:"\u4e0d\u901a\u8fc7"})]})}),(0,EE.jsx)(bS.Item,{name:"reviewComment",label:"\u5ba1\u6838\u610f\u89c1",children:(0,EE.jsx)(Ck.TextArea,{placeholder:"\u8bf7\u8f93\u5165\u5ba1\u6838\u610f\u89c1\uff08\u53ef\u9009\uff09",rows:4,maxLength:200,showCount:!0})})]})]})]})},bPe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)([]),[r,o]=(0,g.useState)(!1),[i,a]=(0,g.useState)({current:1,pageSize:10,total:0}),[l,s]=(0,g.useState)({}),c=[{title:"\u5fd7\u613f\u8005\u59d3\u540d",dataIndex:"name",key:"name"},{title:"\u624b\u673a\u53f7",dataIndex:"phone",key:"phone"},{title:"\u603b\u79ef\u5206",dataIndex:"totalPoints",key:"totalPoints",render:e=>(0,EE.jsx)("span",{style:{color:"#52c41a",fontWeight:"bold"},children:e||0})},{title:"\u83b7\u5f97\u79ef\u5206",dataIndex:"points",key:"points",render:e=>(0,EE.jsxs)("span",{style:{color:"#1890ff"},children:["+",e||0]})},{title:"\u4f7f\u7528\u79ef\u5206",dataIndex:"redeemedPoints",key:"redeemedPoints",render:e=>(0,EE.jsxs)("span",{style:{color:"#ff4d4f"},children:["-",e||0]})}],u=(0,g.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{o(!0);const t={page:i.current,size:i.pageSize,...l,...e},r=await lE(t);0===r.code&&(n(r.data.content||[]),a(e=>({...e,total:r.data.totalElements||0})))}catch(t){console.error("\u83b7\u53d6\u79ef\u5206\u6570\u636e\u5931\u8d25:",t),Hp.error("\u83b7\u53d6\u79ef\u5206\u6570\u636e\u5931\u8d25")}finally{o(!1)}},[i.current,i.pageSize,l]);(0,g.useEffect)(()=>{u()},[u]);return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u79ef\u5206\u67e5\u8be2"}),(0,EE.jsx)("p",{className:"page-description",children:"\u67e5\u8be2\u5fd7\u613f\u8005\u79ef\u5206\u60c5\u51b5\uff0c\u652f\u6301\u5bfc\u51fa\u6570\u636e"})]}),(0,EE.jsx)(zb,{className:"search-form",children:(0,EE.jsx)(bS,{form:e,layout:"inline",onFinish:e=>{s(e),a(e=>({...e,current:1})),u({...e,page:1})},children:(0,EE.jsxs)(pT,{gutter:[16,16],style:{width:"100%"},align:"middle",children:[(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"name",label:"\u59d3\u540d",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u59d3\u540d"})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:6,children:(0,EE.jsx)(bS.Item,{name:"phone",label:"\u624b\u673a\u53f7",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"})})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:12,children:(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",icon:(0,EE.jsx)(HC,{}),children:"\u641c\u7d22"}),(0,EE.jsx)(rk,{onClick:()=>{e.resetFields(),s({}),a(e=>({...e,current:1})),u({page:1})},children:"\u91cd\u7f6e"}),(0,EE.jsx)(rk,{icon:(0,EE.jsx)(Y$e,{}),onClick:()=>{console.log("\u5bfc\u51fa\u6570\u636e")},children:"\u5bfc\u51fa"})]})})]})})}),(0,EE.jsx)(zb,{children:(0,EE.jsx)(cMe,{columns:c,dataSource:t,rowKey:"id",loading:r,pagination:{...i,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{a(t=>({...t,current:e.current,pageSize:e.pageSize})),u({page:e.current,size:e.pageSize})}})})]})},xPe=()=>{const{id:e}=Yc(),t=Uc(),[n,r]=(0,g.useState)(!1),[o,i]=(0,g.useState)(null),[a,l]=(0,g.useState)([]),s=(0,g.useCallback)(async()=>{try{r(!0);const c=await dE(e);if(0===c.code){var n,o,a,s;const e=c.data,t={0:"\u5f85\u5ba1\u6838",1:"\u5ba1\u6838\u901a\u8fc7",2:"\u5ba1\u6838\u4e0d\u901a\u8fc7"};i({id:e.id,name:e.name,phone:e.phone,idCard:e.idCard,status:t[e.status]||e.status,totalPoints:(null===(n=e.applicationsCount)||void 0===n?void 0:n.points)||0,activities:(null===(o=e.applicationsCount)||void 0===o?void 0:o.activityNum)||0,serviceHours:(null===(a=e.applicationsCount)||void 0===a?void 0:a.serviceHours)||0});const r=(null===(s=e.activitiesList)||void 0===s?void 0:s.map(e=>({key:e.id||Math.random(),activityName:e.title,date:e.createTime?Ixe()(e.createTime).format("YYYY-MM-DD"):"",points:e.earnedPoints||0,status:"1"===e.status?"\u5df2\u62a5\u540d":"2"===e.status?"\u5df2\u7b7e\u5230":"3"===e.status?"\u5df2\u7b7e\u9000":"\u672a\u77e5"})))||[];l(r)}else Hp.error("\u83b7\u53d6\u5fd7\u613f\u8005\u8be6\u60c5\u5931\u8d25"),t(-1)}catch(c){console.error("\u83b7\u53d6\u5fd7\u613f\u8005\u8be6\u60c5\u5931\u8d25:",c),Hp.error("\u83b7\u53d6\u5fd7\u613f\u8005\u8be6\u60c5\u5931\u8d25"),t(-1)}finally{r(!1)}},[e,t]);(0,g.useEffect)(()=>{e&&s()},[e,s]);const c=[{title:"\u6d3b\u52a8\u540d\u79f0",dataIndex:"activityName",key:"activityName"},{title:"\u53c2\u4e0e\u65e5\u671f",dataIndex:"date",key:"date"},{title:"\u83b7\u5f97\u79ef\u5206",dataIndex:"points",key:"points",render:e=>(0,EE.jsxs)("span",{style:{color:"#52c41a"},children:["+",e]})},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:e=>(0,EE.jsx)(uA,{color:{"\u5df2\u62a5\u540d":"blue","\u5df2\u7b7e\u5230":"green","\u5df2\u7b7e\u9000":"purple","\u672a\u77e5":"default"}[e]||"default",children:e})}];return n?(0,EE.jsxs)("div",{style:{textAlign:"center",padding:"50px"},children:[(0,EE.jsx)(NN,{size:"large"}),(0,EE.jsx)("div",{style:{marginTop:16},children:"\u52a0\u8f7d\u4e2d..."})]}):o?(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u5fd7\u613f\u8005\u8be6\u60c5"}),(0,EE.jsx)("p",{className:"page-description",children:"\u67e5\u770b\u5fd7\u613f\u8005\u7684\u8be6\u7ec6\u4fe1\u606f\u548c\u6d3b\u52a8\u8bb0\u5f55"})]}),(0,EE.jsxs)(pT,{gutter:[16,16],children:[(0,EE.jsx)(fT,{xs:24,lg:8,children:(0,EE.jsxs)(zb,{children:[(0,EE.jsxs)("div",{style:{textAlign:"center",marginBottom:24},children:[(0,EE.jsx)(N$,{size:80,icon:(0,EE.jsx)(Mk,{})}),(0,EE.jsx)("h2",{style:{marginTop:16},children:o.name}),(0,EE.jsx)(uA,{color:(e=>{switch(e){case"\u5ba1\u6838\u901a\u8fc7":return"success";case"\u5f85\u5ba1\u6838":return"warning";case"\u5ba1\u6838\u4e0d\u901a\u8fc7":return"error";default:return"default"}})(o.status),children:o.status})]}),(0,EE.jsxs)(pPe,{column:1,children:[(0,EE.jsx)(pPe.Item,{label:"\u624b\u673a\u53f7",children:o.phone}),(0,EE.jsx)(pPe.Item,{label:"\u8eab\u4efd\u8bc1\u53f7",children:o.idCard})]})]})}),(0,EE.jsxs)(fT,{xs:24,lg:16,children:[(0,EE.jsxs)(pT,{gutter:[16,16],children:[(0,EE.jsx)(fT,{xs:24,sm:8,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u603b\u79ef\u5206",value:o.totalPoints,valueStyle:{color:"#52c41a"}})})}),(0,EE.jsx)(fT,{xs:24,sm:8,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u53c2\u4e0e\u6d3b\u52a8",value:o.activities,valueStyle:{color:"#1890ff"},suffix:"\u6b21"})})}),(0,EE.jsx)(fT,{xs:24,sm:8,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u670d\u52a1\u65f6\u957f",value:o.serviceHours,valueStyle:{color:"#faad14"},suffix:"\u5c0f\u65f6"})})})]}),(0,EE.jsx)(zb,{title:"\u6d3b\u52a8\u8bb0\u5f55",style:{marginTop:16},children:(0,EE.jsx)(cMe,{columns:c,dataSource:a,pagination:!1,size:"small"})})]})]})]}):(0,EE.jsx)("div",{style:{textAlign:"center",padding:"50px"},children:(0,EE.jsx)("div",{children:"\u5fd7\u613f\u8005\u4fe1\u606f\u4e0d\u5b58\u5728"})})};n(6484);const wPe=ne(ne({},An),{},{locale:"zh_CN",today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",week:"\u5468",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa",yearFormat:"YYYY\u5e74",cellDateFormat:"D",monthBeforeYear:!1}),SPe={placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4",rangePlaceholder:["\u5f00\u59cb\u65f6\u95f4","\u7ed3\u675f\u65f6\u95f4"]},CPe={lang:Object.assign({placeholder:"\u8bf7\u9009\u62e9\u65e5\u671f",yearPlaceholder:"\u8bf7\u9009\u62e9\u5e74\u4efd",quarterPlaceholder:"\u8bf7\u9009\u62e9\u5b63\u5ea6",monthPlaceholder:"\u8bf7\u9009\u62e9\u6708\u4efd",weekPlaceholder:"\u8bf7\u9009\u62e9\u5468",rangePlaceholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"],rangeYearPlaceholder:["\u5f00\u59cb\u5e74\u4efd","\u7ed3\u675f\u5e74\u4efd"],rangeMonthPlaceholder:["\u5f00\u59cb\u6708\u4efd","\u7ed3\u675f\u6708\u4efd"],rangeQuarterPlaceholder:["\u5f00\u59cb\u5b63\u5ea6","\u7ed3\u675f\u5b63\u5ea6"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"]},wPe),timePickerLocale:Object.assign({},SPe)};CPe.lang.ok="\u786e\u5b9a";const _Pe=CPe,{RangePicker:kPe}=r$e,{Option:MPe}=rN;Ixe().locale("zh-cn");const IPe=()=>{var e,t,n,r,o,i,a;const[l,s]=(0,g.useState)([Ixe()().subtract(30,"day"),Ixe()()]),c=V(),{overview:u,loading:d,error:p}=D(e=>e.statistics),f=async()=>{try{c(Ws(!0));const e=await xE();0===e.code?c(Us(e.data)):(c(Gs(e.msg||"\u83b7\u53d6\u6570\u636e\u5931\u8d25")),Hp.error(e.msg||"\u83b7\u53d6\u6570\u636e\u5931\u8d25"))}catch(p){c(Gs(p.message)),Hp.error(p.message)}};(0,g.useEffect)(()=>{f()},[c]);const h={title:{text:"\u79ef\u5206\u8d8b\u52bf\u5206\u6790",left:"center"},tooltip:{trigger:"axis"},legend:{data:["\u79ef\u5206\u6570\u91cf"],bottom:10},xAxis:{type:"category",data:(null===(e=u.pointsTimeList)||void 0===e?void 0:e.map(e=>e.timeName))||[]},yAxis:{type:"value"},series:[{name:"\u79ef\u5206\u6570\u91cf",type:"line",data:(null===(t=u.pointsTimeList)||void 0===t?void 0:t.map(e=>e.timeCount))||[],smooth:!0,itemStyle:{color:"#1890ff"}}]},m={title:{text:"\u5fd7\u613f\u8005\u589e\u957f\u8d8b\u52bf",left:"center"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:(null===(n=u.volTimeList)||void 0===n?void 0:n.map(e=>e.timeName))||[]},yAxis:{type:"value"},series:[{name:"\u5fd7\u613f\u8005\u603b\u6570",type:"line",data:(null===(r=u.volTimeList)||void 0===r?void 0:r.map(e=>e.timeCount))||[],smooth:!0,itemStyle:{color:"#722ed1"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(114, 46, 209, 0.3)"},{offset:1,color:"rgba(114, 46, 209, 0.1)"}]}}}]},v={title:{text:"\u6d3b\u52a8\u53c2\u4e0e\u5ea6\u5206\u6790",left:"center"},tooltip:{trigger:"item"},series:[{name:"\u53c2\u4e0e\u60c5\u51b5",type:"pie",radius:["40%","70%"],center:["50%","50%"],data:(null===(o=u.typeList)||void 0===o?void 0:o.map(e=>({value:e.typeCount,name:e.typeName})))||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},y={title:{text:"\u79ef\u5206\u5206\u5e03\u60c5\u51b5",left:"center"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:(null===(i=u.distributionList)||void 0===i?void 0:i.map(e=>e.typeName))||[]},yAxis:{type:"value"},series:[{name:"\u5fd7\u613f\u8005\u6570\u91cf",type:"bar",data:(null===(a=u.distributionList)||void 0===a?void 0:a.map(e=>e.typeCount))||[],itemStyle:{color:"#faad14"}}]};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u6570\u636e\u6982\u89c8"}),(0,EE.jsx)("p",{className:"page-description",children:"\u67e5\u770b\u5fd7\u613f\u8005\u670d\u52a1\u7684\u6574\u4f53\u6570\u636e\u7edf\u8ba1\u548c\u8d8b\u52bf\u5206\u6790"})]}),(0,EE.jsx)(zb,{style:{marginBottom:16},children:(0,EE.jsxs)(pT,{gutter:[16,16],align:"middle",children:[(0,EE.jsxs)(fT,{children:[(0,EE.jsx)("span",{style:{marginRight:8},children:"\u65f6\u95f4\u8303\u56f4\uff1a"}),(0,EE.jsx)(kPe,{value:l,onChange:e=>{s(e),f()},style:{width:240},locale:_Pe})]}),(0,EE.jsx)(fT,{children:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Y$e,{}),onClick:()=>{console.log("\u5bfc\u51fa\u6570\u636e")},children:"\u5bfc\u51fa\u6570\u636e"})})]})}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginBottom:24},children:[(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(MT,{title:"\u5fd7\u613f\u8005\u603b\u6570",value:u.totalVolunteers,prefix:(0,EE.jsx)(Mk,{}),valueStyle:{color:"#1890ff"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(MT,{title:"\u79ef\u5206\u603b\u6570",value:u.totalPoints,prefix:(0,EE.jsx)(B$,{}),valueStyle:{color:"#52c41a"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(MT,{title:"\u6d3b\u52a8\u603b\u6570",value:u.totalActivities,prefix:(0,EE.jsx)(V$,{}),valueStyle:{color:"#faad14"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(MT,{title:"\u62a5\u540d\u603b\u6570",value:u.totalRegistrations,prefix:(0,EE.jsx)(U$,{}),valueStyle:{color:"#722ed1"}})})})]}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginBottom:24},children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(kxe,{option:h,style:{height:350}})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(kxe,{option:m,style:{height:350}})})})]}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginBottom:24},children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(kxe,{option:v,style:{height:350}})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{loading:d,children:(0,EE.jsx)(kxe,{option:y,style:{height:350}})})})]})]})},EPe=()=>(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u8d8b\u52bf\u5206\u6790"}),(0,EE.jsx)("p",{className:"page-description",children:"\u5206\u6790\u5fd7\u613f\u8005\u670d\u52a1\u7684\u5404\u9879\u6570\u636e\u8d8b\u52bf"})]}),(0,EE.jsxs)(pT,{gutter:[16,16],children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(kxe,{option:{title:{text:"\u79ef\u5206\u8d8b\u52bf\u5206\u6790",left:"center"},tooltip:{trigger:"axis"},legend:{data:["\u79ef\u5206\u603b\u6570","\u65b0\u589e\u79ef\u5206","\u4f7f\u7528\u79ef\u5206"],bottom:10},xAxis:{type:"category",data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"]},yAxis:{type:"value"},series:[{name:"\u79ef\u5206\u603b\u6570",type:"line",data:[12e3,15e3,18e3,22e3,28e3,35e3],smooth:!0,itemStyle:{color:"#1890ff"}},{name:"\u65b0\u589e\u79ef\u5206",type:"bar",data:[3e3,3500,4e3,4500,5e3,5500],itemStyle:{color:"#52c41a"}},{name:"\u4f7f\u7528\u79ef\u5206",type:"bar",data:[1e3,1200,1500,1800,2e3,2200],itemStyle:{color:"#ff4d4f"}}]},style:{height:400}})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(kxe,{option:{title:{text:"\u6d3b\u52a8\u53c2\u4e0e\u8d8b\u52bf",left:"center"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"]},yAxis:{type:"value"},series:[{name:"\u53c2\u4e0e\u4eba\u6570",type:"line",data:[150,180,220,280,320,380],smooth:!0,itemStyle:{color:"#722ed1"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(114, 46, 209, 0.3)"},{offset:1,color:"rgba(114, 46, 209, 0.1)"}]}}}]},style:{height:400}})})})]}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginTop:16},children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(kxe,{option:{title:{text:"\u5fd7\u613f\u8005\u589e\u957f\u8d8b\u52bf",left:"center"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708"]},yAxis:{type:"value"},series:[{name:"\u5fd7\u613f\u8005\u603b\u6570",type:"line",data:[800,900,1e3,1100,1200,1250],smooth:!0,itemStyle:{color:"#faad14"}},{name:"\u65b0\u589e\u5fd7\u613f\u8005",type:"bar",data:[50,60,70,80,90,100],itemStyle:{color:"#13c2c2"}}]},style:{height:400}})})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(kxe,{option:{title:{text:"\u6d3b\u52a8\u7c7b\u578b\u5206\u5e03",left:"center"},tooltip:{trigger:"item"},series:[{name:"\u6d3b\u52a8\u7c7b\u578b",type:"pie",radius:"50%",data:[{value:45,name:"\u793e\u533a\u670d\u52a1"},{value:30,name:"\u73af\u4fdd\u6d3b\u52a8"},{value:15,name:"\u656c\u8001\u52a9\u6b8b"},{value:10,name:"\u5176\u4ed6\u6d3b\u52a8"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},style:{height:400}})})})]})]});const OPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"};var $Pe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:OPe}))};const TPe=g.forwardRef($Pe);const PPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"};var DPe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:PPe}))};const NPe=g.forwardRef(DPe),{RangePicker:APe}=r$e,{Option:RPe}=rN,jPe=()=>{const[e]=(0,g.useState)([{key:"1",reportName:"\u5fd7\u613f\u8005\u79ef\u5206\u6708\u62a5\u8868",type:"\u79ef\u5206\u62a5\u8868",generateTime:"2024-01-15 10:00:00",status:"\u5df2\u751f\u6210",size:"2.5MB"},{key:"2",reportName:"\u6d3b\u52a8\u53c2\u4e0e\u7edf\u8ba1\u62a5\u8868",type:"\u6d3b\u52a8\u62a5\u8868",generateTime:"2024-01-14 15:30:00",status:"\u5df2\u751f\u6210",size:"1.8MB"},{key:"3",reportName:"\u5fd7\u613f\u8005\u670d\u52a1\u65f6\u957f\u62a5\u8868",type:"\u670d\u52a1\u62a5\u8868",generateTime:"2024-01-13 09:15:00",status:"\u751f\u6210\u4e2d",size:"--"}]),t=[{title:"\u62a5\u8868\u540d\u79f0",dataIndex:"reportName",key:"reportName"},{title:"\u62a5\u8868\u7c7b\u578b",dataIndex:"type",key:"type"},{title:"\u751f\u6210\u65f6\u95f4",dataIndex:"generateTime",key:"generateTime"},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:e=>(0,EE.jsx)("span",{style:{color:"\u5df2\u751f\u6210"===e?"#52c41a":"#faad14"},children:e})},{title:"\u6587\u4ef6\u5927\u5c0f",dataIndex:"size",key:"size"},{title:"\u64cd\u4f5c",key:"action",render:(e,t)=>(0,EE.jsxs)(rk.Group,{children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(TPe,{}),disabled:"\u5df2\u751f\u6210"!==t.status,children:"\u4e0b\u8f7dExcel"}),(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(NPe,{}),disabled:"\u5df2\u751f\u6210"!==t.status,children:"\u4e0b\u8f7dPDF"})]})}];return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u62a5\u8868\u4e2d\u5fc3"}),(0,EE.jsx)("p",{className:"page-description",children:"\u751f\u6210\u548c\u4e0b\u8f7d\u5404\u7c7b\u7edf\u8ba1\u62a5\u8868"})]}),(0,EE.jsxs)(pT,{gutter:[16,16],style:{marginBottom:24},children:[(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u603b\u62a5\u8868\u6570",value:15,valueStyle:{color:"#1890ff"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u672c\u6708\u751f\u6210",value:8,valueStyle:{color:"#52c41a"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u5f85\u751f\u6210",value:2,valueStyle:{color:"#faad14"}})})}),(0,EE.jsx)(fT,{xs:24,sm:12,lg:6,children:(0,EE.jsx)(zb,{children:(0,EE.jsx)(MT,{title:"\u4e0b\u8f7d\u6b21\u6570",value:156,valueStyle:{color:"#722ed1"}})})})]}),(0,EE.jsx)(zb,{title:"\u62a5\u8868\u751f\u6210",extra:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Y$e,{}),onClick:()=>{console.log("\u751f\u6210\u62a5\u8868")},children:"\u751f\u6210\u65b0\u62a5\u8868"}),style:{marginBottom:16},children:(0,EE.jsxs)(pT,{gutter:[16,16],children:[(0,EE.jsx)(fT,{xs:24,sm:12,md:8,children:(0,EE.jsxs)(rN,{placeholder:"\u9009\u62e9\u62a5\u8868\u7c7b\u578b",style:{width:"100%"},children:[(0,EE.jsx)(RPe,{value:"points",children:"\u79ef\u5206\u62a5\u8868"}),(0,EE.jsx)(RPe,{value:"activity",children:"\u6d3b\u52a8\u62a5\u8868"}),(0,EE.jsx)(RPe,{value:"service",children:"\u670d\u52a1\u62a5\u8868"}),(0,EE.jsx)(RPe,{value:"volunteer",children:"\u5fd7\u613f\u8005\u62a5\u8868"})]})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:8,children:(0,EE.jsx)(APe,{style:{width:"100%"},placeholder:["\u5f00\u59cb\u65e5\u671f","\u7ed3\u675f\u65e5\u671f"]})}),(0,EE.jsx)(fT,{xs:24,sm:12,md:8,children:(0,EE.jsxs)(rN,{placeholder:"\u9009\u62e9\u683c\u5f0f",style:{width:"100%"},children:[(0,EE.jsx)(RPe,{value:"excel",children:"Excel"}),(0,EE.jsx)(RPe,{value:"pdf",children:"PDF"}),(0,EE.jsx)(RPe,{value:"csv",children:"CSV"})]})})]})}),(0,EE.jsx)(zb,{title:"\u62a5\u8868\u5217\u8868",children:(0,EE.jsx)(cMe,{columns:t,dataSource:e,pagination:{showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`}})})]})},{Option:LPe}=rN,zPe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),[i,a]=(0,g.useState)(!1),[l,s]=(0,g.useState)([]),[c,u]=(0,g.useState)({current:1,pageSize:10,total:0}),[d,p]=(0,g.useState)({}),f=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{a(!0);const t={page:c.current,size:c.pageSize,...d,...e},n=await lE(t);0===n.code&&(s(n.data.content||[]),u(e=>({...e,total:n.data.totalElements||0})))}catch(t){console.error("\u83b7\u53d6\u7528\u6237\u5217\u8868\u5931\u8d25:",t),Hp.error("\u83b7\u53d6\u7528\u6237\u5217\u8868\u5931\u8d25")}finally{a(!1)}};(0,g.useEffect)(()=>{f()},[c.current,c.pageSize]);const h=[{title:"\u7528\u6237",key:"user",render:(e,t)=>(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),(0,EE.jsxs)("div",{children:[(0,EE.jsx)("div",{style:{fontWeight:"bold"},children:t.name}),(0,EE.jsx)("div",{style:{fontSize:"12px",color:"#8c8c8c"},children:t.username})]})]})},{title:"\u90ae\u7bb1",dataIndex:"email",key:"email"},{title:"\u89d2\u8272",dataIndex:"role",key:"role",render:e=>(0,EE.jsx)(uA,{color:{"\u8d85\u7ea7\u7ba1\u7406\u5458":"red","\u6d3b\u52a8\u7ba1\u7406\u5458":"blue","\u666e\u901a\u64cd\u4f5c\u5458":"green"}[e],children:e})},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:e=>(0,EE.jsx)(uA,{color:"\u542f\u7528"===e?"success":"default",children:e})},{title:"\u6700\u540e\u767b\u5f55",dataIndex:"lastLogin",key:"lastLogin"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime"},{title:"\u64cd\u4f5c",key:"action",render:(e,t)=>(0,EE.jsxs)(a$,{size:"middle",children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(GMe,{}),onClick:()=>m(t),children:"\u7f16\u8f91"}),(0,EE.jsx)(Lxe,{title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u7528\u6237\u5417\uff1f",onConfirm:()=>v(t.id),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,EE.jsx)(rk,{type:"link",danger:!0,icon:(0,EE.jsx)(qMe,{}),children:"\u5220\u9664"})})]})}],m=t=>{o(t),e.setFieldsValue(t),n(!0)},v=async e=>{try{0===(await cE(e.toString())).code&&(Hp.success("\u5220\u9664\u6210\u529f"),f())}catch(t){console.error("\u5220\u9664\u7528\u6237\u5931\u8d25:",t),Hp.error("\u5220\u9664\u7528\u6237\u5931\u8d25")}};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u7528\u6237\u7ba1\u7406"}),(0,EE.jsx)("p",{className:"page-description",children:"\u7ba1\u7406\u7cfb\u7edf\u7528\u6237\u8d26\u53f7\u548c\u6743\u9650"})]}),(0,EE.jsxs)(zb,{children:[(0,EE.jsx)("div",{className:"table-actions",children:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Sf,{}),onClick:()=>{o(null),e.resetFields(),n(!0)},children:"\u65b0\u589e\u7528\u6237"})}),(0,EE.jsx)(cMe,{columns:h,dataSource:l,rowKey:"id",loading:i,pagination:{current:c.current,pageSize:c.pageSize,total:c.total,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{u(t=>({...t,current:e.current,pageSize:e.pageSize}))}})]}),(0,EE.jsx)(_R,{title:r?"\u7f16\u8f91\u7528\u6237":"\u65b0\u589e\u7528\u6237",open:t,onOk:async()=>{try{const t=await e.validateFields();a(!0);0===(await sE(t)).code&&(Hp.success(r?"\u66f4\u65b0\u6210\u529f":"\u6dfb\u52a0\u6210\u529f"),n(!1),f())}catch(t){console.error("\u4fdd\u5b58\u7528\u6237\u5931\u8d25:",t),Hp.error("\u4fdd\u5b58\u7528\u6237\u5931\u8d25")}finally{a(!1)}},onCancel:()=>{n(!1),e.resetFields()},confirmLoading:i,width:600,children:(0,EE.jsxs)(bS,{form:e,layout:"vertical",initialValues:{status:"\u542f\u7528",role:"\u666e\u901a\u64cd\u4f5c\u5458"},children:[(0,EE.jsx)(bS.Item,{name:"username",label:"\u7528\u6237\u540d",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7528\u6237\u540d"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u540d"})}),(0,EE.jsx)(bS.Item,{name:"name",label:"\u59d3\u540d",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u59d3\u540d"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u59d3\u540d"})}),(0,EE.jsx)(bS.Item,{name:"email",label:"\u90ae\u7bb1",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u90ae\u7bb1"},{type:"email",message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1"})}),(0,EE.jsx)(bS.Item,{name:"role",label:"\u89d2\u8272",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u89d2\u8272"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u89d2\u8272",children:[(0,EE.jsx)(LPe,{value:"\u8d85\u7ea7\u7ba1\u7406\u5458",children:"\u8d85\u7ea7\u7ba1\u7406\u5458"}),(0,EE.jsx)(LPe,{value:"\u6d3b\u52a8\u7ba1\u7406\u5458",children:"\u6d3b\u52a8\u7ba1\u7406\u5458"}),(0,EE.jsx)(LPe,{value:"\u666e\u901a\u64cd\u4f5c\u5458",children:"\u666e\u901a\u64cd\u4f5c\u5458"})]})}),(0,EE.jsx)(bS.Item,{name:"status",label:"\u72b6\u6001",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u72b6\u6001"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",children:[(0,EE.jsx)(LPe,{value:"\u542f\u7528",children:"\u542f\u7528"}),(0,EE.jsx)(LPe,{value:"\u7981\u7528",children:"\u7981\u7528"})]})}),!r&&(0,EE.jsx)(bS.Item,{name:"password",label:"\u5bc6\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801"}],children:(0,EE.jsx)(Ck.Password,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"})})]})})]})};const BPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 00-11.4 0l-39.8 39.8a8.15 8.15 0 000 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 000 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 00608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z"}}]},name:"key",theme:"outlined"};var HPe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:BPe}))};const FPe=g.forwardRef(HPe);const VPe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var WPe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:VPe}))};const GPe=g.forwardRef(WPe),{Option:UPe}=rN,{RangePicker:YPe}=r$e,qPe=()=>{const[e]=bS.useForm(),[t]=bS.useForm(),[n,r]=(0,g.useState)(!1),[o,i]=(0,g.useState)(!1),[a]=bS.useForm(),[l,s]=(0,g.useState)(null),[c,u]=(0,g.useState)(null),[d,p]=(0,g.useState)(!1),[f,h]=(0,g.useState)([]),[m,v]=(0,g.useState)({current:1,pageSize:10,total:0}),[y,b]=(0,g.useState)({}),x=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{p(!0);const t={page:m.current,size:m.pageSize,...y,...e};t.createStart&&t.createEnd;const n=await nE(t);0===n.code?(h(n.data.content||[]),v(e=>({...e,total:n.data.totalElements||0}))):Hp.error(n.msg||"\u83b7\u53d6\u7ba1\u7406\u5458\u5217\u8868\u5931\u8d25")}catch(t){console.error("\u83b7\u53d6\u7ba1\u7406\u5458\u5217\u8868\u5931\u8d25:",t),Hp.error(t.message||"\u83b7\u53d6\u7ba1\u7406\u5458\u5217\u8868\u5931\u8d25")}finally{p(!1)}};(0,g.useEffect)(()=>{x()},[m.current,m.pageSize]);const w=[{title:"\u7ba1\u7406\u5458",key:"admin",render:(e,t)=>(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(N$,{icon:(0,EE.jsx)(Mk,{})}),(0,EE.jsxs)("div",{children:[(0,EE.jsx)("div",{style:{fontWeight:"bold"},children:t.name}),(0,EE.jsx)("div",{style:{fontSize:"12px",color:"#8c8c8c"},children:t.username})]})]})},{title:"\u624b\u673a\u53f7",dataIndex:"phone",key:"phone"},{title:"\u89d2\u8272",dataIndex:"role",key:"role",render:e=>(0,EE.jsx)(uA,{color:{admin:"red",user:"blue",operator:"green"}[e]||"default",children:{admin:"\u7ba1\u7406\u5458",user:"\u666e\u901a\u7528\u6237",operator:"\u64cd\u4f5c\u5458"}[e]||e})},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:e=>(0,EE.jsx)(uA,{color:"1"===e?"success":"default",children:"1"===e?"\u6b63\u5e38":"\u7981\u7528"})},{title:"\u6240\u5c5e\u533a\u57df",key:"area",render:(e,t)=>{const n=[];return t.districtName&&n.push(t.districtName),t.subdistrictName&&n.push(t.subdistrictName),t.communityName&&n.push(t.communityName),n.length>0?n.join(" / "):"-"}},{title:"\u6700\u540e\u767b\u5f55",dataIndex:"lastLoginTime",key:"lastLoginTime",render:e=>e||"-"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime"},{title:"\u64cd\u4f5c",key:"action",width:200,render:(e,t)=>(0,EE.jsxs)(a$,{size:"middle",children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(GMe,{}),onClick:()=>S(t),children:"\u7f16\u8f91"}),(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(FPe,{}),onClick:()=>_(t),children:"\u91cd\u7f6e\u5bc6\u7801"}),(0,EE.jsx)(Lxe,{title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u7ba1\u7406\u5458\u5417\uff1f",onConfirm:()=>C(t.id),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,EE.jsx)(rk,{type:"link",danger:!0,icon:(0,EE.jsx)(qMe,{}),children:"\u5220\u9664"})})]})}],S=async t=>{try{p(!0);const n=await rE(t.id);0===n.code&&n.data?(s(n.data),e.setFieldsValue({...n.data}),r(!0)):Hp.error("\u83b7\u53d6\u7ba1\u7406\u5458\u8be6\u60c5\u5931\u8d25")}catch(n){console.error("\u83b7\u53d6\u7ba1\u7406\u5458\u8be6\u60c5\u5931\u8d25:",n),Hp.error(n.message||"\u83b7\u53d6\u7ba1\u7406\u5458\u8be6\u60c5\u5931\u8d25")}finally{p(!1)}},C=async e=>{try{const t=await iE(e.toString());0===t.code?(Hp.success("\u5220\u9664\u6210\u529f"),x()):Hp.error(t.msg||"\u5220\u9664\u5931\u8d25")}catch(t){console.error("\u5220\u9664\u7ba1\u7406\u5458\u5931\u8d25:",t),Hp.error(t.message||"\u5220\u9664\u7ba1\u7406\u5458\u5931\u8d25")}},_=e=>{u(e),a.resetFields(),i(!0)};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u7ba1\u7406\u5458\u7ba1\u7406"}),(0,EE.jsx)("p",{className:"page-description",children:"\u7ba1\u7406\u7cfb\u7edf\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u6743\u9650"})]}),(0,EE.jsx)(zb,{style:{marginBottom:16},children:(0,EE.jsxs)(bS,{form:t,layout:"inline",children:[(0,EE.jsxs)(pT,{gutter:16,style:{width:"100%"},children:[(0,EE.jsx)(fT,{span:6,children:(0,EE.jsx)(bS.Item,{name:"username",label:"\u7528\u6237\u540d",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u540d",allowClear:!0})})}),(0,EE.jsx)(fT,{span:6,children:(0,EE.jsx)(bS.Item,{name:"name",label:"\u59d3\u540d",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u59d3\u540d",allowClear:!0})})}),(0,EE.jsx)(fT,{span:6,children:(0,EE.jsx)(bS.Item,{name:"role",label:"\u89d2\u8272",children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u89d2\u8272",allowClear:!0,style:{width:"100%"},children:[(0,EE.jsx)(UPe,{value:"admin",children:"\u7ba1\u7406\u5458"}),(0,EE.jsx)(UPe,{value:"user",children:"\u666e\u901a\u7528\u6237"}),(0,EE.jsx)(UPe,{value:"operator",children:"\u64cd\u4f5c\u5458"})]})})}),(0,EE.jsx)(fT,{span:6,children:(0,EE.jsx)(bS.Item,{name:"status",label:"\u72b6\u6001",children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",allowClear:!0,style:{width:"100%"},children:[(0,EE.jsx)(UPe,{value:"1",children:"\u6b63\u5e38"}),(0,EE.jsx)(UPe,{value:"0",children:"\u7981\u7528"})]})})})]}),(0,EE.jsxs)(pT,{gutter:16,style:{width:"100%",marginTop:16},children:[(0,EE.jsx)(fT,{span:8,children:(0,EE.jsx)(bS.Item,{name:"createTimeRange",label:"\u521b\u5efa\u65f6\u95f4",children:(0,EE.jsx)(YPe,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%"}})})}),(0,EE.jsx)(fT,{span:16,children:(0,EE.jsx)(bS.Item,{children:(0,EE.jsxs)(a$,{children:[(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(HC,{}),onClick:()=>{const e=t.getFieldsValue(),n={};e.username&&(n.username=e.username),e.name&&(n.name=e.name),e.role&&(n.role=e.role),void 0!==e.status&&null!==e.status&&(n.status=e.status),e.createTimeRange&&2===e.createTimeRange.length&&(n.createStart=e.createTimeRange[0].format("YYYY-MM-DD HH:mm:ss"),n.createEnd=e.createTimeRange[1].format("YYYY-MM-DD HH:mm:ss")),b(n),v(e=>({...e,current:1})),x(n)},children:"\u67e5\u8be2"}),(0,EE.jsx)(rk,{icon:(0,EE.jsx)(GPe,{}),onClick:()=>{t.resetFields(),b({}),v(e=>({...e,current:1})),x({})},children:"\u91cd\u7f6e"})]})})})]})]})}),(0,EE.jsxs)(zb,{children:[(0,EE.jsx)("div",{className:"table-actions",children:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Sf,{}),onClick:()=>{s(null),e.resetFields(),e.setFieldsValue({status:"1",role:"user"}),r(!0)},children:"\u65b0\u589e\u7ba1\u7406\u5458"})}),(0,EE.jsx)(cMe,{columns:w,dataSource:f,rowKey:"id",loading:d,pagination:{current:m.current,pageSize:m.pageSize,total:m.total,showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`},onChange:e=>{v(t=>({...t,current:e.current,pageSize:e.pageSize}))}})]}),(0,EE.jsx)(_R,{title:l?"\u7f16\u8f91\u7ba1\u7406\u5458":"\u65b0\u589e\u7ba1\u7406\u5458",open:n,onOk:async()=>{try{const t=await e.validateFields();p(!0);const n={...t};l&&l.id&&(n.id=l.id);const o=await oE(n);0===o.code?(Hp.success(l?"\u66f4\u65b0\u6210\u529f":"\u6dfb\u52a0\u6210\u529f"),r(!1),e.resetFields(),x()):Hp.error(o.msg||"\u4fdd\u5b58\u5931\u8d25")}catch(t){if(console.error("\u4fdd\u5b58\u7ba1\u7406\u5458\u5931\u8d25:",t),t.errorFields)return;Hp.error(t.message||"\u4fdd\u5b58\u7ba1\u7406\u5458\u5931\u8d25")}finally{p(!1)}},onCancel:()=>{r(!1),s(null),e.resetFields()},confirmLoading:d,width:600,children:(0,EE.jsxs)(bS,{form:e,layout:"vertical",children:[(0,EE.jsx)(bS.Item,{name:"username",label:"\u7528\u6237\u540d",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7528\u6237\u540d"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u540d",disabled:!!l})}),(0,EE.jsx)(bS.Item,{name:"name",label:"\u59d3\u540d",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u59d3\u540d"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u59d3\u540d"})}),(0,EE.jsx)(bS.Item,{name:"phone",label:"\u624b\u673a\u53f7",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"},{pattern:/^1[3-9]\d{9}$/,message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u53f7"})}),(0,EE.jsx)(bS.Item,{name:"role",label:"\u89d2\u8272",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u89d2\u8272"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u89d2\u8272",children:[(0,EE.jsx)(UPe,{value:"admin",children:"\u7ba1\u7406\u5458"}),(0,EE.jsx)(UPe,{value:"user",children:"\u666e\u901a\u7528\u6237"}),(0,EE.jsx)(UPe,{value:"operator",children:"\u64cd\u4f5c\u5458"})]})}),(0,EE.jsx)(bS.Item,{name:"status",label:"\u72b6\u6001",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u72b6\u6001"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",children:[(0,EE.jsx)(UPe,{value:"1",children:"\u6b63\u5e38"}),(0,EE.jsx)(UPe,{value:"0",children:"\u7981\u7528"})]})}),(0,EE.jsx)(bS.Item,{name:"districtCode",label:"\u533a\u4ee3\u7801",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u533a\u4ee3\u7801"})}),(0,EE.jsx)(bS.Item,{name:"districtName",label:"\u533a\u540d\u79f0",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u533a\u540d\u79f0"})}),(0,EE.jsx)(bS.Item,{name:"subdistrictCode",label:"\u8857\u9053\u4ee3\u7801",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u8857\u9053\u4ee3\u7801"})}),(0,EE.jsx)(bS.Item,{name:"subdistrictName",label:"\u8857\u9053\u540d\u79f0",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u8857\u9053\u540d\u79f0"})}),(0,EE.jsx)(bS.Item,{name:"communityCode",label:"\u793e\u533a\u4ee3\u7801",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u793e\u533a\u4ee3\u7801"})}),(0,EE.jsx)(bS.Item,{name:"communityName",label:"\u793e\u533a\u540d\u79f0",children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u793e\u533a\u540d\u79f0"})}),!l&&(0,EE.jsx)(bS.Item,{name:"password",label:"\u5bc6\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801"},{min:6,message:"\u5bc6\u7801\u81f3\u5c116\u4f4d"}],children:(0,EE.jsx)(Ck.Password,{placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801"})})]})}),(0,EE.jsx)(_R,{title:"\u91cd\u7f6e\u5bc6\u7801",open:o,onOk:async()=>{try{const e=await a.validateFields();p(!0);const t=await aE(c.id,e.newPassword);0===t.code?(Hp.success("\u5bc6\u7801\u91cd\u7f6e\u6210\u529f"),i(!1),a.resetFields()):Hp.error(t.msg||"\u5bc6\u7801\u91cd\u7f6e\u5931\u8d25")}catch(e){if(console.error("\u5bc6\u7801\u91cd\u7f6e\u5931\u8d25:",e),e.errorFields)return;Hp.error(e.message||"\u5bc6\u7801\u91cd\u7f6e\u5931\u8d25")}finally{p(!1)}},onCancel:()=>{i(!1),a.resetFields()},confirmLoading:d,children:(0,EE.jsxs)(bS,{form:a,layout:"vertical",children:[(0,EE.jsx)(bS.Item,{label:"\u7ba1\u7406\u5458",children:(0,EE.jsx)(Ck,{value:c?`${c.name} (${c.username})`:"",disabled:!0})}),(0,EE.jsx)(bS.Item,{name:"newPassword",label:"\u65b0\u5bc6\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u65b0\u5bc6\u7801"},{min:6,message:"\u5bc6\u7801\u81f3\u5c116\u4f4d"}],children:(0,EE.jsx)(Ck.Password,{placeholder:"\u8bf7\u8f93\u5165\u65b0\u5bc6\u7801"})})]})})]})},{Option:XPe}=rN,KPe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1),[r,o]=(0,g.useState)(null),[i,a]=(0,g.useState)(!1),[l]=(0,g.useState)([{id:1,roleName:"\u8d85\u7ea7\u7ba1\u7406\u5458",roleCode:"SUPER_ADMIN",description:"\u62e5\u6709\u7cfb\u7edf\u6240\u6709\u6743\u9650",permissions:["\u79ef\u5206\u7ba1\u7406","\u6d3b\u52a8\u7ba1\u7406","\u5fd7\u613f\u8005\u7ba1\u7406","\u7edf\u8ba1\u5206\u6790","\u7cfb\u7edf\u8bbe\u7f6e"],status:"\u542f\u7528",createTime:"2024-01-01 00:00:00"},{id:2,roleName:"\u6d3b\u52a8\u7ba1\u7406\u5458",roleCode:"ACTIVITY_ADMIN",description:"\u8d1f\u8d23\u6d3b\u52a8\u7ba1\u7406\u548c\u5fd7\u613f\u8005\u7ba1\u7406",permissions:["\u6d3b\u52a8\u7ba1\u7406","\u5fd7\u613f\u8005\u7ba1\u7406","\u7edf\u8ba1\u5206\u6790"],status:"\u542f\u7528",createTime:"2024-01-05 10:00:00"},{id:3,roleName:"\u666e\u901a\u64cd\u4f5c\u5458",roleCode:"OPERATOR",description:"\u57fa\u7840\u64cd\u4f5c\u6743\u9650",permissions:["\u5fd7\u613f\u8005\u7ba1\u7406","\u7edf\u8ba1\u5206\u6790"],status:"\u542f\u7528",createTime:"2024-01-10 14:30:00"}]),s=[{title:"\u89d2\u8272\u540d\u79f0",dataIndex:"roleName",key:"roleName"},{title:"\u89d2\u8272\u4ee3\u7801",dataIndex:"roleCode",key:"roleCode"},{title:"\u63cf\u8ff0",dataIndex:"description",key:"description",ellipsis:!0},{title:"\u6743\u9650",dataIndex:"permissions",key:"permissions",render:e=>(0,EE.jsx)("div",{children:e.map((e,t)=>(0,EE.jsx)(uA,{color:"blue",style:{marginBottom:4},children:e},t))})},{title:"\u72b6\u6001",dataIndex:"status",key:"status",render:e=>(0,EE.jsx)(uA,{color:"\u542f\u7528"===e?"success":"default",children:e})},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"createTime",key:"createTime"},{title:"\u64cd\u4f5c",key:"action",render:(e,t)=>(0,EE.jsxs)(a$,{size:"middle",children:[(0,EE.jsx)(rk,{type:"link",icon:(0,EE.jsx)(GMe,{}),onClick:()=>c(t),children:"\u7f16\u8f91"}),(0,EE.jsx)(Lxe,{title:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u4e2a\u89d2\u8272\u5417\uff1f",onConfirm:()=>u(t.id),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",children:(0,EE.jsx)(rk,{type:"link",danger:!0,icon:(0,EE.jsx)(qMe,{}),children:"\u5220\u9664"})})]})}],c=t=>{o(t),e.setFieldsValue(t),n(!0)},u=e=>{Hp.success("\u5220\u9664\u6210\u529f")};return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u6743\u9650\u7ba1\u7406"}),(0,EE.jsx)("p",{className:"page-description",children:"\u7ba1\u7406\u7cfb\u7edf\u89d2\u8272\u548c\u6743\u9650\u914d\u7f6e"})]}),(0,EE.jsxs)(zb,{children:[(0,EE.jsx)("div",{className:"table-actions",children:(0,EE.jsx)(rk,{type:"primary",icon:(0,EE.jsx)(Sf,{}),onClick:()=>{o(null),e.resetFields(),n(!0)},children:"\u65b0\u589e\u89d2\u8272"})}),(0,EE.jsx)(cMe,{columns:s,dataSource:l,rowKey:"id",pagination:{showSizeChanger:!0,showQuickJumper:!0,showTotal:(e,t)=>`\u7b2c ${t[0]}-${t[1]} \u6761/\u5171 ${e} \u6761`}})]}),(0,EE.jsx)(_R,{title:r?"\u7f16\u8f91\u89d2\u8272":"\u65b0\u589e\u89d2\u8272",open:t,onOk:async()=>{try{await e.validateFields();a(!0),r?Hp.success("\u66f4\u65b0\u6210\u529f"):Hp.success("\u6dfb\u52a0\u6210\u529f"),n(!1),a(!1)}catch(t){console.error("\u8868\u5355\u9a8c\u8bc1\u5931\u8d25:",t)}},onCancel:()=>{n(!1),e.resetFields()},confirmLoading:i,width:800,children:(0,EE.jsxs)(bS,{form:e,layout:"vertical",initialValues:{status:"\u542f\u7528"},children:[(0,EE.jsx)(bS.Item,{name:"roleName",label:"\u89d2\u8272\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u89d2\u8272\u540d\u79f0"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u89d2\u8272\u540d\u79f0"})}),(0,EE.jsx)(bS.Item,{name:"roleCode",label:"\u89d2\u8272\u4ee3\u7801",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u89d2\u8272\u4ee3\u7801"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u89d2\u8272\u4ee3\u7801"})}),(0,EE.jsx)(bS.Item,{name:"description",label:"\u89d2\u8272\u63cf\u8ff0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u89d2\u8272\u63cf\u8ff0"}],children:(0,EE.jsx)(Ck.TextArea,{rows:3,placeholder:"\u8bf7\u8f93\u5165\u89d2\u8272\u63cf\u8ff0"})}),(0,EE.jsx)(bS.Item,{name:"permissions",label:"\u6743\u9650\u914d\u7f6e",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u6743\u9650"}],children:(0,EE.jsx)(J_e,{checkable:!0,treeData:[{title:"\u79ef\u5206\u7ba1\u7406",key:"points",children:[{title:"\u79ef\u5206\u7c7b\u578b\u8bbe\u7f6e",key:"points:types"},{title:"\u9879\u76ee\u5206\u503c\u914d\u7f6e",key:"points:projects"},{title:"\u7533\u62a5\u89c4\u5219\u7ba1\u7406",key:"points:rules"}]},{title:"\u6d3b\u52a8\u7ba1\u7406",key:"activity",children:[{title:"\u6d3b\u52a8\u53d1\u5e03",key:"activity:create"},{title:"\u6d3b\u52a8\u5217\u8868",key:"activity:list"},{title:"\u62a5\u540d\u7ba1\u7406",key:"activity:registration"}]},{title:"\u5fd7\u613f\u8005\u7ba1\u7406",key:"volunteer",children:[{title:"\u5fd7\u613f\u8005\u5217\u8868",key:"volunteer:list"},{title:"\u79ef\u5206\u67e5\u8be2",key:"volunteer:points"},{title:"\u5fd7\u613f\u8005\u8be6\u60c5",key:"volunteer:detail"}]},{title:"\u7edf\u8ba1\u5206\u6790",key:"statistics",children:[{title:"\u6570\u636e\u6982\u89c8",key:"statistics:overview"},{title:"\u8d8b\u52bf\u5206\u6790",key:"statistics:trends"},{title:"\u62a5\u8868\u4e2d\u5fc3",key:"statistics:reports"}]},{title:"\u7cfb\u7edf\u8bbe\u7f6e",key:"system",children:[{title:"\u7528\u6237\u7ba1\u7406",key:"system:users"},{title:"\u6743\u9650\u914d\u7f6e",key:"system:permissions"},{title:"\u7cfb\u7edf\u53c2\u6570",key:"system:settings"}]}],defaultExpandAll:!0})}),(0,EE.jsx)(bS.Item,{name:"status",label:"\u72b6\u6001",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u72b6\u6001"}],children:(0,EE.jsxs)(rN,{placeholder:"\u8bf7\u9009\u62e9\u72b6\u6001",children:[(0,EE.jsx)(XPe,{value:"\u542f\u7528",children:"\u542f\u7528"}),(0,EE.jsx)(XPe,{value:"\u7981\u7528",children:"\u7981\u7528"})]})})]})})]})};var ZPe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],QPe=g.forwardRef(function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,p=e.onClick,f=e.onChange,h=e.onKeyDown,m=Io(e,ZPe),v=Q(Ho(!1,{value:a,defaultValue:l}),2),y=v[0],b=v[1];function x(e,t){var n=y;return s||(b(n=e),null===f||void 0===f||f(n,t)),n}var w=po()(o,i,(Y(n={},"".concat(o,"-checked"),y),Y(n,"".concat(o,"-disabled"),s),n));return g.createElement("button",gt({},m,{type:"button",role:"switch","aria-checked":y,disabled:s,className:w,ref:t,onKeyDown:function(e){e.which===bd.LEFT?x(!1,e):e.which===bd.RIGHT&&x(!0,e),null===h||void 0===h||h(e)},onClick:function(e){var t=x(!y,e);null===p||void 0===p||p(t,e)}}),c,g.createElement("span",{className:"".concat(o,"-inner")},g.createElement("span",{className:"".concat(o,"-inner-checked")},u),g.createElement("span",{className:"".concat(o,"-inner-unchecked")},d)))});QPe.displayName="Switch";const JPe=QPe,eDe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,u=Xe(s(l).add(s(r).mul(2)).equal()),d=Xe(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Xe(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Xe(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},tDe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},nDe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${Xe(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},rDe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=Xe(l(a).add(l(r).mul(2)).equal()),u=Xe(l(i).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},oDe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ki(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Xe(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Qi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},iDe=dp("Switch",e=>{const t=ep(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[oDe(t),rDe(t),nDe(t),tDe(t),eDe(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=i-4,s=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:l,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Zn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}});var aDe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const lDe=g.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:s,checked:c,value:u,defaultChecked:d,defaultValue:p,onChange:f}=e,h=aDe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[m,v]=Ho(!1,{value:null!==c&&void 0!==c?c:u,defaultValue:null!==d&&void 0!==d?d:p}),{getPrefixCls:y,direction:b,switch:x}=g.useContext(qr),w=g.useContext(no),S=(null!==o&&void 0!==o?o:w)||i,C=y("switch",n),_=g.createElement("div",{className:`${C}-handle`},i&&g.createElement(vd,{className:`${C}-loading-icon`})),[k,M,I]=iDe(C),E=Vp(r),O=po()(null===x||void 0===x?void 0:x.className,{[`${C}-small`]:"small"===E,[`${C}-loading`]:i,[`${C}-rtl`]:"rtl"===b},a,l,M,I),$=Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),s);return k(g.createElement(KC,{component:"Switch"},g.createElement(JPe,Object.assign({},h,{checked:m,onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];v(t[0]),null===f||void 0===f||f.apply(void 0,t)},prefixCls:C,className:O,style:$,disabled:S,ref:t,loadingIcon:_}))))}),sDe=lDe;sDe.__ANT_SWITCH=!0;const cDe=sDe;const uDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};var dDe=function(e,t){return g.createElement(rd,gt({},e,{ref:t,icon:uDe}))};const pDe=g.forwardRef(dDe),{Option:fDe}=rN,{TextArea:hDe}=Ck,gDe=()=>{const[e]=bS.useForm(),[t,n]=(0,g.useState)(!1);return(0,EE.jsxs)("div",{children:[(0,EE.jsxs)("div",{className:"page-header",children:[(0,EE.jsx)("h1",{className:"page-title",children:"\u7cfb\u7edf\u8bbe\u7f6e"}),(0,EE.jsx)("p",{className:"page-description",children:"\u914d\u7f6e\u7cfb\u7edf\u57fa\u672c\u53c2\u6570\u548c\u529f\u80fd\u8bbe\u7f6e"})]}),(0,EE.jsxs)(bS,{form:e,layout:"vertical",onFinish:async e=>{try{n(!0),console.log("\u4fdd\u5b58\u8bbe\u7f6e:",e),Hp.success("\u8bbe\u7f6e\u4fdd\u5b58\u6210\u529f\uff01")}catch(t){Hp.error("\u4fdd\u5b58\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5")}finally{n(!1)}},initialValues:{systemName:"\u5fd7\u613f\u8005\u670d\u52a1\u7ba1\u7406\u7cfb\u7edf",systemVersion:"v1.0.0",maxFileSize:10,enableEmailNotification:!0,enableSMSNotification:!1,pointsExpireDays:365,maxActivitiesPerDay:5,enableAutoApproval:!1,systemDescription:"\u5fd7\u613f\u8005\u670d\u52a1\u7ba1\u7406\u7cfb\u7edf\uff0c\u63d0\u4f9b\u79ef\u5206\u7ba1\u7406\u3001\u6d3b\u52a8\u53d1\u5e03\u3001\u5fd7\u613f\u8005\u7ba1\u7406\u7b49\u529f\u80fd\u3002"},children:[(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsxs)(zb,{title:"\u57fa\u672c\u8bbe\u7f6e",style:{marginBottom:24},children:[(0,EE.jsx)(bS.Item,{name:"systemName",label:"\u7cfb\u7edf\u540d\u79f0",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7cfb\u7edf\u540d\u79f0"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u7cfb\u7edf\u540d\u79f0"})}),(0,EE.jsx)(bS.Item,{name:"systemVersion",label:"\u7cfb\u7edf\u7248\u672c",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7cfb\u7edf\u7248\u672c"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u7cfb\u7edf\u7248\u672c"})}),(0,EE.jsx)(bS.Item,{name:"systemDescription",label:"\u7cfb\u7edf\u63cf\u8ff0",children:(0,EE.jsx)(hDe,{rows:4,placeholder:"\u8bf7\u8f93\u5165\u7cfb\u7edf\u63cf\u8ff0"})}),(0,EE.jsx)(bS.Item,{name:"adminEmail",label:"\u7ba1\u7406\u5458\u90ae\u7bb1",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u7ba1\u7406\u5458\u90ae\u7bb1"},{type:"email",message:"\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740"}],children:(0,EE.jsx)(Ck,{placeholder:"\u8bf7\u8f93\u5165\u7ba1\u7406\u5458\u90ae\u7bb1"})})]})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsxs)(zb,{title:"\u529f\u80fd\u8bbe\u7f6e",style:{marginBottom:24},children:[(0,EE.jsx)(bS.Item,{name:"enableEmailNotification",label:"\u542f\u7528\u90ae\u4ef6\u901a\u77e5",valuePropName:"checked",children:(0,EE.jsx)(cDe,{})}),(0,EE.jsx)(bS.Item,{name:"enableSMSNotification",label:"\u542f\u7528\u77ed\u4fe1\u901a\u77e5",valuePropName:"checked",children:(0,EE.jsx)(cDe,{})}),(0,EE.jsx)(bS.Item,{name:"enableAutoApproval",label:"\u542f\u7528\u81ea\u52a8\u5ba1\u6838",valuePropName:"checked",children:(0,EE.jsx)(cDe,{})}),(0,EE.jsx)(bS.Item,{name:"enablePointsExpire",label:"\u542f\u7528\u79ef\u5206\u8fc7\u671f",valuePropName:"checked",children:(0,EE.jsx)(cDe,{})})]})})]}),(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsxs)(zb,{title:"\u79ef\u5206\u8bbe\u7f6e",style:{marginBottom:24},children:[(0,EE.jsx)(bS.Item,{name:"pointsExpireDays",label:"\u79ef\u5206\u8fc7\u671f\u5929\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u79ef\u5206\u8fc7\u671f\u5929\u6570"}],children:(0,EE.jsx)(FMe,{min:0,max:3650,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u79ef\u5206\u8fc7\u671f\u5929\u6570"})}),(0,EE.jsx)(bS.Item,{name:"maxPointsPerActivity",label:"\u5355\u6b21\u6d3b\u52a8\u6700\u5927\u79ef\u5206",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5355\u6b21\u6d3b\u52a8\u6700\u5927\u79ef\u5206"}],children:(0,EE.jsx)(FMe,{min:1,max:1e3,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u5355\u6b21\u6d3b\u52a8\u6700\u5927\u79ef\u5206"})}),(0,EE.jsx)(bS.Item,{name:"minPointsForRedemption",label:"\u79ef\u5206\u5151\u6362\u6700\u4f4e\u9650\u989d",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u79ef\u5206\u5151\u6362\u6700\u4f4e\u9650\u989d"}],children:(0,EE.jsx)(FMe,{min:1,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u79ef\u5206\u5151\u6362\u6700\u4f4e\u9650\u989d"})})]})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsxs)(zb,{title:"\u6d3b\u52a8\u8bbe\u7f6e",style:{marginBottom:24},children:[(0,EE.jsx)(bS.Item,{name:"maxActivitiesPerDay",label:"\u6bcf\u65e5\u6700\u5927\u6d3b\u52a8\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6bcf\u65e5\u6700\u5927\u6d3b\u52a8\u6570"}],children:(0,EE.jsx)(FMe,{min:1,max:50,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u6bcf\u65e5\u6700\u5927\u6d3b\u52a8\u6570"})}),(0,EE.jsx)(bS.Item,{name:"maxParticipantsPerActivity",label:"\u5355\u6b21\u6d3b\u52a8\u6700\u5927\u53c2\u4e0e\u4eba\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5355\u6b21\u6d3b\u52a8\u6700\u5927\u53c2\u4e0e\u4eba\u6570"}],children:(0,EE.jsx)(FMe,{min:1,max:1e3,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u5355\u6b21\u6d3b\u52a8\u6700\u5927\u53c2\u4e0e\u4eba\u6570"})}),(0,EE.jsx)(bS.Item,{name:"activityRegistrationDeadline",label:"\u6d3b\u52a8\u62a5\u540d\u622a\u6b62\u65f6\u95f4\uff08\u5c0f\u65f6\uff09",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u62a5\u540d\u622a\u6b62\u65f6\u95f4"}],children:(0,EE.jsx)(FMe,{min:1,max:168,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u6d3b\u52a8\u62a5\u540d\u622a\u6b62\u65f6\u95f4"})})]})})]}),(0,EE.jsxs)(pT,{gutter:[24,0],children:[(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsxs)(zb,{title:"\u6587\u4ef6\u8bbe\u7f6e",style:{marginBottom:24},children:[(0,EE.jsx)(bS.Item,{name:"maxFileSize",label:"\u6700\u5927\u6587\u4ef6\u5927\u5c0f\uff08MB\uff09",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6700\u5927\u6587\u4ef6\u5927\u5c0f"}],children:(0,EE.jsx)(FMe,{min:1,max:100,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u6700\u5927\u6587\u4ef6\u5927\u5c0f"})}),(0,EE.jsx)(bS.Item,{name:"allowedFileTypes",label:"\u5141\u8bb8\u7684\u6587\u4ef6\u7c7b\u578b",rules:[{required:!0,message:"\u8bf7\u9009\u62e9\u5141\u8bb8\u7684\u6587\u4ef6\u7c7b\u578b"}],children:(0,EE.jsxs)(rN,{mode:"multiple",placeholder:"\u8bf7\u9009\u62e9\u5141\u8bb8\u7684\u6587\u4ef6\u7c7b\u578b",style:{width:"100%"},children:[(0,EE.jsx)(fDe,{value:"jpg",children:"JPG"}),(0,EE.jsx)(fDe,{value:"png",children:"PNG"}),(0,EE.jsx)(fDe,{value:"gif",children:"GIF"}),(0,EE.jsx)(fDe,{value:"pdf",children:"PDF"}),(0,EE.jsx)(fDe,{value:"doc",children:"DOC"}),(0,EE.jsx)(fDe,{value:"docx",children:"DOCX"}),(0,EE.jsx)(fDe,{value:"xls",children:"XLS"}),(0,EE.jsx)(fDe,{value:"xlsx",children:"XLSX"})]})})]})}),(0,EE.jsx)(fT,{xs:24,lg:12,children:(0,EE.jsxs)(zb,{title:"\u5b89\u5168\u8bbe\u7f6e",style:{marginBottom:24},children:[(0,EE.jsx)(bS.Item,{name:"passwordMinLength",label:"\u5bc6\u7801\u6700\u5c0f\u957f\u5ea6",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u5bc6\u7801\u6700\u5c0f\u957f\u5ea6"}],children:(0,EE.jsx)(FMe,{min:6,max:20,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u5bc6\u7801\u6700\u5c0f\u957f\u5ea6"})}),(0,EE.jsx)(bS.Item,{name:"sessionTimeout",label:"\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4\uff08\u5206\u949f\uff09",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4"}],children:(0,EE.jsx)(FMe,{min:10,max:1440,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u4f1a\u8bdd\u8d85\u65f6\u65f6\u95f4"})}),(0,EE.jsx)(bS.Item,{name:"maxLoginAttempts",label:"\u6700\u5927\u767b\u5f55\u5c1d\u8bd5\u6b21\u6570",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u6700\u5927\u767b\u5f55\u5c1d\u8bd5\u6b21\u6570"}],children:(0,EE.jsx)(FMe,{min:3,max:10,style:{width:"100%"},placeholder:"\u8bf7\u8f93\u5165\u6700\u5927\u767b\u5f55\u5c1d\u8bd5\u6b21\u6570"})})]})})]}),(0,EE.jsx)(zb,{children:(0,EE.jsxs)("div",{style:{textAlign:"center"},children:[(0,EE.jsx)(rk,{type:"primary",htmlType:"submit",icon:(0,EE.jsx)(pDe,{}),loading:t,size:"large",style:{marginRight:16},children:"\u4fdd\u5b58\u8bbe\u7f6e"}),(0,EE.jsx)(rk,{icon:(0,EE.jsx)(GPe,{}),onClick:()=>{e.resetFields(),Hp.info("\u5df2\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u8bbe\u7f6e")},size:"large",children:"\u91cd\u7f6e\u8bbe\u7f6e"})]})})]})]})};const mDe=function(){const{isAuthenticated:e}=D(e=>e.auth);return e?(0,EE.jsx)(fu,{children:(0,EE.jsx)(dT,{children:(0,EE.jsxs)(uu,{children:[(0,EE.jsx)(su,{path:"/",element:(0,EE.jsx)(lu,{to:"/dashboard",replace:!0})}),(0,EE.jsx)(su,{path:"/dashboard",element:(0,EE.jsx)(Exe,{})}),(0,EE.jsx)(su,{path:"/points/rules",element:(0,EE.jsx)(ZMe,{})}),(0,EE.jsx)(su,{path:"/activities",element:(0,EE.jsx)(a$e,{})}),(0,EE.jsx)(su,{path:"/activities/create",element:(0,EE.jsx)(UTe,{})}),(0,EE.jsx)(su,{path:"/activities/edit/:id",element:(0,EE.jsx)(XTe,{})}),(0,EE.jsx)(su,{path:"/activities/registrations/:id",element:(0,EE.jsx)(KTe,{})}),(0,EE.jsx)(su,{path:"/activities/registrations/detail/:id",element:(0,EE.jsx)(mPe,{})}),(0,EE.jsx)(su,{path:"/volunteers",element:(0,EE.jsx)(yPe,{})}),(0,EE.jsx)(su,{path:"/volunteers/points",element:(0,EE.jsx)(bPe,{})}),(0,EE.jsx)(su,{path:"/volunteers/:id",element:(0,EE.jsx)(xPe,{})}),(0,EE.jsx)(su,{path:"/statistics/overview",element:(0,EE.jsx)(IPe,{})}),(0,EE.jsx)(su,{path:"/statistics/trends",element:(0,EE.jsx)(EPe,{})}),(0,EE.jsx)(su,{path:"/statistics/reports",element:(0,EE.jsx)(jPe,{})}),(0,EE.jsx)(su,{path:"/system/admins",element:(0,EE.jsx)(qPe,{})}),(0,EE.jsx)(su,{path:"/system/users",element:(0,EE.jsx)(zPe,{})}),(0,EE.jsx)(su,{path:"/system/permissions",element:(0,EE.jsx)(KPe,{})}),(0,EE.jsx)(su,{path:"/system/settings",element:(0,EE.jsx)(gDe,{})}),(0,EE.jsx)(su,{path:"*",element:(0,EE.jsx)(lu,{to:"/dashboard",replace:!0})})]})})}):(0,EE.jsx)(fu,{children:(0,EE.jsxs)(uu,{children:[(0,EE.jsx)(su,{path:"/login",element:(0,EE.jsx)(OE,{})}),(0,EE.jsx)(su,{path:"*",element:(0,EE.jsx)(lu,{to:"/login",replace:!0})})]})})};v.createRoot(document.getElementById("root")).render((0,EE.jsx)(g.StrictMode,{children:(0,EE.jsx)(z,{store:Zs,children:(0,EE.jsx)(fa,{locale:ha.A,children:(0,EE.jsx)(mDe,{})})})}))})()})();
//# sourceMappingURL=main.0f96de7a.js.map