(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"+6XX":function(e,t,n){var r=n("y1pI");function i(e){return r(this.__data__,e)>-1}e.exports=i},"+BJd":function(e,t,n){"use strict";n("cIOH"),n("6MrE")},"+QRC":function(e,t,n){"use strict";var r=n("E9nw"),i={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function a(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function s(e,t){var n,s,l,c,u,d,h=!1;t||(t={}),n=t.debug||!1;try{l=r(),c=document.createRange(),u=document.getSelection(),d=document.createElement("span"),d.textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i["default"];window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c);var f=document.execCommand("copy");if(!f)throw new Error("copy command was unsuccessful");h=!0}catch(p){n&&console.error("unable to copy using execCommand: ",p),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),s=a("message"in t?t.message:o),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}e.exports=s},"+TT/":function(e,t,n){var r=n("bYtY"),i=n("mFDi"),o=n("OELB"),a=o.parsePercent,s=n("7aKB"),l=r.each,c=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function d(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,c){var u,d,h=l.position,f=l.getBoundingRect(),p=t.childAt(c+1),A=p&&p.getBoundingRect();if("horizontal"===e){var g=f.width+(A?-A.x+f.x:0);u=o+g,u>r||l.newline?(o=0,u=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(A?-A.y+f.y:0);d=a+m,d>i||l.newline?(o+=s+n,a=0,d=m,s=f.width):s=Math.max(s,f.width)}l.newline||(h[0]=o,h[1]=a,"horizontal"===e?o=u+n:a=d+n)}))}var h=d,f=r.curry(d,"vertical"),p=r.curry(d,"horizontal");function A(e,t,n){var r=t.width,i=t.height,o=a(e.x,r),l=a(e.y,i),c=a(e.x2,r),u=a(e.y2,i);return(isNaN(o)||isNaN(parseFloat(e.x)))&&(o=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=r),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(e.y2)))&&(u=i),n=s.normalizeCssArray(n||0),{width:Math.max(c-o-n[1]-n[3],0),height:Math.max(u-l-n[0]-n[2],0)}}function g(e,t,n){n=s.normalizeCssArray(n||0);var r=t.width,o=t.height,l=a(e.left,r),c=a(e.top,o),u=a(e.right,r),d=a(e.bottom,o),h=a(e.width,r),f=a(e.height,o),p=n[2]+n[0],A=n[1]+n[3],g=e.aspect;switch(isNaN(h)&&(h=r-u-A-l),isNaN(f)&&(f=o-d-p-c),null!=g&&(isNaN(h)&&isNaN(f)&&(g>r/o?h=.8*r:f=.8*o),isNaN(h)&&(h=g*f),isNaN(f)&&(f=h/g)),isNaN(l)&&(l=r-u-h-A),isNaN(c)&&(c=o-d-f-p),e.left||e.right){case"center":l=r/2-h/2-n[3];break;case"right":l=r-h-A;break}switch(e.top||e.bottom){case"middle":case"center":c=o/2-f/2-n[0];break;case"bottom":c=o-f-p;break}l=l||0,c=c||0,isNaN(h)&&(h=r-A-l-(u||0)),isNaN(f)&&(f=o-p-c-(d||0));var m=new i(l+n[3],c+n[0],h,f);return m.margin=n,m}function m(e,t,n,o,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],c=a&&a.boundingMode||"all";if(s||l){var u;if("raw"===c)u="group"===e.type?new i(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();u=u.clone(),u.applyTransform(d)}t=g(r.defaults({width:u.width,height:u.height},t),n,o);var h=e.position,f=s?t.x-u.x:0,p=l?t.y-u.y:0;e.attr("position","raw"===c?[f,p]:[h[0]+f,h[1]+p])}}function v(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function y(e,t,n){!r.isObject(n)&&(n={});var i=n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=s(u[0],0),a=s(u[1],1);function s(n,r){var o={},a=0,s={},u=0,h=2;if(l(n,(function(t){s[t]=e[t]})),l(n,(function(e){c(t,e)&&(o[e]=s[e]=t[e]),d(o,e)&&a++,d(s,e)&&u++})),i[r])return d(t,n[1])?s[n[2]]=null:d(t,n[2])&&(s[n[1]]=null),s;if(u!==h&&a){if(a>=h)return o;for(var f=0;f2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);while(r.length=12,k%=12);var I=u["useMemo"]((function(){if(!d)return[!1,!1];var e=[!0,!0];return T.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[d,T]),L=Object(U["a"])(I,2),D=L[0],P=L[1],N=u["useMemo"]((function(){return d?T.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":Ae(t,2);return Object(R["a"])(Object(R["a"])({},e),{},{label:n,value:t})})):T}),[d,T]),j=Ce(0,59,A,y&&y(k)),F=Ce(0,59,m,b&&b(k,E));function H(e,t,n,r,i){!1!==e&&x.push({node:u["cloneElement"](t,{prefixCls:S,value:n,active:o===x.length,onSelect:i,units:r,hideDisabledOptions:_}),onSelect:i,value:n,units:r})}i.current={onUpDown:function(e){var t=x[o];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,i=1;i1&&(a=t.addDate(a,-7)),a}function Ke(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}var ze=u["createContext"]({}),Ve=ze;function We(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,i=e.hoverRangedValue,o=e.isInView,a=e.isSameCell,s=e.offsetCell,l=e.today,c=e.value;function u(e){var u,d=s(e,-1),h=s(e,1),f=ye(r,0),p=ye(r,1),A=ye(i,0),g=ye(i,1),m=He(n,A,g,e);function v(e){return a(f,e)}function y(e){return a(p,e)}var b=a(A,e),_=a(g,e),w=(m||_)&&(!o(d)||y(d)),x=(m||b)&&(!o(h)||v(h));return u={},Object(F["a"])(u,"".concat(t,"-in-view"),o(e)),Object(F["a"])(u,"".concat(t,"-in-range"),He(n,f,p,e)),Object(F["a"])(u,"".concat(t,"-range-start"),v(e)),Object(F["a"])(u,"".concat(t,"-range-end"),y(e)),Object(F["a"])(u,"".concat(t,"-range-start-single"),v(e)&&!p),Object(F["a"])(u,"".concat(t,"-range-end-single"),y(e)&&!f),Object(F["a"])(u,"".concat(t,"-range-start-near-hover"),v(e)&&(a(d,A)||He(n,A,g,d))),Object(F["a"])(u,"".concat(t,"-range-end-near-hover"),y(e)&&(a(h,g)||He(n,A,g,h))),Object(F["a"])(u,"".concat(t,"-range-hover"),m),Object(F["a"])(u,"".concat(t,"-range-hover-start"),b),Object(F["a"])(u,"".concat(t,"-range-hover-end"),_),Object(F["a"])(u,"".concat(t,"-range-hover-edge-start"),w),Object(F["a"])(u,"".concat(t,"-range-hover-edge-end"),x),Object(F["a"])(u,"".concat(t,"-range-hover-edge-start-near-range"),w&&a(d,p)),Object(F["a"])(u,"".concat(t,"-range-hover-edge-end-near-range"),x&&a(h,f)),Object(F["a"])(u,"".concat(t,"-today"),a(l,e)),Object(F["a"])(u,"".concat(t,"-selected"),a(c,e)),u}return u}function Ge(e){for(var t=e.prefixCls,n=e.disabledDate,r=e.onSelect,i=e.rowNum,o=e.colNum,a=e.prefixColumn,s=e.rowClassName,l=e.baseDate,c=e.getCellClassName,d=e.getCellText,h=e.getCellNode,f=e.getCellDate,p=e.titleCell,A=e.headerCells,g=u["useContext"](V),m=g.onDateMouseEnter,v=g.onDateMouseLeave,y="".concat(t,"-cell"),b=[],_=0;_2&&void 0!==arguments[2]&&arguments[2];(Se===m||n)&&(pe(e),S&&S(e),ee&&ee(e,t),k&&!Ue(l,e,fe)&&k(e))},Pe=function(e){return le.current&&le.current.onKeyDown?([K["a"].LEFT,K["a"].RIGHT,K["a"].UP,K["a"].DOWN,K["a"].PAGE_UP,K["a"].PAGE_DOWN,K["a"].ENTER].includes(e.which)&&e.preventDefault(),le.current.onKeyDown(e)):(Object(o["a"])(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Ne=function(e){le.current&&le.current.onBlur&&le.current.onBlur(e)};J&&"right"!==oe&&(J.current={onKeyDown:Pe,onClose:function(){le.current&&le.current.onClose&&le.current.onClose()}}),u["useEffect"]((function(){c&&!ce.current&&ve(c)}),[c]),u["useEffect"]((function(){ce.current=!1}),[]);var je,Fe,Re=Object(R["a"])(Object(R["a"])({},e),{},{operationRef:le,prefixCls:r,viewDate:me,value:fe,onViewDateChange:ye,sourceMode:Te,onPanelChange:Le,disabledDate:"decade"!==Se?p:void 0});switch(delete Re.onChange,delete Re.onSelect,Se){case"decade":Ee=u["createElement"](Ht,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}}));break;case"year":Ee=u["createElement"](Tt,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}}));break;case"month":Ee=u["createElement"](pt,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}}));break;case"quarter":Ee=u["createElement"](wt,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}}));break;case"week":Ee=u["createElement"](at,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}}));break;case"time":delete Re.showTime,Ee=u["createElement"](Be,Object.assign({},Re,"object"===Object(Q["a"])(_)?_:null,{onSelect:function(e,t){ye(e),De(e,t)}}));break;default:Ee=_?u["createElement"](it,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}})):u["createElement"](et,Object.assign({},Re,{onSelect:function(e,t){ye(e),De(e,t)}}))}var He,Qe=function(){var e=l.getNow(),t=we(l.getHour(e),l.getMinute(e),l.getSecond(e),X?P:1,q?j:1,Y?W:1),n=_e(l,e,t[0],t[1],t[2]);De(n,"submit")};if(te||(je=Qt(r,Se,x),Fe=Kt({prefixCls:r,components:I,needConfirmButton:G,okDisabled:!fe||p&&p(fe),locale:s,showNow:b,onNow:G&&Qe,onOk:function(){fe&&(De(fe,"submit",!0),T&&T(fe))}})),w&&"date"===Se&&"date"===m&&!_){var Ke=l.getNow(),ze="".concat(r,"-today-btn"),We=p&&p(Ke);He=u["createElement"]("a",{className:E()(ze,We&&"".concat(ze,"-disabled")),"aria-disabled":We,onClick:function(){We||De(Ke,"mouse",!0)}},s.today)}return u["createElement"](V.Provider,{value:Object(R["a"])(Object(R["a"])({},Z),{},{hideHeader:"hideHeader"in e?C:Z.hideHeader,hidePrevBtn:ie&&"right"===oe,hideNextBtn:ie&&"left"===oe})},u["createElement"]("div",{tabIndex:y,className:E()("".concat(r,"-panel"),i,(t={},Object(F["a"])(t,"".concat(r,"-panel-has-range"),ae&&ae[0]&&ae[1]),Object(F["a"])(t,"".concat(r,"-panel-has-range-hover"),se&&se[0]&&se[1]),Object(F["a"])(t,"".concat(r,"-panel-rtl"),"rtl"===L),t)),style:a,onKeyDown:Pe,onBlur:Ne,onMouseDown:B,ref:$},Ee,je||Fe||He?u["createElement"]("div",{className:"".concat(r,"-footer")},je,Fe,He):null))}var Vt=zt,Wt=n("JX7q"),Gt=n("i8i4"),Xt=n.n(Gt),qt=n("l4aY"),Yt=n("m+aA"),Zt=n("c+Xe"),Jt=n("zT1h"),$t=n("QC+M");function en(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function tn(e,t,n){var r=e[t]||{};return Object(R["a"])(Object(R["a"])({},r),n)}function nn(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a0&&(e.deadlineId=setTimeout((function(){e.onMotionEnd({deadline:!0})}),i))}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=an()(t)},e.cancelNextFrame=function(){e.raf&&(an.a.cancel(e.raf),e.raf=null)},e}return Object(P["a"])(n,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var e,t=this.state,n=t.status,i=t.statusActive,o=t.statusStyle,a=this.props,s=a.children,l=a.motionName,c=a.visible,u=a.removeOnLeave,d=a.leavedClassName,h=a.eventProps;return s?n!==bn&&r(this.props)?s(Object(R["a"])(Object(R["a"])({},h),{},{className:E()(yn(l,n),(e={},Object(F["a"])(e,yn(l,"".concat(n,"-active")),i),Object(F["a"])(e,l,"string"===typeof l),e)),style:o}),this.setNodeRef):c?s(Object(R["a"])({},h),this.setNodeRef):u?null:s(Object(R["a"])(Object(R["a"])({},h),{},{className:d}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.status;if(!r(e))return{};var o=e.visible,a=e.motionAppear,s=e.motionEnter,l=e.motionLeave,c=e.motionLeaveImmediately,u={prevProps:e};return(i===_n&&!a||i===wn&&!s||i===xn&&!l)&&(u.status=bn,u.statusActive=!1,u.newStatus=!1),!n&&o&&a&&(u.status=_n,u.statusActive=!1,u.newStatus=!0),n&&!n.visible&&o&&s&&(u.status=wn,u.statusActive=!1,u.newStatus=!0),(n&&n.visible&&!o&&l||!n&&c&&!o&&l)&&(u.status=xn,u.statusActive=!1,u.newStatus=!0),u}}]),n}(u["Component"]);return i.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?u["forwardRef"]((function(e,t){return u["createElement"](i,Object.assign({internalRef:t},e))})):i}var Sn=Cn(vn),kn="add",En="keep",On="remove",Bn="removed";function Mn(e){var t;return t=e&&"object"===Object(Q["a"])(e)&&"key"in e?e:{key:e},Object(R["a"])(Object(R["a"])({},t),{},{key:String(t.key)})}function Tn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Mn)}function In(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Tn(e),a=Tn(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==On})),n.forEach((function(t){t.key===e&&(t.status=En)}))})),n}var Ln=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sn,n=function(n){Object(N["a"])(i,n);var r=Object(j["a"])(i);function i(){var e;return Object(D["a"])(this,i),e=r.apply(this,arguments),e.state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){var n=e.keyEntities;return{keyEntities:n.map((function(e){return e.key!==t?e:Object(R["a"])(Object(R["a"])({},e),{},{status:Bn})}))}}))},e}return Object(P["a"])(i,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=Object(rn["a"])(r,["component","children"]),s=i||u["Fragment"],l={};return Ln.forEach((function(e){l[e]=a[e],delete a[e]})),delete a.keys,u["createElement"](s,Object.assign({},a),n.map((function(n){var r=n.status,i=Object(rn["a"])(n,["status"]),a=r===kn||r===En;return u["createElement"](t,Object.assign({},l,{key:i.key,visible:a,eventProps:i,onLeaveEnd:function(){l.onLeaveEnd&&l.onLeaveEnd.apply(l,arguments),e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=t.keys,i=n.keyEntities,o=Tn(r);if(!e)return{keyEntities:o.map((function(e){return Object(R["a"])(Object(R["a"])({},e),{},{status:En})}))};var a=In(i,o),s=i.length;return{keyEntities:a.filter((function(e){for(var t=null,n=0;n1&&(d=u["createElement"]("div",{className:"".concat(n,"-content")},o)),u["createElement"]("div",{ref:t,className:r,onMouseEnter:a,onMouseLeave:s,onMouseDown:l,onTouchStart:c,style:i},d)},jn=u["forwardRef"](Nn);jn.displayName="PopupInner";var Fn=jn;function Rn(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function Un(e){return e&&e.motionName}var Hn=function(e){Object(N["a"])(n,e);var t=Object(j["a"])(n);function n(){var e;return Object(D["a"])(this,n),e=t.apply(this,arguments),e.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},e.popupRef=d.a.createRef(),e.alignRef=d.a.createRef(),e.nextFrameState=null,e.nextFrameId=null,e.onAlign=function(t,n){var r=e.state.status,i=e.props,o=i.getClassNameFromAlign,a=i.onAlign,s=o(n);"align"===r?e.setState({alignClassName:s,status:"aligned"},(function(){e.alignRef.current.forceAlign()})):"aligned"===r?(e.setState({alignClassName:s,status:"afterAlign"}),a(t,n)):e.setState({alignClassName:s})},e.onMotionEnd=function(){var t=e.props.visible;e.setState({status:t?"AfterMotion":"stable",inMotion:!1})},e.setStateOnNextFrame=function(t){e.cancelFrameState(),e.nextFrameState=Object(R["a"])(Object(R["a"])({},e.nextFrameState),t),e.nextFrameId=an()((function(){var t=Object(R["a"])({},e.nextFrameState);e.nextFrameState=null,e.setState(t)}))},e.getMotion=function(){return Object(R["a"])({},Rn(e.props))},e.getAlignTarget=function(){var t=e.props,n=t.point,r=t.getRootDomNode;return n||r},e.cancelFrameState=function(){an.a.cancel(e.nextFrameId)},e.renderPopupElement=function(){var t=e.state,n=t.status,r=t.targetHeight,i=t.targetWidth,o=t.alignClassName,a=e.props,s=a.prefixCls,l=a.className,c=a.style,u=a.stretch,h=a.visible,f=a.align,p=a.destroyPopupOnHide,A=a.onMouseEnter,g=a.onMouseLeave,m=a.onMouseDown,v=a.onTouchStart,y=a.children,b=E()(s,l,o),_="".concat(s,"-hidden"),w={};u&&(-1!==u.indexOf("height")?w.height=r:-1!==u.indexOf("minHeight")&&(w.minHeight=r),-1!==u.indexOf("width")?w.width=i:-1!==u.indexOf("minWidth")&&(w.minWidth=i));var x=Object(R["a"])(Object(R["a"])(Object(R["a"])(Object(R["a"])({},w),e.getZIndexStyle()),c),{},{opacity:"stable"!==n&&h?0:void 0,pointerEvents:"stable"!==n&&h?"none":void 0}),C=e.getMotion(),S=h;h&&"beforeMotion"!==n&&"motion"!==n&&"stable"!==n&&(C.motionAppear=!1,C.motionEnter=!1,C.motionLeave=!1),"afterAlign"!==n&&"beforeMotion"!==n||(S=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach((function(t){var n=null===C||void 0===C?void 0:C[t];C[t]=function(){for(var t=arguments.length,r=new Array(t),i=0;i1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(c.current),t?l(e):c.current=requestAnimationFrame((function(){l(e)}))}var h=ir(s,{formatList:n,generateConfig:r,locale:i}),f=Object(U["a"])(h,2),p=f[1];function A(e){d(e)}function g(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d(null,e)}return Object(u["useEffect"])((function(){g(!0)}),[e]),Object(u["useEffect"])((function(){return function(){return cancelAnimationFrame(c.current)}}),[]),[p,A,g]}function ar(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,i=e.id,a=e.tabIndex,s=e.style,l=e.className,c=e.dropdownClassName,d=e.dropdownAlign,h=e.popupStyle,f=e.transitionName,p=e.generateConfig,A=e.locale,g=e.inputReadOnly,m=e.allowClear,v=e.autoFocus,y=e.showTime,b=e.picker,_=void 0===b?"date":b,w=e.format,x=e.use12Hours,C=e.value,S=e.defaultValue,k=e.open,O=e.defaultOpen,B=e.defaultOpenValue,M=e.suffixIcon,T=e.clearIcon,I=e.disabled,L=e.disabledDate,D=e.placeholder,P=e.getPopupContainer,N=e.pickerRef,j=e.panelRender,Q=e.onChange,K=e.onOpenChange,z=e.onFocus,W=e.onBlur,G=e.onMouseDown,X=e.onMouseUp,q=e.onMouseEnter,Y=e.onMouseLeave,Z=e.onContextMenu,J=e.onClick,$=e.direction,ee=e.autoComplete,te=void 0===ee?"off":ee,ie=u["useRef"](null),oe="date"===_&&!!y||"time"===_,ae=me(ne(w,_,y,x)),se=u["useRef"](null),le=u["useRef"](null),ce=Object(H["a"])(null,{value:C,defaultValue:S}),ue=Object(U["a"])(ce,2),de=ue[0],fe=ue[1],pe=u["useState"](de),Ae=Object(U["a"])(pe,2),ge=Ae[0],ye=Ae[1],be=u["useRef"](null),_e=Object(H["a"])(!1,{value:k,defaultValue:O,postState:function(e){return!I&&e},onChange:function(e){K&&K(e),!e&&be.current&&be.current.onClose&&be.current.onClose()}}),we=Object(U["a"])(_e,2),xe=we[0],Ce=we[1],Se=ir(ge,{formatList:ae,generateConfig:p,locale:A}),ke=Object(U["a"])(Se,2),Ee=ke[0],Oe=ke[1],Be=tr({valueTexts:Ee,onTextChange:function(e){var t=p.locale.parse(A.locale,e,ae);!t||L&&L(t)||ye(t)}}),Me=Object(U["a"])(Be,3),Te=Me[0],Ie=Me[1],Le=Me[2],De=function(e){ye(e),fe(e),Q&&!Ue(p,de,e)&&Q(e,e?p.locale.format(A.locale,e,ae[0]):"")},Pe=function(e){I&&e||Ce(e)},Ne=function(e){return xe&&be.current&&be.current.onKeyDown?be.current.onKeyDown(e):(Object(o["a"])(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},je=function(){X&&X.apply(void 0,arguments),ie.current&&(ie.current.focus(),Pe(!0))},Fe=er({blurToCancel:oe,open:xe,value:Te,triggerOpen:Pe,forwardKeyDown:Ne,isClickOutside:function(e){return!he([se.current,le.current],e)},onSubmit:function(){return(!L||!L(ge))&&(De(ge),Pe(!1),Le(),!0)},onCancel:function(){Pe(!1),ye(de),Le()},onFocus:z,onBlur:W}),Re=Object(U["a"])(Fe,2),He=Re[0],Qe=Re[1],Ke=Qe.focused,ze=Qe.typing;u["useEffect"]((function(){xe||(ye(de),Ee.length&&""!==Ee[0]?Oe!==Te&&Le():Ie(""))}),[xe,Ee]),u["useEffect"]((function(){xe||Le()}),[_]),u["useEffect"]((function(){ye(de)}),[de]),N&&(N.current={focus:function(){ie.current&&ie.current.focus()},blur:function(){ie.current&&ie.current.blur()}});var Ve=Object(R["a"])(Object(R["a"])({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),We=u["createElement"](Vt,Object.assign({},Ve,{generateConfig:p,className:E()(Object(F["a"])({},"".concat(r,"-panel-focused"),!ze)),value:ge,locale:A,tabIndex:-1,onChange:ye,direction:$}));j&&(We=j(We));var Ge,Xe,qe=u["createElement"]("div",{className:"".concat(r,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},We);M&&(Ge=u["createElement"]("span",{className:"".concat(r,"-suffix")},M)),m&&de&&!I&&(Xe=u["createElement"]("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),De(null),Pe(!1)},className:"".concat(r,"-clear")},T||u["createElement"]("span",{className:"".concat(r,"-clear-btn")})));var Ye=function(e,t){("submit"===t||"key"!==t&&!oe)&&(De(e),Pe(!1))},Ze="rtl"===$?"bottomRight":"bottomLeft",Je=or(Te,{formatList:ae,generateConfig:p,locale:A}),$e=Object(U["a"])(Je,3),et=$e[0],tt=$e[1],nt=$e[2];return u["createElement"](V.Provider,{value:{operationRef:be,hideHeader:"time"===_,panelRef:se,onSelect:Ye,open:xe,defaultOpenValue:B,onDateMouseEnter:tt,onDateMouseLeave:nt}},u["createElement"]($n,{visible:xe,popupElement:qe,popupStyle:h,prefixCls:r,dropdownClassName:c,dropdownAlign:d,getPopupContainer:P,transitionName:f,popupPlacement:Ze,direction:$},u["createElement"]("div",{className:E()(r,l,(t={},Object(F["a"])(t,"".concat(r,"-disabled"),I),Object(F["a"])(t,"".concat(r,"-focused"),Ke),Object(F["a"])(t,"".concat(r,"-rtl"),"rtl"===$),t)),style:s,onMouseDown:G,onMouseUp:je,onMouseEnter:q,onMouseLeave:Y,onContextMenu:Z,onClick:J},u["createElement"]("div",{className:E()("".concat(r,"-input"),Object(F["a"])({},"".concat(r,"-input-placeholder"),!!et)),ref:le},u["createElement"]("input",Object.assign({id:i,tabIndex:a,disabled:I,readOnly:g||!ze,value:et||Te,onChange:function(e){Ie(e.target.value)},autoFocus:v,placeholder:D,ref:ie,title:Te},He,{size:re(_,ae[0])},ve(e),{autoComplete:te})),Ge,Xe))))}var sr=function(e){Object(N["a"])(n,e);var t=Object(j["a"])(n);function n(){var e;return Object(D["a"])(this,n),e=t.apply(this,arguments),e.pickerRef=u["createRef"](),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return Object(P["a"])(n,[{key:"render",value:function(){return u["createElement"](ar,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),n}(u["Component"]),lr=sr;function cr(e,t,n){var r=e.picker,i=e.locale,o=e.selectedValue,a=e.disabledDate,s=e.disabled,l=e.generateConfig,c=ye(o,0),d=ye(o,1);function h(e){var t=l.getYear(e),n=l.locale.getWeek(i.locale,e);return 100*t+n}function f(e){var t=l.getYear(e),n=l.getMonth(e);return 100*t+n}function p(e){var t=l.getYear(e),n=De(l,e);return 10*t+n}var A=u["useCallback"]((function(e){if(a&&a(e))return!0;if(s[1]&&d)return!je(l,e,d)&&l.isAfter(e,d);if(t&&d)switch(r){case"quarter":return p(e)>p(d);case"month":return f(e)>f(d);case"week":return h(e)>h(d);default:return!je(l,e,d)&&l.isAfter(e,d)}return!1}),[a,s[1],d,t]),g=u["useCallback"]((function(e){if(a&&a(e))return!0;if(s[0]&&c)return!je(l,e,d)&&l.isAfter(c,e);if(n&&c)switch(r){case"quarter":return p(e)0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;ut&&Jt&&Jt[0]&&Jt[1]&&g.isAfter(Jt[1],Jt[0])&&(r=Jt);var i=C;if(C&&"object"===Object(Q["a"])(C)&&C.defaultValue){var o=C.defaultValue;i=Object(R["a"])(Object(R["a"])({},C),{},{defaultValue:ye(o,Te)||void 0})}var s=null;return N&&(s=function(e,t){return N(e,t,{range:Te?"end":"start"})}),u["createElement"](Ve.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:Xt||Ze,hoverRangedValue:r}},u["createElement"](Vt,Object.assign({},e,n,{dateRender:s,showTime:i,mode:tt[Te],generateConfig:g,style:void 0,direction:ue,disabledDate:0===Te?at:st,disabledTime:function(e){return!!P&&P(e,0===Te?"start":"end")},className:E()(Object(F["a"])({},"".concat(a,"-panel-focused"),0===Te?!yn:!Sn)),value:ye(Ze,Te),locale:m,tabIndex:-1,onPanelChange:function(e,n){rt(be(tt,n,Te),be(Ze,e,Te));var r=e;"right"===t&&tt[Te]===n&&(r=Ke(r,n,g,-1)),Xe(r,Te)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ln=0,Dn=0;Te&&xe.current&&Se.current&&we.current&&(Ln=xe.current.offsetWidth+Se.current.offsetWidth,we.current.offsetWidth&&Ln>we.current.offsetWidth&&(Dn=Ln));var Pn="rtl"===ue?{right:Ln}:{left:Ln};function Nn(){var e,t=Qt(a,tt[Te],J),n=Kt({prefixCls:a,components:le,needConfirmButton:Ae,okDisabled:!ye(Ze,Te)||D&&D(Ze[Te]),locale:m,rangeList:Tn,onOk:function(){ye(Ze,Te)&&(_t(Ze,Te),se&&se(Ze))}});if("time"===x||C)e=In();else{var r=Ge(Te),i=Ke(r,x,g),o=tt[Te],s=o===x,l=In(!!s&&"left",{pickerValue:r,onPickerValueChange:function(e){Xe(e,Te)}}),c=In("right",{pickerValue:i,onPickerValueChange:function(e){Xe(Ke(e,x,g,-1),Te)}});e="rtl"===ue?u["createElement"](u["Fragment"],null,c,s&&l):u["createElement"](u["Fragment"],null,l,s&&c)}var d=u["createElement"](u["Fragment"],null,u["createElement"]("div",{className:"".concat(a,"-panels")},e),(t||n)&&u["createElement"]("div",{className:"".concat(a,"-footer")},t,n));return j&&(d=j(d)),u["createElement"]("div",{className:"".concat(a,"-panel-container"),style:{marginLeft:Dn},ref:we,onMouseDown:function(e){e.preventDefault()}},d)}var jn,Fn,Rn=u["createElement"]("div",{className:E()("".concat(a,"-range-wrapper"),"".concat(a,"-").concat(x,"-range-wrapper")),style:{minWidth:gt}},u["createElement"]("div",{className:"".concat(a,"-range-arrow"),style:Pn}),Nn());G&&(jn=u["createElement"]("span",{className:"".concat(a,"-suffix")},G)),W&&(ye(He,0)&&!De[0]||ye(He,1)&&!De[1])&&(Fn=u["createElement"]("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=He;De[0]||(t=be(t,null,0)),De[1]||(t=be(t,null,1)),_t(t,null),yt(!1,Te)},className:"".concat(a,"-clear")},X||u["createElement"]("span",{className:"".concat(a,"-clear-btn")})));var Un={size:re(x,Oe[0])},Hn=0,Qn=0;xe.current&&Ce.current&&Se.current&&(0===Te?Qn=xe.current.offsetWidth:(Hn=Ln,Qn=Ce.current.offsetWidth));var Kn="rtl"===ue?{right:Hn}:{left:Hn},zn=function(e,t){var n=be(Ze,e,Te);"submit"===t||"key"!==t&&!Ae?(_t(n,Te),0===Te?on():un()):Je(n)};return u["createElement"](V.Provider,{value:{operationRef:Le,hideHeader:"time"===x,onDateMouseEnter:dn,onDateMouseLeave:hn,hideRanges:!0,onSelect:zn,open:ut}},u["createElement"]($n,{visible:ut,popupElement:Rn,popupStyle:d,prefixCls:a,dropdownClassName:h,dropdownAlign:p,getPopupContainer:A,transitionName:f,range:!0,direction:ue},u["createElement"]("div",Object.assign({ref:_e,className:E()(a,"".concat(a,"-range"),c,(t={},Object(F["a"])(t,"".concat(a,"-disabled"),De[0]&&De[1]),Object(F["a"])(t,"".concat(a,"-focused"),0===Te?vn:Cn),Object(F["a"])(t,"".concat(a,"-rtl"),"rtl"===ue),t)),style:l,onClick:kn,onMouseDown:En},ve(e)),u["createElement"]("div",{className:E()("".concat(a,"-input"),(n={},Object(F["a"])(n,"".concat(a,"-input-active"),0===Te),Object(F["a"])(n,"".concat(a,"-input-placeholder"),!!nn),n)),ref:xe},u["createElement"]("input",Object.assign({id:s,disabled:De[0],readOnly:Y||!yn,value:nn||Pt,onChange:function(e){Nt(e.target.value)},autoFocus:y,placeholder:ye(v,0)||"",ref:ke},gn,Un,{autoComplete:pe}))),u["createElement"]("div",{className:"".concat(a,"-range-separator"),ref:Se},O),u["createElement"]("div",{className:E()("".concat(a,"-input"),(r={},Object(F["a"])(r,"".concat(a,"-input-active"),1===Te),Object(F["a"])(r,"".concat(a,"-input-placeholder"),!!ln),r)),ref:Ce},u["createElement"]("input",Object.assign({disabled:De[1],readOnly:Y||!Sn,value:ln||Ut,onChange:function(e){Ht(e.target.value)},placeholder:ye(v,1)||"",ref:Ee},wn,Un,{autoComplete:pe}))),u["createElement"]("div",{className:"".concat(a,"-active-bar"),style:Object(R["a"])(Object(R["a"])({},Kn),{},{width:Qn,position:"absolute"})}),jn,Fn)))}var gr=function(e){Object(N["a"])(n,e);var t=Object(j["a"])(n);function n(){var e;return Object(D["a"])(this,n),e=t.apply(this,arguments),e.pickerRef=u["createRef"](),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return Object(P["a"])(n,[{key:"render",value:function(){return u["createElement"](Ar,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),n}(u["Component"]),mr=gr,vr=lr,yr=n("61s2");function br(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function _r(e,t,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}var wr=n("uaoM"),xr=n("H84U"),Cr=n("YMnH"),Sr=n("3Nzz"),kr=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 i=0;for(r=Object.getOwnPropertySymbols(e);in},e}return Object(A["a"])(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,o=this.getSpinHeight(),a=this.getTop(),s=this.showScroll(),c=s&&n;return l["createElement"]("div",{ref:this.scrollbarRef,className:u()("".concat(r,"-scrollbar"),Object(i["a"])({},"".concat(r,"-scrollbar-show"),s)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:c?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},l["createElement"]("div",{ref:this.thumbRef,className:u()("".concat(r,"-scrollbar-thumb"),Object(i["a"])({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:o,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(l["Component"]);function w(e){var t=e.children,n=e.setRef,r=l["useCallback"]((function(e){n(e)}),[]);return l["cloneElement"](t,{ref:r})}function x(e,t,n,r,i,o){var a=o.getKey;return e.slice(t,n+1).map((function(e,n){var o=t+n,s=i(e,o,{}),c=a(e);return l["createElement"](w,{key:c,setRef:function(t){return r(e,t)}},s)}))}var C=n("m+aA"),S=function(){function e(){Object(p["a"])(this,e),this.maps=void 0,this.maps=Object.create(null)}return Object(A["a"])(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),k=S;function E(e,t,n){var r=l["useState"](0),i=Object(a["a"])(r,2),o=i[0],s=i[1],c=Object(l["useRef"])(new Map),u=Object(l["useRef"])(new k),d=Object(l["useRef"])();function h(){v["a"].cancel(d.current)}function f(){h(),d.current=Object(v["a"])((function(){c.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Object(C["a"])(e),r=n.offsetHeight;u.current.get(t)!==r&&u.current.set(t,n.offsetHeight)}})),s((function(e){return e+1}))}))}function p(r,i){var o=e(r),a=c.current.get(o);i?(c.current.set(o,i),f()):c.current["delete"](o),!a!==!i&&(i?null===t||void 0===t||t(r):null===n||void 0===n||n(r))}return Object(l["useEffect"])((function(){return h}),[]),[p,f,u.current,o]}var O=n("U8pU");function B(e,t,n,r,i,o,a,s){var c=l["useRef"]();return function(l){if(null!==l&&void 0!==l){if(v["a"].cancel(c.current),"number"===typeof l)a(l);else if(l&&"object"===Object(O["a"])(l)){var u,d=l.align;u="index"in l?l.index:t.findIndex((function(e){return i(e)===l.key}));var h=l.offset,f=void 0===h?0:h,p=function s(l,h){if(!(l<0)&&e.current){var p=e.current.clientHeight,A=!1,g=h;if(p){for(var m=h||d,y=0,b=0,_=0,w=Math.min(t.length,u),x=0;x<=w;x+=1){var C=i(t[x]);b=y;var S=n.get(C);_=b+(void 0===S?r:S),y=_,x===u&&void 0===S&&(A=!0)}var k=null;switch(m){case"top":k=b-f;break;case"bottom":k=_-p+f;break;default:var E=e.current.scrollTop,O=E+p;bO&&(g="bottom")}null!==k&&k!==e.current.scrollTop&&a(k)}c.current=Object(v["a"])((function(){A&&o(),s(l-1,g)}),2)}};p(3)}}else s()}}function M(e,t,n){var r,i,o=e.length,a=t.length;if(0===o&&0===a)return null;o1&&void 0!==arguments[1]&&arguments[1],a=e<0&&o.current.top||e>0&&o.current.bottom;return t&&a?(clearTimeout(r.current),n.current=!1):a&&!n.current||i(),!n.current&&a}};function P(e,t,n,r){var i=Object(l["useRef"])(0),o=Object(l["useRef"])(null),a=Object(l["useRef"])(null),s=Object(l["useRef"])(!1),c=D(t,n);function u(t){if(e){v["a"].cancel(o.current);var n=t.deltaY;i.current+=n,a.current=n,c(n)||(L||t.preventDefault(),o.current=Object(v["a"])((function(){var e=s.current?10:1;r(i.current*e),i.current=0})))}}function d(t){e&&(s.current=t.detail===a.current)}return[u,d]}var N=n("TNol"),j=14/15;function F(e,t,n){var r,i=Object(l["useRef"])(!1),o=Object(l["useRef"])(0),a=Object(l["useRef"])(null),s=Object(l["useRef"])(null),c=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=o.current-t;o.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){r*=j,(!n(r,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,o.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",c),a.current.addEventListener("touchend",u))};r=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Object(N["a"])((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}var R=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],U=[],H={overflowY:"auto",overflowAnchor:"none"};function Q(e,t){var n=e.prefixCls,c=void 0===n?"rc-virtual-list":n,d=e.className,h=e.height,p=e.itemHeight,A=e.fullHeight,g=void 0===A||A,m=e.style,v=e.data,y=e.children,b=e.itemKey,w=e.virtual,C=e.component,S=void 0===C?"div":C,k=e.onScroll,O=e.onVisibleChange,M=e.innerProps,I=Object(s["a"])(e,R),L=!(!1===w||!h||!p),j=L&&v&&p*v.length>h,Q=Object(l["useState"])(0),K=Object(a["a"])(Q,2),z=K[0],V=K[1],W=Object(l["useState"])(!1),G=Object(a["a"])(W,2),X=G[0],q=G[1],Y=u()(c,d),Z=v||U,J=Object(l["useRef"])(),$=Object(l["useRef"])(),ee=Object(l["useRef"])(),te=l["useCallback"]((function(e){return"function"===typeof b?b(e):null===e||void 0===e?void 0:e[b]}),[b]),ne={getKey:te};function re(e){V((function(t){var n;n="function"===typeof e?e(t):e;var r=we(n);return J.current.scrollTop=r,r}))}var ie=Object(l["useRef"])({start:0,end:Z.length}),oe=Object(l["useRef"])(),ae=T(Z,te),se=Object(a["a"])(ae,1),le=se[0];oe.current=le;var ce=E(te,null,null),ue=Object(a["a"])(ce,4),de=ue[0],he=ue[1],fe=ue[2],pe=ue[3],Ae=l["useMemo"]((function(){if(!L)return{scrollHeight:void 0,start:0,end:Z.length-1,offset:void 0};var e;if(!j)return{scrollHeight:(null===(e=$.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:Z.length-1,offset:void 0};for(var t,n,r,i=0,o=Z.length,a=0;a=z&&void 0===t&&(t=a,n=i),u>z+h&&void 0===r&&(r=a),i=u}return void 0===t&&(t=0,n=0,r=Math.ceil(h/p)),void 0===r&&(r=Z.length-1),r=Math.min(r+1,Z.length),{scrollHeight:i,start:t,end:r,offset:n}}),[j,L,z,Z,pe,h]),ge=Ae.scrollHeight,me=Ae.start,ve=Ae.end,ye=Ae.offset;ie.current.start=me,ie.current.end=ve;var be=ge-h,_e=Object(l["useRef"])(be);function we(e){var t=e;return Number.isNaN(_e.current)||(t=Math.min(t,_e.current)),t=Math.max(t,0),t}_e.current=be;var xe=z<=0,Ce=z>=be,Se=D(xe,Ce);function ke(e){var t=e;re(t)}function Ee(e){var t=e.currentTarget.scrollTop;t!==z&&re(t),null===k||void 0===k||k(e)}var Oe=P(L,xe,Ce,(function(e){re((function(t){var n=t+e;return n}))})),Be=Object(a["a"])(Oe,2),Me=Be[0],Te=Be[1];F(L,J,(function(e,t){return!Se(e,t)&&(Me({preventDefault:function(){},deltaY:e}),!0)})),Object(N["a"])((function(){function e(e){L&&e.preventDefault()}return J.current.addEventListener("wheel",Me),J.current.addEventListener("DOMMouseScroll",Te),J.current.addEventListener("MozMousePixelScroll",e),function(){J.current&&(J.current.removeEventListener("wheel",Me),J.current.removeEventListener("DOMMouseScroll",Te),J.current.removeEventListener("MozMousePixelScroll",e))}}),[L]);var Ie=B(J,Z,fe,p,te,he,re,(function(){var e;null===(e=ee.current)||void 0===e||e.delayHidden()}));l["useImperativeHandle"](t,(function(){return{scrollTo:Ie}})),Object(N["a"])((function(){if(O){var e=Z.slice(me,ve+1);O(e,Z)}}),[me,ve,Z]);var Le=x(Z,me,ve,de,y,ne),De=null;return h&&(De=Object(o["a"])(Object(i["a"])({},g?"height":"maxHeight",h),H),L&&(De.overflowY="hidden",X&&(De.pointerEvents="none"))),l["createElement"]("div",Object(r["a"])({style:Object(o["a"])(Object(o["a"])({},m),{},{position:"relative"}),className:Y},I),l["createElement"](S,{className:"".concat(c,"-holder"),style:De,ref:J,onScroll:Ee},l["createElement"](f,{prefixCls:c,height:ge,offset:ye,onInnerResize:he,ref:$,innerProps:M},Le)),L&&l["createElement"](_,{ref:ee,prefixCls:c,scrollTop:z,height:h,scrollHeight:ge,count:Z.length,onScroll:ke,onStartMove:function(){q(!0)},onStopMove:function(){q(!1)}}))}var K=l["forwardRef"](Q);K.displayName="List";var z=K;t["a"]=z},"+rIm":function(e,t,n){var r=n("bYtY"),i=r.retrieve,o=r.defaults,a=r.extend,s=r.each,l=n("7aKB"),c=n("IwbS"),u=n("Qxkt"),d=n("OELB"),h=d.isRadianAroundZero,f=d.remRadian,p=n("oVpE"),A=p.createSymbol,g=n("Fofx"),m=n("QBsz"),v=m.applyTransform,y=n("aX7z"),b=y.shouldShowAllLabels,_=Math.PI,w=function(e,t){this.opt=t,this.axisModel=e,o(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var n=new c.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};w.prototype={constructor:w,hasBuilder:function(e){return!!x[e]},add:function(e){x[e].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),r=this._transform,i=[n[0],0],o=[n[1],0];r&&(v(i,i,r),v(o,o,r));var l=a({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:i[0],y1:i[1],x2:o[0],y2:o[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var u=t.get("axisLine.symbol"),d=t.get("axisLine.symbolSize"),h=t.get("axisLine.symbolOffset")||0;if("number"===typeof h&&(h=[h,h]),null!=u){"string"===typeof u&&(u=[u,u]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var f=d[0],p=d[1];s([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((i[0]-o[0])*(i[0]-o[0])+(i[1]-o[1])*(i[1]-o[1]))}],(function(t,n){if("none"!==u[n]&&null!=u[n]){var r=A(u[n],-f/2,-p/2,f,p,l.stroke,!0),o=t.r+t.offset,a=[i[0]+o*Math.cos(e.rotation),i[1]-o*Math.sin(e.rotation)];r.attr({rotation:t.rotate,position:a,silent:!0,z2:11}),this.group.add(r)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=L(this,e,t),r=P(this,e,t);O(e,r,n),D(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,n=i(e.axisName,t.get("name"));if(n){var r,o,s=t.get("nameLocation"),u=e.nameDirection,d=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,A=["start"===s?f[0]-p*h:"end"===s?f[1]+p*h:(f[0]+f[1])/2,T(s)?e.labelOffset+u*h:0],g=t.get("nameRotate");null!=g&&(g=g*_/180),T(s)?r=S(e.rotation,null!=g?g:e.rotation,u):(r=k(e,s,g||0,f),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(r.rotation)),!isFinite(o)&&(o=null)));var m=d.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,b=i(e.nameTruncateMaxWidth,v.maxWidth,o),w=null!=y&&null!=b?l.truncateText(n,b,m,y,{minChar:2,placeholder:v.placeholder}):n,x=t.get("tooltip",!0),O=t.mainType,B={componentType:O,name:n,$vars:["name"]};B[O+"Index"]=t.componentIndex;var M=new c.Text({anid:"name",__fullText:n,__truncatedText:w,position:A,rotation:r.rotation,silent:E(t),z2:1,tooltip:x&&x.show?a({content:n,formatter:function(){return n},formatterParams:B},x):null});c.setTextStyle(M.style,d,{text:w,textFont:m,textFill:d.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:d.get("align")||r.textAlign,textVerticalAlign:d.get("verticalAlign")||r.textVerticalAlign}),t.get("triggerEvent")&&(M.eventData=C(t),M.eventData.targetType="axisName",M.eventData.name=n),this._dumbGroup.add(M),M.updateTransform(),this.group.add(M),M.decomposeTransform()}}},C=w.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},S=w.innerTextLayout=function(e,t,n){var r,i,o=f(t-e);return h(o)?(i=n>0?"top":"bottom",r="center"):h(o-_)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<_?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}};function k(e,t,n,r){var i,o,a=f(n-e.rotation),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return h(a-_/2)?(o=l?"bottom":"top",i="center"):h(a-1.5*_)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*_&&a>_/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}var E=w.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function O(e,t,n){if(!b(e.axis)){var r=e.get("axisLabel.showMinLabel"),i=e.get("axisLabel.showMaxLabel");t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(B(o),B(c)):M(o,a)&&(r?(B(a),B(u)):(B(o),B(c))),!1===i?(B(s),B(d)):M(l,s)&&(i?(B(l),B(h)):(B(s),B(d)))}}function B(e){e&&(e.ignore=!0)}function M(e,t,n){var r=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(r&&i){var o=g.identity([]);return g.rotate(o,o,-e.rotation),r.applyTransform(g.mul([],o,e.getLocalTransform())),i.applyTransform(g.mul([],o,t.getLocalTransform())),r.intersect(i)}}function T(e){return"middle"===e||"center"===e}function I(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;lg}function R(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function U(e,t,n,r){var i=new a.Group;return i.add(new a.Rect({name:"main",style:z(n),silent:!0,draggable:!0,cursor:"move",drift:c(e,t,i,"nswe"),ondragend:c(j,t,{isEnd:!0})})),u(r,(function(n){i.add(new a.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(e,t,i,n),ondragend:c(j,t,{isEnd:!0})}))})),i}function H(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=f(i,m),a=n[0][0],s=n[1][0],l=a-i/2,c=s-i/2,u=n[0][1],d=n[1][1],h=u-o+i/2,p=d-o+i/2,A=u-a,g=d-s,v=A+i,y=g+i;K(e,t,"main",a,s,A,g),r.transformable&&(K(e,t,"w",l,c,o,y),K(e,t,"e",h,c,o,y),K(e,t,"n",l,c,v,o),K(e,t,"s",l,p,v,o),K(e,t,"nw",l,c,o,o),K(e,t,"ne",h,c,o,o),K(e,t,"sw",l,p,o,o),K(e,t,"se",h,p,o,o))}function Q(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(z(n)),i.attr({silent:!r,cursor:r?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(n){var i=t.childOfName(n),o=G(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?b[o]+"-resize":null})}))}function K(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(J(Z(e,t,[[r,i],[r+o,i+a]])))}function z(e){return i.defaults({strokeNoScale:!0},e.brushStyle)}function V(e,t,n,r){var i=[h(e,n),h(t,r)],o=[f(e,n),f(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function W(e){return a.getTransform(e.group)}function G(e,t){if(t.length>1){t=t.split("");var n=[G(e,t[0]),G(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var r={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"};n=a.transformDirection(r[t],W(e));return i[n]}function X(e,t,n,r,i,o,a,s){var l=r.__brushOption,c=e(l.range),d=Y(n,o,a);u(i.split(""),(function(e){var t=y[e];c[t[0]][t[1]]+=d[t[0]]})),l.range=t(V(c[0][0],c[1][0],c[0][1],c[1][1])),I(n,r),j(n,{isEnd:!1})}function q(e,t,n,r,i){var o=t.__brushOption.range,a=Y(e,n,r);u(o,(function(e){e[0]+=a[0],e[1]+=a[1]})),I(e,t),j(e,{isEnd:!1})}function Y(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function Z(e,t,n){var r=P(e,t);return r&&!0!==r?r.clipPath(n,e._transform):i.clone(n)}function J(e){var t=h(e[0][0],e[1][0]),n=h(e[0][1],e[1][1]),r=f(e[0][0],e[1][0]),i=f(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function $(e,t,n){if(e._brushType&&!ae(e,t)){var r=e._zr,i=e._covers,o=D(e,t,n);if(!e._dragging)for(var a=0;ar.getWidth()||n<0||n>r.getHeight()}var se={lineX:le(0),lineY:le(1),rect:{createCover:function(e,t){return U(c(X,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=R(e);return V(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){H(e,t,n,r)},updateCommon:Q,contain:te},polygon:{createCover:function(e,t){var n=new a.Group;return n.add(new a.Polyline({name:"main",style:z(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new a.Polygon({name:"main",draggable:!0,drift:c(q,e,t),ondragend:c(j,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Z(e,t,n)})},updateCommon:Q,contain:te}};function le(e){return{createCover:function(t,n){return U(c(X,(function(t){var n=[t,[0,100]];return e&&n.reverse(),n}),(function(t){return t[e]})),t,n,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var n=R(t),r=h(n[0][e],n[1][e]),i=f(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=P(t,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),H(t,n,l,i)},updateCommon:Q,contain:te}}var ce=x;e.exports=ce},"/MfK":function(e,t,n){"use strict";var r=n("VTBJ"),i=n("q1tI"),o={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"},a=o,s=n("6VBw"),l=function(e,t){return i["createElement"](s["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:t,icon:a}))};l.displayName="DeleteOutlined";t["a"]=i["forwardRef"](l)},"/POA":function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=34)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0;var r=function(){function e(){this._listeners=[],this._disposed=!1}return Object.defineProperty(e.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){return e._listeners.push(t),{dispose:function(){if(!e._disposed)for(var n=0;n>22},t.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?o.stringFromCodePoint(2097151&this.content):""},t.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},t.prototype.setFromCharData=function(e){this.fg=e[a.CHAR_DATA_ATTR_INDEX],this.bg=0;var t=!1;if(e[a.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[a.CHAR_DATA_CHAR_INDEX].length){var n=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=n&&n<=56319){var r=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(n-55296)+r-56320+65536|e[a.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[a.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[a.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[a.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[a.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(s.AttributeData);t.CellData=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISoundService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;var r=n(14);t.ICharSizeService=r.createDecorator("CharSizeService"),t.ICoreBrowserService=r.createDecorator("CoreBrowserService"),t.IMouseService=r.createDecorator("MouseService"),t.IRenderService=r.createDecorator("RenderService"),t.ISelectionService=r.createDecorator("SelectionService"),t.ISoundService=r.createDecorator("SoundService")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;var r=function(){function e(){this.fg=0,this.bg=0,this.extended=new i}return e.toColorRGB=function(e){return[e>>>16&255,e>>>8&255,255&e]},e.fromColorRGB=function(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},e.prototype.clone=function(){var t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t},e.prototype.isInverse=function(){return 67108864&this.fg},e.prototype.isBold=function(){return 134217728&this.fg},e.prototype.isUnderline=function(){return 268435456&this.fg},e.prototype.isBlink=function(){return 536870912&this.fg},e.prototype.isInvisible=function(){return 1073741824&this.fg},e.prototype.isItalic=function(){return 67108864&this.bg},e.prototype.isDim=function(){return 134217728&this.bg},e.prototype.getFgColorMode=function(){return 50331648&this.fg},e.prototype.getBgColorMode=function(){return 50331648&this.bg},e.prototype.isFgRGB=function(){return 50331648==(50331648&this.fg)},e.prototype.isBgRGB=function(){return 50331648==(50331648&this.bg)},e.prototype.isFgPalette=function(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)},e.prototype.isBgPalette=function(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)},e.prototype.isFgDefault=function(){return 0==(50331648&this.fg)},e.prototype.isBgDefault=function(){return 0==(50331648&this.bg)},e.prototype.isAttributeDefault=function(){return 0===this.fg&&0===this.bg},e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},e.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()},e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()},e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()},e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},e}();t.AttributeData=r;var i=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=-1),this.underlineStyle=e,this.underlineColor=t}return e.prototype.clone=function(){return new e(this.underlineStyle,this.underlineColor)},e.prototype.isEmpty=function(){return 0===this.underlineStyle},e}();t.ExtendedAttrs=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,n,r){e.addEventListener(t,n,r);var i=!1;return{dispose:function(){i||(i=!0,e.removeEventListener(t,n,r))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r="",i=t;i65535?(o-=65536,r+=String.fromCharCode(55296+(o>>10))+String.fromCharCode(o%1024+56320)):r+=String.fromCharCode(o)}return r};var r=function(){function e(){this._interim=0}return e.prototype.clear=function(){this._interim=0},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var r=0,i=0;this._interim&&(56320<=(s=e.charCodeAt(i++))&&s<=57343?t[r++]=1024*(this._interim-55296)+s-56320+65536:(t[r++]=this._interim,t[r++]=s),this._interim=0);for(var o=i;o=n)return this._interim=a,r;var s;56320<=(s=e.charCodeAt(o))&&s<=57343?t[r++]=1024*(a-55296)+s-56320+65536:(t[r++]=a,t[r++]=s)}else t[r++]=a}return r},e}();t.StringToUtf32=r;var i=function(){function e(){this.interim=new Uint8Array(3)}return e.prototype.clear=function(){this.interim.fill(0)},e.prototype.decode=function(e,t){var n=e.length;if(!n)return 0;var r,i,o,a,s=0,l=0,c=0;if(this.interim[0]){var u=!1,d=this.interim[0];d&=192==(224&d)?31:224==(240&d)?15:7;for(var h=0,f=void 0;(f=63&this.interim[++h])&&h<4;)d<<=6,d|=f;for(var p=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,A=p-h;c=n)return 0;if(128!=(192&(f=e[c++]))){c--,u=!0;break}this.interim[h++]=f,d<<=6,d|=63&f}u||(2===p?d<128?c--:t[s++]=d:3===p?d<2048||d>=55296&&d<=57343||(t[s++]=d):d<65536||d>1114111||(t[s++]=d)),this.interim.fill(0)}for(var g=n-4,m=c;m=n)return this.interim[0]=r,s;if(128!=(192&(i=e[m++]))){m--;continue}if((l=(31&r)<<6|63&i)<128){m--;continue}t[s++]=l}else if(224==(240&r)){if(m>=n)return this.interim[0]=r,s;if(128!=(192&(i=e[m++]))){m--;continue}if(m>=n)return this.interim[0]=r,this.interim[1]=i,s;if(128!=(192&(o=e[m++]))){m--;continue}if((l=(15&r)<<12|(63&i)<<6|63&o)<2048||l>=55296&&l<=57343)continue;t[s++]=l}else if(240==(248&r)){if(m>=n)return this.interim[0]=r,s;if(128!=(192&(i=e[m++]))){m--;continue}if(m>=n)return this.interim[0]=r,this.interim[1]=i,s;if(128!=(192&(o=e[m++]))){m--;continue}if(m>=n)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=o,s;if(128!=(192&(a=e[m++]))){m--;continue}if((l=(7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)<65536||l>1114111)continue;t[s++]=l}}return s},e}();t.Utf8ToUtf32=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0,t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,n){"use strict";var r,i,o,a;function s(e){var t=e.toString(16);return t.length<2?"0"+t:t}function l(e,t){return e>>0}}(r=t.channels||(t.channels={})),(i=t.color||(t.color={})).blend=function(e,t){var n=(255&t.rgba)/255;if(1===n)return{css:t.css,rgba:t.rgba};var i=t.rgba>>24&255,o=t.rgba>>16&255,a=t.rgba>>8&255,s=e.rgba>>24&255,l=e.rgba>>16&255,c=e.rgba>>8&255,u=s+Math.round((i-s)*n),d=l+Math.round((o-l)*n),h=c+Math.round((a-c)*n);return{css:r.toCss(u,d,h),rgba:r.toRgba(u,d,h)}},i.isOpaque=function(e){return 255==(255&e.rgba)},i.ensureContrastRatio=function(e,t,n){var r=a.ensureContrastRatio(e.rgba,t.rgba,n);if(r)return a.toColor(r>>24&255,r>>16&255,r>>8&255)},i.opaque=function(e){var t=(255|e.rgba)>>>0,n=a.toChannels(t),i=n[0],o=n[1],s=n[2];return{css:r.toCss(i,o,s),rgba:t}},i.opacity=function(e,t){var n=Math.round(255*t),i=a.toChannels(e.rgba),o=i[0],s=i[1],l=i[2];return{css:r.toCss(o,s,l,n),rgba:r.toRgba(o,s,l,n)}},(t.css||(t.css={})).toColor=function(e){switch(e.length){case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(e){function t(e,t,n){var r=e/255,i=t/255,o=n/255;return.2126*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(o=t.rgb||(t.rgb={})),function(e){function t(e,t,n){for(var r=e>>24&255,i=e>>16&255,a=e>>8&255,s=t>>24&255,c=t>>16&255,u=t>>8&255,d=l(o.relativeLuminance2(s,u,c),o.relativeLuminance2(r,i,a));d0||c>0||u>0);)s-=Math.max(0,Math.ceil(.1*s)),c-=Math.max(0,Math.ceil(.1*c)),u-=Math.max(0,Math.ceil(.1*u)),d=l(o.relativeLuminance2(s,u,c),o.relativeLuminance2(r,i,a));return(s<<24|c<<16|u<<8|255)>>>0}function n(e,t,n){for(var r=e>>24&255,i=e>>16&255,a=e>>8&255,s=t>>24&255,c=t>>16&255,u=t>>8&255,d=l(o.relativeLuminance2(s,u,c),o.relativeLuminance2(r,i,a));d>>0}e.ensureContrastRatio=function(e,r,i){var a=o.relativeLuminance(e>>8),s=o.relativeLuminance(r>>8);if(l(a,s)>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,n){return{css:r.toCss(e,t,n),rgba:r.toRgba(e,t,n)}}}(a=t.rgba||(t.rgba={})),t.toPaddedHex=s,t.contrastRatio=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.isSafari=t.isFirefox=void 0;var r="undefined"==typeof navigator,i=r?"node":navigator.userAgent,o=r?"node":navigator.platform;function a(e,t){return e.indexOf(t)>=0}t.isFirefox=!!~i.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.isMac=a(["Macintosh","MacIntel","MacPPC","Mac68K"],o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isWindows=a(["Windows","Win16","Win32","WinCE"],o),t.isLinux=o.indexOf("Linux")>=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="\x01",e.STX="\x02",e.ETX="\x03",e.EOT="\x04",e.ENQ="\x05",e.ACK="\x06",e.BEL="\x07",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\x0e",e.SI="\x0f",e.DLE="\x10",e.DC1="\x11",e.DC2="\x12",e.DC3="\x13",e.DC4="\x14",e.NAK="\x15",e.SYN="\x16",e.ETB="\x17",e.CAN="\x18",e.EM="\x19",e.SUB="\x1a",e.ESC="\x1b",e.FS="\x1c",e.GS="\x1d",e.RS="\x1e",e.US="\x1f",e.SP=" ",e.DEL="\x7f"}(t.C0||(t.C0={})),function(e){e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8a",e.PLD="\x8b",e.PLU="\x8c",e.RI="\x8d",e.SS2="\x8e",e.SS3="\x8f",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9a",e.CSI="\x9b",e.ST="\x9c",e.OSC="\x9d",e.PM="\x9e",e.APC="\x9f"}(t.C1||(t.C1={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;var r=n(3),i=n(9),o=n(25),a=n(6),s=n(28),l=n(10),c=n(17),u=function(){function e(e,t,n,r,i,o,a,s){this._container=e,this._alpha=r,this._colors=i,this._rendererId=o,this._bufferService=a,this._optionsService=s,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){var e;c.removeElementFromParent(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()},e.prototype._initCanvas=function(){this._ctx=s.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},e.prototype.onOptionsChanged=function(){},e.prototype.onBlur=function(){},e.prototype.onFocus=function(){},e.prototype.onCursorMove=function(){},e.prototype.onGridChanged=function(e,t){},e.prototype.onSelectionChanged=function(e,t,n){void 0===n&&(n=!1)},e.prototype.setColors=function(e){this._refreshCharAtlas(e)},e.prototype._setTransparency=function(e){if(e!==this._alpha){var t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},e.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=o.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e){this._scaledCellWidth=e.scaledCellWidth,this._scaledCellHeight=e.scaledCellHeight,this._scaledCharWidth=e.scaledCharWidth,this._scaledCharHeight=e.scaledCharHeight,this._scaledCharLeft=e.scaledCharLeft,this._scaledCharTop=e.scaledCharTop,this._canvas.width=e.scaledCanvasWidth,this._canvas.height=e.scaledCanvasHeight,this._canvas.style.width=e.canvasWidth+"px",this._canvas.style.height=e.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},e.prototype._fillCells=function(e,t,n,r){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,r*this._scaledCellHeight)},e.prototype._fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype._fillLeftLineAtCell=function(e,t,n){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio*n,this._scaledCellHeight)},e.prototype._strokeRectAtCell=function(e,t,n,r){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,r*this._scaledCellHeight-window.devicePixelRatio)},e.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype._clearCells=function(e,t,n,r){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,r*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,r*this._scaledCellHeight))},e.prototype._fillCharTrueColor=function(e,t,n){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(n),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},e.prototype._drawChars=function(e,t,n){var o,a,s=this._getContrastColor(e);s||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,t,n,s):(e.isInverse()?(o=e.isBgDefault()?i.INVERTED_DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?i.INVERTED_DEFAULT_COLOR:e.getFgColor()):(a=e.isBgDefault()?r.DEFAULT_COLOR:e.getBgColor(),o=e.isFgDefault()?r.DEFAULT_COLOR:e.getFgColor()),o+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||r.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||r.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=o,this._currentGlyphIdentifier.bold=!!e.isBold(),this._currentGlyphIdentifier.dim=!!e.isDim(),this._currentGlyphIdentifier.italic=!!e.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,n))},e.prototype._drawUncachedChars=function(e,t,n,r){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(r)this._ctx.fillStyle=r.css;else if(e.isBgDefault())this._ctx.fillStyle=l.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var o=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&o<8&&(o+=8),this._ctx.fillStyle=this._colors.ansi[o].css}else if(r)this._ctx.fillStyle=r.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+a.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var s=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}this._clipRow(n),e.isDim()&&(this._ctx.globalAlpha=i.DIM_OPACITY),this._ctx.fillText(e.getChars(),t*this._scaledCellWidth+this._scaledCharLeft,n*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},e.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t){return(t?"italic":"")+" "+(e?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},e.prototype._getContrastColor=function(e){if(1!==this._optionsService.options.minimumContrastRatio){var t=this._colors.contrastCache.getColor(e.bg,e.fg);if(void 0!==t)return t||void 0;var n=e.getFgColor(),r=e.getFgColorMode(),i=e.getBgColor(),o=e.getBgColorMode(),a=!!e.isInverse(),s=!!e.isInverse();if(a){var c=n;n=i,i=c;var u=r;r=o,o=u}var d=this._resolveBackgroundRgba(o,i,a),h=this._resolveForegroundRgba(r,n,a,s),f=l.rgba.ensureContrastRatio(d,h,this._optionsService.options.minimumContrastRatio);if(f){var p={css:l.channels.toCss(f>>24&255,f>>16&255,f>>8&255),rgba:f};return this._colors.contrastCache.setColor(e.bg,e.fg,p),p}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},e.prototype._resolveBackgroundRgba=function(e,t,n){switch(e){case 16777216:case 33554432:return this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return n?this._colors.foreground.rgba:this._colors.background.rgba}},e.prototype._resolveForegroundRgba=function(e,t,n,r){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&r&&t<8&&(t+=8),this._colors.ansi[t].rgba;case 50331648:return t<<8;case 0:default:return n?this._colors.background.rgba:this._colors.foreground.rgba}},e}();t.BaseRenderLayer=u},function(e,t,n){"use strict";function r(e,t,n){t.di$target===t?t.di$dependencies.push({id:e,index:n}):(t.di$dependencies=[{id:e,index:n}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);var n=function e(t,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");r(e,t,i)};return n.toString=function(){return e},t.serviceRegistry.set(e,n),n}},function(e,t,n){"use strict";function r(e,t,n,r){if(void 0===n&&(n=0),void 0===r&&(r=e.length),n>=e.length)return e;n=(e.length+n)%e.length,r=r>=e.length?e.length:(e.length+r)%e.length;for(var i=n;i>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):n]},e.prototype.set=function(e,t){this._data[3*e+1]=t[i.CHAR_DATA_ATTR_INDEX],t[i.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[i.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[i.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[i.CHAR_DATA_WIDTH_INDEX]<<22},e.prototype.getWidth=function(e){return this._data[3*e+0]>>22},e.prototype.hasWidth=function(e){return 12582912&this._data[3*e+0]},e.prototype.getFg=function(e){return this._data[3*e+1]},e.prototype.getBg=function(e){return this._data[3*e+2]},e.prototype.hasContent=function(e){return 4194303&this._data[3*e+0]},e.prototype.getCodePoint=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t},e.prototype.isCombined=function(e){return 2097152&this._data[3*e+0]},e.prototype.getString=function(e){var t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?r.stringFromCodePoint(2097151&t):""},e.prototype.loadCell=function(e,t){var n=3*e;return t.content=this._data[n+0],t.fg=this._data[n+1],t.bg=this._data[n+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t},e.prototype.setCell=function(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg},e.prototype.setCellFromCodePoint=function(e,t,n,r,i,o){268435456&i&&(this._extendedAttrs[e]=o),this._data[3*e+0]=t|n<<22,this._data[3*e+1]=r,this._data[3*e+2]=i},e.prototype.addCodepointToCell=function(e,t){var n=this._data[3*e+0];2097152&n?this._combined[e]+=r.stringFromCodePoint(t):(2097151&n?(this._combined[e]=r.stringFromCodePoint(2097151&n)+r.stringFromCodePoint(t),n&=-2097152,n|=2097152):n=t|1<<22,this._data[3*e+0]=n)},e.prototype.insertCells=function(e,t,n,r){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==r?void 0:r.fg)||0,(null==r?void 0:r.bg)||0,(null==r?void 0:r.extended)||new a.ExtendedAttrs),t=0;--s)this.setCell(e+t+s,this.loadCell(e+s,i));for(s=0;sthis.length){var n=new Uint32Array(3*e);this.length&&(3*e=e&&delete this._combined[o]}}else this._data=new Uint32Array(0),this._combined={};this.length=e}},e.prototype.fill=function(e){this._combined={},this._extendedAttrs={};for(var t=0;t=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0},e.prototype.copyCellsFrom=function(e,t,n,r,i){var o=e._data;if(i)for(var a=r-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(n+a)+s]=o[3*(t+a)+s];else for(a=0;a=t&&(this._combined[c-t+n]=e._combined[c])}},e.prototype.translateToString=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=0),void 0===n&&(n=this.length),e&&(n=Math.min(n,this.getTrimmedLength()));for(var o="";t>22||1}return o},e}();t.BufferLine=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(){for(var e,t=[],n=0;n24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(o=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));var _=function(){function e(e,t,n,r){this._bufferService=e,this._coreService=t,this._logService=n,this._optionsService=r,this._data=new Uint32Array(0)}return e.prototype.hook=function(e){this._data=new Uint32Array(0)},e.prototype.put=function(e,t,n){this._data=u.concat(this._data,e.subarray(t,n))},e.prototype.unhook=function(e){if(e){var t=d.utf32ToString(this._data);switch(this._data=new Uint32Array(0),t){case'"q':return this._coreService.triggerDataEvent(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(a.C0.ESC+'P1$r61;1"p'+a.C0.ESC+"\\");case"r":var n=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+n+a.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");case" q":var r={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return r-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(a.C0.ESC+"P1$r"+r+" q"+a.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",t),this._coreService.triggerDataEvent(a.C0.ESC+"P0$r"+a.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},e}(),w=function(e){function t(t,n,r,i,o,c,u,p,g){void 0===g&&(g=new l.EscapeSequenceParser);var v=e.call(this)||this;v._bufferService=t,v._charsetService=n,v._coreService=r,v._dirtyRowService=i,v._logService=o,v._optionsService=c,v._coreMouseService=u,v._unicodeService=p,v._parser=g,v._parseBuffer=new Uint32Array(4096),v._stringDecoder=new d.StringToUtf32,v._utf8Decoder=new d.Utf8ToUtf32,v._workCell=new A.CellData,v._windowTitle="",v._iconName="",v._windowTitleStack=[],v._iconNameStack=[],v._curAttrData=h.DEFAULT_ATTR_DATA.clone(),v._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone(),v._onRequestBell=new f.EventEmitter,v._onRequestRefreshRows=new f.EventEmitter,v._onRequestReset=new f.EventEmitter,v._onRequestScroll=new f.EventEmitter,v._onRequestSyncScrollBar=new f.EventEmitter,v._onRequestWindowsOptionsReport=new f.EventEmitter,v._onA11yChar=new f.EventEmitter,v._onA11yTab=new f.EventEmitter,v._onCursorMove=new f.EventEmitter,v._onLineFeed=new f.EventEmitter,v._onScroll=new f.EventEmitter,v._onTitleChange=new f.EventEmitter,v.register(v._parser),v._parser.setCsiHandlerFallback((function(e,t){v._logService.debug("Unknown CSI code: ",{identifier:v._parser.identToString(e),params:t.toArray()})})),v._parser.setEscHandlerFallback((function(e){v._logService.debug("Unknown ESC code: ",{identifier:v._parser.identToString(e)})})),v._parser.setExecuteHandlerFallback((function(e){v._logService.debug("Unknown EXECUTE code: ",{code:e})})),v._parser.setOscHandlerFallback((function(e,t,n){v._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:n})})),v._parser.setDcsHandlerFallback((function(e,t,n){"HOOK"===t&&(n=n.toArray()),v._logService.debug("Unknown DCS code: ",{identifier:v._parser.identToString(e),action:t,payload:n})})),v._parser.setPrintHandler((function(e,t,n){return v.print(e,t,n)})),v._parser.setCsiHandler({final:"@"},(function(e){return v.insertChars(e)})),v._parser.setCsiHandler({intermediates:" ",final:"@"},(function(e){return v.scrollLeft(e)})),v._parser.setCsiHandler({final:"A"},(function(e){return v.cursorUp(e)})),v._parser.setCsiHandler({intermediates:" ",final:"A"},(function(e){return v.scrollRight(e)})),v._parser.setCsiHandler({final:"B"},(function(e){return v.cursorDown(e)})),v._parser.setCsiHandler({final:"C"},(function(e){return v.cursorForward(e)})),v._parser.setCsiHandler({final:"D"},(function(e){return v.cursorBackward(e)})),v._parser.setCsiHandler({final:"E"},(function(e){return v.cursorNextLine(e)})),v._parser.setCsiHandler({final:"F"},(function(e){return v.cursorPrecedingLine(e)})),v._parser.setCsiHandler({final:"G"},(function(e){return v.cursorCharAbsolute(e)})),v._parser.setCsiHandler({final:"H"},(function(e){return v.cursorPosition(e)})),v._parser.setCsiHandler({final:"I"},(function(e){return v.cursorForwardTab(e)})),v._parser.setCsiHandler({final:"J"},(function(e){return v.eraseInDisplay(e)})),v._parser.setCsiHandler({prefix:"?",final:"J"},(function(e){return v.eraseInDisplay(e)})),v._parser.setCsiHandler({final:"K"},(function(e){return v.eraseInLine(e)})),v._parser.setCsiHandler({prefix:"?",final:"K"},(function(e){return v.eraseInLine(e)})),v._parser.setCsiHandler({final:"L"},(function(e){return v.insertLines(e)})),v._parser.setCsiHandler({final:"M"},(function(e){return v.deleteLines(e)})),v._parser.setCsiHandler({final:"P"},(function(e){return v.deleteChars(e)})),v._parser.setCsiHandler({final:"S"},(function(e){return v.scrollUp(e)})),v._parser.setCsiHandler({final:"T"},(function(e){return v.scrollDown(e)})),v._parser.setCsiHandler({final:"X"},(function(e){return v.eraseChars(e)})),v._parser.setCsiHandler({final:"Z"},(function(e){return v.cursorBackwardTab(e)})),v._parser.setCsiHandler({final:"`"},(function(e){return v.charPosAbsolute(e)})),v._parser.setCsiHandler({final:"a"},(function(e){return v.hPositionRelative(e)})),v._parser.setCsiHandler({final:"b"},(function(e){return v.repeatPrecedingCharacter(e)})),v._parser.setCsiHandler({final:"c"},(function(e){return v.sendDeviceAttributesPrimary(e)})),v._parser.setCsiHandler({prefix:">",final:"c"},(function(e){return v.sendDeviceAttributesSecondary(e)})),v._parser.setCsiHandler({final:"d"},(function(e){return v.linePosAbsolute(e)})),v._parser.setCsiHandler({final:"e"},(function(e){return v.vPositionRelative(e)})),v._parser.setCsiHandler({final:"f"},(function(e){return v.hVPosition(e)})),v._parser.setCsiHandler({final:"g"},(function(e){return v.tabClear(e)})),v._parser.setCsiHandler({final:"h"},(function(e){return v.setMode(e)})),v._parser.setCsiHandler({prefix:"?",final:"h"},(function(e){return v.setModePrivate(e)})),v._parser.setCsiHandler({final:"l"},(function(e){return v.resetMode(e)})),v._parser.setCsiHandler({prefix:"?",final:"l"},(function(e){return v.resetModePrivate(e)})),v._parser.setCsiHandler({final:"m"},(function(e){return v.charAttributes(e)})),v._parser.setCsiHandler({final:"n"},(function(e){return v.deviceStatus(e)})),v._parser.setCsiHandler({prefix:"?",final:"n"},(function(e){return v.deviceStatusPrivate(e)})),v._parser.setCsiHandler({intermediates:"!",final:"p"},(function(e){return v.softReset(e)})),v._parser.setCsiHandler({intermediates:" ",final:"q"},(function(e){return v.setCursorStyle(e)})),v._parser.setCsiHandler({final:"r"},(function(e){return v.setScrollRegion(e)})),v._parser.setCsiHandler({final:"s"},(function(e){return v.saveCursor(e)})),v._parser.setCsiHandler({final:"t"},(function(e){return v.windowOptions(e)})),v._parser.setCsiHandler({final:"u"},(function(e){return v.restoreCursor(e)})),v._parser.setCsiHandler({intermediates:"'",final:"}"},(function(e){return v.insertColumns(e)})),v._parser.setCsiHandler({intermediates:"'",final:"~"},(function(e){return v.deleteColumns(e)})),v._parser.setExecuteHandler(a.C0.BEL,(function(){return v.bell()})),v._parser.setExecuteHandler(a.C0.LF,(function(){return v.lineFeed()})),v._parser.setExecuteHandler(a.C0.VT,(function(){return v.lineFeed()})),v._parser.setExecuteHandler(a.C0.FF,(function(){return v.lineFeed()})),v._parser.setExecuteHandler(a.C0.CR,(function(){return v.carriageReturn()})),v._parser.setExecuteHandler(a.C0.BS,(function(){return v.backspace()})),v._parser.setExecuteHandler(a.C0.HT,(function(){return v.tab()})),v._parser.setExecuteHandler(a.C0.SO,(function(){return v.shiftOut()})),v._parser.setExecuteHandler(a.C0.SI,(function(){return v.shiftIn()})),v._parser.setExecuteHandler(a.C1.IND,(function(){return v.index()})),v._parser.setExecuteHandler(a.C1.NEL,(function(){return v.nextLine()})),v._parser.setExecuteHandler(a.C1.HTS,(function(){return v.tabSet()})),v._parser.setOscHandler(0,new m.OscHandler((function(e){v.setTitle(e),v.setIconName(e)}))),v._parser.setOscHandler(1,new m.OscHandler((function(e){return v.setIconName(e)}))),v._parser.setOscHandler(2,new m.OscHandler((function(e){return v.setTitle(e)}))),v._parser.setEscHandler({final:"7"},(function(){return v.saveCursor()})),v._parser.setEscHandler({final:"8"},(function(){return v.restoreCursor()})),v._parser.setEscHandler({final:"D"},(function(){return v.index()})),v._parser.setEscHandler({final:"E"},(function(){return v.nextLine()})),v._parser.setEscHandler({final:"H"},(function(){return v.tabSet()})),v._parser.setEscHandler({final:"M"},(function(){return v.reverseIndex()})),v._parser.setEscHandler({final:"="},(function(){return v.keypadApplicationMode()})),v._parser.setEscHandler({final:">"},(function(){return v.keypadNumericMode()})),v._parser.setEscHandler({final:"c"},(function(){return v.fullReset()})),v._parser.setEscHandler({final:"n"},(function(){return v.setgLevel(2)})),v._parser.setEscHandler({final:"o"},(function(){return v.setgLevel(3)})),v._parser.setEscHandler({final:"|"},(function(){return v.setgLevel(3)})),v._parser.setEscHandler({final:"}"},(function(){return v.setgLevel(2)})),v._parser.setEscHandler({final:"~"},(function(){return v.setgLevel(1)})),v._parser.setEscHandler({intermediates:"%",final:"@"},(function(){return v.selectDefaultCharset()})),v._parser.setEscHandler({intermediates:"%",final:"G"},(function(){return v.selectDefaultCharset()}));var y=function(e){b._parser.setEscHandler({intermediates:"(",final:e},(function(){return v.selectCharset("("+e)})),b._parser.setEscHandler({intermediates:")",final:e},(function(){return v.selectCharset(")"+e)})),b._parser.setEscHandler({intermediates:"*",final:e},(function(){return v.selectCharset("*"+e)})),b._parser.setEscHandler({intermediates:"+",final:e},(function(){return v.selectCharset("+"+e)})),b._parser.setEscHandler({intermediates:"-",final:e},(function(){return v.selectCharset("-"+e)})),b._parser.setEscHandler({intermediates:".",final:e},(function(){return v.selectCharset("."+e)})),b._parser.setEscHandler({intermediates:"/",final:e},(function(){return v.selectCharset("/"+e)}))},b=this;for(var w in s.CHARSETS)y(w);return v._parser.setEscHandler({intermediates:"#",final:"8"},(function(){return v.screenAlignmentPattern()})),v._parser.setErrorHandler((function(e){return v._logService.error("Parsing error: ",e),e})),v._parser.setDcsHandler({intermediates:"$",final:"q"},new _(v._bufferService,v._coreService,v._logService,v._optionsService)),v}return i(t,e),Object.defineProperty(t.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.parse=function(e){var t=this._bufferService.buffer,n=t.x,r=t.y;if(this._logService.debug("parsing data",e),this._parseBuffer.length131072)for(var i=0;i0&&2===f.getWidth(o.x-1)&&f.setCellFromCodePoint(o.x-1,0,1,h.fg,h.bg,h.extended);for(var A=t;A=l)if(c){for(;o.x=this._bufferService.rows&&(o.y=this._bufferService.rows-1),o.lines.get(o.ybase+o.y).isWrapped=!0),f=o.lines.get(o.ybase+o.y)}else if(o.x=l-1,2===i)continue;if(u&&(f.insertCells(o.x,i,o.getNullCell(h),h),2===f.getWidth(l-1)&&f.setCellFromCodePoint(l-1,p.NULL_CELL_CODE,p.NULL_CELL_WIDTH,h.fg,h.bg,h.extended)),f.setCellFromCodePoint(o.x++,r,i,h.fg,h.bg,h.extended),i>0)for(;--i;)f.setCellFromCodePoint(o.x++,0,0,h.fg,h.bg,h.extended)}else f.getWidth(o.x-1)?f.addCodepointToCell(o.x-1,r):f.addCodepointToCell(o.x-2,r)}n-t>0&&(f.loadCell(o.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),o.x0&&0===f.getWidth(o.x)&&!f.hasContent(o.x)&&f.setCellFromCodePoint(o.x,0,1,h.fg,h.bg,h.extended),this._dirtyRowService.markDirty(o.y)},t.prototype.addCsiHandler=function(e,t){var n=this;return"t"!==e["final"]||e.prefix||e.intermediates?this._parser.addCsiHandler(e,t):this._parser.addCsiHandler(e,(function(e){return!b(e.params[0],n._optionsService.options.windowOptions)||t(e)}))},t.prototype.addDcsHandler=function(e,t){return this._parser.addDcsHandler(e,new v.DcsHandler(t))},t.prototype.addEscHandler=function(e,t){return this._parser.addEscHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._parser.addOscHandler(e,new m.OscHandler(t))},t.prototype.bell=function(){this._onRequestBell.fire()},t.prototype.lineFeed=function(){var e=this._bufferService.buffer;this._dirtyRowService.markDirty(e.y),this._optionsService.options.convertEol&&(e.x=0),e.y++,e.y===e.scrollBottom+1?(e.y--,this._onRequestScroll.fire(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),e.x>=this._bufferService.cols&&e.x--,this._dirtyRowService.markDirty(e.y),this._onLineFeed.fire()},t.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},t.prototype.backspace=function(){var e,t=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(t.x>0&&t.x--);if(this._restrictCursor(this._bufferService.cols),t.x>0)t.x--;else if(0===t.x&&t.y>t.scrollTop&&t.y<=t.scrollBottom&&(null===(e=t.lines.get(t.ybase+t.y))||void 0===e?void 0:e.isWrapped)){t.lines.get(t.ybase+t.y).isWrapped=!1,t.y--,t.x=this._bufferService.cols-1;var n=t.lines.get(t.ybase+t.y);n.hasWidth(t.x)&&!n.hasContent(t.x)&&t.x--}this._restrictCursor()},t.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var e=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-e)}},t.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},t.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},t.prototype._restrictCursor=function(e){void 0===e&&(e=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(e,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype._setCursor=function(e,t){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=e,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+t):(this._bufferService.buffer.x=e,this._bufferService.buffer.y=t),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype._moveCursor=function(e,t){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+e,this._bufferService.buffer.y+t)},t.prototype.cursorUp=function(e){var t=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1))},t.prototype.cursorDown=function(e){var t=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1)},t.prototype.cursorForward=function(e){this._moveCursor(e.params[0]||1,0)},t.prototype.cursorBackward=function(e){this._moveCursor(-(e.params[0]||1),0)},t.prototype.cursorNextLine=function(e){this.cursorDown(e),this._bufferService.buffer.x=0},t.prototype.cursorPrecedingLine=function(e){this.cursorUp(e),this._bufferService.buffer.x=0},t.prototype.cursorCharAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},t.prototype.cursorPosition=function(e){this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1)},t.prototype.charPosAbsolute=function(e){this._setCursor((e.params[0]||1)-1,this._bufferService.buffer.y)},t.prototype.hPositionRelative=function(e){this._moveCursor(e.params[0]||1,0)},t.prototype.linePosAbsolute=function(e){this._setCursor(this._bufferService.buffer.x,(e.params[0]||1)-1)},t.prototype.vPositionRelative=function(e){this._moveCursor(0,e.params[0]||1)},t.prototype.hVPosition=function(e){this.cursorPosition(e)},t.prototype.tabClear=function(e){var t=e.params[0];0===t?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:3===t&&(this._bufferService.buffer.tabs={})},t.prototype.cursorForwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1;t--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},t.prototype.cursorBackwardTab=function(e){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var t=e.params[0]||1,n=this._bufferService.buffer;t--;)n.x=n.prevStop()},t.prototype._eraseInBufferLine=function(e,t,n,r){void 0===r&&(r=!1);var i=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);i.replaceCells(t,n,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),r&&(i.isWrapped=!1)},t.prototype._resetBufferLine=function(e){var t=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+e);t.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),t.isWrapped=!1},t.prototype.eraseInDisplay=function(e){var t;switch(this._restrictCursor(),e.params[0]){case 0:for(t=this._bufferService.buffer.y,this._dirtyRowService.markDirty(t),this._eraseInBufferLine(t++,this._bufferService.buffer.x,this._bufferService.cols,0===this._bufferService.buffer.x);t=this._bufferService.cols&&(this._bufferService.buffer.lines.get(t+1).isWrapped=!1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 2:for(t=this._bufferService.rows,this._dirtyRowService.markDirty(t-1);t--;)this._resetBufferLine(t);this._dirtyRowService.markDirty(0);break;case 3:var n=this._bufferService.buffer.lines.length-this._bufferService.rows;n>0&&(this._bufferService.buffer.lines.trimStart(n),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-n,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-n,0),this._onScroll.fire(0))}},t.prototype.eraseInLine=function(e){switch(this._restrictCursor(),e.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},t.prototype.insertLines=function(e){this._restrictCursor();var t=e.params[0]||1,n=this._bufferService.buffer;if(!(n.y>n.scrollBottom||n.yn.scrollBottom||n.yt.scrollBottom||t.yt.scrollBottom||t.yt.scrollBottom||t.yt.scrollBottom||t.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c"))},t.prototype.sendDeviceAttributesSecondary=function(e){e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c"))},t.prototype._is=function(e){return 0===(this._optionsService.options.termName+"").indexOf(e)},t.prototype.setMode=function(e){for(var t=0;t=2||2===r[1]&&o+i>=5)break;r[1]&&(i=1)}while(++o+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()},t.prototype.charAttributes=function(e){if(1===e.length&&0===e.params[0])return this._curAttrData.fg=h.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=h.DEFAULT_ATTR_DATA.bg);for(var t,n=e.length,r=this._curAttrData,i=0;i=30&&t<=37?(r.fg&=-50331904,r.fg|=16777216|t-30):t>=40&&t<=47?(r.bg&=-50331904,r.bg|=16777216|t-40):t>=90&&t<=97?(r.fg&=-50331904,r.fg|=16777224|t-90):t>=100&&t<=107?(r.bg&=-50331904,r.bg|=16777224|t-100):0===t?(r.fg=h.DEFAULT_ATTR_DATA.fg,r.bg=h.DEFAULT_ATTR_DATA.bg):1===t?r.fg|=134217728:3===t?r.bg|=67108864:4===t?(r.fg|=268435456,this._processUnderline(e.hasSubParams(i)?e.getSubParams(i)[0]:1,r)):5===t?r.fg|=536870912:7===t?r.fg|=67108864:8===t?r.fg|=1073741824:2===t?r.bg|=134217728:21===t?this._processUnderline(2,r):22===t?(r.fg&=-134217729,r.bg&=-134217729):23===t?r.bg&=-67108865:24===t?r.fg&=-268435457:25===t?r.fg&=-536870913:27===t?r.fg&=-67108865:28===t?r.fg&=-1073741825:39===t?(r.fg&=-67108864,r.fg|=16777215&h.DEFAULT_ATTR_DATA.fg):49===t?(r.bg&=-67108864,r.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?i+=this._extractColor(e,i,r):59===t?(r.extended=r.extended.clone(),r.extended.underlineColor=-1,r.updateExtended()):100===t?(r.fg&=-67108864,r.fg|=16777215&h.DEFAULT_ATTR_DATA.fg,r.bg&=-67108864,r.bg|=16777215&h.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t)},t.prototype.deviceStatus=function(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(a.C0.ESC+"[0n");break;case 6:var t=this._bufferService.buffer.y+1,n=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"["+t+";"+n+"R")}},t.prototype.deviceStatusPrivate=function(e){switch(e.params[0]){case 6:var t=this._bufferService.buffer.y+1,n=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(a.C0.ESC+"[?"+t+";"+n+"R")}},t.prototype.softReset=function(e){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},t.prototype.setCursorStyle=function(e){var t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var n=t%2==1;this._optionsService.options.cursorBlink=n},t.prototype.setScrollRegion=function(e){var t,n=e.params[0]||1;(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>n&&(this._bufferService.buffer.scrollTop=n-1,this._bufferService.buffer.scrollBottom=t-1,this._setCursor(0,0))},t.prototype.windowOptions=function(e){if(b(e.params[0],this._optionsService.options.windowOptions)){var t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(o.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(o.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(a.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},t.prototype.saveCursor=function(e){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},t.prototype.restoreCursor=function(e){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},t.prototype.setTitle=function(e){this._windowTitle=e,this._onTitleChange.fire(e)},t.prototype.setIconName=function(e){this._iconName=e},t.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},t.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},t.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},t.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,s.DEFAULT_CHARSET)},t.prototype.selectCharset=function(e){2===e.length?"/"!==e[0]&&this._charsetService.setgCharset(y[e[0]],s.CHARSETS[e[1]]||s.DEFAULT_CHARSET):this.selectDefaultCharset()},t.prototype.index=function(){this._restrictCursor();var e=this._bufferService.buffer;this._bufferService.buffer.y++,e.y===e.scrollBottom+1?(e.y--,this._onRequestScroll.fire(this._eraseAttrData())):e.y>=this._bufferService.rows&&(e.y=this._bufferService.rows-1),this._restrictCursor()},t.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},t.prototype.reverseIndex=function(){this._restrictCursor();var e=this._bufferService.buffer;if(e.y===e.scrollTop){var t=e.scrollBottom-e.scrollTop;e.lines.shiftElements(e.ybase+e.y,t,1),e.lines.set(e.ybase+e.y,e.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(e.scrollTop,e.scrollBottom)}else e.y--,this._restrictCursor()},t.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},t.prototype.reset=function(){this._curAttrData=h.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=h.DEFAULT_ATTR_DATA.clone()},t.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},t.prototype.setgLevel=function(e){this._charsetService.setgLevel(e)},t.prototype.screenAlignmentPattern=function(){var e=new A.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg;var t=this._bufferService.buffer;this._setCursor(0,0);for(var n=0;n256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return e.fromArray=function(t){var n=new e;if(!t.length)return n;for(var r=t[0]instanceof Array?1:0;r>8,r=255&this._subParamsIdx[t];r-n>0&&e.push(Array.prototype.slice.call(this._subParams,n,r))}return e},e.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},e.prototype.addParam=function(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>2147483647?2147483647:e}},e.prototype.addSubParam=function(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>2147483647?2147483647:e,this._subParamsIdx[this.length-1]++}},e.prototype.hasSubParams=function(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0},e.prototype.getSubParams=function(e){var t=this._subParamsIdx[e]>>8,n=255&this._subParamsIdx[e];return n-t>0?this._subParams.subarray(t,n):null},e.prototype.getSubParamsAll=function(){for(var e={},t=0;t>8,r=255&this._subParamsIdx[t];r-n>0&&(e[t]=this._subParams.slice(n,r))}return e},e.prototype.addDigit=function(e){var t;if(!(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var n=this._digitIsSub?this._subParams:this.params,r=n[t-1];n[t-1]=~r?Math.min(10*r+e,2147483647):e}},e}();t.Params=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;var r=n(23),i=n(8),o=function(){function e(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return e.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.setHandler=function(e,t){this._handlers[e]=[t]},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},e.prototype.reset=function(){2===this._state&&this.end(!1),this._id=-1,this._state=0},e.prototype._start=function(){var e=this._handlers[this._id];if(e)for(var t=e.length-1;t>=0;t--)e[t].start();else this._handlerFb(this._id,"START")},e.prototype._put=function(e,t,n){var r=this._handlers[this._id];if(r)for(var o=r.length-1;o>=0;o--)r[o].put(e,t,n);else this._handlerFb(this._id,"PUT",i.utf32ToString(e,t,n))},e.prototype._end=function(e){var t=this._handlers[this._id];if(t){for(var n=t.length-1;n>=0&&!1===t[n].end(e);n--);for(n--;n>=0;n--)t[n].end(!1)}else this._handlerFb(this._id,"END",e)},e.prototype.start=function(){this.reset(),this._id=-1,this._state=1},e.prototype.put=function(e,t,n){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,n)}},e.prototype.end=function(e){0!==this._state&&(3!==this._state&&(1===this._state&&this._start(),this._end(e)),this._id=-1,this._state=0)},e}();t.OscParser=o;var a=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.start=function(){this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=i.utf32ToString(e,t,n),this._data.length>r.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.end=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data)),this._data="",this._hitLimit=!1,t},e}();t.OscHandler=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;var r=n(8),i=n(21),o=n(23),a=[],s=function(){function e(){this._handlers=Object.create(null),this._active=a,this._ident=0,this._handlerFb=function(){}}return e.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},e.prototype.addHandler=function(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);var n=this._handlers[e];return n.push(t),{dispose:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},e.prototype.setHandler=function(e,t){this._handlers[e]=[t]},e.prototype.clearHandler=function(e){this._handlers[e]&&delete this._handlers[e]},e.prototype.setHandlerFallback=function(e){this._handlerFb=e},e.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=a,this._ident=0},e.prototype.hook=function(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||a,this._active.length)for(var n=this._active.length-1;n>=0;n--)this._active[n].hook(t);else this._handlerFb(this._ident,"HOOK",t)},e.prototype.put=function(e,t,n){if(this._active.length)for(var i=this._active.length-1;i>=0;i--)this._active[i].put(e,t,n);else this._handlerFb(this._ident,"PUT",r.utf32ToString(e,t,n))},e.prototype.unhook=function(e){if(this._active.length){for(var t=this._active.length-1;t>=0&&!1===this._active[t].unhook(e);t--);for(t--;t>=0;t--)this._active[t].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",e);this._active=a,this._ident=0},e}();t.DcsParser=s;var l=function(){function e(e){this._handler=e,this._data="",this._hitLimit=!1}return e.prototype.hook=function(e){this._params=e.clone(),this._data="",this._hitLimit=!1},e.prototype.put=function(e,t,n){this._hitLimit||(this._data+=r.utf32ToString(e,t,n),this._data.length>o.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},e.prototype.unhook=function(e){var t;return this._hitLimit?t=!1:e&&(t=this._handler(this._data,this._params||new i.Params)),this._params=void 0,this._data="",this._hitLimit=!1,t},e}();t.DcsHandler=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireCharAtlas=void 0;var r=n(26),i=n(43),o=[];t.acquireCharAtlas=function(e,t,n,a,s){for(var l=r.generateConfig(a,s,e,n),c=0;c=0){if(r.configEquals(d.config,l))return d.atlas;1===d.ownedBy.length?(d.atlas.dispose(),o.splice(c,1)):d.ownedBy.splice(u,1);break}}for(c=0;c1)for(var d=this._getJoinedRanges(r,s,o,t,i),h=0;h1)for(d=this._getJoinedRanges(r,s,o,t,i),h=0;h=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new r.CellData)},e.prototype.translateToString=function(e,t,n){return this._line.translateToString(e,t,n)},e}(),h=function(){function e(e){this._core=e}return e.prototype.registerCsiHandler=function(e,t){return this._core.addCsiHandler(e,(function(e){return t(e.toArray())}))},e.prototype.addCsiHandler=function(e,t){return this.registerCsiHandler(e,t)},e.prototype.registerDcsHandler=function(e,t){return this._core.addDcsHandler(e,(function(e,n){return t(e,n.toArray())}))},e.prototype.addDcsHandler=function(e,t){return this.registerDcsHandler(e,t)},e.prototype.registerEscHandler=function(e,t){return this._core.addEscHandler(e,t)},e.prototype.addEscHandler=function(e,t){return this.registerEscHandler(e,t)},e.prototype.registerOscHandler=function(e,t){return this._core.addOscHandler(e,t)},e.prototype.addOscHandler=function(e,t){return this.registerOscHandler(e,t)},e}(),f=function(){function e(e){this._core=e}return e.prototype.register=function(e){this._core.unicodeService.register(e)},Object.defineProperty(e.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(e){this._core.unicodeService.activeVersion=e},enumerable:!1,configurable:!0}),e}()},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;var o=n(36),a=n(37),s=n(38),l=n(12),c=n(19),u=n(40),d=n(50),h=n(51),f=n(11),p=n(7),A=n(18),g=n(54),m=n(55),v=n(56),y=n(57),b=n(59),_=n(0),w=n(16),x=n(27),C=n(60),S=n(5),k=n(61),E=n(62),O=n(63),B=n(64),M=n(65),T="undefined"!=typeof window?window.document:null,I=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.browser=f,n._keyDownHandled=!1,n._onCursorMove=new _.EventEmitter,n._onKey=new _.EventEmitter,n._onRender=new _.EventEmitter,n._onSelectionChange=new _.EventEmitter,n._onTitleChange=new _.EventEmitter,n._onFocus=new _.EventEmitter,n._onBlur=new _.EventEmitter,n._onA11yCharEmitter=new _.EventEmitter,n._onA11yTabEmitter=new _.EventEmitter,n._setup(),n.linkifier=n._instantiationService.createInstance(d.Linkifier),n.linkifier2=n.register(n._instantiationService.createInstance(O.Linkifier2)),n.register(n._inputHandler.onRequestBell((function(){return n.bell()}))),n.register(n._inputHandler.onRequestRefreshRows((function(e,t){return n.refresh(e,t)}))),n.register(n._inputHandler.onRequestReset((function(){return n.reset()}))),n.register(n._inputHandler.onRequestScroll((function(e,t){return n.scroll(e,t||void 0)}))),n.register(n._inputHandler.onRequestWindowsOptionsReport((function(e){return n._reportWindowsOptions(e)}))),n.register(_.forwardEvent(n._inputHandler.onCursorMove,n._onCursorMove)),n.register(_.forwardEvent(n._inputHandler.onTitleChange,n._onTitleChange)),n.register(_.forwardEvent(n._inputHandler.onA11yChar,n._onA11yCharEmitter)),n.register(_.forwardEvent(n._inputHandler.onA11yTab,n._onA11yTabEmitter)),n.register(n._bufferService.onResize((function(e){return n._afterResize(e.cols,e.rows)}))),n}return i(t,e),Object.defineProperty(t.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t,n,r;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._renderService)||void 0===t||t.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},null===(r=null===(n=this.element)||void 0===n?void 0:n.parentNode)||void 0===r||r.removeChild(this.element))},t.prototype._setup=function(){e.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(t.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),t.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},t.prototype._updateOptions=function(t){var n,r,i,o;switch(e.prototype._updateOptions.call(this,t),t){case"fontFamily":case"fontSize":null===(n=this._renderService)||void 0===n||n.clear(),null===(r=this._charSizeService)||void 0===r||r.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":null===(i=this.viewport)||void 0===i||i.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new v.AccessibilityManager(this,this._renderService)):(null===(o=this._accessibilityManager)||void 0===o||o.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},t.prototype._onTextAreaFocus=function(e){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(l.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},t.prototype.blur=function(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()},t.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(l.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},t.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var e=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),t=this._bufferService.buffer.y*e,n=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=n+"px",this.textarea.style.top=t+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=e+"px",this.textarea.style.lineHeight=e+"px",this.textarea.style.zIndex="-5"}},t.prototype._initGlobal=function(){var e=this;this._bindKeys(),this.register(p.addDisposableDomListener(this.element,"copy",(function(t){e.hasSelection()&&s.copyHandler(t,e._selectionService)})));var t=function(t){return s.handlePasteEvent(t,e.textarea,e._coreService)};this.register(p.addDisposableDomListener(this.textarea,"paste",t)),this.register(p.addDisposableDomListener(this.element,"paste",t)),f.isFirefox?this.register(p.addDisposableDomListener(this.element,"mousedown",(function(t){2===t.button&&s.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))):this.register(p.addDisposableDomListener(this.element,"contextmenu",(function(t){s.rightClickHandler(t,e.textarea,e.screenElement,e._selectionService,e.options.rightClickSelectsWord)}))),f.isLinux&&this.register(p.addDisposableDomListener(this.element,"auxclick",(function(t){1===t.button&&s.moveTextAreaUnderMouseCursor(t,e.textarea,e.screenElement)})))},t.prototype._bindKeys=function(){var e=this;this.register(p.addDisposableDomListener(this.textarea,"keyup",(function(t){return e._keyUp(t)}),!0)),this.register(p.addDisposableDomListener(this.textarea,"keydown",(function(t){return e._keyDown(t)}),!0)),this.register(p.addDisposableDomListener(this.textarea,"keypress",(function(t){return e._keyPress(t)}),!0)),this.register(p.addDisposableDomListener(this.textarea,"compositionstart",(function(){return e._compositionHelper.compositionstart()}))),this.register(p.addDisposableDomListener(this.textarea,"compositionupdate",(function(t){return e._compositionHelper.compositionupdate(t)}))),this.register(p.addDisposableDomListener(this.textarea,"compositionend",(function(){return e._compositionHelper.compositionend()}))),this.register(this.onRender((function(){return e._compositionHelper.updateCompositionElements()}))),this.register(this.onRender((function(t){return e._queueLinkification(t.start,t.end)})))},t.prototype.open=function(e){var t=this;if(!e)throw new Error("Terminal requires a parent element.");T.body.contains(e)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);var n=T.createDocumentFragment();this._viewportElement=T.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),n.appendChild(this._viewportElement),this._viewportScrollArea=T.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=T.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=T.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),n.appendChild(this.screenElement),this.textarea=T.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",A.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(p.addDisposableDomListener(this.textarea,"focus",(function(e){return t._onTextAreaFocus(e)}))),this.register(p.addDisposableDomListener(this.textarea,"blur",(function(){return t._onTextAreaBlur()}))),this._helperContainer.appendChild(this.textarea);var r=this._instantiationService.createInstance(B.CoreBrowserService,this.textarea);this._instantiationService.setService(S.ICoreBrowserService,r),this._charSizeService=this._instantiationService.createInstance(k.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._compositionView=T.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(o.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(n),this._theme=this.options.theme||this._theme,this._colorManager=new x.ColorManager(T,this.options.allowTransparency),this.register(this.optionsService.onOptionChange((function(e){return t._colorManager.onOptionsChange(e)}))),this._colorManager.setTheme(this._theme);var i=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(C.RenderService,i,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange((function(e){return t._onRender.fire(e)}))),this.onResize((function(e){return t._renderService.resize(e.cols,e.rows)})),this._soundService=this._instantiationService.createInstance(g.SoundService),this._instantiationService.setService(S.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(E.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(a.Viewport,(function(e,n){return t.scrollLines(e,n)}),this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar((function(){return t.viewport.syncScrollArea()}))),this.register(this.viewport),this.register(this.onCursorMove((function(){t._renderService.onCursorMove(),t._syncTextArea()}))),this.register(this.onResize((function(){return t._renderService.onResize(t.cols,t.rows)}))),this.register(this.onBlur((function(){return t._renderService.onBlur()}))),this.register(this.onFocus((function(){return t._renderService.onFocus()}))),this.register(this._renderService.onDimensionsChange((function(){return t.viewport.syncScrollArea()}))),this._selectionService=this.register(this._instantiationService.createInstance(h.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((function(e){return t.scrollLines(e.amount,e.suppressScrollEvent)}))),this.register(this._selectionService.onSelectionChange((function(){return t._onSelectionChange.fire()}))),this.register(this._selectionService.onRequestRedraw((function(e){return t._renderService.onSelectionChanged(e.start,e.end,e.columnSelectMode)}))),this.register(this._selectionService.onLinuxMouseSelection((function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()}))),this.register(this.onScroll((function(){t.viewport.syncScrollArea(),t._selectionService.refresh()}))),this.register(p.addDisposableDomListener(this._viewportElement,"scroll",(function(){return t._selectionService.refresh()}))),this._mouseZoneManager=this._instantiationService.createInstance(m.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll((function(){return t._mouseZoneManager.clearAll()}))),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(p.addDisposableDomListener(this.element,"mousedown",(function(e){return t._selectionService.onMouseDown(e)}))),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new v.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},t.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(u.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(y.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},t.prototype._setTheme=function(e){var t,n,r;this._theme=e,null===(t=this._colorManager)||void 0===t||t.setTheme(e),null===(n=this._renderService)||void 0===n||n.setColors(this._colorManager.colors),null===(r=this.viewport)||void 0===r||r.onThemeChange(this._colorManager.colors)},t.prototype.bindMouse=function(){var e=this,t=this,n=this.element;function r(e){var n,r,i=t._mouseService.getRawByteCoords(e,t.screenElement,t.cols,t.rows);if(!i)return!1;switch(e.overrideType||e.type){case"mousemove":r=32,void 0===e.buttons?(n=3,void 0!==e.button&&(n=e.button<3?e.button:3)):n=1&e.buttons?0:4&e.buttons?1:2&e.buttons?2:3;break;case"mouseup":r=0,n=e.button<3?e.button:3;break;case"mousedown":r=1,n=e.button<3?e.button:3;break;case"wheel":0!==e.deltaY&&(r=e.deltaY<0?0:1),n=4;break;default:return!1}return!(void 0===r||void 0===n||n>4)&&t._coreMouseService.triggerMouseEvent({col:i.x-33,row:i.y-33,button:n,action:r,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey})}var i={mouseup:null,wheel:null,mousedrag:null,mousemove:null},o=function(t){return r(t),t.buttons||(e._document.removeEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.removeEventListener("mousemove",i.mousedrag)),e.cancel(t)},a=function(t){return r(t),t.preventDefault(),e.cancel(t)},s=function(e){e.buttons&&r(e)},c=function(e){e.buttons||r(e)};this.register(this._coreMouseService.onProtocolChange((function(t){t?("debug"===e.optionsService.options.logLevel&&e._logService.debug("Binding to mouse events:",e._coreMouseService.explainEvents(t)),e.element.classList.add("enable-mouse-events"),e._selectionService.disable()):(e._logService.debug("Unbinding from mouse events."),e.element.classList.remove("enable-mouse-events"),e._selectionService.enable()),8&t?i.mousemove||(n.addEventListener("mousemove",c),i.mousemove=c):(n.removeEventListener("mousemove",i.mousemove),i.mousemove=null),16&t?i.wheel||(n.addEventListener("wheel",a,{passive:!1}),i.wheel=a):(n.removeEventListener("wheel",i.wheel),i.wheel=null),2&t?i.mouseup||(i.mouseup=o):(e._document.removeEventListener("mouseup",i.mouseup),i.mouseup=null),4&t?i.mousedrag||(i.mousedrag=s):(e._document.removeEventListener("mousemove",i.mousedrag),i.mousedrag=null)}))),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(p.addDisposableDomListener(n,"mousedown",(function(t){if(t.preventDefault(),e.focus(),e._coreMouseService.areMouseEventsActive&&!e._selectionService.shouldForceSelection(t))return r(t),i.mouseup&&e._document.addEventListener("mouseup",i.mouseup),i.mousedrag&&e._document.addEventListener("mousemove",i.mousedrag),e.cancel(t)}))),this.register(p.addDisposableDomListener(n,"wheel",(function(t){if(i.wheel);else if(!e.buffer.hasScrollback){var n=e.viewport.getLinesScrolled(t);if(0===n)return;for(var r=l.C0.ESC+(e._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(t.deltaY<0?"A":"B"),o="",a=0;a47)},t.prototype._keyUp=function(e){this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e))},t.prototype._keyPress=function(e){var t;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e))&&(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this._coreService.triggerDataEvent(t,!0),!0)},t.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},t.prototype.resize=function(t,n){t!==this.cols||n!==this.rows?e.prototype.resize.call(this,t,n):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},t.prototype._afterResize=function(e,t){var n,r;null===(n=this._charSizeService)||void 0===n||n.measure(),null===(r=this.viewport)||void 0===r||r.syncScrollArea(!0)},t.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;var o=n(5),a=n(1),s=function(){function e(e,t,n,r,i,o){this._textarea=e,this._compositionView=t,this._bufferService=n,this._optionsService=r,this._charSizeService=i,this._coreService=o,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(e.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((function(){t._compositionPosition.end=t._textarea.value.length}),0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((function(){if(t._isSendingComposition){t._isSendingComposition=!1;var e=void 0;e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start),t._coreService.triggerDataEvent(e,!0)}}),0)}else{this._isSendingComposition=!1;var r=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(r,!0)}},e.prototype._handleAnyTextareaChanges=function(){var e=this,t=this._textarea.value;setTimeout((function(){if(!e._isComposing){var n=e._textarea.value.replace(t,"");n.length>0&&e._coreService.triggerDataEvent(n,!0)}}),0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),r=this._bufferService.buffer.y*n,i=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=i+"px",this._compositionView.style.top=r+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var o=this._compositionView.getBoundingClientRect();this._textarea.style.left=i+"px",this._textarea.style.top=r+"px",this._textarea.style.width=o.width+"px",this._textarea.style.height=o.height+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout((function(){return t.updateCompositionElements(!0)}),0)}},r([i(2,a.IBufferService),i(3,a.IOptionsService),i(4,o.ICharSizeService),i(5,a.ICoreService)],e)}();t.CompositionHelper=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;var s=n(2),l=n(7),c=n(5),u=n(1),d=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this)||this;return c._scrollLines=t,c._viewportElement=n,c._scrollArea=r,c._bufferService=i,c._optionsService=o,c._charSizeService=a,c._renderService=s,c.scrollBarWidth=0,c._currentRowHeight=0,c._lastRecordedBufferLength=0,c._lastRecordedViewportHeight=0,c._lastRecordedBufferHeight=0,c._lastTouchY=0,c._lastScrollTop=0,c._wheelPartialScroll=0,c._refreshAnimationFrame=null,c._ignoreNextScrollEvent=!1,c.scrollBarWidth=c._viewportElement.offsetWidth-c._scrollArea.offsetWidth||15,c.register(l.addDisposableDomListener(c._viewportElement,"scroll",c._onScroll.bind(c))),setTimeout((function(){return c.syncScrollArea()}),0),c}return i(t,e),t.prototype.onThemeChange=function(e){this._viewportElement.style.backgroundColor=e.background.css},t.prototype._refresh=function(e){var t=this;if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame((function(){return t._innerRefresh()})))},t.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},t.prototype.syncScrollArea=function(e){if(void 0===e&&(e=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var t=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===t&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(e)}else this._refresh(e)},t.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t,!0)}},t.prototype._bubbleScroll=function(e,t){var n=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&n0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t},t.prototype._applyScrollModifier=function(e,t){var n=this._optionsService.options.fastScrollModifier;return"alt"===n&&t.altKey||"ctrl"===n&&t.ctrlKey||"shift"===n&&t.shiftKey?e*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:e*this._optionsService.options.scrollSensitivity},t.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},t.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))},o([a(3,u.IBufferService),a(4,u.IOptionsService),a(5,c.ICharSizeService),a(6,c.IRenderService)],t)}(s.Disposable);t.Viewport=d},function(e,t,n){"use strict";function r(e){return e.replace(/\r?\n/g,"\r")}function i(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function o(e,t,n){e=i(e=r(e),n.decPrivateModes.bracketedPasteMode),n.triggerDataEvent(e,!0),t.value=""}function a(e,t,n){var r=n.getBoundingClientRect(),i=e.clientX-r.left-10,o=e.clientY-r.top-10;t.style.width="20px",t.style.height="20px",t.style.left=i+"px",t.style.top=o+"px",t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=r,t.bracketTextForPaste=i,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,n){e.stopPropagation(),e.clipboardData&&o(e.clipboardData.getData("text/plain"),t,n)},t.paste=o,t.moveTextAreaUnderMouseCursor=a,t.rightClickHandler=function(e,t,n,r,i){a(e,t,n),i&&!r.isClickInSelection(e)&&r.selectWordAtCursor(e),t.value=r.selectionText,t.select()}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;var o=n(2),a=n(15),s=n(21),l=n(22),c=n(24),u=function(){function e(e){this.table=new Uint8Array(e)}return e.prototype.setDefault=function(e,t){a.fill(this.table,e<<4|t)},e.prototype.add=function(e,t,n,r){this.table[t<<8|e]=n<<4|r},e.prototype.addMany=function(e,t,n,r){for(var i=0;i1)throw new Error("only one byte as prefix supported");if((n=e.prefix.charCodeAt(0))&&60>n||n>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var r=0;ri||i>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");n<<=8,n|=i}}if(1!==e["final"].length)throw new Error("final must be a single byte");var o=e["final"].charCodeAt(0);if(t[0]>o||o>t[1])throw new Error("final must be in range "+t[0]+" .. "+t[1]);return n<<=8,n|o},n.prototype.identToString=function(e){for(var t=[];e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")},n.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},n.prototype.setPrintHandler=function(e){this._printHandler=e},n.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},n.prototype.addEscHandler=function(e,t){var n=this._identifier(e,[48,126]);void 0===this._escHandlers[n]&&(this._escHandlers[n]=[]);var r=this._escHandlers[n];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},n.prototype.setEscHandler=function(e,t){this._escHandlers[this._identifier(e,[48,126])]=[t]},n.prototype.clearEscHandler=function(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]},n.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},n.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},n.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},n.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},n.prototype.addCsiHandler=function(e,t){var n=this._identifier(e);void 0===this._csiHandlers[n]&&(this._csiHandlers[n]=[]);var r=this._csiHandlers[n];return r.push(t),{dispose:function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}},n.prototype.setCsiHandler=function(e,t){this._csiHandlers[this._identifier(e)]=[t]},n.prototype.clearCsiHandler=function(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]},n.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},n.prototype.addDcsHandler=function(e,t){return this._dcsParser.addHandler(this._identifier(e),t)},n.prototype.setDcsHandler=function(e,t){this._dcsParser.setHandler(this._identifier(e),t)},n.prototype.clearDcsHandler=function(e){this._dcsParser.clearHandler(this._identifier(e))},n.prototype.setDcsHandlerFallback=function(e){this._dcsParser.setHandlerFallback(e)},n.prototype.addOscHandler=function(e,t){return this._oscParser.addHandler(e,t)},n.prototype.setOscHandler=function(e,t){this._oscParser.setHandler(e,t)},n.prototype.clearOscHandler=function(e){this._oscParser.clearHandler(e)},n.prototype.setOscHandlerFallback=function(e){this._oscParser.setHandlerFallback(e)},n.prototype.setErrorHandler=function(e){this._errorHandler=e},n.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},n.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},n.prototype.parse=function(e,t){for(var n=0,r=0,i=this.currentState,o=this._oscParser,a=this._dcsParser,s=this._collect,l=this._params,c=this._transitions.table,u=0;u>4){case 2:for(var d=u+1;;++d){if(d>=t||(n=e[d])<32||n>126&&n<160){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(n=e[d])<32||n>126&&n<160){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(n=e[d])<32||n>126&&n<160){this._printHandler(e,u,d),u=d-1;break}if(++d>=t||(n=e[d])<32||n>126&&n<160){this._printHandler(e,u,d),u=d-1;break}}break;case 3:this._executeHandlers[n]?this._executeHandlers[n]():this._executeHandlerFb(n),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:u,code:n,currentState:i,collect:s,params:l,abort:!1}).abort)return;break;case 7:for(var h=this._csiHandlers[s<<8|n],f=h?h.length-1:-1;f>=0&&!1===h[f](l);f--);f<0&&this._csiHandlerFb(s<<8|n,l),this.precedingCodepoint=0;break;case 8:do{switch(n){case 59:l.addParam(0);break;case 58:l.addSubParam(-1);break;default:l.addDigit(n-48)}}while(++u47&&n<60);u--;break;case 9:s<<=8,s|=n;break;case 10:for(var p=this._escHandlers[s<<8|n],A=p?p.length-1:-1;A>=0&&!1===p[A]();A--);A<0&&this._escHandlerFb(s<<8|n),this.precedingCodepoint=0;break;case 11:l.reset(),l.addParam(0),s=0;break;case 12:a.hook(s<<8|n,l);break;case 13:for(var g=u+1;;++g)if(g>=t||24===(n=e[g])||26===n||27===n||n>127&&n<160){a.put(e,u,g),u=g-1;break}break;case 14:a.unhook(24!==n&&26!==n),27===n&&(r|=1),l.reset(),l.addParam(0),s=0,this.precedingCodepoint=0;break;case 4:o.start();break;case 5:for(var m=u+1;;m++)if(m>=t||(n=e[m])<32||n>127&&n<=159){o.put(e,u,m),u=m-1;break}break;case 6:o.end(24!==n&&26!==n),27===n&&(r|=1),l.reset(),l.addParam(0),s=0,this.precedingCodepoint=0}i=15&r}this._collect=s,this.currentState=i},n}(o.Disposable);t.EscapeSequenceParser=d},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Renderer=void 0;var s=n(41),l=n(47),c=n(48),u=n(49),d=n(29),h=n(2),f=n(5),p=n(1),A=n(25),g=n(0),m=1,v=function(e){function t(t,n,r,i,o,a,h,f,p){var A=e.call(this)||this;A._colors=t,A._screenElement=n,A._bufferService=o,A._charSizeService=a,A._optionsService=h,A._id=m++,A._onRequestRedraw=new g.EventEmitter;var v=A._optionsService.options.allowTransparency;return A._characterJoinerRegistry=new d.CharacterJoinerRegistry(A._bufferService),A._renderLayers=[new s.TextRenderLayer(A._screenElement,0,A._colors,A._characterJoinerRegistry,v,A._id,A._bufferService,h),new l.SelectionRenderLayer(A._screenElement,1,A._colors,A._id,A._bufferService,h),new u.LinkRenderLayer(A._screenElement,2,A._colors,A._id,r,i,A._bufferService,h),new c.CursorRenderLayer(A._screenElement,3,A._colors,A._id,A._onRequestRedraw,A._bufferService,h,f,p)],A.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},A._devicePixelRatio=window.devicePixelRatio,A._updateDimensions(),A.onOptionsChanged(),A}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){for(var t=0,n=this._renderLayers;t0&&u===s[0][0]){h=!0;var p=s.shift();d=new c.JoinedCellData(this._workCell,a.translateToString(!0,p[0],p[1]),p[1]-p[0]),f=p[1]-1}!h&&this._isOverlapping(d)&&fthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n,n},t}(a.BaseRenderLayer);t.TextRenderLayer=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0;var r=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var n=0;n>>24,i=t.rgba>>>16&255,o=t.rgba>>>8&255,a=0;a=this.capacity)n=this._head,this._unlinkNode(n),delete this._map[n.key],n.key=e,n.value=t,this._map[e]=n;else{var r=this._nodePool;r.length>0?((n=r.pop()).key=e,n.value=t):n={prev:null,next:null,key:e,value:t},this._map[e]=n,this.size++}this._appendNode(n)},e}();t.LRUMap=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;var o=function(e){function t(t,n,r,i,o,a){var s=e.call(this,t,"selection",n,!0,r,i,o,a)||this;return s._clearState(),s}return i(t,e),t.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._clearState()},t.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},t.prototype.onSelectionChanged=function(e,t,n){if(this._didStateChange(e,t,n,this._bufferService.buffer.ydisp))if(this._clearAll(),e&&t){var r=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(r,0),a=Math.min(i,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,n){var s=e[0],l=t[0]-s,c=a-o+1;this._fillCells(s,o,l,c)}else{s=r===o?e[0]:0;var u=o===a?t[0]:this._bufferService.cols;this._fillCells(s,o,u-s,1);var d=Math.max(a-o-1,0);if(this._fillCells(0,o+1,this._bufferService.cols,d),o!==a){var h=i===a?t[0]:this._bufferService.cols;this._fillCells(0,a,h,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=n,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},t.prototype._didStateChange=function(e,t,n,r){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||r!==this._state.ydisp},t.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]},t}(n(13).BaseRenderLayer);t.SelectionRenderLayer=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;var o=n(13),a=n(4),s=function(e){function t(t,n,r,i,o,s,l,c,u){var d=e.call(this,t,"cursor",n,!0,r,i,s,l)||this;return d._onRequestRedraw=o,d._coreService=c,d._coreBrowserService=u,d._cell=new a.CellData,d._state={x:0,y:0,isFocused:!1,style:"",width:0},d._cursorRenderers={bar:d._renderBarCursor.bind(d),block:d._renderBlockCursor.bind(d),underline:d._renderUnderlineCursor.bind(d)},d}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},t.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},t.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onOptionsChanged=function(){var e,t=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new l(this._coreBrowserService.isFocused,(function(){t._render(!0)}))):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},t.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype.onGridChanged=function(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(e){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,n=t-this._bufferService.buffer.ydisp;if(n<0||n>=this._bufferService.rows)this._clearCursor();else{var r=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(r,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var i=this._optionsService.options.cursorStyle;return i&&"block"!==i?this._cursorRenderers[i](r,n,this._cell):this._renderBlurCursor(r,n,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=n,this._state.isFocused=!1,this._state.style=i,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&this._state.y===n&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](r,n,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=n,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},t.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},t.prototype._renderBarCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(e,t,n.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(n,e,t),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(e,t,n){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()},t.prototype._renderBlurCursor=function(e,t,n){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(e,t,n.getWidth(),1),this._ctx.restore()},t}(o.BaseRenderLayer);t.CursorRenderLayer=s;var l=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.restartBlinkAnimation=function(){var e=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame((function(){e._renderCallback(),e._animationFrame=void 0}))))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=void 0,e>0)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=void 0})),t._blinkInterval=window.setInterval((function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=void 0,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame((function(){t._renderCallback(),t._animationFrame=void 0}))}),600)}),e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},e.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},e}()},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;var o=n(13),a=n(9),s=n(26),l=function(e){function t(t,n,r,i,o,a,s,l){var c=e.call(this,t,"link",n,!0,r,i,s,l)||this;return o.onShowLinkUnderline((function(e){return c._onShowLinkUnderline(e)})),o.onHideLinkUnderline((function(e){return c._onHideLinkUnderline(e)})),a.onShowLinkUnderline((function(e){return c._onShowLinkUnderline(e)})),a.onHideLinkUnderline((function(e){return c._onHideLinkUnderline(e)})),c}return i(t,e),t.prototype.resize=function(t){e.prototype.resize.call(this,t),this._state=void 0},t.prototype.reset=function(){this._clearCurrentLink()},t.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(e){if(e.fg===a.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg&&s.is256Color(e.fg)?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZone=t.Linkifier=void 0;var o=n(0),a=n(1),s=function(){function e(e,t,n){this._bufferService=e,this._logService=t,this._unicodeService=n,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new o.EventEmitter,this._onHideLinkUnderline=new o.EventEmitter,this._onLinkTooltip=new o.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(e.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),e.prototype.attachToDom=function(e,t){this._element=e,this._mouseZoneManager=t},e.prototype.linkifyRows=function(t,n){var r=this;this._mouseZoneManager&&(void 0===this._rowsToLinkify.start||void 0===this._rowsToLinkify.end?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(t,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout((function(){return r._linkifyRows()}),e._timeBeforeLatency))},e.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var e=this._bufferService.buffer;if(void 0!==this._rowsToLinkify.start&&void 0!==this._rowsToLinkify.end){var t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var n=e.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,r=Math.ceil(2e3/this._bufferService.cols),i=this._bufferService.buffer.iterator(!1,t,n,r,r);i.hasNext();)for(var o=i.next(),a=0;a=0;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},e.prototype.deregisterLinkMatcher=function(e){for(var t=0;t>9&511:void 0;n.validationCallback?n.validationCallback(s,(function(e){i._rowsTimeoutId||e&&i._addLink(c[1],c[0]-i._bufferService.buffer.ydisp,s,n,h)})):l._addLink(c[1],c[0]-l._bufferService.buffer.ydisp,s,n,h)},l=this;null!==(r=o.exec(t));)if("break"===s())break},e.prototype._addLink=function(e,t,n,r,i){var o=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(n),s=e%this._bufferService.cols,c=t+Math.floor(e/this._bufferService.cols),u=(s+a)%this._bufferService.cols,d=c+Math.floor((s+a)/this._bufferService.cols);0===u&&(u=this._bufferService.cols,d--),this._mouseZoneManager.add(new l(s+1,c+1,u+1,d+1,(function(e){if(r.handler)return r.handler(e,n);var t=window.open();t?(t.opener=null,t.location.href=n):console.warn("Opening link blocked as opener could not be cleared")}),(function(){o._onShowLinkUnderline.fire(o._createLinkHoverEvent(s,c,u,d,i)),o._element.classList.add("xterm-cursor-pointer")}),(function(e){o._onLinkTooltip.fire(o._createLinkHoverEvent(s,c,u,d,i)),r.hoverTooltipCallback&&r.hoverTooltipCallback(e,n,{start:{x:s,y:c},end:{x:u,y:d}})}),(function(){o._onHideLinkUnderline.fire(o._createLinkHoverEvent(s,c,u,d,i)),o._element.classList.remove("xterm-cursor-pointer"),r.hoverLeaveCallback&&r.hoverLeaveCallback()}),(function(e){return!r.willLinkActivate||r.willLinkActivate(e,n)})))}},e.prototype._createLinkHoverEvent=function(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}},e._timeBeforeLatency=200,e=r([i(0,a.IBufferService),i(1,a.ILogService),i(2,a.IUnicodeService)],e)}();t.Linkifier=s;var l=function(e,t,n,r,i,o,a,s,l){this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.clickCallback=i,this.hoverCallback=o,this.tooltipCallback=a,this.leaveCallback=s,this.willLinkActivate=l};t.MouseZone=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;var s=n(11),l=n(52),c=n(4),u=n(0),d=n(5),h=n(1),f=n(30),p=n(53),A=n(2),g=String.fromCharCode(160),m=new RegExp(g,"g"),v=function(e){function t(t,n,r,i,o,a,s){var d=e.call(this)||this;return d._element=t,d._screenElement=n,d._bufferService=r,d._coreService=i,d._mouseService=o,d._optionsService=a,d._renderService=s,d._dragScrollAmount=0,d._enabled=!0,d._workCell=new c.CellData,d._mouseDownTimeStamp=0,d._onLinuxMouseSelection=d.register(new u.EventEmitter),d._onRedrawRequest=d.register(new u.EventEmitter),d._onSelectionChange=d.register(new u.EventEmitter),d._onRequestScrollLines=d.register(new u.EventEmitter),d._mouseMoveListener=function(e){return d._onMouseMove(e)},d._mouseUpListener=function(e){return d._onMouseUp(e)},d._coreService.onUserInput((function(){d.hasSelection&&d.clearSelection()})),d._trimListener=d._bufferService.buffer.lines.onTrim((function(e){return d._onTrim(e)})),d.register(d._bufferService.buffers.onBufferActivate((function(e){return d._onBufferActivate(e)}))),d.enable(),d._model=new l.SelectionModel(d._bufferService),d._activeSelectionMode=0,d}return i(t,e),Object.defineProperty(t.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._removeMouseDownListeners()},t.prototype.reset=function(){this.clearSelection()},t.prototype.disable=function(){this.clearSelection(),this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=this._bufferService.buffer,r=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[1];i<=t[1];i++){var o=n.translateBufferLineToString(i,!0,e[0],t[0]);r.push(o)}}else{var a=e[1]===t[1]?t[0]:void 0;for(r.push(n.translateBufferLineToString(e[1],!0,e[0],a)),i=e[1]+1;i<=t[1]-1;i++){var l=n.lines.get(i);o=n.translateBufferLineToString(i,!0),l&&l.isWrapped?r[r.length-1]+=o:r.push(o)}e[1]!==t[1]&&(l=n.lines.get(t[1]),o=n.translateBufferLineToString(t[1],!0,0,t[0]),l&&l.isWrapped?r[r.length-1]+=o:r.push(o))}return r.map((function(e){return e.replace(m," ")})).join(s.isWindows?"\r\n":"\n")},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},t.prototype.refresh=function(e){var t=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame((function(){return t._refresh()}))),s.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},t.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},t.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,r=this._model.finalSelectionEnd;return!!(n&&r&&t)&&this._areCoordsInSelection(t,n,r)},t.prototype._areCoordsInSelection=function(e,t,n){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]},t.prototype.selectWordAtCursor=function(e){var t=this._getMouseBufferCoords(e);t&&(this._selectWordAt(t,!1),this._model.selectionEnd=void 0,this.refresh(!0))},t.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},t.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()},t.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},t.prototype._getMouseBufferCoords=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t},t.prototype._getMouseEventScrollAmount=function(e){var t=f.getCoordsRelativeToElement(e,this._screenElement)[1],n=this._renderService.dimensions.canvasHeight;return t>=0&&t<=n?0:(t>n&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},t.prototype.shouldForceSelection=function(e){return s.isMac?e.altKey&&this._optionsService.options.macOptionClickForcesSelection:e.shiftKey},t.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},t.prototype._addMouseDownListeners=function(){var e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval((function(){return e._dragScroll()}),50)},t.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},t.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},t.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=void 0;var t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}},t.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},t.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},t.prototype.shouldColumnSelect=function(e){return e.altKey&&!(s.isMac&&this._optionsService.options.macOptionClickForcesSelection)},t.prototype._onMouseMove=function(e){if(e.stopImmediatePropagation(),this._model.selectionStart){var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var n=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}},t.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var n=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(n&&void 0!==n[0]&&void 0!==n[1]){var r=p.moveToCellSequence(n[0]-1,n[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(r,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},t.prototype._onBufferActivate=function(e){var t=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((function(e){return t._onTrim(e)}))},t.prototype._convertViewportColToCharacterIndex=function(e,t){for(var n=t[0],r=0;t[0]>=r;r++){var i=e.loadCell(r,this._workCell).getChars().length;0===this._workCell.getWidth()?n--:i>1&&t[0]!==r&&(n+=i-1)}return n},t.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},t.prototype._getWordAt=function(e,t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!0),!(e[0]>=this._bufferService.cols)){var i=this._bufferService.buffer,o=i.lines.get(e[1]);if(o){var a=i.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(o,e),l=s,c=e[0]-s,u=0,d=0,h=0,f=0;if(" "===a.charAt(s)){for(;s>0&&" "===a.charAt(s-1);)s--;for(;l1&&(f+=g-1,l+=g-1);p>0&&s>0&&!this._isCharWordSeparator(o.loadCell(p-1,this._workCell));){o.loadCell(p-1,this._workCell);var m=this._workCell.getChars().length;0===this._workCell.getWidth()?(u++,p--):m>1&&(h+=m-1,s-=m-1),s--,p--}for(;A1&&(f+=v-1,l+=v-1),l++,A++}}l++;var y=s+c-u+h,b=Math.min(this._bufferService.cols,l-s+u+d-h-f);if(t||""!==a.slice(s,l).trim()){if(n&&0===y&&32!==o.getCodePoint(0)){var _=i.lines.get(e[1]-1);if(_&&o.isWrapped&&32!==_.getCodePoint(this._bufferService.cols-1)){var w=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(w){var x=this._bufferService.cols-w.start;y-=x,b+=x}}}if(r&&y+b===this._bufferService.cols&&32!==o.getCodePoint(this._bufferService.cols-1)){var C=i.lines.get(e[1]+1);if(C&&C.isWrapped&&32!==C.getCodePoint(0)){var S=this._getWordAt([0,e[1]+1],!1,!1,!0);S&&(b+=S.length)}}return{start:y,length:b}}}}},t.prototype._selectWordAt=function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}},t.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._bufferService.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}},t.prototype._isCharWordSeparator=function(e){return 0!==e.getWidth()&&this._optionsService.options.wordSeparator.indexOf(e.getChars())>=0},t.prototype._selectLineAt=function(e){var t=this._bufferService.buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._bufferService.cols,t.last],this._model.selectionStartLength=0},o([a(2,h.IBufferService),a(3,h.ICoreService),a(4,d.IMouseService),a(5,h.IOptionsService),a(6,d.IRenderService)],t)}(A.Disposable);t.SelectionService=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0;var r=function(){function e(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}return e.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;var r=n(12);function i(e,t,n,r){var i=e-o(n,e),s=t-o(n,t);return c(Math.abs(i-s)-function(e,t,n){for(var r=0,i=e-o(n,e),s=t-o(n,t),l=0;l=0&&tt?"A":"B"}function s(e,t,n,r,i,o){for(var a=e,s=t,l="";a!==n||s!==r;)a+=i?1:-1,i&&a>o.cols-1?(l+=o.buffer.translateBufferLineToString(s,!1,e,a),a=0,e=0,s++):!i&&a<0&&(l+=o.buffer.translateBufferLineToString(s,!1,0,e+1),e=a=o.cols-1,s--);return l+o.buffer.translateBufferLineToString(s,!1,e,a)}function l(e,t){var n=t?"O":"[";return r.C0.ESC+n+e}function c(e,t){e=Math.floor(e);for(var n="",r=0;r0?r-o(a,r):t;var h=r,f=function(e,t,n,r,a,s){var l;return l=i(n,r,a,s).length>0?r-o(a,r):t,e=n&&le?"D":"C",c(Math.abs(u-e),l(a,r));a=d>t?"D":"C";var h=Math.abs(d-t);return c(function(e,t){return t.cols-e}(d>t?e:u,n)+(h-1)*n.cols+1+((d>t?u:e)-1),l(a,r))}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SoundService=void 0;var o=n(1),a=function(){function e(e){this._optionsService=e}return Object.defineProperty(e,"audioContext",{get:function(){if(!e._audioContext){var t=window.AudioContext||window.webkitAudioContext;if(!t)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;e._audioContext=new t}return e._audioContext},enumerable:!1,configurable:!0}),e.prototype.playBellSound=function(){var t=e.audioContext;if(t){var n=t.createBufferSource();t.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),(function(e){n.buffer=e,n.connect(t.destination),n.start(0)}))}},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),n=t.length,r=new Uint8Array(n),i=0;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseZoneManager=void 0;var s=n(2),l=n(7),c=n(5),u=n(1),d=function(e){function t(t,n,r,i,o,a){var s=e.call(this)||this;return s._element=t,s._screenElement=n,s._bufferService=r,s._mouseService=i,s._selectionService=o,s._optionsService=a,s._zones=[],s._areZonesActive=!1,s._lastHoverCoords=[void 0,void 0],s._initialSelectionLength=0,s.register(l.addDisposableDomListener(s._element,"mousedown",(function(e){return s._onMouseDown(e)}))),s._mouseMoveListener=function(e){return s._onMouseMove(e)},s._mouseLeaveListener=function(e){return s._onMouseLeave(e)},s._clickListener=function(e){return s._onClick(e)},s}return i(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},t.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},t.prototype.clearAll=function(e,t){if(0!==this._zones.length){e&&t||(e=0,t=this._bufferService.rows-1);for(var n=0;ne&&r.y1<=t+1||r.y2>e&&r.y2<=t+1||r.y1t+1)&&(this._currentZone&&this._currentZone===r&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},t.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},t.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},t.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},t.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&(this._currentZone=n,n.hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=window.setTimeout((function(){return t._onTooltip(e)}),this._optionsService.options.linkTooltipHoverDuration)))},t.prototype._onTooltip=function(e){this._tooltipTimeout=void 0;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},t.prototype._onMouseDown=function(e){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var t=this._findZoneEventAt(e);(null==t?void 0:t.willLinkActivate(e))&&(e.preventDefault(),e.stopImmediatePropagation())}},t.prototype._onMouseLeave=function(e){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},t.prototype._onClick=function(e){var t=this._findZoneEventAt(e),n=this._getSelectionLength();t&&n===this._initialSelectionLength&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._getSelectionLength=function(){var e=this._selectionService.selectionText;return e?e.length:0},t.prototype._findZoneEventAt=function(e){var t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(t)for(var n=t[0],r=t[1],i=0;i=o.x1&&n=o.x1||r===o.y2&&no.y1&&re;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},t.prototype._onTab=function(e){for(var t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=o.tooMuchOutput)),a.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)}),0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,a.isMac&&d.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},t.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)},t.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,r=n.lines.length.toString(),i=e;i<=t;i++){var o=n.translateBufferLineToString(n.ydisp+i,!0),a=(n.ydisp+i+1).toString(),s=this._rowElements[i];s&&(0===o.length?s.innerHTML=" ":s.textContent=o,s.setAttribute("aria-posinset",a),s.setAttribute("aria-setsize",r))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;var s=n(58),l=n(9),c=n(2),u=n(5),d=n(1),h=n(0),f=n(10),p=n(17),A=1,g=function(e){function t(t,n,r,i,o,a,l,c,u){var d=e.call(this)||this;return d._colors=t,d._element=n,d._screenElement=r,d._viewportElement=i,d._linkifier=o,d._linkifier2=a,d._charSizeService=l,d._optionsService=c,d._bufferService=u,d._terminalClass=A++,d._rowElements=[],d._rowContainer=document.createElement("div"),d._rowContainer.classList.add("xterm-rows"),d._rowContainer.style.lineHeight="normal",d._rowContainer.setAttribute("aria-hidden","true"),d._refreshRowElements(d._bufferService.cols,d._bufferService.rows),d._selectionContainer=document.createElement("div"),d._selectionContainer.classList.add("xterm-selection"),d._selectionContainer.setAttribute("aria-hidden","true"),d.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},d._updateDimensions(),d._injectCss(),d._rowFactory=new s.DomRendererRowFactory(document,d._optionsService,d._colors),d._element.classList.add("xterm-dom-renderer-owner-"+d._terminalClass),d._screenElement.appendChild(d._rowContainer),d._screenElement.appendChild(d._selectionContainer),d._linkifier.onShowLinkUnderline((function(e){return d._onLinkHover(e)})),d._linkifier.onHideLinkUnderline((function(e){return d._onLinkLeave(e)})),d._linkifier2.onShowLinkUnderline((function(e){return d._onLinkHover(e)})),d._linkifier2.onHideLinkUnderline((function(e){return d._onLinkLeave(e)})),d}return i(t,e),Object.defineProperty(t.prototype,"onRequestRedraw",{get:function(){return(new h.EventEmitter).event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),p.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),e.prototype.dispose.call(this)},t.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var e=0,t=this._rowElements;et;)this._rowContainer.removeChild(this._rowElements.pop())},t.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},t.prototype.onCharSizeChanged=function(){this._updateDimensions()},t.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},t.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},t.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var r=e[1]-this._bufferService.buffer.ydisp,i=t[1]-this._bufferService.buffer.ydisp,o=Math.max(r,0),a=Math.min(i,this._bufferService.rows-1);if(!(o>=this._bufferService.rows||a<0)){var s=document.createDocumentFragment();if(n)s.appendChild(this._createSelectionElement(o,e[0],t[0],a-o+1));else{var l=r===o?e[0]:0,c=o===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(o,l,c));var u=a-o-1;if(s.appendChild(this._createSelectionElement(o+1,0,this._bufferService.cols,u)),o!==a){var d=i===a?t[0]:this._bufferService.cols;s.appendChild(this._createSelectionElement(a,0,d))}}this._selectionContainer.appendChild(s)}}},t.prototype._createSelectionElement=function(e,t,n,r){void 0===r&&(r=1);var i=document.createElement("div");return i.style.height=r*this.dimensions.actualCellHeight+"px",i.style.top=e*this.dimensions.actualCellHeight+"px",i.style.left=t*this.dimensions.actualCellWidth+"px",i.style.width=this.dimensions.actualCellWidth*(n-t)+"px",i},t.prototype.onCursorMove=function(){},t.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},t.prototype.clear=function(){for(var e=0,t=this._rowElements;e=i&&(e=0,n++)}},o([a(6,u.ICharSizeService),a(7,d.IOptionsService),a(8,d.IBufferService)],t)}(c.Disposable);t.DomRenderer=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;var r=n(9),i=n(3),o=n(4),a=n(10);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var s=function(){function e(e,t,n){this._document=e,this._optionsService=t,this._colors=n,this._workCell=new o.CellData}return e.prototype.setColors=function(e){this._colors=e},e.prototype.createRow=function(e,n,o,s,c,u,d){for(var h=this._document.createDocumentFragment(),f=0,p=Math.min(e.length,d)-1;p>=0;p--)if(e.loadCell(p,this._workCell).getCode()!==i.NULL_CELL_CODE||n&&p===s){f=p+1;break}for(p=0;p1&&(g.style.width=u*A+"px"),n&&p===s)switch(g.classList.add(t.CURSOR_CLASS),c&&g.classList.add(t.CURSOR_BLINK_CLASS),o){case"bar":g.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":g.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:g.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&g.classList.add(t.BOLD_CLASS),this._workCell.isItalic()&&g.classList.add(t.ITALIC_CLASS),this._workCell.isDim()&&g.classList.add(t.DIM_CLASS),this._workCell.isUnderline()&&g.classList.add(t.UNDERLINE_CLASS),this._workCell.isInvisible()?g.textContent=i.WHITESPACE_CELL_CHAR:g.textContent=this._workCell.getChars()||i.WHITESPACE_CELL_CHAR;var m=this._workCell.getFgColor(),v=this._workCell.getFgColorMode(),y=this._workCell.getBgColor(),b=this._workCell.getBgColorMode(),_=!!this._workCell.isInverse();if(_){var w=m;m=y,y=w;var x=v;v=b,b=x}switch(v){case 16777216:case 33554432:this._workCell.isBold()&&m<8&&this._optionsService.options.drawBoldTextInBrightColors&&(m+=8),this._applyMinimumContrast(g,this._colors.background,this._colors.ansi[m])||g.classList.add("xterm-fg-"+m);break;case 50331648:var C=a.rgba.toColor(m>>16&255,m>>8&255,255&m);this._applyMinimumContrast(g,this._colors.background,C)||this._addStyle(g,"color:#"+l(m.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(g,this._colors.background,this._colors.foreground)||_&&g.classList.add("xterm-fg-"+r.INVERTED_DEFAULT_COLOR)}switch(b){case 16777216:case 33554432:g.classList.add("xterm-bg-"+y);break;case 50331648:this._addStyle(g,"background-color:#"+l(y.toString(16),"0",6));break;case 0:default:_&&g.classList.add("xterm-bg-"+r.INVERTED_DEFAULT_COLOR)}h.appendChild(g)}}return h},e.prototype._applyMinimumContrast=function(e,t,n){if(1===this._optionsService.options.minimumContrastRatio)return!1;var r=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return void 0===r&&(r=a.color.ensureContrastRatio(t,n,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,null!=r?r:null)),!!r&&(this._addStyle(e,"color:"+r.css),!0)},e.prototype._addStyle=function(e,t){e.setAttribute("style",""+(e.getAttribute("style")||"")+t+";")},e}();function l(e,t,n){for(;e.length"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,o){var a={type:0,cancel:!1,key:void 0},s=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?a.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?a.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?a.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(a.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B");break;case 8:if(e.shiftKey){a.key=r.C0.BS;break}if(e.altKey){a.key=r.C0.ESC+r.C0.DEL;break}a.key=r.C0.DEL;break;case 9:if(e.shiftKey){a.key=r.C0.ESC+"[Z";break}a.key=r.C0.HT,a.cancel=!0;break;case 13:a.key=e.altKey?r.C0.ESC+r.C0.CR:r.C0.CR,a.cancel=!0;break;case 27:a.key=r.C0.ESC,e.altKey&&(a.key=r.C0.ESC+r.C0.ESC),a.cancel=!0;break;case 37:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"D",a.key===r.C0.ESC+"[1;3D"&&(a.key=r.C0.ESC+(n?"b":"[1;5D"))):a.key=t?r.C0.ESC+"OD":r.C0.ESC+"[D";break;case 39:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"C",a.key===r.C0.ESC+"[1;3C"&&(a.key=r.C0.ESC+(n?"f":"[1;5C"))):a.key=t?r.C0.ESC+"OC":r.C0.ESC+"[C";break;case 38:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"A",n||a.key!==r.C0.ESC+"[1;3A"||(a.key=r.C0.ESC+"[1;5A")):a.key=t?r.C0.ESC+"OA":r.C0.ESC+"[A";break;case 40:if(e.metaKey)break;s?(a.key=r.C0.ESC+"[1;"+(s+1)+"B",n||a.key!==r.C0.ESC+"[1;3B"||(a.key=r.C0.ESC+"[1;5B")):a.key=t?r.C0.ESC+"OB":r.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(a.key=r.C0.ESC+"[2~");break;case 46:a.key=s?r.C0.ESC+"[3;"+(s+1)+"~":r.C0.ESC+"[3~";break;case 36:a.key=s?r.C0.ESC+"[1;"+(s+1)+"H":t?r.C0.ESC+"OH":r.C0.ESC+"[H";break;case 35:a.key=s?r.C0.ESC+"[1;"+(s+1)+"F":t?r.C0.ESC+"OF":r.C0.ESC+"[F";break;case 33:e.shiftKey?a.type=2:a.key=r.C0.ESC+"[5~";break;case 34:e.shiftKey?a.type=3:a.key=r.C0.ESC+"[6~";break;case 112:a.key=s?r.C0.ESC+"[1;"+(s+1)+"P":r.C0.ESC+"OP";break;case 113:a.key=s?r.C0.ESC+"[1;"+(s+1)+"Q":r.C0.ESC+"OQ";break;case 114:a.key=s?r.C0.ESC+"[1;"+(s+1)+"R":r.C0.ESC+"OR";break;case 115:a.key=s?r.C0.ESC+"[1;"+(s+1)+"S":r.C0.ESC+"OS";break;case 116:a.key=s?r.C0.ESC+"[15;"+(s+1)+"~":r.C0.ESC+"[15~";break;case 117:a.key=s?r.C0.ESC+"[17;"+(s+1)+"~":r.C0.ESC+"[17~";break;case 118:a.key=s?r.C0.ESC+"[18;"+(s+1)+"~":r.C0.ESC+"[18~";break;case 119:a.key=s?r.C0.ESC+"[19;"+(s+1)+"~":r.C0.ESC+"[19~";break;case 120:a.key=s?r.C0.ESC+"[20;"+(s+1)+"~":r.C0.ESC+"[20~";break;case 121:a.key=s?r.C0.ESC+"[21;"+(s+1)+"~":r.C0.ESC+"[21~";break;case 122:a.key=s?r.C0.ESC+"[23;"+(s+1)+"~":r.C0.ESC+"[23~";break;case 123:a.key=s?r.C0.ESC+"[24;"+(s+1)+"~":r.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!o||!e.altKey||e.metaKey)n&&!e.altKey&&!e.ctrlKey&&e.metaKey?65===e.keyCode&&(a.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?a.key=e.key:e.key&&e.ctrlKey&&"_"===e.key&&(a.key=r.C0.US);else{var l=i[e.keyCode],c=l&&l[e.shiftKey?1:0];if(c)a.key=r.C0.ESC+c;else if(e.keyCode>=65&&e.keyCode<=90){var u=e.ctrlKey?e.keyCode-64:e.keyCode+32;a.key=r.C0.ESC+String.fromCharCode(u)}}else e.keyCode>=65&&e.keyCode<=90?a.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?a.key=r.C0.NUL:e.keyCode>=51&&e.keyCode<=55?a.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?a.key=r.C0.DEL:219===e.keyCode?a.key=r.C0.ESC:220===e.keyCode?a.key=r.C0.FS:221===e.keyCode&&(a.key=r.C0.GS)}return a}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;var s=n(31),l=n(0),c=n(2),u=n(32),d=n(7),h=n(1),f=n(5),p=function(e){function t(t,n,r,i,o,a){var c=e.call(this)||this;if(c._renderer=t,c._rowCount=n,c._isPaused=!1,c._needsFullRefresh=!1,c._isNextRenderRedrawOnly=!0,c._needsSelectionRefresh=!1,c._canvasWidth=0,c._canvasHeight=0,c._selectionState={start:void 0,end:void 0,columnSelectMode:!1},c._onDimensionsChange=new l.EventEmitter,c._onRender=new l.EventEmitter,c._onRefreshRequest=new l.EventEmitter,c.register({dispose:function(){return c._renderer.dispose()}}),c._renderDebouncer=new s.RenderDebouncer((function(e,t){return c._renderRows(e,t)})),c.register(c._renderDebouncer),c._screenDprMonitor=new u.ScreenDprMonitor,c._screenDprMonitor.setListener((function(){return c.onDevicePixelRatioChange()})),c.register(c._screenDprMonitor),c.register(a.onResize((function(e){return c._fullRefresh()}))),c.register(i.onOptionChange((function(){return c._renderer.onOptionsChanged()}))),c.register(o.onCharSizeChange((function(){return c.onCharSizeChanged()}))),c._renderer.onRequestRedraw((function(e){return c.refreshRows(e.start,e.end,!0)})),c.register(d.addDisposableDomListener(window,"resize",(function(){return c.onDevicePixelRatioChange()}))),"IntersectionObserver"in window){var h=new IntersectionObserver((function(e){return c._onIntersectionChange(e[e.length-1])}),{threshold:0});h.observe(r),c.register({dispose:function(){return h.disconnect()}})}return c}return i(t,e),Object.defineProperty(t.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),t.prototype._onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},t.prototype.refreshRows=function(e,t,n){void 0===n&&(n=!1),this._isPaused?this._needsFullRefresh=!0:(n||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))},t.prototype._renderRows=function(e,t){this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0},t.prototype.resize=function(e,t){this._rowCount=t,this._fireOnCanvasResize()},t.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},t.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setRenderer=function(e){var t=this;this._renderer.dispose(),this._renderer=e,this._renderer.onRequestRedraw((function(e){return t.refreshRows(e.start,e.end,!0)})),this._needsSelectionRefresh=!0,this._fullRefresh()},t.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},t.prototype.setColors=function(e){this._renderer.setColors(e),this._fullRefresh()},t.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},t.prototype.onResize=function(e,t){this._renderer.onResize(e,t),this._fullRefresh()},t.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},t.prototype.onBlur=function(){this._renderer.onBlur()},t.prototype.onFocus=function(){this._renderer.onFocus()},t.prototype.onSelectionChanged=function(e,t,n){this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=n,this._renderer.onSelectionChanged(e,t,n)},t.prototype.onCursorMove=function(){this._renderer.onCursorMove()},t.prototype.clear=function(){this._renderer.clear()},t.prototype.registerCharacterJoiner=function(e){return this._renderer.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){return this._renderer.deregisterCharacterJoiner(e)},o([a(3,h.IOptionsService),a(4,f.ICharSizeService),a(5,h.IBufferService)],t)}(c.Disposable);t.RenderService=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;var o=n(1),a=n(0),s=function(){function e(e,t,n){this._optionsService=n,this.width=0,this.height=0,this._onCharSizeChange=new a.EventEmitter,this._measureStrategy=new l(e,t,this._optionsService)}return Object.defineProperty(e.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),e.prototype.measure=function(){var e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())},r([i(2,o.IOptionsService)],e)}();t.CharSizeService=s;var l=function(){function e(e,t,n){this._document=e,this._parentElement=t,this._optionsService=n,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return e.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result},e}()},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;var o=n(5),a=n(30),s=function(){function e(e,t){this._renderService=e,this._charSizeService=t}return e.prototype.getCoords=function(e,t,n,r,i){return a.getCoords(e,t,n,r,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,i)},e.prototype.getRawByteCoords=function(e,t,n,r){var i=this.getCoords(e,t,n,r);return a.getRawByteCoords(i)},r([i(0,o.IRenderService),i(1,o.ICharSizeService)],e)}();t.MouseService=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;var s=n(1),l=n(0),c=n(2),u=n(7),d=function(e){function t(t){var n=e.call(this)||this;return n._bufferService=t,n._linkProviders=[],n._linkCacheDisposables=[],n._isMouseOut=!0,n._activeLine=-1,n._onShowLinkUnderline=n.register(new l.EventEmitter),n._onHideLinkUnderline=n.register(new l.EventEmitter),n.register(c.getDisposeArrayDisposable(n._linkCacheDisposables)),n}return i(t,e),Object.defineProperty(t.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),t.prototype.registerLinkProvider=function(e){var t=this;return this._linkProviders.push(e),{dispose:function(){var n=t._linkProviders.indexOf(e);-1!==n&&t._linkProviders.splice(n,1)}}},t.prototype.attachToDom=function(e,t,n){var r=this;this._element=e,this._mouseService=t,this._renderService=n,this.register(u.addDisposableDomListener(this._element,"mouseleave",(function(){r._isMouseOut=!0,r._clearCurrentLink()}))),this.register(u.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(u.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},t.prototype._onMouseMove=function(e){if(this._lastMouseEvent=e,this._element&&this._mouseService){var t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(t){this._isMouseOut=!1;for(var n=e.composedPath(),r=0;re?this._bufferService.cols:a.link.range.end.x,c=s;c<=l;c++){if(n.has(c)){i.splice(o--,1);break}n.add(c)}}},t.prototype._checkLinkProviderResult=function(e,t,n){var r,i=this;if(!this._activeProviderReplies)return n;for(var o=this._activeProviderReplies.get(e),a=!1,s=0;s=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,c.disposeArray(this._linkCacheDisposables))},t.prototype._handleNewLink=function(e){var t=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(e.link,n)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.pointerCursor},set:function(e){var n,r;(null===(n=t._currentLink)||void 0===n?void 0:n.state)&&t._currentLink.state.decorations.pointerCursor!==e&&(t._currentLink.state.decorations.pointerCursor=e,t._currentLink.state.isHovered&&(null===(r=t._element)||void 0===r||r.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:function(){var e,n;return null===(n=null===(e=t._currentLink)||void 0===e?void 0:e.state)||void 0===n?void 0:n.decorations.underline},set:function(n){var r,i,o;(null===(r=t._currentLink)||void 0===r?void 0:r.state)&&(null===(o=null===(i=t._currentLink)||void 0===i?void 0:i.state)||void 0===o?void 0:o.decorations.underline)!==n&&(t._currentLink.state.decorations.underline=n,t._currentLink.state.isHovered&&t._fireUnderlineEvent(e.link,n))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange((function(e){var n=0===e.start?0:e.start+1+t._bufferService.buffer.ydisp;t._clearCurrentLink(n,e.end+1+t._bufferService.buffer.ydisp)}))))}},t.prototype._linkHover=function(e,t,n){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(n,t.text)},t.prototype._fireUnderlineEvent=function(e,t){var n=e.range,r=this._bufferService.buffer.ydisp,i=this._createLinkUnderlineEvent(n.start.x-1,n.start.y-r-1,n.end.x,n.end.y-r-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(i)},t.prototype._linkLeave=function(e,t,n){var r;(null===(r=this._currentLink)||void 0===r?void 0:r.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(n,t.text)},t.prototype._linkAtPosition=function(e,t){var n=e.range.start.y===e.range.end.y,r=e.range.start.yt.y;return(n&&e.range.start.x<=t.x&&e.range.end.x>=t.x||r&&e.range.end.x>=t.x||i&&e.range.start.x<=t.x||r&&i)&&e.range.start.y<=t.y&&e.range.end.y>=t.y},t.prototype._positionFromMouseEvent=function(e,t,n){var r=n.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(r)return{x:r[0],y:r[1]+this._bufferService.buffer.ydisp}},t.prototype._createLinkUnderlineEvent=function(e,t,n,r,i){return{x1:e,y1:t,x2:n,y2:r,cols:this._bufferService.cols,fg:i}},o([a(0,s.IBufferService)],t)}(c.Disposable);t.Linkifier2=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0;var r=function(){function e(e){this._textarea=e}return Object.defineProperty(e.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),e}();t.CoreBrowserService=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;var o=n(2),a=n(1),s=n(66),l=n(67),c=n(68),u=n(74),d=n(75),h=n(0),f=n(76),p=n(77),A=n(78),g=n(80),m=n(81),v=n(19),y=n(82),b=function(e){function t(t){var n=e.call(this)||this;return n._onBinary=new h.EventEmitter,n._onData=new h.EventEmitter,n._onLineFeed=new h.EventEmitter,n._onResize=new h.EventEmitter,n._onScroll=new h.EventEmitter,n._instantiationService=new s.InstantiationService,n.optionsService=new u.OptionsService(t),n._instantiationService.setService(a.IOptionsService,n.optionsService),n._bufferService=n.register(n._instantiationService.createInstance(c.BufferService)),n._instantiationService.setService(a.IBufferService,n._bufferService),n._logService=n._instantiationService.createInstance(l.LogService),n._instantiationService.setService(a.ILogService,n._logService),n._coreService=n.register(n._instantiationService.createInstance(d.CoreService,(function(){return n.scrollToBottom()}))),n._instantiationService.setService(a.ICoreService,n._coreService),n._coreMouseService=n._instantiationService.createInstance(f.CoreMouseService),n._instantiationService.setService(a.ICoreMouseService,n._coreMouseService),n._dirtyRowService=n._instantiationService.createInstance(p.DirtyRowService),n._instantiationService.setService(a.IDirtyRowService,n._dirtyRowService),n.unicodeService=n._instantiationService.createInstance(A.UnicodeService),n._instantiationService.setService(a.IUnicodeService,n.unicodeService),n._charsetService=n._instantiationService.createInstance(g.CharsetService),n._instantiationService.setService(a.ICharsetService,n._charsetService),n._inputHandler=new v.InputHandler(n._bufferService,n._charsetService,n._coreService,n._dirtyRowService,n._logService,n.optionsService,n._coreMouseService,n.unicodeService),n.register(h.forwardEvent(n._inputHandler.onLineFeed,n._onLineFeed)),n.register(n._inputHandler),n.register(h.forwardEvent(n._bufferService.onResize,n._onResize)),n.register(h.forwardEvent(n._coreService.onData,n._onData)),n.register(h.forwardEvent(n._coreService.onBinary,n._onBinary)),n.register(n.optionsService.onOptionChange((function(e){return n._updateOptions(e)}))),n._writeBuffer=new y.WriteBuffer((function(e){return n._inputHandler.parse(e)})),n}return i(t,e),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){var t;this._isDisposed||(e.prototype.dispose.call(this),null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)},t.prototype.write=function(e,t){this._writeBuffer.write(e,t)},t.prototype.writeSync=function(e){this._writeBuffer.writeSync(e)},t.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,c.MINIMUM_COLS),t=Math.max(t,c.MINIMUM_ROWS),this._bufferService.resize(e,t))},t.prototype.scroll=function(e,t){void 0===t&&(t=!1);var n,r=this._bufferService.buffer;(n=this._cachedBlankLine)&&n.length===this.cols&&n.getFg(0)===e.fg&&n.getBg(0)===e.bg||(n=r.getBlankLine(e,t),this._cachedBlankLine=n),n.isWrapped=t;var i=r.ybase+r.scrollTop,o=r.ybase+r.scrollBottom;if(0===r.scrollTop){var a=r.lines.isFull;o===r.lines.length-1?a?r.lines.recycle().copyFrom(n):r.lines.push(n.clone()):r.lines.splice(o+1,0,n.clone()),a?this._bufferService.isUserScrolling&&(r.ydisp=Math.max(r.ydisp-1,0)):(r.ybase++,this._bufferService.isUserScrolling||r.ydisp++)}else{var s=o-i+1;r.lines.shiftElements(i+1,s-1,-1),r.lines.set(o,n.clone())}this._bufferService.isUserScrolling||(r.ydisp=r.ybase),this._dirtyRowService.markRangeDirty(r.scrollTop,r.scrollBottom),this._onScroll.fire(r.ydisp)},t.prototype.scrollLines=function(e,t){var n=this._bufferService.buffer;if(e<0){if(0===n.ydisp)return;this._bufferService.isUserScrolling=!0}else e+n.ydisp>=n.ybase&&(this._bufferService.isUserScrolling=!1);var r=n.ydisp;n.ydisp=Math.max(Math.min(n.ydisp+e,n.ybase),0),r!==n.ydisp&&(t||this._onScroll.fire(n.ydisp))},t.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},t.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},t.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},t.prototype.scrollToLine=function(e){var t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)},t.prototype.addEscHandler=function(e,t){return this._inputHandler.addEscHandler(e,t)},t.prototype.addDcsHandler=function(e,t){return this._inputHandler.addDcsHandler(e,t)},t.prototype.addCsiHandler=function(e,t){return this._inputHandler.addCsiHandler(e,t)},t.prototype.addOscHandler=function(e,t){return this._inputHandler.addOscHandler(e,t)},t.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},t.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},t.prototype._updateOptions=function(e){var t;switch(e){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}},t.prototype._enableWindowsMode=function(){var e=this;if(!this._windowsMode){var t=[];t.push(this.onLineFeed(m.updateWindowsModeWrappedState.bind(null,this._bufferService))),t.push(this.addCsiHandler({final:"H"},(function(){return m.updateWindowsModeWrappedState(e._bufferService),!1}))),this._windowsMode={dispose:function(){for(var e=0,n=t;e0?i[0].index:t.length;if(t.length!==d)throw new Error("[createInstance] First service dependency of "+e.name+" at position "+(d+1)+" conflicts with "+t.length+" static arguments");return new(e.bind.apply(e,r([void 0],r(t,a))))},e}();t.InstantiationService=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;var s=n(1),l=n(69),c=n(0),u=n(2);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;var d=function(e){function n(n){var r=e.call(this)||this;return r._optionsService=n,r.isUserScrolling=!1,r._onResize=new c.EventEmitter,r.cols=Math.max(n.options.cols,t.MINIMUM_COLS),r.rows=Math.max(n.options.rows,t.MINIMUM_ROWS),r.buffers=new l.BufferSet(n,r),r}return i(n,e),Object.defineProperty(n.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),n.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},n.prototype.resize=function(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:e,rows:t})},n.prototype.reset=function(){this.buffers.dispose(),this.buffers=new l.BufferSet(this._optionsService,this),this.isUserScrolling=!1},o([a(0,s.IOptionsService)],n)}(u.Disposable);t.BufferService=d},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;var o=n(70),a=n(0),s=function(e){function t(t,n){var r=e.call(this)||this;return r._onBufferActivate=r.register(new a.EventEmitter),r._normal=new o.Buffer(!0,t,n),r._normal.fillViewportRows(),r._alt=new o.Buffer(!1,t,n),r._activeBuffer=r._normal,r.setupTabStops(),r}return i(t,e),Object.defineProperty(t.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),t.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},t.prototype.activateAltBuffer=function(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},t.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},t.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},t}(n(2).Disposable);t.BufferSet=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;var r=n(71),i=n(16),o=n(4),a=n(3),s=n(72),l=n(73),c=n(20),u=n(6);t.MAX_BUFFER_SIZE=4294967295;var d=function(){function e(e,t,n){this._hasScrollback=e,this._optionsService=t,this._bufferService=n,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=i.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=o.CellData.fromCharData([0,a.NULL_CELL_CHAR,a.NULL_CELL_WIDTH,a.NULL_CELL_CODE]),this._whitespaceCell=o.CellData.fromCharData([0,a.WHITESPACE_CELL_CHAR,a.WHITESPACE_CELL_WIDTH,a.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return e.prototype.getNullCell=function(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell},e.prototype.getWhitespaceCell=function(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell},e.prototype.getBlankLine=function(e,t){return new i.BufferLine(this._bufferService.cols,this.getNullCell(e),t)},Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:n},e.prototype.fillViewportRows=function(e){if(0===this.lines.length){void 0===e&&(e=i.DEFAULT_ATTR_DATA);for(var t=this._rows;t--;)this.lines.push(this.getBlankLine(e))}},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new r.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this.getNullCell(i.DEFAULT_ATTR_DATA),r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+a+1?(this.ybase--,a++,this.ydisp>0&&this.ydisp--):this.lines.push(new i.BufferLine(e,n)));else for(s=this._rows;s>t;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r0&&(this.lines.trimStart(l),this.ybase=Math.max(this.ybase-l,0),this.ydisp=Math.max(this.ydisp-l,0),this.savedY=Math.max(this.savedY-l,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),a&&(this.y+=a),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(o=0;othis._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))},e.prototype._reflowLarger=function(e,t){var n=s.reflowLargerGetLinesToRemove(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(i.DEFAULT_ATTR_DATA));if(n.length>0){var r=s.reflowLargerCreateNewLayout(this.lines,n);s.reflowLargerApplyNewLayout(this.lines,r.layout),this._reflowLargerAdjustViewport(e,t,r.countRemoved)}},e.prototype._reflowLargerAdjustViewport=function(e,t,n){for(var r=this.getNullCell(i.DEFAULT_ATTR_DATA),o=n;o-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;a--){var l=this.lines.get(a);if(!(!l||!l.isWrapped&&l.getTrimmedLength()<=e)){for(var c=[l];l.isWrapped&&a>0;)l=this.lines.get(--a),c.unshift(l);var u=this.ybase+this.y;if(!(u>=a&&u0&&(r.push({start:a+c.length+o,newLines:A}),o+=A.length),c.push.apply(c,A);var v=h.length-1,y=h[v];0===y&&(y=h[--v]);for(var b=c.length-f-1,_=d;b>=0;){var w=Math.min(_,y);if(c[v].copyCellsFrom(c[b],_-w,y-w,w,!0),0===(y-=w)&&(y=h[--v]),0===(_-=w)){b--;var x=Math.max(b,0);_=s.getWrappedLineTrimmedLength(c,x,this._cols)}}for(g=0;g0;)0===this.ybase?this.y0){var S=[],k=[];for(g=0;g=0;g--)if(M&&M.start>O+T){for(var I=M.newLines.length-1;I>=0;I--)this.lines.set(g--,M.newLines[I]);g++,S.push({index:O+1,amount:M.newLines.length}),T+=M.newLines.length,M=r[++B]}else this.lines.set(g,k[O--]);var L=0;for(g=S.length-1;g>=0;g--)S[g].index+=L,this.lines.onInsertEmitter.fire(S[g]),L+=S[g].amount;var D=Math.max(0,E+o-this.lines.maxLength);D>0&&this.lines.onTrimEmitter.fire(D)}},e.prototype.stringIndexToBufferIndex=function(e,t,n){for(void 0===n&&(n=!1);t;){var r=this.lines.get(e);if(!r)return[-1,-1];for(var i=n?r.getTrimmedLength():r.length,o=0;o0&&this.lines.get(t).isWrapped;)t--;for(;n+10;);return e>=this._cols?this._cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new l.Marker(e);return this.markers.push(n),n.register(this.lines.onTrim((function(e){n.line-=e,n.line<0&&n.dispose()}))),n.register(this.lines.onInsert((function(e){n.line>=e.index&&(n.line+=e.amount)}))),n.register(this.lines.onDelete((function(e){n.line>=e.index&&n.linee.index&&(n.line-=e.amount)}))),n.register(n.onDispose((function(){return t._removeMarker(n)}))),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,n,r,i){return new h(this,e,t,n,r,i)},e}();t.Buffer=d;var h=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=e.lines.length),void 0===i&&(i=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=r,this._startOverscan=i,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",n=e.first;n<=e.last;++n)t+=this._buffer.translateBufferLineToString(n,this._trimRight);return this._current=e.last+1,{range:e,content:t}},e}();t.BufferStringIterator=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;var r=n(0),i=function(){function e(e){this._maxLength=e,this.onDeleteEmitter=new r.EventEmitter,this.onInsertEmitter=new r.EventEmitter,this.onTrimEmitter=new r.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;nthis._length)for(var t=this._length;t=e;i--)this._array[this._getCyclicIndex(i+n.length)]=this._array[this._getCyclicIndex(i)];for(i=0;ithis._maxLength){var o=this._length+n.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=n.length},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)},e.prototype.shiftElements=function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(n>0){for(var r=t-1;r>=0;r--)this.set(e+r+n,this.get(e+r));var i=e+t+n-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r=s&&i0&&(b>d||0===u[b].getTrimmedLength());b--)y++;y>0&&(a.push(s+u.length-y),a.push(y)),s+=u.length-1}}}return a},t.reflowLargerCreateNewLayout=function(e,t){for(var n=[],r=0,i=t[r],o=0,a=0;ac&&(a-=c,s++);var u=2===e[s].getWidth(a-1);u&&a--;var d=u?n-1:n;i.push(d),l+=d}return i},t.getWrappedLineTrimmedLength=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;var o=n(0),a=function(e){function t(n){var r=e.call(this)||this;return r.line=n,r._id=t._nextId++,r.isDisposed=!1,r._onDispose=new o.EventEmitter,r}return i(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},t._nextId=1,t}(n(2).Disposable);t.Marker=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=t.DEFAULT_BELL_SOUND=void 0;var r=n(0),i=n(11),o=n(33);t.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",t.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:t.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:i.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var a=["cols","rows"],s=function(){function e(e){this._onOptionChange=new r.EventEmitter,this.options=o.clone(t.DEFAULT_OPTIONS);for(var n=0,i=Object.keys(e);n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;var s=n(1),l=n(0),c=n(33),u=n(2),d=Object.freeze({insertMode:!1}),h=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),f=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._bufferService=n,o._logService=r,o._optionsService=i,o.isCursorInitialized=!1,o.isCursorHidden=!1,o._onData=o.register(new l.EventEmitter),o._onUserInput=o.register(new l.EventEmitter),o._onBinary=o.register(new l.EventEmitter),o._scrollToBottom=t,o.register({dispose:function(){return o._scrollToBottom=void 0}}),o.modes=c.clone(d),o.decPrivateModes=c.clone(h),o}return i(t,e),Object.defineProperty(t.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this.modes=c.clone(d),this.decPrivateModes=c.clone(h)},t.prototype.triggerDataEvent=function(e,t){if(void 0===t&&(t=!1),!this._optionsService.options.disableStdin){var n=this._bufferService.buffer;n.ybase!==n.ydisp&&this._scrollToBottom(),t&&this._onUserInput.fire(),this._logService.debug('sending data "'+e+'"',(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onData.fire(e)}},t.prototype.triggerBinaryEvent=function(e){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+e+'"',(function(){return e.split("").map((function(e){return e.charCodeAt(0)}))})),this._onBinary.fire(e))},o([a(1,s.IBufferService),a(2,s.ILogService),a(3,s.IOptionsService)],t)}(u.Disposable);t.CoreService=f},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;var o=n(1),a=n(0),s={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(e){return 4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)}},VT200:{events:19,restrict:function(e){return 32!==e.action}},DRAG:{events:23,restrict:function(e){return 32!==e.action||3!==e.button}},ANY:{events:31,restrict:function(e){return!0}}};function l(e,t){var n=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(n|=64,n|=e.action):(n|=3&e.button,4&e.button&&(n|=64),8&e.button&&(n|=128),32===e.action?n|=32:0!==e.action||t||(n|=3)),n}var c=String.fromCharCode,u={DEFAULT:function(e){var t=[l(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"\x1b[M"+c(t[0])+c(t[1])+c(t[2])},SGR:function(e){var t=0===e.action&&4!==e.button?"m":"M";return"\x1b[<"+l(e,!0)+";"+e.col+";"+e.row+t}},d=function(){function e(e,t){this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new a.EventEmitter,this._lastEvent=null;for(var n=0,r=Object.keys(s);n=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._compareEvents(this._lastEvent,e))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;var t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0},e.prototype.explainEvents=function(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}},e.prototype._compareEvents=function(e,t){return e.col===t.col&&e.row===t.row&&e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift},r([i(0,o.IBufferService),i(1,o.ICoreService)],e)}();t.CoreMouseService=d},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirtyRowService=void 0;var o=n(1),a=function(){function e(e){this._bufferService=e,this.clearRange()}return Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),e.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},e.prototype.markDirty=function(e){ethis._end&&(this._end=e)},e.prototype.markRangeDirty=function(e,t){if(e>t){var n=e;e=t,t=n}ethis._end&&(this._end=t)},e.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},r([i(0,o.IBufferService)],e)}();t.DirtyRowService=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;var r=n(0),i=n(79),o=function(){function e(){this._providers=Object.create(null),this._active="",this._onChange=new r.EventEmitter;var e=new i.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeVersion",{get:function(){return this._active},set:function(e){if(!this._providers[e])throw new Error('unknown Unicode version "'+e+'"');this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)},enumerable:!1,configurable:!0}),e.prototype.register=function(e){this._providers[e.version]=e},e.prototype.wcwidth=function(e){return this._activeProvider.wcwidth(e)},e.prototype.getStringCellWidth=function(e){for(var t=0,n=e.length,r=0;r=n)return t+this.wcwidth(i);var o=e.charCodeAt(r);56320<=o&&o<=57343?i=1024*(i-55296)+o-56320+65536:t+=this.wcwidth(o)}t+=this.wcwidth(i)}return t},e}();t.UnicodeService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;var r,i=n(15),o=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],a=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],s=function(){function e(){if(this.version="6",!r){r=new Uint8Array(65536),i.fill(r,1),r[0]=0,i.fill(r,0,1,32),i.fill(r,0,127,160),i.fill(r,2,4352,4448),r[9001]=2,r[9002]=2,i.fill(r,2,11904,42192),r[12351]=1,i.fill(r,2,44032,55204),i.fill(r,2,63744,64256),i.fill(r,2,65040,65050),i.fill(r,2,65072,65136),i.fill(r,2,65280,65377),i.fill(r,2,65504,65511);for(var e=0;et[i][1])return!1;for(;i>=r;)if(e>t[n=r+i>>1][1])r=n+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1},e}();t.UnicodeV6=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0;var r=function(){function e(){this.glevel=0,this._charsets=[]}return e.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this._charsets[e]},e.prototype.setgCharset=function(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)},e}();t.CharsetService=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;var r=n(3);t.updateWindowsModeWrappedState=function(e){var t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),n=null==t?void 0:t.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&n&&(i.isWrapped=n[r.CHAR_DATA_CODE_INDEX]!==r.NULL_CELL_CODE&&n[r.CHAR_DATA_CODE_INDEX]!==r.WHITESPACE_CELL_CODE)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;var r=function(){function e(e){this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return e.prototype.writeSync=function(e){if(this._writeBuffer.length){for(var t=this._bufferOffset;t5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout((function(){return n._innerWrite()}))),this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)},e.prototype._innerWrite=function(){for(var e=this,t=Date.now();this._writeBuffer.length>this._bufferOffset;){var n=this._writeBuffer[this._bufferOffset],r=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(n),this._pendingData-=n.length,r&&r(),Date.now()-t>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((function(){return e._innerWrite()}),0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},e}();t.WriteBuffer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0;var r=function(){function e(){this._addons=[]}return e.prototype.dispose=function(){for(var e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()},e.prototype.loadAddon=function(e,t){var n=this,r={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(r),t.dispose=function(){return n._wrappedAddonDispose(r)},t.activate(e)},e.prototype._wrappedAddonDispose=function(e){if(!e.isDisposed){for(var t=-1,n=0;na)l+=360*c;return[s,l]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}}};var a=o;e.exports=a},"/WM3":function(e,t,n){var r=n("QuXc"),i=n("bYtY"),o=i.isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=(e.visualColorAccessPath||"itemStyle.color").split("."),a=e.get(i),s=!o(a)||a instanceof r?null:a;a&&!s||(a=e.getColorFromPalette(e.name,null,t.getSeriesCount())),n.setVisual("color",a);var l=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),c=e.get(l);if(n.setVisual("borderColor",c),!t.isSeriesFiltered(e)){s&&n.each((function(t){n.setItemVisual(t,"color",s(e.getDataParams(t)))}));var u=function(e,t){var n=e.getItemModel(t),r=n.get(i,!0),o=n.get(l,!0);null!=r&&e.setItemVisual(t,"color",r),null!=o&&e.setItemVisual(t,"borderColor",o)};return{dataEach:n.hasItemOption?u:null}}}};e.exports=a},"/d5a":function(e,t){var n={average:function(e){for(var t=0,n=0,r=0;rt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n1)"string"===typeof a?l=n[a]:"function"===typeof a&&(l=a),l&&e.setData(o.downSample(o.mapDimension(u.dim),1/f,l,r))}}}}e.exports=i},"/ezw":function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),o=n("pVnL"),a=n.n(o),s=n("cDf5"),l=n.n(s),c=n("q1tI"),u=n("TSYQ"),d=n.n(u),h=function(e){var t=e.prefixCls,n=e.className,r=e.width,i=e.style;return c["createElement"]("h3",{className:d()(t,n),style:a()({width:r},i)})},f=h,p=n("RIqP"),A=n.n(p),g=function(e){var t=function(t){var n=e.width,r=e.rows,i=void 0===r?2:r;return Array.isArray(n)?n[t]:i-1===t?n:void 0},n=e.prefixCls,r=e.className,i=e.style,o=e.rows,a=A()(Array(o)).map((function(e,n){return c["createElement"]("li",{key:n,style:{width:t(n)}})}));return c["createElement"]("ul",{className:d()(n,r),style:i},a)},m=g,v=n("H84U"),y=function(e){var t,n,r=e.prefixCls,o=e.className,s=e.style,l=e.size,u=e.shape,h=d()((t={},i()(t,"".concat(r,"-lg"),"large"===l),i()(t,"".concat(r,"-sm"),"small"===l),t)),f=d()((n={},i()(n,"".concat(r,"-circle"),"circle"===u),i()(n,"".concat(r,"-square"),"square"===u),i()(n,"".concat(r,"-round"),"round"===u),n)),p="number"===typeof l?{width:l,height:l,lineHeight:"".concat(l,"px")}:{};return c["createElement"]("span",{className:d()(r,o,h,f),style:a()(a()({},p),s)})},b=y,_=n("BGR+"),w=function(e){var t=function(t){var n=t.getPrefixCls,r=e.prefixCls,o=e.className,s=e.active,l=n("skeleton",r),u=Object(_["default"])(e,["prefixCls"]),h=d()(l,o,"".concat(l,"-element"),i()({},"".concat(l,"-active"),s));return c["createElement"]("div",{className:h},c["createElement"](b,a()({prefixCls:"".concat(l,"-avatar")},u)))};return c["createElement"](v["a"],null,t)};w.defaultProps={size:"default",shape:"circle"};var x=w,C=function(e){var t=function(t){var n=t.getPrefixCls,r=e.prefixCls,o=e.className,s=e.active,l=n("skeleton",r),u=Object(_["default"])(e,["prefixCls"]),h=d()(l,o,"".concat(l,"-element"),i()({},"".concat(l,"-active"),s));return c["createElement"]("div",{className:h},c["createElement"](b,a()({prefixCls:"".concat(l,"-button")},u)))};return c["createElement"](v["a"],null,t)};C.defaultProps={size:"default"};var S=C,k=function(e){var t=function(t){var n=t.getPrefixCls,r=e.prefixCls,o=e.className,s=e.active,l=n("skeleton",r),u=Object(_["default"])(e,["prefixCls"]),h=d()(l,o,"".concat(l,"-element"),i()({},"".concat(l,"-active"),s));return c["createElement"]("div",{className:h},c["createElement"](b,a()({prefixCls:"".concat(l,"-input")},u)))};return c["createElement"](v["a"],null,t)};k.defaultProps={size:"default"};var E=k,O="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",B=function(e){var t=function(t){var n=t.getPrefixCls,r=e.prefixCls,i=e.className,o=e.style,a=n("skeleton",r),s=d()(a,i,"".concat(a,"-element"));return c["createElement"]("div",{className:s},c["createElement"]("div",{className:d()("".concat(a,"-image"),i),style:o},c["createElement"]("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(a,"-image-svg")},c["createElement"]("path",{d:O,className:"".concat(a,"-image-path")}))))};return c["createElement"](v["a"],null,t)},M=B;function T(e){return e&&"object"===l()(e)?e:{}}function I(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function L(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function D(e,t){var n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}var P=function(e){var t=function(t){var n=t.getPrefixCls,r=t.direction,o=e.prefixCls,s=e.loading,l=e.className,u=e.children,h=e.avatar,p=e.title,A=e.paragraph,g=e.active,v=e.round,y=n("skeleton",o);if(s||!("loading"in e)){var _,w,x,C=!!h,S=!!p,k=!!A;if(C){var E=a()(a()({prefixCls:"".concat(y,"-avatar")},I(S,k)),T(h));w=c["createElement"]("div",{className:"".concat(y,"-header")},c["createElement"](b,E))}if(S||k){var O,B;if(S){var M=a()(a()({prefixCls:"".concat(y,"-title")},L(C,k)),T(p));O=c["createElement"](f,M)}if(k){var P=a()(a()({prefixCls:"".concat(y,"-paragraph")},D(C,S)),T(A));B=c["createElement"](m,P)}x=c["createElement"]("div",{className:"".concat(y,"-content")},O,B)}var N=d()(y,l,(_={},i()(_,"".concat(y,"-with-avatar"),C),i()(_,"".concat(y,"-active"),g),i()(_,"".concat(y,"-rtl"),"rtl"===r),i()(_,"".concat(y,"-round"),v),_));return c["createElement"]("div",{className:N},w,x)}return u};return c["createElement"](v["a"],null,t)};P.defaultProps={avatar:!1,title:!0,paragraph:!0},P.Button=S,P.Avatar=x,P.Input=E,P.Image=M;var N=P;t["a"]=N},"/iHx":function(e,t,n){var r=n("6GrX"),i=n("IwbS"),o=["textStyle","color"],a={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(o):null)},getFont:function(){return i.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return r.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=a},"/kpp":function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),o=n("pVnL"),a=n.n(o),s=n("cDf5"),l=n.n(s),c=n("q1tI"),u=n("TSYQ"),d=n.n(u),h=n("o/2+"),f=n("H84U"),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 i=0;for(r=Object.getOwnPropertySymbols(e);i0?{paddingLeft:n[0]/2,paddingRight:n[0]/2}:{}),n[1]>0?{paddingTop:n[1]/2,paddingBottom:n[1]/2}:{}),r)),w&&(r.flex=A(w)),c["createElement"]("div",a()({},C,{style:r,className:E,ref:t}),_)}))};return c["createElement"](f["a"],null,n)}));g.displayName="Col",t["a"]=g},"/ry/":function(e,t,n){var r=n("bYtY"),i=n("T4UG"),o=n("5GhG"),a=o.seriesModelMixin,s=i.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(s,a,!0);var l=s;e.exports=l},"/stD":function(e,t,n){var r=n("bYtY"),i=n("IUWy"),o=n("Kagy"),a=o.toolbox.brush;function s(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],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:r.clone(a.title)};var l=s.prototype;l.render=l.updateView=function(e,t,n){var i,o,a;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,o=e.brushOption.brushMode||"single",a|=e.areas.length})),this._brushType=i,this._brushMode=o,r.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")}))},l.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return r.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},l.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},i.register("brush",s);var c=s;e.exports=c},"/wGt":function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),o=n("pVnL"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("PJYZ"),h=n.n(d),f=n("7W2i"),p=n.n(f),A=n("LQ03"),g=n.n(A),m=n("q1tI"),v=n("Ff2n"),y=n("1OyB"),b=n("vuIU"),_=n("Ji7U"),w=n("md7G"),x=n("foSv"),C=n("1W/9"),S=n("rePB"),k=n("JX7q"),E=n("TSYQ"),O=n.n(E),B=n("qx4F"),M=n("4IlW");function T(e){return Array.isArray(e)?e:[e]}var I={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},L=Object.keys(I).filter((function(e){if("undefined"===typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],D=I[L];function P(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function N(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on".concat(t),n)}function j(e,t){var n="function"===typeof e?e(t):e;return Array.isArray(n)?2===n.length?n:[n[0],n[1]]:[n]}var F=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},R=!("undefined"!==typeof window&&window.document&&window.document.createElement),U=function e(t,n,r,i){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var o=Math.max(Math.abs(r),Math.abs(i))===Math.abs(i),a=Math.max(Math.abs(r),Math.abs(i))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,c=document.defaultView.getComputedStyle(n),u="auto"===c.overflowY||"scroll"===c.overflowY,d="auto"===c.overflowX||"scroll"===c.overflowX,h=s&&u,f=l&&d;return!!(o&&(!h||h&&(n.scrollTop>=s&&i<0||n.scrollTop<=0&&i>0))||a&&(!f||f&&(n.scrollLeft>=l&&r<0||n.scrollLeft<=0&&r>0)))&&e(t,n.parentNode,r,i)};function H(e){var t=Q();return function(){var n,r=Object(x["a"])(e);if(t){var i=Object(x["a"])(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(w["a"])(this,n)}}function Q(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var K={},z=function(e){Object(_["a"])(n,e);var t=H(n);function n(e){var r;return Object(y["a"])(this,n),r=t.call(this,e),r.domFocus=function(){r.dom&&r.dom.focus()},r.removeStartHandler=function(e){e.touches.length>1||(r.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},r.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,n=e.changedTouches[0].clientX-r.startPos.x,i=e.changedTouches[0].clientY-r.startPos.y;(t===r.maskDom||t===r.handlerDom||t===r.contentDom&&U(t,e.target,n,i))&&e.cancelable&&e.preventDefault()}},r.transitionEnd=function(e){var t=e.target;N(t,D,r.transitionEnd),t.style.transition=""},r.onKeyDown=function(e){if(e.keyCode===M["a"].ESC){var t=r.props.onClose;e.stopPropagation(),t&&t(e)}},r.onWrapperTransitionEnd=function(e){var t=r.props,n=t.open,i=t.afterVisibleChange;e.target===r.contentWrapper&&e.propertyName.match(/transform$/)&&(r.dom.style.transition="",!n&&r.getCurrentDrawerSome()&&(document.body.style.overflowX="",r.maskDom&&(r.maskDom.style.left="",r.maskDom.style.width="")),i&&i(!!n))},r.openLevelTransition=function(){var e=r.props,t=e.open,n=e.width,i=e.height,o=r.getHorizontalBoolAndPlacementName(),a=o.isHorizontal,s=o.placementName,l=r.contentDom?r.contentDom.getBoundingClientRect()[a?"width":"height"]:0,c=(a?n:i)||l;r.setLevelAndScrolling(t,s,c)},r.setLevelTransform=function(e,t,n,i){var o=r.props,a=o.placement,s=o.levelMove,l=o.duration,c=o.ease,u=o.showMask;r.levelDom.forEach((function(o){o.style.transition="transform ".concat(l," ").concat(c),P(o,D,r.transitionEnd);var d=e?n:0;if(s){var h=j(s,{target:o,open:e});d=e?h[0]:h[1]||0}var f="number"===typeof d?"".concat(d,"px"):d,p="left"===a||"top"===a?f:"-".concat(f);p=u&&"right"===a&&i?"calc(".concat(p," + ").concat(i,"px)"):p,o.style.transform=d?"".concat(t,"(").concat(p,")"):""}))},r.setLevelAndScrolling=function(e,t,n){var i=r.props.onChange;if(!R){var o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(B["a"])(!0):0;r.setLevelTransform(e,t,n,o),r.toggleScrollingToDrawerAndBody(o)}i&&i(e)},r.toggleScrollingToDrawerAndBody=function(e){var t=r.props,n=t.getOpenCount,i=t.getContainer,o=t.showMask,a=t.open,s=i&&i(),l=n&&n();if(s&&s.parentNode===document.body&&o){var c=["touchstart"],u=[document.body,r.maskDom,r.handlerDom,r.contentDom];a&&"hidden"!==document.body.style.overflow?(e&&r.addScrollingEffect(e),1===l&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",u.forEach((function(e,t){e&&P(e,c[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)}))):r.getCurrentDrawerSome()&&(l||(document.body.style.overflow=""),document.body.style.touchAction="",e&&r.remScrollingEffect(e),u.forEach((function(e,t){e&&N(e,c[t]||"touchmove",t?r.removeMoveHandler:r.removeStartHandler,r.passive)})))}},r.addScrollingEffect=function(e){var t=r.props,n=t.placement,i=t.duration,o=t.ease,a=t.getOpenCount,s=t.switchScrollingEffect,l=a&&a();1===l&&s();var c="width ".concat(i," ").concat(o),u="transform ".concat(i," ").concat(o);switch(r.dom.style.transition="none",n){case"right":r.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":r.dom.style.width="calc(100% - ".concat(e,"px)"),r.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(u,",").concat(c),r.dom.style.width="",r.dom.style.transform="")}))},r.remScrollingEffect=function(e){var t,n=r.props,i=n.placement,o=n.duration,a=n.ease,s=n.getOpenCount,l=n.switchScrollingEffect,c=s&&s();c||l(!0),L&&(document.body.style.overflowX="hidden"),r.dom.style.transition="none";var u="width ".concat(o," ").concat(a),d="transform ".concat(o," ").concat(a);switch(i){case"left":r.dom.style.width="100%",u="width 0s ".concat(a," ").concat(o);break;case"right":r.dom.style.transform="translateX(".concat(e,"px)"),r.dom.style.width="100%",u="width 0s ".concat(a," ").concat(o),r.maskDom&&(r.maskDom.style.left="-".concat(e,"px"),r.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":r.dom.style.width="calc(100% + ".concat(e,"px)"),r.dom.style.height="100%",r.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(o);break;default:break}clearTimeout(r.timeout),r.timeout=setTimeout((function(){r.dom&&(r.dom.style.transition="".concat(d,",").concat(t?"".concat(t,","):"").concat(u),r.dom.style.transform="",r.dom.style.width="",r.dom.style.height="")}))},r.getCurrentDrawerSome=function(){return!Object.keys(K).some((function(e){return K[e]}))},r.getLevelDom=function(e){var t=e.level,n=e.getContainer;if(!R){var i=n&&n(),o=i?i.parentNode:null;if(r.levelDom=[],"all"===t){var a=o?Array.prototype.slice.call(o.children):[];a.forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==i&&r.levelDom.push(e)}))}else t&&T(t).forEach((function(e){document.querySelectorAll(e).forEach((function(e){r.levelDom.push(e)}))}))}},r.getHorizontalBoolAndPlacementName=function(){var e=r.props.placement,t="left"===e||"right"===e,n="translate".concat(t?"X":"Y");return{isHorizontal:t,placementName:n}},r.state={_self:Object(k["a"])(r)},r}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){var e=this;if(!R){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(a){}this.passive=!!t&&{passive:!1}}var n=this.props,r=n.open,i=n.getContainer,o=i&&i();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),r&&(o&&o.parentNode===document.body&&(K[this.drawerId]=r),this.openLevelTransition(),this.forceUpdate((function(){e.domFocus()})))}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.open,r=t.getContainer,i=r&&r();n!==e.open&&(n&&this.domFocus(),i&&i.parentNode===document.body&&(K[this.drawerId]=!!n),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.getOpenCount,n=e.open,r=e.switchScrollingEffect,i="function"===typeof t&&t();delete K[this.drawerId],n&&(this.setLevelTransform(!1),document.body.style.touchAction=""),i||(document.body.style.overflow="",r(!0))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,i=n.children,o=n.style,a=n.width,s=n.height,l=(n.defaultOpen,n.open),c=n.prefixCls,u=n.placement,d=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),h=(n.onChange,n.afterVisibleChange,n.showMask),f=n.maskClosable,p=n.maskStyle,A=n.onClose,g=n.onHandleClick,y=n.keyboard,b=(n.getOpenCount,n.switchScrollingEffect,Object(v["a"])(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"])),_=!!this.dom&&l,w=O()(c,(e={},Object(S["a"])(e,"".concat(c,"-").concat(u),!0),Object(S["a"])(e,"".concat(c,"-open"),_),Object(S["a"])(e,r||"",!!r),Object(S["a"])(e,"no-mask",!h),e)),x=this.getHorizontalBoolAndPlacementName(),C=x.placementName,k="left"===u||"top"===u?"-100%":"100%",E=_?"":"".concat(C,"(").concat(k,")"),B=d&&m["cloneElement"](d,{onClick:function(e){d.props.onClick&&d.props.onClick(),g&&g(e)},ref:function(e){t.handlerDom=e}});return m["createElement"]("div",Object.assign({},b,{tabIndex:-1,className:w,style:o,ref:function(e){t.dom=e},onKeyDown:_&&y?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),h&&m["createElement"]("div",{className:"".concat(c,"-mask"),onClick:f?A:void 0,style:p,ref:function(e){t.maskDom=e}}),m["createElement"]("div",{className:"".concat(c,"-content-wrapper"),style:{transform:E,msTransform:E,width:F(a)?"".concat(a,"px"):a,height:F(s)?"".concat(s,"px"):s},ref:function(e){t.contentWrapper=e}},m["createElement"]("div",{className:"".concat(c,"-content"),ref:function(e){t.contentDom=e},onTouchStart:_&&h?this.removeStartHandler:void 0,onTouchMove:_&&h?this.removeMoveHandler:void 0},i),B))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,i={prevProps:e};if(void 0!==n){var o=e.placement,a=e.level;o!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return i}}]),n}(m["Component"]);z.defaultProps={switchScrollingEffect:function(){}};var V=z;function W(e){var t=G();return function(){var n,r=Object(x["a"])(e);if(t){var i=Object(x["a"])(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(w["a"])(this,n)}}function G(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var X=function(e){Object(_["a"])(n,e);var t=W(n);function n(e){var r;Object(y["a"])(this,n),r=t.call(this,e),r.onHandleClick=function(e){var t=r.props,n=t.onHandleClick,i=t.open;if(n&&n(e),"undefined"===typeof i){var o=r.state.open;r.setState({open:!o})}},r.onClose=function(e){var t=r.props,n=t.onClose,i=t.open;n&&n(e),"undefined"===typeof i&&r.setState({open:!1})};var i="undefined"!==typeof e.open?e.open:!!e.defaultOpen;return r.state={open:i},"onMaskClick"in e&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),r}return Object(b["a"])(n,[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),r=t.wrapperClassName,i=t.forceRender,o=t.handler,a=Object(v["a"])(t,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),s=this.state.open;if(!n)return m["createElement"]("div",{className:r,ref:function(t){e.dom=t}},m["createElement"](V,Object.assign({},a,{open:s,handler:o,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var l=!!o||i;return m["createElement"](C["a"],{visible:s,forceRender:l,getContainer:n,wrapperClassName:r},(function(t){var n=t.visible,r=t.afterClose,i=Object(v["a"])(t,["visible","afterClose"]);return m["createElement"](V,Object.assign({},a,i,{open:void 0!==n?n:s,afterVisibleChange:void 0!==r?r:a.afterVisibleChange,handler:o,onClose:e.onClose,onHandleClick:e.onHandleClick}))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"undefined"!==typeof n&&e.open!==n.open&&(r.open=e.open),r}}]),n}(m["Component"]);X.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:m["createElement"]("div",{className:"drawer-handle"},m["createElement"]("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var q=X,Y=q,Z=n("V/uB"),J=n.n(Z),$=n("BGR+"),ee=n("H84U"),te=n("CWQg"),ne=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 i=0;for(r=Object.getOwnPropertySymbols(e);i=0&&i.each(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},u),"stack"===n){var f=c.series&&c.series[0]&&c.series[0].stack===l;a=f?i.merge({stack:s.title.tiled},s.title):i.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:n,newOption:c,newTitle:a,featureName:"magicType"})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),a.register("magicType",c);var f=c;e.exports=f},"06Qe":function(e,t,n){var r,i=n("ItGF"),o="urn:schemas-microsoft-com:vml",a="undefined"===typeof window?null:window,s=!1,l=a&&a.document;function c(e){return r(e)}if(l&&!i.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",o),r=function(e){return l.createElement("')}}catch(d){r=function(e){return l.createElement("<"+e+' xmlns="'+o+'" class="zrvml">')}}function u(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=l,t.createNode=c,t.initVML=u},"09Wf":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n("CWQg"),i=Object(r["a"])("success","processing","error","default","warning"),o=Object(r["a"])("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(e,t,n){var r=n("T4UG"),i=n("I3/A"),o=n("7aKB"),a=o.encodeHTML,s=n("Qxkt"),l=n("Tghj"),c=(l.__DEV__,r.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var n=e.edges||e.links,r=e.data||e.nodes,o=e.levels,a=this.levelModels={},l=0;l=0&&(a[o[l].depth]=new s(o[l],this,t));if(r&&n){var c=i(r,n,this,!0,u);return c.data}function u(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,r=n.getData().getItemLayout(t).depth,i=n.levelModels[r];return i||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout().depth,o=n.levelModels[i];return o||this.parentModel})),e}))}},setNodePosition:function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getDataParams(e,n),i=r.data,o=i.source+" -- "+i.target;return r.value&&(o+=" : "+r.value),a(o)}if("node"===n){var s=this.getGraph().getNodeByIndex(e),l=s.getLayout().value,u=this.getDataParams(e,n).data.name;if(l)o=u+" : "+l;return a(o)}return c.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var n=c.superCall(this,"getDataParams",e,t);if(null==n.value&&"node"===t){var r=this.getGraph().getNodeByIndex(e),i=r.getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=c;e.exports=u},"0Cz8":function(e,t,n){var r=n("Xi7e"),i=n("ebwN"),o=n("e4Nc"),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length=i.start.time&&n.timea.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/s)-Math.floor(e[0].time/s)+1,r=new Date(e[0].time),i=r.getDate(),o=e[1].date.getDate();r.setDate(i+n-1);var a=r.getDate();if(a!==o){var l=r.getTime()-e[1].time>0?1:-1;while((a=r.getDate())!==o&&(r.getTime()-e[1].time)*l>0)n-=l,r.setDate(a-l)}var c=Math.floor((n+e[0].day+6)/7),u=t?1-c:c-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:c,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&tr.lweek)return!1;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(r.start.d+i),this.getDateInfo(o)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(e,t){var n=[];return e.eachComponent("calendar",(function(r){var i=new l(r,e,t);n.push(i),r.coordinateSystem=i})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])})),n},a.register("calendar",l);var u=l;e.exports=u},"0JQy":function(e,t){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",l="["+n+"]",c="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+u+")",h="[^"+n+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",A="\\u200d",g=d+"?",m="["+s+"]?",v="(?:"+A+"(?:"+[h,f,p].join("|")+")"+m+g+")*",y=m+g+v,b="(?:"+[h+c+"?",c,f,p,l].join("|")+")",_=RegExp(u+"(?="+u+")|"+b+y,"g");function w(e){return e.match(_)||[]}e.exports=w},"0NbB":function(e,t,n){"use strict";var r=n("VTBJ"),i=n("q1tI"),o={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"},a=o,s=n("6VBw"),l=function(e,t){return i["createElement"](s["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:t,icon:a}))};l.displayName="CaretDownOutlined";t["a"]=i["forwardRef"](l)},"0V0F":function(e,t,n){var r=n("bYtY"),i=r.createHashMap,o=r.each;function a(e){var t=i();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(s)}function s(e){o(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=a.map(o,(function(o,l,c){var u,d,h=a.get(t.stackedDimension,c);if(isNaN(h))return i;s?d=a.getRawIndex(c):u=a.get(t.stackedByDimension,c);for(var f=NaN,p=n-1;p>=0;p--){var A=e[p];if(s||(d=A.data.rawIndexOf(A.stackedByDimension,u)),d>=0){var g=A.data.getByRawIndex(A.stackResultDimension,d);if(h>=0&&g>0||h<=0&&g<0){h+=g,f=g;break}}}return r[0]=h,r[1]=f,r}));a.hostModel.setData(l),t.data=l}))}e.exports=a},"0XgM":function(e,t,n){},"0fbx":function(e,t,n){},"0o9m":function(e,t,n){var r=n("ProS");n("hNWo"),n("RlCK"),n("XpcN");var i=n("kDyi"),o=n("bLfw");r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,i),o.registerSubTypeDefaulter("legend",(function(){return"plain"}))},"0qV/":function(e,t,n){var r=n("ProS");r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},"0r65":function(e,t){var n=arguments[3],r=arguments[4],i=arguments[5],o=JSON.stringify;e.exports=function(e,t){for(var a,s=Object.keys(i),l=0,c=s.length;lr.getWidth()||n<0||n>r.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(r.each(f,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,r=g(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?{x:t,y:n}:this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!n&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,o=u(t,e,n);while(r)if(r[i]&&(o.cancelBubble=r[i].call(r,o)),r.trigger(t,o),r=r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},findHover:function(e,t,n){for(var r=this.storage.getDisplayList(),i={x:e,y:t},o=r.length-1;o>=0;o--){var a;if(r[o]!==n&&!r[o].ignore&&(a=A(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),a!==c)){i.target=r[o];break}}return i},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);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 i=r.type;e.gestureEvent=i,this.dispatchToElement({target:r.target},i,r.event)}}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var n,r,o=t.zrX,a=t.zrY,s=g(this,o,a);if("mouseup"===e&&s||(n=this.findHover(o,a),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||i.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}})),r.mixin(p,a),r.mixin(p,o);var m=p;e.exports=m},"0ycA":function(e,t){function n(){return[]}e.exports=n},"10cm":function(e,t,n){var r=n("ProS"),i=n("2B6p"),o=i.updateCenterAndZoom;n("0qV/");var a={type:"graphRoam",event:"graphRoam",update:"none"};r.registerAction(a,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,r=o(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},"14J3":function(e,t,n){"use strict";n("cIOH"),n("1GLa")},"15/o":function(e,t,n){},"19Vz":function(e,t,n){(function(e){e(n("VrN/"))})((function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout((function(){var r=!1,i=e.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)}),20)}function i(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&l){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}))},"1GLa":function(e,t,n){"use strict";n("cIOH"),n("FIfw")},"1Jh7":function(e,t,n){var r=n("y+Vt"),i=n("T6xi"),o=r.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){i.buildPath(e,t,!1)}});e.exports=o},"1LEl":function(e,t,n){var r=n("ProS"),i=n("F9bG"),o=r.extendComponentView({type:"axisPointer",render:function(e,t,n){var r=t.getComponent("tooltip"),o=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";i.register("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})}))},remove:function(e,t){i.unregister(t.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(e,t){i.unregister("axisPointer",t),o.superApply(this._model,"dispose",arguments)}}),a=o;e.exports=a},"1MYJ":function(e,t,n){var r=n("y+Vt"),i=r.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n=i||g<0)break;if(f(v)){if(p){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v[0],v[1]);else if(l>0){var y=t[A],b="y"===u?1:0,_=(v[b]-y[b])*l;c(d,y),d[b]=y[b]+_,c(h,v),h[b]=v[b]-_,e.bezierCurveTo(d[0],d[1],h[0],h[1],v[0],v[1])}else e.lineTo(v[0],v[1]);A=g,g+=o}return m}function g(e,t,n,r,o,p,A,g,m,v,y){for(var b=0,_=n,w=0;w=o||_<0)break;if(f(x)){if(y){_+=p;continue}break}if(_===n)e[p>0?"moveTo":"lineTo"](x[0],x[1]),c(d,x);else if(m>0){var C=_+p,S=t[C];if(y)while(S&&f(t[C]))C+=p,S=t[C];var k=.5,E=t[b];S=t[C];if(!S||f(S))c(h,x);else{var O,B;if(f(S)&&!y&&(S=x),i.sub(u,S,E),"x"===v||"y"===v){var M="x"===v?0:1;O=Math.abs(x[M]-E[M]),B=Math.abs(x[M]-S[M])}else O=i.dist(x,E),B=i.dist(x,S);k=B/(B+O),l(h,x,u,-m*(1-k))}a(d,d,g),s(d,d,A),a(h,h,g),s(h,h,A),e.bezierCurveTo(d[0],d[1],h[0],h[1],x[0],x[1]),l(d,x,u,m*k)}else e.lineTo(x[0],x[1]);b=_,_+=p}return w}function m(e,t){var n=[1/0,1/0],r=[-1/0,-1/0];if(t)for(var i=0;ir[0]&&(r[0]=o[0]),o[1]>r[1]&&(r[1]=o[1])}return{min:t?n:r,max:t?r:n}}var v=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:o(r.prototype.brush),buildPath:function(e,t){var n=t.points,r=0,i=n.length,o=m(n,t.smoothConstraint);if(t.connectNulls){for(;i>0;i--)if(!f(n[i-1]))break;for(;r0;o--)if(!f(n[o-1]))break;for(;i=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new i(t),s.key=e,n.insertEntry(s),r[e]=s}return o},a.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},a.clear=function(){this._list.clear(),this._map={}};var s=o;e.exports=s},"1YHl":function(e,t,n){"use strict";n("cIOH"),n("15/o")},"1bdT":function(e,t,n){var r=n("3gBT"),i=n("H6uX"),o=n("DN4a"),a=n("vWvF"),s=n("bYtY"),l=function(e){o.call(this,e),i.call(this,e),a.call(this,e),this.id=e.id||r()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n> RFB.constructor"),a._screen=document.createElement("div"),a._screen.style.display="flex",a._screen.style.width="100%",a._screen.style.height="100%",a._screen.style.overflow="auto",a._screen.style.background=Q,a._canvas=document.createElement("canvas"),a._canvas.style.margin="auto",a._canvas.style.outline="none",a._canvas.style.flexShrink="0",a._canvas.width=0,a._canvas.height=0,a._canvas.tabIndex=-1,a._screen.appendChild(a._canvas),a._cursor=new A["default"],a._cursorImage=n.cursors.none,a._decoders[b.encodings.encodingRaw]=new _["default"],a._decoders[b.encodings.encodingCopyRect]=new w["default"],a._decoders[b.encodings.encodingRRE]=new x["default"],a._decoders[b.encodings.encodingHextile]=new C["default"],a._decoders[b.encodings.encodingTight]=new S["default"],a._decoders[b.encodings.encodingTightPNG]=new k["default"];try{a._display=new u["default"](a._canvas)}catch(s){throw i.Error("Display exception: "+s),s}return a._display.onflush=a._onFlush.bind(F(a)),a._keyboard=new f["default"](a._canvas),a._keyboard.onkeyevent=a._handleKeyEvent.bind(F(a)),a._gestures=new p["default"],a._sock=new g["default"],a._sock.on("message",(function(){a._handleMessage()})),a._sock.on("open",(function(){"connecting"===a._rfbConnectionState&&""===a._rfbInitState?(a._rfbInitState="ProtocolVersion",i.Debug("Starting VNC handshake")):a._fail("Unexpected server connection while "+a._rfbConnectionState)})),a._sock.on("close",(function(e){i.Debug("WebSocket on-close event");var t="";switch(e.code&&(t="(code: "+e.code,e.reason&&(t+=", reason: "+e.reason),t+=")"),a._rfbConnectionState){case"connecting":a._fail("Connection closed "+t);break;case"connected":a._updateConnectionState("disconnecting"),a._updateConnectionState("disconnected");break;case"disconnecting":a._updateConnectionState("disconnected");break;case"disconnected":a._fail("Unexpected server disconnect when already disconnected "+t);break;default:a._fail("Unexpected server disconnect before connecting "+t);break}a._sock.off("close")})),a._sock.on("error",(function(e){return i.Warn("WebSocket on-error event")})),setTimeout(a._updateConnectionState.bind(F(a),"connecting")),i.Debug("<< RFB.constructor"),a.dragViewport=!1,a.focusOnClick=!0,a._viewOnly=!1,a._clipViewport=!1,a._scaleViewport=!1,a._resizeSession=!1,a._showDotCursor=!1,void 0!==o.showDotCursor&&(i.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),a._showDotCursor=o.showDotCursor),a._qualityLevel=6,a._compressionLevel=2,a}return L(n,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(e){this._rfbCredentials=e,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){"connected"!==this._rfbConnectionState||this._viewOnly||(i.Info("Sending Ctrl-Alt-Del"),this.sendKey(v["default"].XK_Control_L,"ControlLeft",!0),this.sendKey(v["default"].XK_Alt_L,"AltLeft",!0),this.sendKey(v["default"].XK_Delete,"Delete",!0),this.sendKey(v["default"].XK_Delete,"Delete",!1),this.sendKey(v["default"].XK_Alt_L,"AltLeft",!1),this.sendKey(v["default"].XK_Control_L,"ControlLeft",!1))}},{key:"machineShutdown",value:function(){this._xvpOp(1,2)}},{key:"machineReboot",value:function(){this._xvpOp(1,3)}},{key:"machineReset",value:function(){this._xvpOp(1,4)}},{key:"sendKey",value:function(e,t,r){if("connected"===this._rfbConnectionState&&!this._viewOnly){if(void 0===r)return this.sendKey(e,t,!0),void this.sendKey(e,t,!1);var o=y["default"][t];if(this._qemuExtKeyEventSupported&&o)e=e||0,i.Info("Sending key ("+(r?"down":"up")+"): keysym "+e+", scancode "+o),n.messages.QEMUExtendedKeyEvent(this._sock,e,r,o);else{if(!e)return;i.Info("Sending keysym ("+(r?"down":"up")+"): "+e),n.messages.keyEvent(this._sock,e,r?1:0)}}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(e){if("connected"===this._rfbConnectionState&&!this._viewOnly)if(this._clipboardServerCapabilitiesFormats[Y]&&this._clipboardServerCapabilitiesActions[ee])this._clipboardText=e,n.messages.extendedClipboardNotify(this._sock,[Y]);else{for(var t=new Uint8Array(e.length),r=0;r> RFB.connect"),i.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(e){"SyntaxError"===e.name?this._fail("Invalid host or port ("+e+")"):this._fail("Error when opening socket ("+e+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),i.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){i.Debug(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(e){if("NotFoundError"!==e.name)throw e}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),i.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(e){this.focusOnClick&&this.focus()}},{key:"_setDesktopName",value:function(e){this._fbName=e,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(e){var t=this;window.requestAnimationFrame((function(){t._updateClip(),t._updateScale()})),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var e=this._display.clipViewport,t=this._clipViewport;if(this._scaleViewport&&(t=!1),e!==t&&(this._display.clipViewport=t),t){var n=this._screenSize();this._display.viewportChangeSize(n.w,n.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(this._scaleViewport){var e=this._screenSize();this._display.autoscale(e.w,e.h)}else this._display.scale=1;this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,this._resizeSession&&!this._viewOnly&&this._supportsSetDesktopSize){var e=this._screenSize();n.messages.setDesktopSize(this._sock,Math.floor(e.w),Math.floor(e.h),this._screenID,this._screenFlags),i.Debug("Requested new desktop size: "+e.w+"x"+e.h)}}},{key:"_screenSize",value:function(){var e=this._screen.getBoundingClientRect();return{w:e.width,h:e.height}}},{key:"_fixScrollbars",value:function(){var e=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=e}},{key:"_updateConnectionState",value:function(e){var t=this,n=this._rfbConnectionState;if(e!==n)if("disconnected"!==n){switch(e){case"connected":if("connecting"!==n)return void i.Error("Bad transition to connected state, previous connection state: "+n);break;case"disconnected":if("disconnecting"!==n)return void i.Error("Bad transition to disconnected state, previous connection state: "+n);break;case"connecting":if(""!==n)return void i.Error("Bad transition to connecting state, previous connection state: "+n);break;case"disconnecting":if("connected"!==n&&"connecting"!==n)return void i.Error("Bad transition to disconnecting state, previous connection state: "+n);break;default:return void i.Error("Unknown connection state: "+e)}switch(this._rfbConnectionState=e,i.Debug("New state '"+e+"', was '"+n+"'."),this._disconnTimer&&"disconnecting"!==e&&(i.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close")),e){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout((function(){i.Error("Disconnection timed out."),t._updateConnectionState("disconnected")}),1e3*H);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}else i.Error("Tried changing state of a disconnected RFB object");else i.Debug("Already in state '"+e+"', ignoring")}},{key:"_fail",value:function(e){switch(this._rfbConnectionState){case"disconnecting":i.Error("Failed when disconnecting: "+e);break;case"connected":i.Error("Failed while connected: "+e);break;case"connecting":i.Error("Failed when connecting: "+e);break;default:i.Error("RFB failure: "+e);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(e,t){this._capabilities[e]=t,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(0!==this._sock.rQlen)switch(this._rfbConnectionState){case"disconnected":i.Error("Got data while disconnected");break;case"connected":while(1){if(this._flushing)break;if(!this._normalMsg())break;if(0===this._sock.rQlen)break}break;default:this._initMsg();break}else i.Warn("handleMessage called on an empty receive queue")}},{key:"_handleKeyEvent",value:function(e,t,n){this.sendKey(e,t,n)}},{key:"_handleMouse",value:function(e){if(("click"!==e.type||e.target===this._canvas)&&(e.stopPropagation(),e.preventDefault(),"click"!==e.type&&"contextmenu"!==e.type)){var t=(0,s.clientToElement)(e.clientX,e.clientY,this._canvas);switch(e.type){case"mousedown":(0,l.setCapture)(this._canvas),this._handleMouseButton(t.x,t.y,!0,1<a.dragThreshold||Math.abs(i)>a.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:e,y:t},this._display.viewportChangePos(r,i))}else if(this._mousePos={x:e,y:t},null==this._mouseMoveTimer){var o=Date.now()-this._mouseLastMoveTime;o>K?(this._sendMouse(e,t,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout((function(){n._handleDelayedMouseMove()}),K-o)}}},{key:"_handleDelayedMouseMove",value:function(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}},{key:"_sendMouse",value:function(e,t,r){"connected"===this._rfbConnectionState&&(this._viewOnly||n.messages.pointerEvent(this._sock,this._display.absX(e),this._display.absY(t),r))}},{key:"_handleWheel",value:function(e){if("connected"===this._rfbConnectionState&&!this._viewOnly){e.stopPropagation(),e.preventDefault();var t=(0,s.clientToElement)(e.clientX,e.clientY,this._canvas),n=e.deltaX,r=e.deltaY;0!==e.deltaMode&&(n*=V,r*=V),this._accumulatedWheelDeltaX+=n,this._accumulatedWheelDeltaY+=r,Math.abs(this._accumulatedWheelDeltaX)>=z&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(t.x,t.y,!0,32),this._handleMouseButton(t.x,t.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(t.x,t.y,!0,64),this._handleMouseButton(t.x,t.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=z&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(t.x,t.y,!0,8),this._handleMouseButton(t.x,t.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(t.x,t.y,!0,16),this._handleMouseButton(t.x,t.y,!1,16)),this._accumulatedWheelDeltaY=0)}}},{key:"_fakeMouseMove",value:function(e,t,n){this._handleMouseMove(t,n),this._cursor.move(e.detail.clientX,e.detail.clientY)}},{key:"_handleTapEvent",value:function(e,t){var n=(0,s.clientToElement)(e.detail.clientX,e.detail.clientY,this._canvas);if(null!==this._gestureLastTapTime&&Date.now()-this._gestureLastTapTimeG)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeY+=G;while(e.detail.magnitudeY-this._gestureLastMagnitudeY<-G)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeY-=G;while(e.detail.magnitudeX-this._gestureLastMagnitudeX>G)this._handleMouseButton(n.x,n.y,!0,32),this._handleMouseButton(n.x,n.y,!1,32),this._gestureLastMagnitudeX+=G;while(e.detail.magnitudeX-this._gestureLastMagnitudeX<-G)this._handleMouseButton(n.x,n.y,!0,64),this._handleMouseButton(n.x,n.y,!1,64),this._gestureLastMagnitudeX-=G;break;case"pinch":if(this._fakeMouseMove(e,n.x,n.y),t=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),Math.abs(t-this._gestureLastMagnitudeX)>W){this._handleKeyEvent(v["default"].XK_Control_L,"ControlLeft",!0);while(t-this._gestureLastMagnitudeX>W)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeX+=W;while(t-this._gestureLastMagnitudeX<-W)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeX-=W}this._handleKeyEvent(v["default"].XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(e.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var e=this._sock.rQshiftStr(12).substr(4,7);i.Info("Server ProtocolVersion: "+e);var t=0;switch(e){case"000.000":t=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+e)}if(t){var n="ID:"+this._repeaterID;while(n.length<250)n+="\0";return this._sock.sendString(n),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var r="00"+parseInt(this._rfbVersion,10)+".00"+10*this._rfbVersion%10;this._sock.sendString("RFB "+r+"\n"),i.Debug("Sent ProtocolVersion: "+r),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function e(e,t){for(var n=0;n=3.7){var t=this._sock.rQshift8();if(this._sock.rQwait("security type",t,1))return!1;if(0===t)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var n=this._sock.rQshiftBytes(t);if(i.Debug("Server security types: "+n),e(1,n))this._rfbAuthScheme=1;else if(e(22,n))this._rfbAuthScheme=22;else if(e(16,n))this._rfbAuthScheme=16;else if(e(2,n))this._rfbAuthScheme=2;else{if(!e(19,n))return this._fail("Unsupported security types (types: "+n+")");this._rfbAuthScheme=19}this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),0==this._rfbAuthScheme)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",i.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var e=this._sock.rQshift32(),t="";if(e>0){if(this._sock.rQwait("reason",e,4))return!1;t=this._sock.rQshiftStr(e)}return""!==t?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:t}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+t+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password||void 0===this._rfbCredentials.target)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var e=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(e),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(0==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt version",2))return!1;var e=this._sock.rQshift8(),t=this._sock.rQshift8();if(0!=e||2!=t)return this._fail("Unsupported VeNCrypt version "+e+"."+t);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(1==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt ack",1))return!1;var n=this._sock.rQshift8();if(0!=n)return this._fail("VeNCrypt failure "+n);this._rfbVeNCryptState=2}if(2==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var r=this._sock.rQshift8();if(r<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=r,this._rfbVeNCryptState=3}if(3==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var i=[],a=0;a0&&this._sock.rQwait("tunnel capabilities",16*e,4))return!1;if(this._rfbTightVNC=!0,e>0)return this._negotiateTightTunnels(e),!1}if(this._sock.rQwait("sub auth count",4))return!1;var t=this._sock.rQshift32();if(0===t)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*t,4))return!1;for(var n={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},r=[],o=0;o=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var e=this._sock.rQshift32();return 0===e?(this._rfbInitState="ClientInitialisation",i.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=e,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:e}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var e=this._sock.rQshift16(),t=this._sock.rQshift16(),r=this._sock.rQshift8(),a=this._sock.rQshift8(),s=this._sock.rQshift8(),l=this._sock.rQshift8(),c=this._sock.rQshift16(),u=this._sock.rQshift16(),d=this._sock.rQshift16(),h=this._sock.rQshift8(),f=this._sock.rQshift8(),p=this._sock.rQshift8();this._sock.rQskipBytes(3);var A=this._sock.rQshift32();if(this._sock.rQwait("server init name",A,24))return!1;var g=this._sock.rQshiftStr(A);if(g=(0,o.decodeUTF8)(g,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+A))return!1;var m=this._sock.rQshift16(),v=this._sock.rQshift16(),y=this._sock.rQshift16();this._sock.rQskipBytes(2);var b=16*(m+v+y);if(this._sock.rQwait("TightVNC extended server init header",b,32+A))return!1;this._sock.rQskipBytes(16*m),this._sock.rQskipBytes(16*v),this._sock.rQskipBytes(16*y)}return i.Info("Screen: "+e+"x"+t+", bpp: "+r+", depth: "+a+", bigEndian: "+s+", trueColor: "+l+", redMax: "+c+", greenMax: "+u+", blueMax: "+d+", redShift: "+h+", greenShift: "+f+", blueShift: "+p),this._setDesktopName(g),this._resize(e,t),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,"Intel(r) AMT KVM"===this._fbName&&(i.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),n.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),n.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var e=[];e.push(b.encodings.encodingCopyRect),24==this._fbDepth&&(e.push(b.encodings.encodingTight),e.push(b.encodings.encodingTightPNG),e.push(b.encodings.encodingHextile),e.push(b.encodings.encodingRRE)),e.push(b.encodings.encodingRaw),e.push(b.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),e.push(b.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),e.push(b.encodings.pseudoEncodingDesktopSize),e.push(b.encodings.pseudoEncodingLastRect),e.push(b.encodings.pseudoEncodingQEMUExtendedKeyEvent),e.push(b.encodings.pseudoEncodingExtendedDesktopSize),e.push(b.encodings.pseudoEncodingXvp),e.push(b.encodings.pseudoEncodingFence),e.push(b.encodings.pseudoEncodingContinuousUpdates),e.push(b.encodings.pseudoEncodingDesktopName),e.push(b.encodings.pseudoEncodingExtendedClipboard),24==this._fbDepth&&(e.push(b.encodings.pseudoEncodingVMwareCursor),e.push(b.encodings.pseudoEncodingCursor)),n.messages.clientEncodings(this._sock,e)}},{key:"_initMsg",value:function(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}},{key:"_handleSetColourMapMsg",value:function(){return i.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(i.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var e=this._sock.rQshift32();if(e=(0,r.toSigned32bit)(e),this._sock.rQwait("ServerCutText content",Math.abs(e),8))return!1;if(e>=0){var t=this._sock.rQshiftStr(e);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:t}}))}else{e=Math.abs(e);var a=this._sock.rQshift32(),s=65535&a,l=4278190080&a,c=!!(l&Z);if(c){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var u=0;u<=15;u++){var h=1<0&&"\0"===v.charAt(v.length-1)&&(v=v.slice(0,-1)),v=v.replace("\r\n","\n"),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:v}}))}}}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var e=this._sock.rQshift32(),t=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",t,9))return!1;t>64&&(i.Warn("Bad payload length ("+t+") in fence response"),t=64);var r=this._sock.rQshiftStr(t);return this._supportsFence=!0,e&1<<31?(e&=3,n.messages.clientFence(this._sock,e,r),!0):this._fail("Unexpected fence response")}},{key:"_handleXvpMsg",value:function(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);var e=this._sock.rQshift8(),t=this._sock.rQshift8();switch(t){case 0:i.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=e,i.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+t+")");break}return!0}},{key:"_normalMsg",value:function(){var e,t,r;switch(e=this._FBU.rects>0?0:this._sock.rQshift8(),e){case 0:return r=this._framebufferUpdate(),r&&!this._enabledContinuousUpdates&&n.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),r;case 1:return this._handleSetColourMapMsg();case 2:return i.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return t=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,t&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),i.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+e+")"),i.Debug("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}},{key:"_onFlush",value:function(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}},{key:"_framebufferUpdate",value:function(){if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}while(this._FBU.rects>0){if(null===this._FBU.encoding){if(this._sock.rQwait("rect header",12))return!1;var e=this._sock.rQshiftBytes(12);this._FBU.x=(e[0]<<8)+e[1],this._FBU.y=(e[2]<<8)+e[3],this._FBU.width=(e[4]<<8)+e[5],this._FBU.height=(e[6]<<8)+e[7],this._FBU.encoding=parseInt((e[8]<<24)+(e[9]<<16)+(e[10]<<8)+e[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}},{key:"_handleRect",value:function(){switch(this._FBU.encoding){case b.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case b.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case b.encodings.pseudoEncodingCursor:return this._handleCursor();case b.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var e=document.createEvent("keyboardEvent");void 0!==e.code&&(this._qemuExtKeyEventSupported=!0)}catch(t){}return!0;case b.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case b.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case b.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var o,a=this._sock.rQshift8();this._sock.rQshift8();var s=4;if(0==a){var l=-256;if(o=new Array(n*r*s),this._sock.rQwait("VMware cursor classic encoding",n*r*s*2,2))return!1;for(var c=new Array(n*r),u=0;u>8&255,g=p>>16&255,m=p>>24&255;o[f*s]=A,o[f*s+1]=g,o[f*s+2]=m,o[f*s+3]=255}else(c[f]&l)==l?0==d[f]?(o[f*s]=0,o[f*s+1]=0,o[f*s+2]=0,o[f*s+3]=0):(d[f],o[f*s]=0,o[f*s+1]=0,o[f*s+2]=0,o[f*s+3]=255):(o[f*s]=0,o[f*s+1]=0,o[f*s+2]=0,o[f*s+3]=255)}else{if(1!=a)return i.Warn("The given cursor type is not supported: "+a+" given."),!1;if(this._sock.rQwait("VMware cursor alpha encoding",n*r*4,2))return!1;o=new Array(n*r*s);for(var v=0;v>24&255,o[4*v+1]=y>>16&255,o[4*v+2]=y>>8&255,o[4*v+3]=255&y}}return this._updateCursor(o,e,t,n,r),!0}},{key:"_handleCursor",value:function(){var e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height,i=n*r*4,o=Math.ceil(n/8)*r,a=i+o;if(this._sock.rQwait("cursor encoding",a))return!1;for(var s=this._sock.rQshiftBytes(i),l=this._sock.rQshiftBytes(o),c=new Uint8Array(n*r*4),u=0,d=0;d9?i.Error("qualityLevel must be an integer between 0 and 9"):this._qualityLevel!==e&&(this._qualityLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(e){!Number.isInteger(e)||e<0||e>9?i.Error("compressionLevel must be an integer between 0 and 9"):this._compressionLevel!==e&&(this._compressionLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}}],[{key:"genDES",value:function(e,t){var n=e.split("").map((function(e){return e.charCodeAt(0)}));return new m["default"](n).encrypt(t)}}]),n}(c["default"]);t["default"]=ne,ne.messages={keyEvent:function(e,t,n){var r=e._sQ,i=e._sQlen;r[i]=4,r[i+1]=n,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t,e._sQlen+=8,e.flush()},QEMUExtendedKeyEvent:function(e,t,n,r){function i(e){var t=r>>8,n=255&r;return 224===t&&n<127?128|n:e}var o=e._sQ,a=e._sQlen;o[a]=255,o[a+1]=0,o[a+2]=n>>8,o[a+3]=n,o[a+4]=t>>24,o[a+5]=t>>16,o[a+6]=t>>8,o[a+7]=t;var s=i(r);o[a+8]=s>>24,o[a+9]=s>>16,o[a+10]=s>>8,o[a+11]=s,e._sQlen+=12,e.flush()},pointerEvent:function(e,t,n,r){var i=e._sQ,o=e._sQlen;i[o]=5,i[o+1]=r,i[o+2]=t>>8,i[o+3]=t,i[o+4]=n>>8,i[o+5]=n,e._sQlen+=6,e.flush()},_buildExtendedClipboardFlags:function(e,t){for(var n=new Uint8Array(4),r=0,i=0,o=0;o>24,n[1]=0,n[2]=0,n[3]=r,n},extendedClipboardProvide:function(e,t,n){for(var r=new h["default"],i=[],a=0;a>24&255,s.length>>16&255,s.length>>8&255,255&s.length);for(var l=0;l>24,i[o+1]=n[r[a]]>>16,i[o+2]=n[r[a]]>>8,i[o+3]=n[r[a]]>>0,o+=4,i[3]|=1<2&&void 0!==arguments[2]&&arguments[2],o=e._sQ,a=e._sQlen;o[a]=6,o[a+1]=0,o[a+2]=0,o[a+3]=0,n=i?(0,r.toUnsigned32bit)(-t.length):t.length,o[a+4]=n>>24,o[a+5]=n>>16,o[a+6]=n>>8,o[a+7]=n,e._sQlen+=8;var s=0,l=t.length;while(l>0){for(var c=Math.min(l,e._sQbufferSize-e._sQlen),u=0;u>8,o[a+3]=t,o[a+4]=n>>8,o[a+5]=n,o[a+6]=1,o[a+7]=0,o[a+8]=r>>24,o[a+9]=r>>16,o[a+10]=r>>8,o[a+11]=r,o[a+12]=0,o[a+13]=0,o[a+14]=0,o[a+15]=0,o[a+16]=t>>8,o[a+17]=t,o[a+18]=n>>8,o[a+19]=n,o[a+20]=i>>24,o[a+21]=i>>16,o[a+22]=i>>8,o[a+23]=i,e._sQlen+=24,e.flush()},clientFence:function(e,t,n){var r=e._sQ,i=e._sQlen;r[i]=248,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t;var o=n.length;r[i+8]=o;for(var a=0;a>8,a[s+3]=n,a[s+4]=r>>8,a[s+5]=r,a[s+6]=i>>8,a[s+7]=i,a[s+8]=o>>8,a[s+9]=o,e._sQlen+=10,e.flush()},pixelFormat:function(e,t,n){var r,i=e._sQ,o=e._sQlen;r=t>16?32:t>8?16:8;var a=Math.floor(t/3);i[o]=0,i[o+1]=0,i[o+2]=0,i[o+3]=0,i[o+4]=r,i[o+5]=t,i[o+6]=0,i[o+7]=n?1:0,i[o+8]=0,i[o+9]=(1<>8,n[r+3]=t.length;for(var i=r+4,o=0;o>24,n[i+1]=a>>16,n[i+2]=a>>8,n[i+3]=a,i+=4}e._sQlen+=i-r,e.flush()},fbUpdateRequest:function(e,t,n,r,i,o){var a=e._sQ,s=e._sQlen;"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=0),a[s]=3,a[s+1]=t?1:0,a[s+2]=n>>8&255,a[s+3]=255&n,a[s+4]=r>>8&255,a[s+5]=255&r,a[s+6]=i>>8&255,a[s+7]=255&i,a[s+8]=o>>8&255,a[s+9]=255&o,e._sQlen+=10,e.flush()},xvpOp:function(e,t,n){var r=e._sQ,i=e._sQlen;r[i]=250,r[i+1]=0,r[i+2]=t,r[i+3]=n,e._sQlen+=4,e.flush()}},ne.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(e,t,n){(function(e){e(n("VrN/"))})((function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(A(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==i?(r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=y,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){while(!t.eol())if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function A(e){return function(t,n){var r;while(null!=(r=t.next())){if("<"==r)return n.tokenize=A(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=A(e-1),n.tokenize(t,n)}}return"meta"}}function g(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function v(e,t){var n;while(1){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?_:y}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",C):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",b)}function _(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",w):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",w(e,t,n)):(a="error",x)}function w(e,t,n){return"endTag"!=e?(a="error",w):(m(n),y)}function x(e,t,n){return a="error",w(e,t,n)}function C(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?v(n,r):(v(n,r),n.context=new g(n,r,i==n.indented)),y}return a="error",C}function S(e,t,n){return"equals"==e?k:(l.allowMissing||(a="error"),C(e,t,n))}function k(e,t,n){return"string"==e?E:"word"==e&&l.allowUnquoted?(a="string",C):(a="error",C(e,t,n))}function E(e,t,n){return"string"==e?E:C(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==k&&(e.state=C)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}))},"1hJj":function(e,t,n){var r=n("e4Nc"),i=n("ftKO"),o=n("3A9y");function a(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++tl){var u=c;c=l,l=u}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;if(e="l",l>c){u=c;c=l,l=u}}var d={width:c,height:l,unit:t,k:s};return d},t["default"]=r.jsPDF},"./src/plugin/pagebreaks.js":function(e,t,n){"use strict";n.r(t);n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.array.slice.js"),n("./node_modules/core-js/modules/es.array.join.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),n("./node_modules/core-js/modules/es.object.keys.js");var r=n("./src/worker.js"),i=n("./src/utils.js"),o={toContainer:r["default"].prototype.toContainer};r["default"].template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},r["default"].prototype.toContainer=function(){return o.toContainer.call(this).then((function(){var e=this.prop.container,t=this.prop.pageSize.inner.px.height,n=[].concat(this.opt.pagebreak.mode),r={avoidAll:-1!==n.indexOf("avoid-all"),css:-1!==n.indexOf("css"),legacy:-1!==n.indexOf("legacy")},o={},a=this;["before","after","avoid"].forEach((function(t){var n=r.avoidAll&&"avoid"===t;o[t]=n?[]:[].concat(a.opt.pagebreak[t]||[]),o[t].length>0&&(o[t]=Array.prototype.slice.call(e.querySelectorAll(o[t].join(", "))))}));var s=e.querySelectorAll(".html2pdf__page-break");s=Array.prototype.slice.call(s);var l=e.querySelectorAll("*");Array.prototype.forEach.call(l,(function(e){var n={before:!1,after:r.legacy&&-1!==s.indexOf(e),avoid:r.avoidAll};if(r.css){var a=window.getComputedStyle(e),l=["always","page","left","right"],c=["avoid","avoid-page"];n={before:n.before||-1!==l.indexOf(a.breakBefore||a.pageBreakBefore),after:n.after||-1!==l.indexOf(a.breakAfter||a.pageBreakAfter),avoid:n.avoid||-1!==c.indexOf(a.breakInside||a.pageBreakInside)}}Object.keys(n).forEach((function(t){n[t]=n[t]||-1!==o[t].indexOf(e)}));var u=e.getBoundingClientRect();if(n.avoid&&!n.before){var d=Math.floor(u.top/t),h=Math.floor(u.bottom/t),f=Math.abs(u.bottom-u.top)/t;h!==d&&f<=1&&(n.before=!0)}if(n.before){var p=(0,i.createElement)("div",{style:{display:"block",height:t-u.top%t+"px"}});e.parentNode.insertBefore(p,e)}if(n.after){p=(0,i.createElement)("div",{style:{display:"block",height:t-u.bottom%t+"px"}});e.parentNode.insertBefore(p,e.nextSibling)}}))}))}},"./src/utils.js":function(e,t,n){"use strict";n.r(t),n.d(t,{objType:function(){return i},createElement:function(){return o},cloneNode:function(){return a},unitConvert:function(){return s},toPx:function(){return l}});n("./node_modules/core-js/modules/es.number.constructor.js"),n("./node_modules/core-js/modules/es.symbol.js"),n("./node_modules/core-js/modules/es.symbol.description.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.symbol.iterator.js"),n("./node_modules/core-js/modules/es.array.iterator.js"),n("./node_modules/core-js/modules/es.string.iterator.js"),n("./node_modules/core-js/modules/web.dom-collections.iterator.js");function r(e){return r="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},r(e)}var i=function(e){var t=r(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},o=function(e,t){var n=document.createElement(e);if(t.className&&(n.className=t.className),t.innerHTML){n.innerHTML=t.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;i-- >0;null)r[i].parentNode.removeChild(r[i])}for(var o in t.style)n.style[o]=t.style[o];return n},a=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(e(i,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",(function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft}),!0)),r},s=function(e,t){if("number"===i(e))return 72*e/96/t;var n={};for(var r in e)n[r]=72*e[r]/96/t;return n},l=function(e,t){return Math.floor(e*t/72*96)}},"./src/worker.js":function(e,t,n){"use strict";n.r(t);n("./node_modules/core-js/modules/es.object.assign.js"),n("./node_modules/core-js/modules/es.array.map.js"),n("./node_modules/core-js/modules/es.object.keys.js"),n("./node_modules/core-js/modules/es.array.concat.js"),n("./node_modules/core-js/modules/es.object.to-string.js"),n("./node_modules/core-js/modules/es.regexp.to-string.js"),n("./node_modules/core-js/modules/es.function.name.js"),n("./node_modules/core-js/modules/web.dom-collections.for-each.js");var r=n("jspdf"),i=n("html2canvas"),o=n("./src/utils.js"),a=n("./node_modules/es6-promise/dist/es6-promise.js"),s=n.n(a),l=s().Promise,c=function e(t){var n=Object.assign(e.convert(l.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(l.resolve(),n);return r=r.setProgress(1,e,1,[e]),r=r.set(t),r};c.prototype=Object.create(l.prototype),c.prototype.constructor=c,c.convert=function(e,t){return e.__proto__=t||c.prototype,e},c.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},c.prototype.from=function(e,t){function n(e){switch((0,o.objType)(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}return this.then((function(){switch(t=t||n(e),t){case"string":return this.set({src:(0,o.createElement)("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},c.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},c.prototype.toContainer=function(){var e=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(e).then((function(){var e={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};e.opacity=0;var n=(0,o.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,o.createElement)("div",{className:"html2pdf__overlay",style:e}),this.prop.container=(0,o.createElement)("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(n),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)}))},c.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then((function(){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,i(this.prop.container,e)})).then((function(e){var t=this.opt.html2canvas.onrendered||function(){};t(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},c.prototype.toImg=function(){var e=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(e).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},c.prototype.toPdf=function(){var e=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(e).then((function(){var e=this.prop.canvas,t=this.opt,n=e.height,i=Math.floor(e.width*this.prop.pageSize.inner.ratio),o=Math.ceil(n/i),a=this.prop.pageSize.inner.height,s=document.createElement("canvas"),l=s.getContext("2d");s.width=e.width,s.height=i,this.prop.pdf=this.prop.pdf||new r.jsPDF(t.jsPDF);for(var c=0;c1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/to-length.js"),o=n("./node_modules/core-js/internals/to-absolute-index.js"),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(e,t,n){var r=n("./node_modules/core-js/internals/function-bind-context.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),o=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/to-length.js"),s=n("./node_modules/core-js/internals/array-species-create.js"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,A,g,m){for(var v,y,b=o(p),_=i(b),w=r(A,g,3),x=a(_.length),C=0,S=m||s,k=t?S(p,x):n||h?S(p,0):void 0;x>C;C++)if((f||C in _)&&(v=_[C],y=w(v,C,b),e))if(t)k[C]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return C;case 2:l.call(k,v)}else switch(e){case 4:return!1;case 7:l.call(k,v)}return d?-1:c||u?u:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/well-known-symbol.js"),o=n("./node_modules/core-js/internals/engine-v8-version.js"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"./node_modules/core-js/internals/array-method-is-strict.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},"./node_modules/core-js/internals/array-species-constructor.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/is-array.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js"),a=o("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)?r(t)&&(t=t[a],null===t&&(t=void 0)):t=void 0),void 0===t?Array:t}},"./node_modules/core-js/internals/array-species-create.js":function(e,t,n){var r=n("./node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/own-keys.js"),o=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c"+s+""}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,i=n("./node_modules/core-js/internals/object-create.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/set-to-string-tag.js"),s=n("./node_modules/core-js/internals/iterators.js"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-property-key.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"./node_modules/core-js/internals/define-iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/create-iterator-constructor.js"),o=n("./node_modules/core-js/internals/object-get-prototype-of.js"),a=n("./node_modules/core-js/internals/object-set-prototype-of.js"),s=n("./node_modules/core-js/internals/set-to-string-tag.js"),l=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=n("./node_modules/core-js/internals/redefine.js"),u=n("./node_modules/core-js/internals/well-known-symbol.js"),d=n("./node_modules/core-js/internals/is-pure.js"),h=n("./node_modules/core-js/internals/iterators.js"),f=n("./node_modules/core-js/internals/iterators-core.js"),p=f.IteratorPrototype,A=f.BUGGY_SAFARI_ITERATORS,g=u("iterator"),m="keys",v="values",y="entries",b=function(){return this};e.exports=function(e,t,n,u,f,_,w){i(n,t,u);var x,C,S,k=function(e){if(e===f&&T)return T;if(!A&&e in B)return B[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},E=t+" Iterator",O=!1,B=e.prototype,M=B[g]||B["@@iterator"]||f&&B[f],T=!A&&M||k(f),I="Array"==t&&B.entries||M;if(I&&(x=o(I.call(new e)),p!==Object.prototype&&x.next&&(d||o(x)===p||(a?a(x,p):"function"!=typeof x[g]&&l(x,g,b)),s(x,E,!0,!0),d&&(h[E]=b))),f==v&&M&&M.name!==v&&(O=!0,T=function(){return M.call(this)}),d&&!w||B[g]===T||l(B,g,T),h[t]=T,f)if(C={values:k(v),keys:_?T:k(m),entries:k(y)},w)for(S in C)(A||O||!(S in B))&&c(B,S,C[S]);else r({target:t,proto:!0,forced:A||O},C);return C}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/path.js"),i=n("./node_modules/core-js/internals/has.js"),o=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"./node_modules/core-js/internals/descriptors.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/core-js/internals/document-create-element.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/is-object.js"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(e,t,n){var r=n("./node_modules/core-js/internals/get-built-in.js");e.exports=r("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(e,t,n){var r,i,o=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/engine-user-agent.js"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u?(r=u.split("."),i=r[0]<4?1:r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"./node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,o=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/set-global.js"),l=n("./node_modules/core-js/internals/copy-constructor-properties.js"),c=n("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var n,u,d,h,f,p,A=e.target,g=e.global,m=e.stat;if(u=g?r:m?r[A]||s(A,{}):(r[A]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=i(u,d),h=p&&p.value):h=u[d],n=c(g?d:A+(m?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f===typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(u,d,f,e)}}},"./node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(e,t,n){var r=n("./node_modules/core-js/internals/a-function.js");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},"./node_modules/core-js/internals/global.js":function(e){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-object.js"),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"./node_modules/core-js/internals/html.js":function(e,t,n){var r=n("./node_modules/core-js/internals/get-built-in.js");e.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/document-create-element.js");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js"),i=n("./node_modules/core-js/internals/classof-raw.js"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},"./node_modules/core-js/internals/inspect-source.js":function(e,t,n){var r=n("./node_modules/core-js/internals/shared-store.js"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(e,t,n){var r,i,o,a=n("./node_modules/core-js/internals/native-weak-map.js"),s=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/is-object.js"),c=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),u=n("./node_modules/core-js/internals/has.js"),d=n("./node_modules/core-js/internals/shared-store.js"),h=n("./node_modules/core-js/internals/shared-key.js"),f=n("./node_modules/core-js/internals/hidden-keys.js"),p="Object already initialized",A=s.WeakMap,g=function(e){return o(e)?i(e):r(e,{})},m=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var v=d.state||(d.state=new A),y=v.get,b=v.has,_=v.set;r=function(e,t){if(b.call(v,e))throw new TypeError(p);return t.facade=e,_.call(v,e,t),t},i=function(e){return y.call(v,e)||{}},o=function(e){return b.call(v,e)}}else{var w=h("state");f[w]=!0,r=function(e,t){if(u(e,w))throw new TypeError(p);return t.facade=e,c(e,w,t),t},i=function(e){return u(e,w)?e[w]:{}},o=function(e){return u(e,w)}}e.exports={set:r,get:i,has:o,enforce:g,getterFor:m}},"./node_modules/core-js/internals/is-array.js":function(e,t,n){var r=n("./node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"./node_modules/core-js/internals/is-forced.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js"),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},"./node_modules/core-js/internals/is-object.js":function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"./node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/use-symbol-as-uid.js");e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},"./node_modules/core-js/internals/iterators-core.js":function(e,t,n){"use strict";var r,i,o,a=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/object-get-prototype-of.js"),l=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/well-known-symbol.js"),d=n("./node_modules/core-js/internals/is-pure.js"),h=u("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)),i!==Object.prototype&&(r=i)):f=!0);var A=void 0==r||a((function(){var e={};return r[h].call(e)!==e}));A&&(r={}),d&&!A||c(r,h)||l(r,h,p),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},"./node_modules/core-js/internals/iterators.js":function(e){e.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/engine-v8-version.js"),i=n("./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"./node_modules/core-js/internals/native-weak-map.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/inspect-source.js"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},"./node_modules/core-js/internals/object-assign.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),l=n("./node_modules/core-js/internals/to-object.js"),c=n("./node_modules/core-js/internals/indexed-object.js"),u=Object.assign,d=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=i}))?function(e,t){var n=l(e),i=arguments.length,u=1,d=a.f,h=s.f;while(i>u){var f,p=c(arguments[u++]),A=d?o(p).concat(d(p)):o(p),g=A.length,m=0;while(g>m)f=A[m++],r&&!h.call(p,f)||(n[f]=p[f])}return n}:u},"./node_modules/core-js/internals/object-create.js":function(e,t,n){var r,i=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/object-define-properties.js"),a=n("./node_modules/core-js/internals/enum-bug-keys.js"),s=n("./node_modules/core-js/internals/hidden-keys.js"),l=n("./node_modules/core-js/internals/html.js"),c=n("./node_modules/core-js/internals/document-create-element.js"),u=n("./node_modules/core-js/internals/shared-key.js"),d=">",h="<",f="prototype",p="script",A=u("IE_PROTO"),g=function(){},m=function(e){return h+p+d+e+h+"/"+p+d},v=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";if(t.style)return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(m("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}b=document.domain&&r?v(r):y()||v(r);var e=a.length;while(e--)delete b[f][a[e]];return b()};s[A]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[f]=i(e),n=new g,g[f]=null,n[A]=e):n=b(),void 0===t?n:o(n,t)}},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-define-property.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),s=r.length,l=0;while(s>l)i.f(e,n=r[l++],t[n]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/ie8-dom-define.js"),o=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-property-key.js"),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t),o(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,n){var r=n("./node_modules/core-js/internals/descriptors.js"),i=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),o=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-property-key.js"),l=n("./node_modules/core-js/internals/has.js"),c=n("./node_modules/core-js/internals/ie8-dom-define.js"),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-keys-internal.js"),i=n("./node_modules/core-js/internals/enum-bug-keys.js"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,n){var r=n("./node_modules/core-js/internals/has.js"),i=n("./node_modules/core-js/internals/to-indexed-object.js"),o=n("./node_modules/core-js/internals/array-includes.js").indexOf,a=n("./node_modules/core-js/internals/hidden-keys.js");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"./node_modules/core-js/internals/object-keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-keys-internal.js"),i=n("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,n){var r=n("./node_modules/core-js/internals/an-object.js"),i=n("./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),i=n("./node_modules/core-js/internals/classof.js");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js");e.exports=function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/get-built-in.js"),i=n("./node_modules/core-js/internals/object-get-own-property-names.js"),o=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"./node_modules/core-js/internals/path.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js");e.exports=r},"./node_modules/core-js/internals/redefine.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),o=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/set-global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),l=n("./node_modules/core-js/internals/internal-state.js"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),l=u(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:i(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"./node_modules/core-js/internals/regexp-flags.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/an-object.js");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js");e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,n){var r=n("./node_modules/core-js/internals/object-define-property.js").f,i=n("./node_modules/core-js/internals/has.js"),o=n("./node_modules/core-js/internals/well-known-symbol.js"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":function(e,t,n){var r=n("./node_modules/core-js/internals/shared.js"),i=n("./node_modules/core-js/internals/uid.js"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"./node_modules/core-js/internals/shared-store.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/set-global.js"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},"./node_modules/core-js/internals/shared.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-pure.js"),i=n("./node_modules/core-js/internals/shared-store.js");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(e,t,n){var r=n("./node_modules/core-js/internals/fails.js");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},"./node_modules/core-js/internals/string-multibyte.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=n("./node_modules/core-js/internals/to-string.js"),o=n("./node_modules/core-js/internals/require-object-coercible.js"),a=function(e){return function(t,n){var a,s,l=i(o(t)),c=r(n),u=l.length;return c<0||c>=u?e?"":void 0:(a=l.charCodeAt(c),a<55296||a>56319||c+1===u||(s=l.charCodeAt(c+1))<56320||s>57343?e?l.charAt(c):a:e?l.slice(c,c+2):s-56320+(a-55296<<10)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(e,t,n){var r=n("./node_modules/core-js/internals/require-object-coercible.js"),i=n("./node_modules/core-js/internals/to-string.js"),o=n("./node_modules/core-js/internals/whitespaces.js"),a="["+o+"]",s=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),c=function(e){return function(t){var n=i(r(t));return 1&e&&(n=n.replace(s,"")),2&e&&(n=n.replace(l,"")),n}};e.exports={start:c(1),end:c(2),trim:c(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/indexed-object.js"),i=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return r(i(e))}},"./node_modules/core-js/internals/to-integer.js":function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-integer.js"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,n){var r=n("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return Object(r(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-object.js"),i=n("./node_modules/core-js/internals/is-symbol.js"),o=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),s=a("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,a=e[s];if(void 0!==a){if(void 0===t&&(t="default"),n=a.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},"./node_modules/core-js/internals/to-property-key.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-primitive.js"),i=n("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(e,t,n){var r=n("./node_modules/core-js/internals/well-known-symbol.js"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"./node_modules/core-js/internals/to-string.js":function(e,t,n){var r=n("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){if(r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},"./node_modules/core-js/internals/uid.js":function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(e,t,n){var r=n("./node_modules/core-js/internals/native-symbol.js");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(e,t,n){var r=n("./node_modules/core-js/internals/well-known-symbol.js");t.f=r},"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/shared.js"),o=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/uid.js"),s=n("./node_modules/core-js/internals/native-symbol.js"),l=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},"./node_modules/core-js/internals/whitespaces.js":function(e){e.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.concat.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/fails.js"),o=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/to-object.js"),l=n("./node_modules/core-js/internals/to-length.js"),c=n("./node_modules/core-js/internals/create-property.js"),u=n("./node_modules/core-js/internals/array-species-create.js"),d=n("./node_modules/core-js/internals/array-method-has-species-support.js"),h=n("./node_modules/core-js/internals/well-known-symbol.js"),f=n("./node_modules/core-js/internals/engine-v8-version.js"),p=h("isConcatSpreadable"),A=9007199254740991,g="Maximum allowed index exceeded",m=f>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),v=d("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},b=!m||!v;r({target:"Array",proto:!0,forced:b},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),h=0;for(t=-1,r=arguments.length;tA)throw TypeError(g);for(n=0;n=A)throw TypeError(g);c(d,h++,o)}return d.length=h,d}})},"./node_modules/core-js/modules/es.array.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/to-indexed-object.js"),i=n("./node_modules/core-js/internals/add-to-unscopables.js"),o=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/internal-state.js"),s=n("./node_modules/core-js/internals/define-iterator.js"),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"./node_modules/core-js/modules/es.array.join.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/indexed-object.js"),o=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-method-is-strict.js"),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},"./node_modules/core-js/modules/es.array.map.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/array-iteration.js").map,o=n("./node_modules/core-js/internals/array-method-has-species-support.js"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/is-object.js"),o=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/to-absolute-index.js"),s=n("./node_modules/core-js/internals/to-length.js"),l=n("./node_modules/core-js/internals/to-indexed-object.js"),c=n("./node_modules/core-js/internals/create-property.js"),u=n("./node_modules/core-js/internals/well-known-symbol.js"),d=n("./node_modules/core-js/internals/array-method-has-species-support.js"),h=d("slice"),f=u("species"),p=[].slice,A=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,u,d=l(this),h=s(d.length),g=a(e,h),m=a(void 0===t?h:t,h);if(o(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[f],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return p.call(d,g,m);for(r=new(void 0===n?Array:n)(A(m-g,0)),u=0;g2)if(c=m(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=c.slice(2),a=o.length,s=0;si)return NaN;return parseInt(o,r)}return+c};if(o(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(_?h((function(){b.valueOf.call(n)})):l(n)!=v)?c(new y(w(t)),n,C):w(t)},S=r?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),k=0;S.length>k;k++)s(y,x=S[k])&&!s(C,x)&&g(C,x,A(y,x));C.prototype=b,b.constructor=C,a(i,v,C)}},"./node_modules/core-js/modules/es.object.assign.js":function(e,t,n){var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/object-assign.js");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},"./node_modules/core-js/modules/es.object.keys.js":function(e,t,n){var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/to-object.js"),o=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/fails.js"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(e,t,n){var r=n("./node_modules/core-js/internals/to-string-tag-support.js"),i=n("./node_modules/core-js/internals/redefine.js"),o=n("./node_modules/core-js/internals/object-to-string.js");r||i(Object.prototype,"toString",o,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/redefine.js"),i=n("./node_modules/core-js/internals/an-object.js"),o=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/regexp-flags.js"),l="toString",c=RegExp.prototype,u=c[l],d=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=l;(d||h)&&r(RegExp.prototype,l,(function(){var e=i(this),t=o(e.source),n=e.flags,r=o(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/string-multibyte.js").charAt,i=n("./node_modules/core-js/internals/to-string.js"),o=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/define-iterator.js"),s="String Iterator",l=o.set,c=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"./node_modules/core-js/modules/es.string.link.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/create-html.js"),o=n("./node_modules/core-js/internals/string-html-forced.js");r({target:"String",proto:!0,forced:o("link")},{link:function(e){return i(this,"a","href",e)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/descriptors.js"),o=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/object-define-property.js").f,c=n("./node_modules/core-js/internals/copy-constructor-properties.js"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,A="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=A?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(e,t,n){var r=n("./node_modules/core-js/internals/define-well-known-symbol.js");r("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/internals/export.js"),i=n("./node_modules/core-js/internals/global.js"),o=n("./node_modules/core-js/internals/get-built-in.js"),a=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/native-symbol.js"),c=n("./node_modules/core-js/internals/fails.js"),u=n("./node_modules/core-js/internals/has.js"),d=n("./node_modules/core-js/internals/is-array.js"),h=n("./node_modules/core-js/internals/is-object.js"),f=n("./node_modules/core-js/internals/is-symbol.js"),p=n("./node_modules/core-js/internals/an-object.js"),A=n("./node_modules/core-js/internals/to-object.js"),g=n("./node_modules/core-js/internals/to-indexed-object.js"),m=n("./node_modules/core-js/internals/to-property-key.js"),v=n("./node_modules/core-js/internals/to-string.js"),y=n("./node_modules/core-js/internals/create-property-descriptor.js"),b=n("./node_modules/core-js/internals/object-create.js"),_=n("./node_modules/core-js/internals/object-keys.js"),w=n("./node_modules/core-js/internals/object-get-own-property-names.js"),x=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),C=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),S=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),k=n("./node_modules/core-js/internals/object-define-property.js"),E=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),O=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),B=n("./node_modules/core-js/internals/redefine.js"),M=n("./node_modules/core-js/internals/shared.js"),T=n("./node_modules/core-js/internals/shared-key.js"),I=n("./node_modules/core-js/internals/hidden-keys.js"),L=n("./node_modules/core-js/internals/uid.js"),D=n("./node_modules/core-js/internals/well-known-symbol.js"),P=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=n("./node_modules/core-js/internals/define-well-known-symbol.js"),j=n("./node_modules/core-js/internals/set-to-string-tag.js"),F=n("./node_modules/core-js/internals/internal-state.js"),R=n("./node_modules/core-js/internals/array-iteration.js").forEach,U=T("hidden"),H="Symbol",Q="prototype",K=D("toPrimitive"),z=F.set,V=F.getterFor(H),W=Object[Q],G=i.Symbol,X=o("JSON","stringify"),q=S.f,Y=k.f,Z=x.f,J=E.f,$=M("symbols"),ee=M("op-symbols"),te=M("string-to-symbol-registry"),ne=M("symbol-to-string-registry"),re=M("wks"),ie=i.QObject,oe=!ie||!ie[Q]||!ie[Q].findChild,ae=s&&c((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=q(W,t);r&&delete W[t],Y(e,t,n),r&&e!==W&&Y(W,t,r)}:Y,se=function(e,t){var n=$[e]=b(G[Q]);return z(n,{type:H,tag:e,description:t}),s||(n.description=t),n},le=function(e,t,n){e===W&&le(ee,t,n),p(e);var r=m(t);return p(n),u($,r)?(n.enumerable?(u(e,U)&&e[U][r]&&(e[U][r]=!1),n=b(n,{enumerable:y(0,!1)})):(u(e,U)||Y(e,U,y(1,{})),e[U][r]=!0),ae(e,r,n)):Y(e,r,n)},ce=function(e,t){p(e);var n=g(t),r=_(n).concat(pe(n));return R(r,(function(t){s&&!de.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?b(e):ce(b(e),t)},de=function(e){var t=m(e),n=J.call(this,t);return!(this===W&&u($,t)&&!u(ee,t))&&(!(n||!u(this,t)||!u($,t)||u(this,U)&&this[U][t])||n)},he=function(e,t){var n=g(e),r=m(t);if(n!==W||!u($,r)||u(ee,r)){var i=q(n,r);return!i||!u($,r)||u(n,U)&&n[U][r]||(i.enumerable=!0),i}},fe=function(e){var t=Z(g(e)),n=[];return R(t,(function(e){u($,e)||u(I,e)||n.push(e)})),n},pe=function(e){var t=e===W,n=Z(t?ee:g(e)),r=[];return R(n,(function(e){!u($,e)||t&&!u(W,e)||r.push($[e])})),r};if(l||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,t=L(e),n=function e(n){this===W&&e.call(ee,n),u(this,U)&&u(this[U],t)&&(this[U][t]=!1),ae(this,t,y(1,n))};return s&&oe&&ae(W,t,{configurable:!0,set:n}),se(t,e)},B(G[Q],"toString",(function(){return V(this).tag})),B(G,"withoutSetter",(function(e){return se(L(e),e)})),E.f=de,k.f=le,S.f=he,w.f=x.f=fe,C.f=pe,P.f=function(e){return se(D(e),e)},s&&(Y(G[Q],"description",{configurable:!0,get:function(){return V(this).description}}),a||B(W,"propertyIsEnumerable",de,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),R(_(re),(function(e){N(e)})),r({target:H,stat:!0,forced:!l},{for:function(e){var t=v(e);if(u(te,t))return te[t];var n=G(t);return te[t]=n,ne[n]=t,n},keyFor:function(e){if(!f(e))throw TypeError(e+" is not a symbol");if(u(ne,e))return ne[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:c((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(A(e))}}),X){var Ae=!l||c((function(){var e=G();return"[null]"!=X([e])||"{}"!=X({a:e})||"{}"!=X(Object(e))}));r({target:"JSON",stat:!0,forced:Ae},{stringify:function(e,t,n){var r,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!f(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!f(t))return t}),i[1]=t,X.apply(null,i)}})}G[Q][K]||O(G[Q],K,G[Q].valueOf),j(G,H),I[U]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/dom-iterables.js"),o=n("./node_modules/core-js/internals/array-for-each.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,t,n){var r=n("./node_modules/core-js/internals/global.js"),i=n("./node_modules/core-js/internals/dom-iterables.js"),o=n("./node_modules/core-js/modules/es.array.iterator.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in i){var h=r[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(A){f[l]=u}if(f[c]||a(f,c,d),i[d])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(A){f[p]=o[p]}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(e){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function n(e){return"function"===typeof e}var i=void 0;i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var o=i,a=0,s=void 0,l=void 0,c=function(e,t){w[a]=e,w[a+1]=t,a+=2,2===a&&(l?l(x):S())};function u(e){l=e}function d(e){c=e}var h="undefined"!==typeof window?window:void 0,f=h||{},p=f.MutationObserver||f.WebKitMutationObserver,A="undefined"===typeof self&&"undefined"!==typeof r&&"[object process]"==={}.toString.call(r),g="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function m(){return function(){return r.nextTick(x)}}function v(){return"undefined"!==typeof s?function(){s(x)}:_()}function y(){var e=0,t=new p(x),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=x,function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(x,1)}}var w=new Array(1e3);function x(){for(var e=0;en.getHeight()&&(r.textPosition="top",l=!0);var c=l?-5-i.height:f+8;a+i.width/2>n.getWidth()?(r.textPosition=["100%",c],r.textAlign="right"):a-i.width/2<0&&(r.textPosition=[0,c],r.textAlign="left")}}))}function m(i,o){var s,c=g[i],u=g[o],d=p[c],f=new l(d,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(d.title=r.newTitle),c&&!u){if(h(c))s={model:f,onclick:f.option.onclick,featureName:c};else{var m=a.get(c);if(!m)return;s=new m(f,t,n)}A[c]=s}else{if(s=A[u],!s)return;s.model=f,s.ecModel=t,s.api=n}c||!u?f.get("show")&&!s.unusable?(v(f,s,c),f.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&r[e].trigger(t)},s.render&&s.render(f,t,n,r)):s.remove&&s.remove(t,n):s.dispose&&s.dispose(t,n)}function v(r,o,a){var l=r.getModel("iconStyle"),c=r.getModel("emphasis.iconStyle"),u=o.getIcons?o.getIcons():r.get("icon"),h=r.get("title")||{};if("string"===typeof u){var p=u,A=h;u={},h={},u[a]=p,h[a]=A}var g=r.iconPaths={};i.each(u,(function(a,u){var p=s.createIcon(a,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(l.getItemStyle()),p.hoverStyle=c.getItemStyle(),p.setStyle({text:h[u],textAlign:c.get("textAlign"),textBorderRadius:c.get("textBorderRadius"),textPadding:c.get("textPadding"),textFill:null});var A=e.getModel("tooltip");A&&A.get("show")&&p.attr("tooltip",i.extend({content:h[u],formatter:A.get("formatter",!0)||function(){return h[u]},formatterParams:{componentType:"toolbox",name:u,title:h[u],$vars:["name","title"]},position:A.get("position",!0)||"bottom"},A.option)),s.setHoverStyle(p),e.get("showTitle")&&(p.__title=h[u],p.on("mouseover",(function(){var t=c.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";p.setStyle({textFill:c.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:c.get("textBackgroundColor"),textPosition:c.get("textPosition")||n})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(r.get("iconStatus."+u)||"normal"),d.add(p),p.on("click",i.bind(o.onclick,o,t,n,u)),g[u]=p}))}},updateView:function(e,t,n,r){i.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,n,r)}))},remove:function(e,t){i.each(this._features,(function(n){n.remove&&n.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){i.each(this._features,(function(n){n.dispose&&n.dispose(e,t)}))}});function h(e){return 0===e.indexOf("my")}e.exports=d},"2B6p":function(e,t){function n(e,t,n){var r=e.getZoom(),i=e.getCenter(),o=t.zoom,a=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;i=e.pointToData(a);e.setCenter(i)}if(null!=o){if(n){var s=n.min||0,l=n.max||1/0;o=Math.max(Math.min(r*o,l),s)/r}e.scale[0]*=o,e.scale[1]*=o;var c=e.position,u=(t.originX-c[0])*(o-1),d=(t.originY-c[1])*(o-1);c[0]-=u,c[1]-=d,e.updateTransform();i=e.pointToData(a);e.setCenter(i),e.setZoom(o*r)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=n},"2BaD":function(e,t,n){"use strict";var r=n("VTBJ"),i=n("q1tI"),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},a=o,s=n("6VBw"),l=function(e,t){return i["createElement"](s["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:t,icon:a}))};l.displayName="CloseCircleOutlined";t["a"]=i["forwardRef"](l)},"2DNl":function(e,t,n){var r=n("IMiH"),i=n("loD1"),o=n("59Ip"),a=n("aKvl"),s=n("n1HI"),l=n("hX1E"),c=l.normalizeRadian,u=n("Sj9i"),d=n("hyiK"),h=r.CMD,f=2*Math.PI,p=1e-4;function A(e,t){return Math.abs(e-t)t&&c>r&&c>o&&c>s||c1&&v(),h=u.cubicAt(t,r,o,s,m[0]),A>1&&(f=u.cubicAt(t,r,o,s,m[1]))),2===A?bt&&s>r&&s>o||s=0&&c<=1){for(var d=0,h=u.quadraticAt(t,r,o,c),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);g[0]=-l,g[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u%f<1e-4){r=0,i=f;var d=o?1:-1;return a>=g[0]+e&&a<=g[1]+e?d:0}if(o){l=r;r=c(i),i=c(l)}else r=c(r),i=c(i);r>i&&(i+=f);for(var h=0,p=0;p<2;p++){var A=g[p];if(A+e>a){var m=Math.atan2(s,A);d=o?1:-1;m<0&&(m=f+m),(m>=r&&m<=i||m+f>=r&&m+f<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(d=-d),h+=d)}}return h}function w(e,t,n,r,l){for(var c=0,u=0,f=0,p=0,g=0,m=0;m1&&(n||(c+=d(u,f,p,g,r,l))),1===m&&(u=e[m],f=e[m+1],p=u,g=f),v){case h.M:p=e[m++],g=e[m++],u=p,f=g;break;case h.L:if(n){if(i.containStroke(u,f,e[m],e[m+1],t,r,l))return!0}else c+=d(u,f,e[m],e[m+1],r,l)||0;u=e[m++],f=e[m++];break;case h.C:if(n){if(o.containStroke(u,f,e[m++],e[m++],e[m++],e[m++],e[m],e[m+1],t,r,l))return!0}else c+=y(u,f,e[m++],e[m++],e[m++],e[m++],e[m],e[m+1],r,l)||0;u=e[m++],f=e[m++];break;case h.Q:if(n){if(a.containStroke(u,f,e[m++],e[m++],e[m],e[m+1],t,r,l))return!0}else c+=b(u,f,e[m++],e[m++],e[m],e[m+1],r,l)||0;u=e[m++],f=e[m++];break;case h.A:var w=e[m++],x=e[m++],C=e[m++],S=e[m++],k=e[m++],E=e[m++];m+=1;var O=1-e[m++],B=Math.cos(k)*C+w,M=Math.sin(k)*S+x;m>1?c+=d(u,f,B,M,r,l):(p=B,g=M);var T=(r-w)*S/C+w;if(n){if(s.containStroke(w,x,S,k,k+E,O,t,T,l))return!0}else c+=_(w,x,S,k,k+E,O,T,l);u=Math.cos(k+E)*C+w,f=Math.sin(k+E)*S+x;break;case h.R:p=u=e[m++],g=f=e[m++];var I=e[m++],L=e[m++];B=p+I,M=g+L;if(n){if(i.containStroke(p,g,B,g,t,r,l)||i.containStroke(B,g,B,M,t,r,l)||i.containStroke(B,M,p,M,t,r,l)||i.containStroke(p,M,p,g,t,r,l))return!0}else c+=d(B,g,B,M,r,l),c+=d(p,M,p,g,r,l);break;case h.Z:if(n){if(i.containStroke(u,f,p,g,t,r,l))return!0}else c+=d(u,f,p,g,r,l);u=p,f=g;break}}return n||A(f,g)||(c+=d(u,f,p,g,r,l)||0),0!==c}function x(e,t,n){return w(e,0,!1,t,n)}function C(e,t,n,r){return w(e,t,!0,n,r)}t.contain=x,t.containStroke=C},"2dDv":function(e,t,n){var r=n("bYtY"),i=n("Fofx"),o=n("+TT/"),a=n("aX7z"),s=n("D1WM"),l=n("IwbS"),c=n("OELB"),u=n("72pK"),d=r.each,h=Math.min,f=Math.max,p=Math.floor,A=Math.ceil,g=c.round,m=Math.PI;function v(e,t,n){this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function y(e,t){return h(f(e,t[0]),t[1])}function b(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function _(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();d(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),a.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],c=this.dimensions.length,u=y(t.get("axisExpandWidth"),l),d=y(t.get("axisExpandCount")||0,[0,c]),h=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,f=t.get("axisExpandWindow");if(f)e=y(f[1]-f[0],l),f[1]=f[0]+e;else{e=y(u*(d-1),l);var m=t.get("axisExpandCenter")||p(c/2);f=[u*m-e/2],f[1]=f[0]+e}var v=(s-e)/(c-d);v<3&&(v=0);var b=[p(g(f[0]/u,1))+1,A(g(f[1]/u,1))-1],_=v/u*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:v,axisExpandWindow:f,axisCount:c,winInnerIndices:b,axisExpandWindow0Pos:_}},_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])})),d(n,(function(t,n){var a=(r.axisExpandable?_:b)(n,r),s={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},l={horizontal:m/2,vertical:0},c=[s[o].x+e.x,s[o].y+e.y],u=l[o],d=i.create();i.rotate(d,d,u),i.translate(d,d,c),this._axesLayout[t]={position:c,rotation:u,transform:d,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];r.each(a,(function(t){s.push(e.mapDimension(t)),l.push(o.get(t).model)}));for(var c=this.hasAxisBrushed(),u=n;ui*(1-d[0])?(l="jump",a=s-i*(1-d[2])):(a=s-i*d[1])>=0&&(a=s-i*(1-d[1]))<=0&&(a=0),a*=t.axisExpandWidth/c,a?u(a,r,o,"all"):l="none";else{i=r[1]-r[0];var A=o[1]*s/i;r=[f(0,A-i/2)],r[1]=h(o[1],r[0]+i),r[0]=r[1]-i}return{axisExpandWindow:r,behavior:l}}};var w=v;e.exports=w},"2fGM":function(e,t,n){var r=n("bYtY"),i=n("bLfw"),o=n("nkfE"),a=n("ICMv"),s=i.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(s.prototype,a);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(e,t){return t.type||(t.data?"category":"value")}o("angle",s,c,l.angle),o("radius",s,c,l.radius)},"2fM7":function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),o=n("pVnL"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("7W2i"),h=n.n(d),f=n("LQ03"),p=n.n(f),A=n("q1tI"),g=n("BGR+"),m=n("TSYQ"),v=n.n(m),y=n("1OyB"),b=n("vuIU"),_=n("Ji7U"),w=n("LK+K"),x=n("rePB"),C=n("Ff2n"),S=n("ODXe"),k=n("4IlW"),E=n("bX4T"),O=n("YrtM"),B=n("+nKL"),M=function(e){var t,n=e.className,r=e.customizeIcon,i=e.customizeIconProps,o=e.onMouseDown,a=e.onClick,s=e.children;return t="function"===typeof r?r(i):r,A["createElement"]("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:A["createElement"]("span",{className:v()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},T=M,I=function(e,t){var n=e.prefixCls,r=e.id,i=e.flattenOptions,o=e.childrenAsData,a=e.values,s=e.searchValue,l=e.multiple,c=e.defaultActiveFirstOption,u=e.height,d=e.itemHeight,h=e.notFoundContent,f=e.open,p=e.menuItemSelectedIcon,g=e.virtual,m=e.onSelect,y=e.onToggleOpen,b=e.onActiveValue,_=e.onScroll,w=e.onMouseEnter,M="".concat(n,"-item"),I=Object(O["a"])((function(){return i}),[f,i],(function(e,t){return t[0]&&e[1]!==t[1]})),L=A["useRef"](null),D=function(e){e.preventDefault()},P=function(e){L.current&&L.current.scrollTo({index:e})},N=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];return Object(U["a"])(e).map((function(e,n){if(!A["isValidElement"](e)||!e.type)return null;var r=e.type.isSelectOptGroup,i=e.key,o=e.props,a=o.children,s=Object(C["a"])(o,["children"]);return t||!r?H(e):Object(R["a"])(Object(R["a"])({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:Q(a)})})).filter((function(e){return e}))}var K=n("KQm4"),z=n("T5bk"),V=n("U8pU"),W=n("Kwbf");function G(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function X(e,t){var n=t.labelInValue,r=t.combobox;if(void 0===e||""===e&&r)return[];var i=Array.isArray(e)?e:[e];return n?i.map((function(e){var t=e.key,n=e.value;return void 0!==n?n:t})):i}function q(e,t){var n=t.optionLabelProp,r=t.labelInValue,i=t.prevValue,o=t.options,a=t.getLabeledValue,s=e;return r&&(s=s.map((function(e){return a(e,{options:o,prevValue:i,labelInValue:r,optionLabelProp:n})}))),s}function Y(e,t){var n,r=Object(K["a"])(t);for(n=e.length-1;n>=0;n-=1)if(!e[n].disabled)break;var i=null;return-1!==n&&(i=r[n],r.splice(n,1)),{values:r,removedValue:i}}var Z="undefined"!==typeof window&&window.document&&window.document.documentElement,J=Z,$=0;function ee(){var e;return J?(e=$,$+=1):e="TEST_OR_SSR",e}function te(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 ne(e){var t=[];function n(e,r){e.forEach((function(e){r||!("options"in e)?t.push({key:te(e,t.length),groupOption:r,data:e}):(t.push({key:te(e,t.length),group:!0,data:e}),n(e.options,!0))}))}return n(e,!1),t}function re(e){var t=Object(R["a"])({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(W["a"])(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.prevValueOptions,i=void 0===r?[]:r,o=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;o.set(t.value,t)}})),e.map((function(e){var t=o.get(e);return t||(t=Object(R["a"])({},i.find((function(t){return t._INTERNAL_OPTION_VALUE_===e})))),re(t)}))}var oe=function(e,t){var n,r=t.options,i=t.prevValue,o=t.labelInValue,a=t.optionLabelProp,s=ie([e],r)[0],l={value:e},c=G(i);return o&&(n=c.find((function(t){return"object"===Object(V["a"])(t)&&"value"in t?t.value===e:t.key===e}))),n&&"object"===Object(V["a"])(n)&&"label"in n?(l.label=n.label,s&&"string"===typeof n.label&&"string"===typeof s[a]&&n.label.trim()!==s[a].trim()&&Object(W["a"])(!1,"`label` of `value` is not same as `label` in Select options.")):l.label=s&&a in s?s[a]:e,l.key=l.value,l};function ae(e){return G(e).join("")}function se(e){return function(t,n){var r=t.toLowerCase();if("options"in n)return ae(n.label).toLowerCase().includes(r);var i=n[e],o=ae(i).toLowerCase();return o.includes(r)}}function le(e,t,n){var r,i=n.optionFilterProp,o=n.filterOption,a=[];return!1===o?t:(r="function"===typeof o?o:se(i),t.forEach((function(t){if("options"in t){var n=r(e,t);if(n)a.push(t);else{var i=t.options.filter((function(t){return r(e,t)}));i.length&&a.push(Object(R["a"])(Object(R["a"])({},t),{},{options:i}))}}else r(e,re(t))&&a.push(t)})),a)}function ce(e,t){if(!t||!t.length)return null;var n=!1;function r(e,t){var i=Object(z["a"])(t),o=i[0],a=i.slice(1);if(!o)return[e];var s=e.split(o);return n=n||s.length>1,s.reduce((function(e,t){return[].concat(Object(K["a"])(e),Object(K["a"])(r(t,a)))}),[]).filter((function(e){return e}))}var i=r(e,t);return n?i:null}function ue(e,t){var n=ie([e],t)[0];return n.disabled}function de(e,t,n,r){var i=G(t).slice().sort(),o=Object(K["a"])(e),a=new Set;return e.forEach((function(e){e.options?e.options.forEach((function(e){a.add(e.value)})):a.add(e.value)})),i.forEach((function(e){var t,i=r?e.value:e;a.has(i)||o.push(r?(t={},Object(x["a"])(t,n,e.label),Object(x["a"])(t,"value",i),t):{value:i})})),o}var he=n("6cGi"),fe=n("HTfv"),pe=n("c+Xe"),Ae=function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,o=e.disabled,a=e.tabIndex,s=e.autoFocus,l=e.autoComplete,c=e.editable,u=e.accessibilityIndex,d=e.value,h=e.onKeyDown,f=e.onMouseDown,p=e.onChange,g=e.onPaste,m=e.onCompositionStart,v=e.onCompositionEnd,y=e.open,b=e.attrs,_=i||A["createElement"]("input",null),w=_,x=w.ref,C=w.props,S=C.onKeyDown,k=C.onChange,E=C.onMouseDown,O=C.onCompositionStart,B=C.onCompositionEnd,M=C.style;return _=A["cloneElement"](_,Object(R["a"])(Object(R["a"])({id:r,ref:Object(pe["a"])(t,x),disabled:o,tabIndex:a,autoComplete:l||"off",autoFocus:s,className:"".concat(n,"-selection-search-input"),style:Object(R["a"])(Object(R["a"])({},M),{},{opacity:c?null:0}),role:"combobox","aria-expanded":y,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":"".concat(r,"_list_").concat(u)},b),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",onKeyDown:function(e){h(e),S&&S(e)},onMouseDown:function(e){f(e),E&&E(e)},onChange:function(e){p(e),k&&k(e)},onCompositionStart:function(e){m(e),O&&O(e)},onCompositionEnd:function(e){v(e),B&&B(e)},onPaste:g})),_},ge=A["forwardRef"](Ae);ge.displayName="Input";var me=ge;function ve(e,t){J?A["useLayoutEffect"](e,t):A["useEffect"](e,t)}var ye="__RC_SELECT_MAX_REST_COUNT__",be=function(e){var t=e.id,n=e.prefixCls,r=e.values,i=e.open,o=e.searchValue,a=e.inputRef,s=e.placeholder,l=e.disabled,c=e.mode,u=e.showSearch,d=e.autoFocus,h=e.autoComplete,f=e.accessibilityIndex,p=e.tabIndex,g=e.removeIcon,m=e.choiceTransitionName,y=e.maxTagCount,b=e.maxTagTextLength,_=e.maxTagPlaceholder,w=void 0===_?function(e){return"+ ".concat(e.length," ...")}:_,k=e.tagRender,O=e.onSelect,B=e.onInputChange,M=e.onInputPaste,I=e.onInputKeyDown,L=e.onInputMouseDown,D=e.onInputCompositionStart,P=e.onInputCompositionEnd,N=A["useState"](!1),j=Object(S["a"])(N,2),F=j[0],U=j[1],H=A["useRef"](null),Q=A["useState"](0),K=Object(S["a"])(Q,2),z=K[0],V=K[1];A["useEffect"]((function(){U(!0)}),[]);var W=i||"tags"===c?o:"",G="tags"===c||i&&u;ve((function(){V(H.current.scrollWidth)}),[W]);var X,q=r;"number"===typeof y&&(X=r.length-y,q=r.slice(0,y)),"number"===typeof b&&(q=q.map((function(e){var t=e.label,n=Object(C["a"])(e,["label"]),r=t;if("string"===typeof t||"number"===typeof t){var i=String(r);i.length>b&&(r="".concat(i.slice(0,b),"..."))}return Object(R["a"])(Object(R["a"])({},n),{},{label:r})}))),X>0&&q.push({key:ye,label:"function"===typeof w?w(r.slice(y)):w});var Y=A["createElement"](fe["CSSMotionList"],{component:!1,keys:q,motionName:m,motionAppear:F},(function(e){var t=e.key,r=e.label,i=e.value,o=e.disabled,a=e.className,s=e.style,l=t||i,c=t!==ye&&!o,u=function(e){e.preventDefault(),e.stopPropagation()},d=function(e){e&&e.stopPropagation(),O(i,{selected:!1})};return"function"===typeof k?A["createElement"]("span",{key:l,onMouseDown:u,className:a,style:s},k({label:r,value:i,disabled:o,closable:c,onClose:d})):A["createElement"]("span",{key:l,className:v()(a,"".concat(n,"-selection-item"),Object(x["a"])({},"".concat(n,"-selection-item-disabled"),o)),style:s},A["createElement"]("span",{className:"".concat(n,"-selection-item-content")},r),c&&A["createElement"](T,{className:"".concat(n,"-selection-item-remove"),onMouseDown:u,onClick:d,customizeIcon:g},"\xd7"))}));return A["createElement"](A["Fragment"],null,Y,A["createElement"]("span",{className:"".concat(n,"-selection-search"),style:{width:z}},A["createElement"](me,{ref:a,open:i,prefixCls:n,id:t,inputElement:null,disabled:l,autoFocus:d,autoComplete:h,editable:G,accessibilityIndex:f,value:W,onKeyDown:I,onMouseDown:L,onChange:B,onPaste:M,onCompositionStart:D,onCompositionEnd:P,tabIndex:p,attrs:Object(E["a"])(e,!0)}),A["createElement"]("span",{ref:H,className:"".concat(n,"-selection-search-mirror"),"aria-hidden":!0},W,"\xa0")),!r.length&&!W&&A["createElement"]("span",{className:"".concat(n,"-selection-placeholder")},s))},_e=be,we=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.accessibilityIndex,c=e.mode,u=e.open,d=e.values,h=e.placeholder,f=e.tabIndex,p=e.showSearch,g=e.searchValue,m=e.activeValue,v=e.onInputKeyDown,y=e.onInputMouseDown,b=e.onInputChange,_=e.onInputPaste,w=e.onInputCompositionStart,x=e.onInputCompositionEnd,C=A["useState"](!1),k=Object(S["a"])(C,2),O=k[0],B=k[1],M="combobox"===c,T=M||p&&u,I=d[0],L=g||"";M&&m&&!O&&(L=m),A["useEffect"]((function(){M&&B(!1)}),[M,m]);var D=!("combobox"!==c&&!u)&&!!L,P=!I||"string"!==typeof I.label&&"number"!==typeof I.label?void 0:I.label.toString();return A["createElement"](A["Fragment"],null,A["createElement"]("span",{className:"".concat(n,"-selection-search")},A["createElement"](me,{ref:i,prefixCls:n,id:r,open:u,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:T,accessibilityIndex:l,value:L,onKeyDown:v,onMouseDown:y,onChange:function(e){B(!0),b(e)},onPaste:_,onCompositionStart:w,onCompositionEnd:x,tabIndex:f,attrs:Object(E["a"])(e,!0)})),!M&&I&&!D&&A["createElement"]("span",{className:"".concat(n,"-selection-item"),title:P},I.label),!I&&!D&&A["createElement"]("span",{className:"".concat(n,"-selection-placeholder")},h))},xe=we;function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=A["useRef"](null),n=A["useRef"](null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return A["useEffect"]((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var Se=function(e,t){var n=Object(A["useRef"])(null),r=Object(A["useRef"])(!1),i=e.prefixCls,o=e.multiple,a=e.open,s=e.mode,l=e.showSearch,c=e.tokenWithEnter,u=e.onSearch,d=e.onSearchSubmit,h=e.onToggleOpen,f=e.onInputKeyDown,p=e.domRef;A["useImperativeHandle"](t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=Ce(0),m=Object(S["a"])(g,2),v=m[0],y=m[1],b=function(e){var t=e.which;t!==k["a"].UP&&t!==k["a"].DOWN||e.preventDefault(),f&&f(e),t!==k["a"].ENTER||"tags"!==s||r.current||a||d(e.target.value),[k["a"].SHIFT,k["a"].TAB,k["a"].BACKSPACE,k["a"].ESC].includes(t)||h(!0)},_=function(){y(!0)},w=Object(A["useRef"])(null),x=function(e){!1!==u(e,!0,r.current)&&h(!0)},C=function(){r.current=!0},E=function(){r.current=!1},O=function(e){var t=e.target.value;if(c&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,x(t)},B=function(e){var t=e.clipboardData,n=t.getData("text");w.current=n},M=function(e){var t=v();if(e.target!==n.current){t||e.preventDefault();var r=void 0!==document.body.style.msTouchAction;r?setTimeout((function(){n.current.focus()})):n.current.focus()}("combobox"===s||l&&t)&&a||(a&&u("",!0,!1),h())},T={inputRef:n,onInputKeyDown:b,onInputMouseDown:_,onInputChange:O,onInputPaste:B,onInputCompositionStart:C,onInputCompositionEnd:E},I=o?A["createElement"](_e,Object.assign({},e,T)):A["createElement"](xe,Object.assign({},e,T));return A["createElement"]("div",{ref:p,className:"".concat(i,"-selector"),onMouseDown:M},I)},ke=A["forwardRef"](Se);ke.displayName="Selector";var Ee=ke,Oe=n("Uaa1"),Be=function(e){var t="number"!==typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},Me=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),i=e.children,o=e.popupElement,a=e.containerWidth,s=e.animation,l=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,h=void 0===d?"ltr":d,f=e.dropdownMatchSelectWidth,p=void 0===f||f,g=e.dropdownRender,m=e.dropdownAlign,y=e.getPopupContainer,b=e.empty,_=e.getTriggerDOMNode,w=Object(C["a"])(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),S="".concat(n,"-dropdown"),k=o;g&&(k=g(o));var E=A["useMemo"]((function(){return Be(p)}),[p]),O=s?"".concat(S,"-").concat(s):l,B=A["useRef"](null);A["useImperativeHandle"](t,(function(){return{getPopupElement:function(){return B.current}}}));var M=Object(R["a"])({minWidth:a},c);return"number"===typeof p?M.width=p:p&&(M.width=a),A["createElement"](Oe["a"],Object.assign({},w,{showAction:[],hideAction:[],popupPlacement:"rtl"===h?"bottomRight":"bottomLeft",builtinPlacements:E,prefixCls:S,popupTransitionName:O,popup:A["createElement"]("div",{ref:B},k),popupAlign:m,popupVisible:r,getPopupContainer:y,popupClassName:v()(u,Object(x["a"])({},"".concat(S,"-empty"),b)),popupStyle:M,getTriggerDOMNode:_}),i)},Te=A["forwardRef"](Me);Te.displayName="SelectTrigger";var Ie=Te,Le="RC_SELECT_INTERNAL_PROPS_MARK";function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=A["useState"](!1),n=Object(S["a"])(t,2),r=n[0],i=n[1],o=A["useRef"](null),a=function(){window.clearTimeout(o.current)};A["useEffect"]((function(){return a}),[]);var s=function(t,n){a(),o.current=window.setTimeout((function(){i(t),n&&n()}),e)};return[r,s,a]}function Pe(e,t,n){var r=A["useRef"](null);r.current={elements:e.filter((function(e){return e})),open:t,triggerOpen:n},A["useEffect"]((function(){function e(e){var t=e.target;r.current.open&&r.current.elements.every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}function Ne(e){var t=A["useRef"](e),n=A["useMemo"]((function(){var n=new Map;t.current.forEach((function(e){var t=e.value,r=e.label;t!==r&&n.set(t,r)}));var r=e.map((function(e){var t=n.get(e.value);return e.value===e.label&&t?Object(R["a"])(Object(R["a"])({},e),{},{label:t}):e}));return t.current=r,r}),[e]);return n}function je(e,t){var n=A["useRef"](null),r=A["useMemo"]((function(){var e=new Map;return t.forEach((function(t){var n=t.data.value;e.set(n,t)})),e}),[e,t]);n.current=r;var i=function(e){return e.map((function(e){return n.current.get(e)})).filter(Boolean)};return i}var Fe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Re(e){var t=e.prefixCls,n=e.components.optionList,r=e.convertChildrenToData,i=e.flattenOptions,o=e.getLabeledValue,a=e.filterOptions,s=e.isValueDisabled,l=e.findValueOption,c=(e.warningProps,e.fillOptionsWithMissingValue),u=e.omitDOMProps;function d(e,d){var h,f=e.prefixCls,p=void 0===f?t:f,g=e.className,m=e.id,y=e.open,b=e.defaultOpen,_=e.options,w=e.children,E=e.mode,O=e.value,B=e.defaultValue,M=e.labelInValue,I=e.showSearch,L=e.inputValue,D=e.searchValue,P=e.filterOption,N=e.optionFilterProp,j=void 0===N?"value":N,F=e.autoClearSearchValue,U=void 0===F||F,H=e.onSearch,Q=e.allowClear,z=e.clearIcon,V=e.showArrow,W=e.inputIcon,G=e.menuItemSelectedIcon,Z=e.disabled,J=e.loading,$=e.defaultActiveFirstOption,te=e.notFoundContent,ne=void 0===te?"Not Found":te,re=e.optionLabelProp,ie=e.backfill,oe=e.getInputElement,ae=e.getPopupContainer,se=e.listHeight,le=void 0===se?200:se,ue=e.listItemHeight,de=void 0===ue?20:ue,fe=e.animation,pe=e.transitionName,Ae=e.virtual,ge=e.dropdownStyle,me=e.dropdownClassName,ye=e.dropdownMatchSelectWidth,be=e.dropdownRender,_e=e.dropdownAlign,we=e.showAction,xe=void 0===we?[]:we,Se=e.direction,ke=e.tokenSeparators,Oe=e.tagRender,Be=e.onPopupScroll,Me=e.onDropdownVisibleChange,Te=e.onFocus,Re=e.onBlur,Ue=e.onKeyUp,He=e.onKeyDown,Qe=e.onMouseDown,Ke=e.onChange,ze=e.onSelect,Ve=e.onDeselect,We=e.onClear,Ge=e.internalProps,Xe=void 0===Ge?{}:Ge,qe=Object(C["a"])(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Ye=Xe.mark===Le,Ze=u?u(qe):qe;Fe.forEach((function(e){delete Ze[e]}));var Je=Object(A["useRef"])(null),$e=Object(A["useRef"])(null),et=Object(A["useRef"])(null),tt=Object(A["useRef"])(null),nt=Object(A["useMemo"])((function(){return(ke||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ke]),rt=De(),it=Object(S["a"])(rt,3),ot=it[0],at=it[1],st=it[2],lt=Object(A["useState"])(),ct=Object(S["a"])(lt,2),ut=ct[0],dt=ct[1];Object(A["useEffect"])((function(){dt("rc_select_".concat(ee()))}),[]);var ht=m||ut,ft=re;void 0===ft&&(ft=_?"label":"children");var pt="combobox"!==E&&M,At="tags"===E||"multiple"===E,gt=void 0!==I?I:At||"combobox"===E,mt=Object(A["useRef"])(null);A["useImperativeHandle"](d,(function(){return{focus:et.current.focus,blur:et.current.blur}}));var vt=Object(he["a"])(B,{value:O}),yt=Object(S["a"])(vt,2),bt=yt[0],_t=yt[1],wt=Object(A["useMemo"])((function(){return X(bt,{labelInValue:pt,combobox:"combobox"===E})}),[bt,pt]),xt=Object(A["useMemo"])((function(){return new Set(wt)}),[wt]),Ct=Object(A["useState"])(null),St=Object(S["a"])(Ct,2),kt=St[0],Et=St[1],Ot=Object(A["useState"])(""),Bt=Object(S["a"])(Ot,2),Mt=Bt[0],Tt=Bt[1],It=Mt;"combobox"===E&&void 0!==bt?It=bt:void 0!==D?It=D:L&&(It=L);var Lt=Object(A["useMemo"])((function(){var e=_;return void 0===e&&(e=r(w)),"tags"===E&&c&&(e=c(e,bt,ft,M)),e||[]}),[_,w,E,bt]),Dt=Object(A["useMemo"])((function(){return i(Lt,e)}),[Lt]),Pt=je(wt,Dt),Nt=Object(A["useMemo"])((function(){if(!It||!gt)return Object(K["a"])(Lt);var e=a(It,Lt,{optionFilterProp:j,filterOption:"combobox"===E&&void 0===P?function(){return!0}:P});return"tags"===E&&e.every((function(e){return e[j]!==It}))&&e.unshift({value:It,label:It,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),e}),[Lt,It,E,gt]),jt=Object(A["useMemo"])((function(){return i(Nt,e)}),[Nt]);Object(A["useEffect"])((function(){tt.current&&tt.current.scrollTo&&tt.current.scrollTo(0)}),[It]);var Ft=Object(A["useMemo"])((function(){var e=wt.map((function(e){var t=Pt([e]),n=o(e,{options:t,prevValue:bt,labelInValue:pt,optionLabelProp:ft});return Object(R["a"])(Object(R["a"])({},n),{},{disabled:s(e,t)})}));return E||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[bt,Lt,E]);Ft=Ne(Ft);var Rt=function(e,t,n){var r=Pt([e]),i=l([e],r)[0];if(!Xe.skipTriggerSelect){var a=pt?o(e,{options:r,prevValue:bt,labelInValue:pt,optionLabelProp:ft}):e;t&&ze?ze(a,i):!t&&Ve&&Ve(a,i)}Ye&&(t&&Xe.onRawSelect?Xe.onRawSelect(e,i,n):!t&&Xe.onRawDeselect&&Xe.onRawDeselect(e,i,n))},Ut=Object(A["useState"])([]),Ht=Object(S["a"])(Ut,2),Qt=Ht[0],Kt=Ht[1],zt=function(e){if(!Ye||!Xe.skipTriggerChange){var t=Pt(e),n=q(Array.from(e),{labelInValue:pt,options:t,getLabeledValue:o,prevValue:bt,optionLabelProp:ft}),r=At?n:n[0];if(Ke&&(0!==wt.length||0!==n.length)){var i=l(e,t,{prevValueOptions:Qt});Kt(i.map((function(t,n){var r=Object(R["a"])({},t);return Object.defineProperty(r,"_INTERNAL_OPTION_VALUE_",{get:function(){return e[n]}}),r}))),Ke(r,At?i:i[0])}_t(r)}},Vt=function(e,t){var n,r=t.selected,i=t.source;Z||(At?(n=new Set(wt),r?n.add(e):n["delete"](e)):(n=new Set,n.add(e)),(At||!At&&Array.from(wt)[0]!==e)&&zt(Array.from(n)),Rt(e,!At||r,i),"combobox"===E?(Tt(String(e)),Et("")):At&&!U||(Tt(""),Et("")))},Wt=function(e,t){Vt(e,Object(R["a"])(Object(R["a"])({},t),{},{source:"option"}))},Gt=function(e,t){Vt(e,Object(R["a"])(Object(R["a"])({},t),{},{source:"selection"}))},Xt="combobox"===E&&oe&&oe()||null,qt=Object(he["a"])(void 0,{defaultValue:b,value:y}),Yt=Object(S["a"])(qt,2),Zt=Yt[0],Jt=Yt[1],$t=Zt,en=!ne&&!Nt.length;(Z||en&&$t&&"combobox"===E)&&($t=!1);var tn=!en&&$t,nn=function(e){var t=void 0!==e?e:!$t;Zt===t||Z||(Jt(t),Me&&Me(t))};Pe([Je.current,$e.current&&$e.current.getPopupElement()],tn,nn);var rn=function(e,t,n){var r=!0,i=e;Et(null);var o=n?null:ce(e,ke),a=o;if("combobox"===E)t&&zt([i]);else if(o){i="","tags"!==E&&(a=o.map((function(e){var t=Dt.find((function(t){var n=t.data;return n[ft]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var s=Array.from(new Set([].concat(Object(K["a"])(wt),Object(K["a"])(a))));zt(s),s.forEach((function(e){Rt(e,!0,"input")})),nn(!1),r=!1}return Tt(i),H&&It!==i&&H(i),r},on=function(e){var t=Array.from(new Set([].concat(Object(K["a"])(wt),[e])));zt(t),t.forEach((function(e){Rt(e,!0,"input")})),Tt("")};Object(A["useEffect"])((function(){Zt&&Z&&Jt(!1)}),[Z]),Object(A["useEffect"])((function(){$t||At||"combobox"===E||rn("",!1,!1)}),[$t]);var an=Ce(),sn=Object(S["a"])(an,2),ln=sn[0],cn=sn[1],un=function(e){var t,n=ln(),r=e.which;if($t||r!==k["a"].ENTER||nn(!0),cn(!!It),r===k["a"].BACKSPACE&&!n&&At&&!It&&wt.length){var i=Y(Ft,wt);null!==i.removedValue&&(zt(i.values),Rt(i.removedValue,!1,"input"))}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1?t-1:0),r=1;r1?i-1:0),a=1;a>0&3)/3,p[4*A+1]=255*(d[h+A]>>2&3)/3,p[4*A+2]=255*(d[h+A]>>4&3)/3,p[4*A+4]=0;d=p,h=0}return o.blitImage(e,c,n,u,d,h),i.rQskipBytes(u*l),this._lines-=u,!(this._lines>0)}}]),e}();t["default"]=a},3690:function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=a(n("Lo0S"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0){var l=1;if(o.rQwait("HEXTILE",l))return!1;var c=o.rQ,u=o.rQi,d=c[u];if(d>30)throw new Error("Illegal hextile subencoding (subencoding: "+d+")");var h=this._totalTiles-this._tiles,f=h%this._tilesX,p=Math.floor(h/this._tilesX),A=e+16*f,g=t+16*p,m=Math.min(16,e+n-A),v=Math.min(16,t+r-g);if(1&d)l+=m*v*4;else if(2&d&&(l+=4),4&d&&(l+=4),8&d){if(l++,o.rQwait("HEXTILE",l))return!1;var y=c[u+l-1];l+=16&d?6*y:2*y}if(o.rQwait("HEXTILE",l))return!1;if(u++,0===d)1&this._lastsubencoding?i.Debug(" Ignoring blank after RAW"):a.fillRect(A,g,m,v,this._background);else if(1&d)a.blitImage(A,g,m,v,c,u),u+=l-1;else{if(2&d&&(this._background=[c[u],c[u+1],c[u+2],c[u+3]],u+=4),4&d&&(this._foreground=[c[u],c[u+1],c[u+2],c[u+3]],u+=4),a.startTile(A,g,m,v,this._background),8&d){var b=c[u];u++;for(var _=0;_>4,S=15&x,k=c[u];u++;var E=1+(k>>4),O=1+(15&k);a.subTile(C,S,E,O,w)}}a.finishTile()}o.rQi=u,this._lastsubencoding=d,this._tiles--}return!0}}]),e}();t["default"]=u},"3A9y":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"3C/r":function(e,t){var n=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};n.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var r=n;e.exports=r},"3CBa":function(e,t,n){var r=n("hydK"),i=r.createElement,o=n("bYtY"),a=n("SUKs"),s=n("y+Vt"),l=n("Dagg"),c=n("dqUG"),u=n("DBLp"),d=n("sW+o"),h=n("n6Mw"),f=n("vKoX"),p=n("P47w"),A=p.path,g=p.image,m=p.text;function v(e){return parseInt(e,10)}function y(e){return e instanceof s?A:e instanceof l?g:e instanceof c?m:A}function b(e,t){return t&&e&&t.parentNode!==e}function _(e,t,n){if(b(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function w(e,t){if(b(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function x(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function C(e){return e.__textSvgEl}function S(e){return e.__svgEl}var k=function(e,t,n,r){this.root=e,this.storage=t,this._opts=n=o.extend({},n||{});var a=i("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=i("g");a.appendChild(s);var l=i("g");a.appendChild(l),this.gradientManager=new d(r,l),this.clipPathManager=new h(r,l),this.shadowManager=new f(r,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=l,this._backgroundRoot=s,this._viewport=c,e.appendChild(c),c.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]};function E(e){return function(){a('In SVG mode painter not support method "'+e+'"')}}k.prototype={constructor:k,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=i("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,n=this._svgRoot,r=this._visibleList,i=e.length,o=[];for(t=0;t=0;--r)if(t[r]===e)return!0;return!1}),n}return null}return n[0]},resize:function(e,t){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var i=n.style;i.width=e+"px",i.height=t+"px";var o=this._svgDom;o.setAttribute("width",e),o.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||v(s[n])||v(a.style[n]))-(v(s[i])||0)-(v(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/>\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){k.prototype[e]=E(e)}));var O=k;e.exports=O},"3Fdi":function(e,t){var n=Function.prototype,r=n.toString;function i(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=i},"3LNs":function(e,t,n){var r=n("bYtY"),i=n("Yl7c"),o=n("IwbS"),a=n("zTMp"),s=n("YH21"),l=n("iLNv"),c=n("4NO4"),u=c.makeInner,d=u(),h=r.clone,f=r.bind;function p(){}function A(e,t,n,r){g(d(n).lastProp,r)||(d(n).lastProp=r,t?o.updateProps(n,r,e):(n.stopAnimation(),n.attr(r)))}function g(e,t){if(r.isObject(e)&&r.isObject(t)){var n=!0;return r.each(t,(function(t,r){n=n&&g(e[r],t)})),!!n}return e===t}function m(e,t){e[t.get("label.show")?"show":"hide"]()}function v(e){return{position:e.position.slice(),rotation:e.rotation||0}}function y(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,i){var a=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(c&&c.hide());l&&l.show(),c&&c.show();var u={};this.makeElOption(u,a,e,t,n);var d=u.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var h=this._moveAnimation=this.determineAnimation(e,t);if(l){var f=r.curry(A,t,h);this.updatePointerEl(l,u,f,t),this.updateLabelEl(l,u,f,t)}else l=this._group=new o.Group,this.createPointerEl(l,u,e,t),this.createLabelEl(l,u,e,t),n.getZr().add(l);y(l,t,!0),this._renderHandle(a)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(i&&r.getBandWidth()>s)return!0;if(o){var l=a.getAxisInfo(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===n},makeElOption:function(e,t,n,r,i){},createPointerEl:function(e,t,n,r){var i=t.pointer;if(i){var a=d(e).pointerEl=new o[i.type](h(t.pointer));e.add(a)}},createLabelEl:function(e,t,n,r){if(t.label){var i=d(e).labelEl=new o.Rect(h(t.label));e.add(i),m(i,r)}},updatePointerEl:function(e,t,n){var r=d(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,r){var i=d(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{shape:t.label.shape,position:t.label.position}),m(i,r))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,c=n.getModel("handle"),u=n.get("status");if(!c.get("show")||!u||"hide"===u)return a&&i.remove(a),void(this._handle=null);this._handle||(t=!0,a=this._handle=o.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),i.add(a)),y(a,n,!1);var d=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];a.setStyle(c.getItemStyle(null,d));var h=c.get("size");r.isArray(h)||(h=[h,h]),a.attr("scale",[h[0]/2,h[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){A(this._axisPointerModel,!t&&this._moveAnimation,this._handle,v(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(v(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(v(r)),d(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,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)},doClear:function(){},buildLabel:function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}},p.prototype.constructor=p,i.enableClassExtend(p);var b=p;e.exports=b},"3OrL":function(e,t,n){var r=n("bYtY"),i=n("6Ic6"),o=n("IwbS"),a=n("y+Vt"),s=["itemStyle"],l=["emphasis","itemStyle"],c=i.extend({type:"boxplot",render:function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=d(t,r,e,a,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?h(s,n,r,e):n=d(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},remove:function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:r.noop}),u=a.extend({type:"boxplotBoxPath",shape:{},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();r0&&(e.deadlineId=setTimeout((function(){e.onMotionEnd({deadline:!0})}),i))}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=I()(t)},e.cancelNextFrame=function(){e.raf&&(I.a.cancel(e.raf),e.raf=null)},e}return Object(A["a"])(n,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var e,t=this.state,n=t.status,i=t.statusActive,o=t.statusStyle,a=this.props,s=a.children,l=a.motionName,c=a.visible,u=a.removeOnLeave,d=a.leavedClassName,f=a.eventProps;return s?n!==G&&r(this.props)?s(Object(h["a"])(Object(h["a"])({},f),{},{className:E()(W(l,n),(e={},Object(D["a"])(e,W(l,"".concat(n,"-active")),i),Object(D["a"])(e,l,"string"===typeof l),e)),style:o}),this.setNodeRef):c?s(Object(h["a"])({},f),this.setNodeRef):u?null:s(Object(h["a"])(Object(h["a"])({},f),{},{className:d}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.status;if(!r(e))return{};var o=e.visible,a=e.motionAppear,s=e.motionEnter,l=e.motionLeave,c=e.motionLeaveImmediately,u={prevProps:e};return(i===X&&!a||i===q&&!s||i===Y&&!l)&&(u.status=G,u.statusActive=!1,u.newStatus=!1),!n&&o&&a&&(u.status=X,u.statusActive=!1,u.newStatus=!0),n&&!n.visible&&o&&s&&(u.status=q,u.statusActive=!1,u.newStatus=!0),(n&&n.visible&&!o&&l||!n&&c&&!o&&l)&&(u.status=Y,u.statusActive=!1,u.newStatus=!0),u}}]),n}(c["Component"]);return i.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?c["forwardRef"]((function(e,t){return c["createElement"](i,Object.assign({internalRef:t},e))})):i}var J=Z(V),$="add",ee="keep",te="remove",ne="removed";function re(e){var t;return t=e&&"object"===Object(d["a"])(e)&&"key"in e?e:{key:e},Object(h["a"])(Object(h["a"])({},t),{},{key:String(t.key)})}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(re)}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=ie(e),a=ie(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==te})),n.forEach((function(t){t.key===e&&(t.status=ee)}))})),n}var ae=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,n=function(n){Object(m["a"])(i,n);var r=Object(v["a"])(i);function i(){var e;return Object(p["a"])(this,i),e=r.apply(this,arguments),e.state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){var n=e.keyEntities;return{keyEntities:n.map((function(e){return e.key!==t?e:Object(h["a"])(Object(h["a"])({},e),{},{status:ne})}))}}))},e}return Object(A["a"])(i,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=Object(f["a"])(r,["component","children"]),s=i||c["Fragment"],l={};return ae.forEach((function(e){l[e]=a[e],delete a[e]})),delete a.keys,c["createElement"](s,Object.assign({},a),n.map((function(n){var r=n.status,i=Object(f["a"])(n,["status"]),a=r===$||r===ee;return c["createElement"](t,Object.assign({},l,{key:i.key,visible:a,eventProps:i,onLeaveEnd:function(){l.onLeaveEnd&&l.onLeaveEnd.apply(l,arguments),e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=t.keys,i=n.keyEntities,o=ie(r);if(!e)return{keyEntities:o.map((function(e){return Object(h["a"])(Object(h["a"])({},e),{},{status:ee})}))};var a=oe(i,o),s=i.length;return{keyEntities:a.filter((function(e){for(var t=null,n=0;n1&&(d=c["createElement"]("div",{className:"".concat(n,"-content")},o)),c["createElement"]("div",{ref:t,className:r,onMouseEnter:a,onMouseLeave:s,onMouseDown:l,onTouchStart:u,style:i},d)},ue=c["forwardRef"](ce);ue.displayName="PopupInner";var de=ue;function he(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function fe(e){return e&&e.motionName}var pe=function(e){Object(m["a"])(n,e);var t=Object(v["a"])(n);function n(){var e;return Object(p["a"])(this,n),e=t.apply(this,arguments),e.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},e.popupRef=u.a.createRef(),e.alignRef=u.a.createRef(),e.nextFrameState=null,e.nextFrameId=null,e.onAlign=function(t,n){var r=e.state.status,i=e.props,o=i.getClassNameFromAlign,a=i.onAlign,s=o(n);"align"===r?e.setState({alignClassName:s,status:"aligned"},(function(){e.alignRef.current.forceAlign()})):"aligned"===r?(e.setState({alignClassName:s,status:"afterAlign"}),a(t,n)):e.setState({alignClassName:s})},e.onMotionEnd=function(){var t=e.props.visible;e.setState({status:t?"AfterMotion":"stable",inMotion:!1})},e.setStateOnNextFrame=function(t){e.cancelFrameState(),e.nextFrameState=Object(h["a"])(Object(h["a"])({},e.nextFrameState),t),e.nextFrameId=I()((function(){var t=Object(h["a"])({},e.nextFrameState);e.nextFrameState=null,e.setState(t)}))},e.getMotion=function(){return Object(h["a"])({},he(e.props))},e.getAlignTarget=function(){var t=e.props,n=t.point,r=t.getRootDomNode;return n||r},e.cancelFrameState=function(){I.a.cancel(e.nextFrameId)},e.renderPopupElement=function(){var t=e.state,n=t.status,r=t.targetHeight,i=t.targetWidth,o=t.alignClassName,a=e.props,s=a.prefixCls,l=a.className,c=a.style,d=a.stretch,f=a.visible,p=a.align,A=a.destroyPopupOnHide,g=a.onMouseEnter,m=a.onMouseLeave,v=a.onMouseDown,y=a.onTouchStart,b=a.children,_=E()(s,l,o),w="".concat(s,"-hidden"),C={};d&&(-1!==d.indexOf("height")?C.height=r:-1!==d.indexOf("minHeight")&&(C.minHeight=r),-1!==d.indexOf("width")?C.width=i:-1!==d.indexOf("minWidth")&&(C.minWidth=i));var S=Object(h["a"])(Object(h["a"])(Object(h["a"])(Object(h["a"])({},C),e.getZIndexStyle()),c),{},{opacity:"stable"!==n&&f?0:void 0,pointerEvents:"stable"!==n&&f?"none":void 0}),k=e.getMotion(),O=f;f&&"beforeMotion"!==n&&"motion"!==n&&"stable"!==n&&(k.motionAppear=!1,k.motionEnter=!1,k.motionLeave=!1),"afterAlign"!==n&&"beforeMotion"!==n||(O=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach((function(t){var n=null===k||void 0===k?void 0:k[t];k[t]=function(){for(var t=arguments.length,r=new Array(t),i=0;i=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},y=function(){var t=e.title,n=e.overlay;return 0===t?t:n||t||""},b=e.prefixCls,_=e.openClassName,w=e.getPopupContainer,x=e.getTooltipContainer,C=e.overlayClassName,S=e.color,k=e.overlayInnerStyle,O=e.children,B=s("tooltip",b),M=f;!("visible"in e)&&A()&&(M=!1);var T,I,L=Qe(Object(je["b"])(O)?O:c["createElement"]("span",null,O),B),D=L.props,P=E()(D.className,i()({},_||"".concat(B,"-open"),!0)),N=E()(C,(n={},i()(n,"".concat(B,"-rtl"),"rtl"===u),i()(n,"".concat(B,"-").concat(S),S&&He.test(S)),n));return S&&!He.test(S)&&(T=l()(l()({},k),{background:S}),I={background:S}),c["createElement"](Te,l()({},e,{prefixCls:B,overlayClassName:N,getTooltipContainer:w||x||o,ref:t,builtinPlacements:m(),overlay:y(),visible:M,onVisibleChange:g,onPopupAlign:v,overlayInnerStyle:T,arrowContent:c["createElement"]("span",{className:"".concat(B,"-arrow-content"),style:I})}),M?Object(je["a"])(L,{className:P}):L)}));Ke.displayName="Tooltip",Ke.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};t["a"]=Ke},"3TkU":function(e,t,n){n("aTJb"),n("OlYY"),n("fc+c"),n("QUw5"),n("Swgg"),n("LBfv"),n("noeP")},"3X6L":function(e,t,n){var r=n("bYtY"),i=n("7a+S"),o=n("OKJ2"),a=i.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,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:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(a,o);var s=a;e.exports=s},"3e3G":function(e,t,n){var r=n("bYtY"),i=n("QuXc"),o=function(e,t,n,r,o){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,i.call(this,r)};o.prototype={constructor:o},r.inherits(o,i);var a=o;e.exports=a},"3gBT":function(e,t){var n=2311;function r(){return n++}e.exports=r},"3hzK":function(e,t){var n={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};e.exports=n},"3m61":function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}function r(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),r=e.getEdgeData(),i=n(e.get("edgeSymbol")),o=n(e.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("color",e.get(a)),r.setVisual("opacity",e.get(s)),r.each((function(e){var i=r.getItemModel(e),o=t.getEdgeByIndex(e),l=n(i.getShallow("symbol",!0)),c=n(i.getShallow("symbolSize",!0)),u=i.get(a),d=i.get(s);switch(u){case"source":u=o.node1.getVisual("color");break;case"target":u=o.node2.getVisual("color");break}l[0]&&o.setVisual("fromSymbol",l[0]),l[1]&&o.setVisual("toSymbol",l[1]),c[0]&&o.setVisual("fromSymbolSize",c[0]),c[1]&&o.setVisual("toSymbolSize",c[1]),o.setVisual("color",u),o.setVisual("opacity",d)}))}))}e.exports=r},"3ouR":function(e,t,n){"use strict";var r=n("VTBJ"),i=n("q1tI"),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 00354 671z"}},{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:"close-square",theme:"outlined"},a=o,s=n("6VBw"),l=function(e,t){return i["createElement"](s["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:t,icon:a}))};l.displayName="CloseSquareOutlined";t["a"]=i["forwardRef"](l)},"3zoK":function(e,t,n){var r=n("bYtY"),i=n("bLfw"),o=n("KCsZ"),a=n("nkfE"),s=n("OELB"),l=n("ICMv"),c=i.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=r.clone(e);if(t)for(var n=t.length-1;n>=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r40&&(c=Math.max(1,Math.floor(s/40)));for(var u=a[0],h=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(h*Math.cos(r)),p=Math.abs(h*Math.sin(r)),A=0,g=0;u<=a[1];u+=c){var m=0,v=0,y=i.getBoundingRect(n(u),t.font,"center","top");m=1.3*y.width,v=1.3*y.height,A=Math.max(A,m,7),g=Math.max(g,v,7)}var b=A/f,_=g/p;isNaN(b)&&(b=1/0),isNaN(_)&&(_=1/0);var w=Math.max(0,Math.floor(Math.min(b,_))),C=d(e.model),S=e.getExtent(),k=C.lastAutoInterval,E=C.lastTickCount;return null!=k&&null!=E&&Math.abs(k-w)<=1&&Math.abs(E-s)<=1&&k>w&&C.axisExtend0===S[0]&&C.axisExtend1===S[1]?w=k:(C.lastTickCount=s,C.lastAutoInterval=w,C.axisExtend0=S[0],C.axisExtend1=S[1]),w}function x(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function C(e,t,n){var r=l(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),d=o[0],h=i.count();0!==d&&c>1&&h/c>2&&(d=Math.round(Math.ceil(d/c)*c));var f=u(e),p=a.get("showMinLabel")||f,A=a.get("showMaxLabel")||f;p&&d!==o[0]&&m(o[0]);for(var g=d;g<=o[1];g+=c)m(g);function m(e){s.push(n?e:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:e})}return A&&g-c!==o[1]&&m(o[1]),s}function S(e,t,n){var i=e.scale,o=l(e),a=[];return r.each(i.getTicks(),(function(e){var r=i.getLabel(e);t(e,r)&&a.push(n?e:{formattedLabel:o(e),rawLabel:r,tickValue:e})})),a}t.createAxisLabels=h,t.createAxisTicks=f,t.calculateCategoryInterval=w},"4NO4":function(e,t,n){var r=n("bYtY"),i=n("ItGF"),o=r.each,a=r.isObject,s=r.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=n.length&&n.push({option:e})}})),n}function A(e){var t=r.createHashMap();o(e,(function(e,n){var r=e.exist;r&&t.set(r.id,e)})),o(e,(function(e,n){var i=e.option;r.assert(!i||null==i.id||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})})),o(e,(function(e,n){var r=e.exist,i=e.option,o=e.keyInfo;if(a(i)){if(o.name=null!=i.name?i.name+"":r?r.name:l+n,r)o.id=r.id;else if(null!=i.id)o.id=i.id+"";else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(t.get(o.id))}t.set(o.id,e)}}))}function g(e){var t=e.name;return!(!t||!t.indexOf(l))}function m(e){return a(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function v(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r=t[0]&&e<=t[1]},i.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},i.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},i.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},i.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},i.prototype.isBlank=function(){return this._isBlank},i.prototype.setBlank=function(e){this._isBlank=e},i.prototype.getLabel=null,r.enableClassExtend(i),r.enableClassManagement(i,{registerWhenExtend:!0});var o=i;e.exports=o},"4fz+":function(e,t,n){var r=n("bYtY"),i=n("1bdT"),o=n("mFDi"),a=function(e){for(var t in e=e||{},i.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof a&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,i=this._children,o=r.indexOf(i,e);return o<0||(i.splice(o,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){var e,t,n=this._children,r=this.__storage;for(t=0;t1e-4)return p[0]=e-n,p[1]=t-i,A[0]=e+n,void(A[1]=t+i);if(u[0]=l(o)*n+e,u[1]=s(o)*i+t,d[0]=l(a)*n+e,d[1]=s(a)*i+t,g(p,u,d),m(A,u,d),o%=c,o<0&&(o+=c),a%=c,a<0&&(a+=c),o>a&&!f?a+=c:oo&&(h[0]=l(b)*n+e,h[1]=s(b)*i+t,g(p,h,p),m(A,h,A))}t.fromPoints=f,t.fromLine=p,t.fromCubic=m,t.fromQuadratic=v,t.fromArc=y},"4vCz":function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("X2/X")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="PlusSquareOutlined";var h=a.forwardRef(d);t.default=h},"4xFK":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},"56rv":function(e,t,n){var r=n("IwbS"),i=n("x3X8"),o=i.getDefaultLabel;function a(e,t,n,i,a,l,c){var u=n.getModel("label"),d=n.getModel("emphasis.label");r.setLabelStyle(e,t,u,d,{labelFetcher:a,labelDataIndex:l,defaultText:o(a.getData(),l),isRectText:!0,autoColor:i}),s(e),s(t)}function s(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=a},"59Ip":function(e,t,n){var r=n("Sj9i");function i(e,t,n,i,o,a,s,l,c,u,d){if(0===c)return!1;var h=c;if(d>t+h&&d>i+h&&d>a+h&&d>l+h||de+h&&u>n+h&&u>o+h&&u>s+h||ut)return e[r];return e[n-1]}var l={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(e,t,n){t=t||this;var r=a(t),i=r.colorIdx||0,l=r.colorNameMap=r.colorNameMap||{};if(l.hasOwnProperty(e))return l[e];var c=o(this.get("color",!0)),u=this.get("colorLayer",!0),d=null!=n&&u?s(u,n):c;if(d=d||c,d&&d.length){var h=d[i];return e&&(l[e]=h),r.colorIdx=(i+1)%d.length,h}}};e.exports=l},"5NDa":function(e,t,n){"use strict";n("cIOH"),n("OnYD"),n("+L6B")},"5NHt":function(e,t,n){n("aTJb"),n("OlYY"),n("fc+c"),n("N5BQ"),n("IyUQ"),n("LBfv"),n("noeP")},"5OYt":function(e,t,n){"use strict";var r=n("J4zp"),i=n.n(r),o=n("q1tI"),a=n("ACnJ");function s(){var e=Object(o["useState"])({}),t=i()(e,2),n=t[0],r=t[1];return Object(o["useEffect"])((function(){var e=a["a"].subscribe((function(e){r(e)}));return function(){return a["a"].unsubscribe(e)}}),[]),n}t["a"]=s},"5RzL":function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("lSNA"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("7W2i"),h=n.n(d),f=n("LQ03"),p=n.n(f),A=n("q1tI"),g=n("1OyB"),m=n("vuIU"),v=n("Ji7U"),y=n("LK+K"),b=n("KQm4"),_=n("U8pU"),w=n("ODXe"),x=n("VTBJ"),C=n("rePB"),S=n("Ff2n"),k=n("4IlW"),E=n("TSYQ"),O=n.n(E),B=n("6cGi"),M=n("bX4T"),T=n("8XRh"),I=function(e){var t,n=e.className,r=e.customizeIcon,i=e.customizeIconProps,o=e.onMouseDown,a=e.onClick,s=e.children;return t="function"===typeof r?r(i):r,A["createElement"]("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:A["createElement"]("span",{className:O()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},L=I,D=n("c+Xe"),P=function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,o=e.disabled,a=e.tabIndex,s=e.autoFocus,l=e.autoComplete,c=e.editable,u=e.accessibilityIndex,d=e.value,h=e.maxLength,f=e.onKeyDown,p=e.onMouseDown,g=e.onChange,m=e.onPaste,v=e.onCompositionStart,y=e.onCompositionEnd,b=e.open,_=e.attrs,w=i||A["createElement"]("input",null),C=w,S=C.ref,k=C.props,E=k.onKeyDown,O=k.onChange,B=k.onMouseDown,M=k.onCompositionStart,T=k.onCompositionEnd,I=k.style;return w=A["cloneElement"](w,Object(x["a"])(Object(x["a"])({id:r,ref:Object(D["a"])(t,S),disabled:o,tabIndex:a,autoComplete:l||"off",type:"search",autoFocus:s,className:"".concat(n,"-selection-search-input"),style:Object(x["a"])(Object(x["a"])({},I),{},{opacity:c?null:0}),role:"combobox","aria-expanded":b,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":"".concat(r,"_list_").concat(u)},_),{},{value:c?d:"",maxLength:h,readOnly:!c,unselectable:c?null:"on",onKeyDown:function(e){f(e),E&&E(e)},onMouseDown:function(e){p(e),B&&B(e)},onChange:function(e){g(e),O&&O(e)},onCompositionStart:function(e){v(e),M&&M(e)},onCompositionEnd:function(e){y(e),T&&T(e)},onPaste:m})),w},N=A["forwardRef"](P);N.displayName="Input";var j=N;function F(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function R(e,t){var n=t.labelInValue,r=t.combobox;if(void 0===e||""===e&&r)return[];var i=Array.isArray(e)?e:[e];return n?i.map((function(e){var t=e.key,n=e.value;return void 0!==n?n:t})):i}function U(e,t){var n=t.optionLabelProp,r=t.labelInValue,i=t.prevValue,o=t.options,a=t.getLabeledValue,s=e;return r&&(s=s.map((function(e){return a(e,{options:o,prevValue:i,labelInValue:r,optionLabelProp:n})}))),s}function H(e,t){var n,r=Object(b["a"])(t);for(n=e.length-1;n>=0;n-=1)if(!e[n].disabled)break;var i=null;return-1!==n&&(i=r[n],r.splice(n,1)),{values:r,removedValue:i}}var Q="undefined"!==typeof window&&window.document&&window.document.documentElement,K=Q,z=0;function V(){var e;return K?(e=z,z+=1):e="TEST_OR_SSR",e}function W(e,t){K?A["useLayoutEffect"](e,t):A["useEffect"](e,t)}var G="__RC_SELECT_MAX_REST_COUNT__",X=function(e){var t=e.id,n=e.prefixCls,r=e.values,i=e.open,o=e.searchValue,a=e.inputRef,s=e.placeholder,l=e.disabled,c=e.mode,u=e.showSearch,d=e.autoFocus,h=e.autoComplete,f=e.accessibilityIndex,p=e.tabIndex,g=e.removeIcon,m=e.choiceTransitionName,v=e.maxTagCount,y=e.maxTagTextLength,b=e.maxTagPlaceholder,_=void 0===b?function(e){return"+ ".concat(e.length," ...")}:b,k=e.tagRender,E=e.onSelect,B=e.onInputChange,I=e.onInputPaste,D=e.onInputKeyDown,P=e.onInputMouseDown,N=e.onInputCompositionStart,F=e.onInputCompositionEnd,R=Object(A["useState"])(!1),U=Object(w["a"])(R,2),H=U[0],Q=U[1],K=A["useRef"](null),z=Object(A["useState"])(0),V=Object(w["a"])(z,2),X=V[0],q=V[1],Y=Object(A["useState"])(!1),Z=Object(w["a"])(Y,2),J=Z[0],$=Z[1];A["useEffect"]((function(){Q(!0)}),[]);var ee=i||"tags"===c?o:"",te="tags"===c||u&&(i||J);W((function(){q(K.current.scrollWidth)}),[ee]);var ne,re=r;"number"===typeof v&&(ne=r.length-v,re=r.slice(0,v)),"number"===typeof y&&(re=re.map((function(e){var t=e.label,n=Object(S["a"])(e,["label"]),r=t;if("string"===typeof t||"number"===typeof t){var i=String(r);i.length>y&&(r="".concat(i.slice(0,y),"..."))}return Object(x["a"])(Object(x["a"])({},n),{},{label:r})}))),ne>0&&re.push({key:G,label:"function"===typeof _?_(r.slice(v)):_});var ie=A["createElement"](T["a"],{component:!1,keys:re,motionName:m,motionAppear:H},(function(e){var t=e.key,r=e.label,i=e.value,o=e.disabled,a=e.className,s=e.style,c=t||i,u=!l&&t!==G&&!o,d=function(e){e.preventDefault(),e.stopPropagation()},h=function(e){e&&e.stopPropagation(),E(i,{selected:!1})};return"function"===typeof k?A["createElement"]("span",{key:c,onMouseDown:d,className:a,style:s},k({label:r,value:i,disabled:o,closable:u,onClose:h})):A["createElement"]("span",{key:c,className:O()(a,"".concat(n,"-selection-item"),Object(C["a"])({},"".concat(n,"-selection-item-disabled"),o)),style:s},A["createElement"]("span",{className:"".concat(n,"-selection-item-content")},r),u&&A["createElement"](L,{className:"".concat(n,"-selection-item-remove"),onMouseDown:d,onClick:h,customizeIcon:g},"\xd7"))}));return A["createElement"](A["Fragment"],null,ie,A["createElement"]("span",{className:"".concat(n,"-selection-search"),style:{width:X},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},A["createElement"](j,{ref:a,open:i,prefixCls:n,id:t,inputElement:null,disabled:l,autoFocus:d,autoComplete:h,editable:te,accessibilityIndex:f,value:ee,onKeyDown:D,onMouseDown:P,onChange:B,onPaste:I,onCompositionStart:N,onCompositionEnd:F,tabIndex:p,attrs:Object(M["a"])(e,!0)}),A["createElement"]("span",{ref:K,className:"".concat(n,"-selection-search-mirror"),"aria-hidden":!0},ee,"\xa0")),!r.length&&!ee&&A["createElement"]("span",{className:"".concat(n,"-selection-placeholder")},s))},q=X,Y=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.accessibilityIndex,c=e.mode,u=e.open,d=e.values,h=e.placeholder,f=e.tabIndex,p=e.showSearch,g=e.searchValue,m=e.activeValue,v=e.maxLength,y=e.onInputKeyDown,b=e.onInputMouseDown,_=e.onInputChange,x=e.onInputPaste,C=e.onInputCompositionStart,S=e.onInputCompositionEnd,k=A["useState"](!1),E=Object(w["a"])(k,2),O=E[0],B=E[1],T="combobox"===c,I=T||p,L=d[0],D=g||"";T&&m&&!O&&(D=m),A["useEffect"]((function(){T&&B(!1)}),[T,m]);var P=!("combobox"!==c&&!u)&&!!D,N=!L||"string"!==typeof L.label&&"number"!==typeof L.label?void 0:L.label.toString();return A["createElement"](A["Fragment"],null,A["createElement"]("span",{className:"".concat(n,"-selection-search")},A["createElement"](j,{ref:i,prefixCls:n,id:r,open:u,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:I,accessibilityIndex:l,value:D,onKeyDown:y,onMouseDown:b,onChange:function(e){B(!0),_(e)},onPaste:x,onCompositionStart:C,onCompositionEnd:S,tabIndex:f,attrs:Object(M["a"])(e,!0),maxLength:T?v:void 0})),!T&&L&&!P&&A["createElement"]("span",{className:"".concat(n,"-selection-item"),title:N},L.label),!L&&!P&&A["createElement"]("span",{className:"".concat(n,"-selection-placeholder")},h))},Z=Y;function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=A["useRef"](null),n=A["useRef"](null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return A["useEffect"]((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var $=function(e,t){var n=Object(A["useRef"])(null),r=Object(A["useRef"])(!1),i=e.prefixCls,o=e.multiple,a=e.open,s=e.mode,l=e.showSearch,c=e.tokenWithEnter,u=e.onSearch,d=e.onSearchSubmit,h=e.onToggleOpen,f=e.onInputKeyDown,p=e.domRef;A["useImperativeHandle"](t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=J(0),m=Object(w["a"])(g,2),v=m[0],y=m[1],b=function(e){var t=e.which;t!==k["a"].UP&&t!==k["a"].DOWN||e.preventDefault(),f&&f(e),t!==k["a"].ENTER||"tags"!==s||r.current||a||d(e.target.value),[k["a"].SHIFT,k["a"].TAB,k["a"].BACKSPACE,k["a"].ESC].includes(t)||h(!0)},_=function(){y(!0)},x=Object(A["useRef"])(null),C=function(e){!1!==u(e,!0,r.current)&&h(!0)},S=function(){r.current=!0},E=function(){r.current=!1},O=function(e){var t=e.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var n=x.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,x.current)}x.current=null,C(t)},B=function(e){var t=e.clipboardData,n=t.getData("text");x.current=n},M=function(e){var t=e.target;if(t!==n.current){var r=void 0!==document.body.style.msTouchAction;r?setTimeout((function(){n.current.focus()})):n.current.focus()}},T=function(e){var t=v();e.target===n.current||t||e.preventDefault(),("combobox"===s||l&&t)&&a||(a&&u("",!0,!1),h())},I={inputRef:n,onInputKeyDown:b,onInputMouseDown:_,onInputChange:O,onInputPaste:B,onInputCompositionStart:S,onInputCompositionEnd:E},L=o?A["createElement"](q,Object.assign({},e,I)):A["createElement"](Z,Object.assign({},e,I));return A["createElement"]("div",{ref:p,className:"".concat(i,"-selector"),onClick:M,onMouseDown:T},L)},ee=A["forwardRef"]($);ee.displayName="Selector";var te=ee,ne=n("uciX"),re=function(e){var t="number"!==typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},ie=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),i=e.children,o=e.popupElement,a=e.containerWidth,s=e.animation,l=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,h=void 0===d?"ltr":d,f=e.dropdownMatchSelectWidth,p=void 0===f||f,g=e.dropdownRender,m=e.dropdownAlign,v=e.getPopupContainer,y=e.empty,b=e.getTriggerDOMNode,_=Object(S["a"])(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),w="".concat(n,"-dropdown"),k=o;g&&(k=g(o));var E=A["useMemo"]((function(){return re(p)}),[p]),B=s?"".concat(w,"-").concat(s):l,M=A["useRef"](null);A["useImperativeHandle"](t,(function(){return{getPopupElement:function(){return M.current}}}));var T=Object(x["a"])({minWidth:a},c);return"number"===typeof p?T.width=p:p&&(T.width=a),A["createElement"](ne["a"],Object.assign({},_,{showAction:[],hideAction:[],popupPlacement:"rtl"===h?"bottomRight":"bottomLeft",builtinPlacements:E,prefixCls:w,popupTransitionName:B,popup:A["createElement"]("div",{ref:M},k),popupAlign:m,popupVisible:r,getPopupContainer:v,popupClassName:O()(u,Object(C["a"])({},"".concat(w,"-empty"),y)),popupStyle:T,getTriggerDOMNode:b}),i)},oe=A["forwardRef"](ie);oe.displayName="SelectTrigger";var ae=oe,se="RC_SELECT_INTERNAL_PROPS_MARK";function le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=A["useState"](!1),n=Object(w["a"])(t,2),r=n[0],i=n[1],o=A["useRef"](null),a=function(){window.clearTimeout(o.current)};A["useEffect"]((function(){return a}),[]);var s=function(t,n){a(),o.current=window.setTimeout((function(){i(t),n&&n()}),e)};return[r,s,a]}var ce=n("T5bk"),ue=n("Kwbf");function de(e){var t=Object(x["a"])({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(ue["a"])(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.prevValueOptions,i=void 0===r?[]:r,o=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;o.set(t.value,t)}})),e.map((function(e){var t=o.get(e);return t||(t=Object(x["a"])({},i.find((function(t){return t._INTERNAL_OPTION_VALUE_===e})))),de(t)}))}var fe=function(e,t){var n,r=t.options,i=t.prevValue,o=t.labelInValue,a=t.optionLabelProp,s=he([e],r)[0],l={value:e},c=F(i);return o&&(n=c.find((function(t){return"object"===Object(_["a"])(t)&&"value"in t?t.value===e:t.key===e}))),n&&"object"===Object(_["a"])(n)&&"label"in n?(l.label=n.label,s&&"string"===typeof n.label&&"string"===typeof s[a]&&n.label.trim()!==s[a].trim()&&Object(ue["a"])(!1,"`label` of `value` is not same as `label` in Select options.")):l.label=s&&a in s?s[a]:e,l.key=l.value,l};function pe(e,t){if(!t||!t.length)return null;var n=!1;function r(e,t){var i=Object(ce["a"])(t),o=i[0],a=i.slice(1);if(!o)return[e];var s=e.split(o);return n=n||s.length>1,s.reduce((function(e,t){return[].concat(Object(b["a"])(e),Object(b["a"])(r(t,a)))}),[]).filter((function(e){return e}))}var i=r(e,t);return n?i:null}function Ae(e,t,n){var r=A["useRef"](null);r.current={elements:e.filter((function(e){return e})),open:t,triggerOpen:n},A["useEffect"]((function(){function e(e){var t=e.target;r.current.open&&r.current.elements.every((function(e){return!e.contains(t)&&e!==t}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}function ge(e){var t=A["useRef"](e),n=A["useMemo"]((function(){var n=new Map;t.current.forEach((function(e){var t=e.value,r=e.label;t!==r&&n.set(t,r)}));var r=e.map((function(e){var t=n.get(e.value);return e.value===e.label&&t?Object(x["a"])(Object(x["a"])({},e),{},{label:t}):e}));return t.current=r,r}),[e]);return n}function me(e,t){var n=A["useRef"](null),r=A["useMemo"]((function(){var e=new Map;return t.forEach((function(t){var n=t.data.value;e.set(n,t)})),e}),[e,t]);n.current=r;var i=function(e){return e.map((function(e){return n.current.get(e)})).filter(Boolean)};return i}var ve=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function ye(e){var t=e.prefixCls,n=e.components.optionList,r=e.convertChildrenToData,i=e.flattenOptions,o=e.getLabeledValue,a=e.filterOptions,s=e.isValueDisabled,l=e.findValueOption,c=(e.warningProps,e.fillOptionsWithMissingValue),u=e.omitDOMProps;function d(e,d){var h,f=e.prefixCls,p=void 0===f?t:f,g=e.className,m=e.id,v=e.open,y=e.defaultOpen,_=e.options,E=e.children,M=e.mode,T=e.value,I=e.defaultValue,D=e.labelInValue,P=e.showSearch,N=e.inputValue,j=e.searchValue,F=e.filterOption,Q=e.filterSort,K=e.optionFilterProp,z=void 0===K?"value":K,G=e.autoClearSearchValue,X=void 0===G||G,q=e.onSearch,Y=e.allowClear,Z=e.clearIcon,$=e.showArrow,ee=e.inputIcon,ne=e.menuItemSelectedIcon,re=e.disabled,ie=e.loading,oe=e.defaultActiveFirstOption,ce=e.notFoundContent,ue=void 0===ce?"Not Found":ce,de=e.optionLabelProp,he=e.backfill,fe=e.getInputElement,ye=e.getPopupContainer,be=e.listHeight,_e=void 0===be?200:be,we=e.listItemHeight,xe=void 0===we?20:we,Ce=e.animation,Se=e.transitionName,ke=e.virtual,Ee=e.dropdownStyle,Oe=e.dropdownClassName,Be=e.dropdownMatchSelectWidth,Me=e.dropdownRender,Te=e.dropdownAlign,Ie=e.showAction,Le=void 0===Ie?[]:Ie,De=e.direction,Pe=e.tokenSeparators,Ne=e.tagRender,je=e.onPopupScroll,Fe=e.onDropdownVisibleChange,Re=e.onFocus,Ue=e.onBlur,He=e.onKeyUp,Qe=e.onKeyDown,Ke=e.onMouseDown,ze=e.onChange,Ve=e.onSelect,We=e.onDeselect,Ge=e.onClear,Xe=e.internalProps,qe=void 0===Xe?{}:Xe,Ye=Object(S["a"])(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","getInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Ze=qe.mark===se,Je=u?u(Ye):Ye;ve.forEach((function(e){delete Je[e]}));var $e=Object(A["useRef"])(null),et=Object(A["useRef"])(null),tt=Object(A["useRef"])(null),nt=Object(A["useRef"])(null),rt=Object(A["useMemo"])((function(){return(Pe||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Pe]),it=le(),ot=Object(w["a"])(it,3),at=ot[0],st=ot[1],lt=ot[2],ct=Object(A["useState"])(),ut=Object(w["a"])(ct,2),dt=ut[0],ht=ut[1];Object(A["useEffect"])((function(){ht("rc_select_".concat(V()))}),[]);var ft=m||dt,pt=de;void 0===pt&&(pt=_?"label":"children");var At="combobox"!==M&&D,gt="tags"===M||"multiple"===M,mt=void 0!==P?P:gt||"combobox"===M,vt=Object(A["useRef"])(null);A["useImperativeHandle"](d,(function(){return{focus:tt.current.focus,blur:tt.current.blur}}));var yt=Object(B["a"])(I,{value:T}),bt=Object(w["a"])(yt,2),_t=bt[0],wt=bt[1],xt=Object(A["useMemo"])((function(){return R(_t,{labelInValue:At,combobox:"combobox"===M})}),[_t,At]),Ct=Object(A["useMemo"])((function(){return new Set(xt)}),[xt]),St=Object(A["useState"])(null),kt=Object(w["a"])(St,2),Et=kt[0],Ot=kt[1],Bt=Object(A["useState"])(""),Mt=Object(w["a"])(Bt,2),Tt=Mt[0],It=Mt[1],Lt=Tt;"combobox"===M&&void 0!==_t?Lt=_t:void 0!==j?Lt=j:N&&(Lt=N);var Dt=Object(A["useMemo"])((function(){var e=_;return void 0===e&&(e=r(E)),"tags"===M&&c&&(e=c(e,_t,pt,D)),e||[]}),[_,E,M,_t]),Pt=Object(A["useMemo"])((function(){return i(Dt,e)}),[Dt]),Nt=me(xt,Pt),jt=Object(A["useMemo"])((function(){if(!Lt||!mt)return Object(b["a"])(Dt);var e=a(Lt,Dt,{optionFilterProp:z,filterOption:"combobox"===M&&void 0===F?function(){return!0}:F});return"tags"===M&&e.every((function(e){return e[z]!==Lt}))&&e.unshift({value:Lt,label:Lt,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Q&&Array.isArray(e)?Object(b["a"])(e).sort(Q):e}),[Dt,Lt,M,mt,Q]),Ft=Object(A["useMemo"])((function(){return i(jt,e)}),[jt]);Object(A["useEffect"])((function(){nt.current&&nt.current.scrollTo&&nt.current.scrollTo(0)}),[Lt]);var Rt=Object(A["useMemo"])((function(){var e=xt.map((function(e){var t=Nt([e]),n=o(e,{options:t,prevValue:_t,labelInValue:At,optionLabelProp:pt});return Object(x["a"])(Object(x["a"])({},n),{},{disabled:s(e,t)})}));return M||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[_t,Dt,M]);Rt=ge(Rt);var Ut=function(e,t,n){var r=Nt([e]),i=l([e],r)[0];if(!qe.skipTriggerSelect){var a=At?o(e,{options:r,prevValue:_t,labelInValue:At,optionLabelProp:pt}):e;t&&Ve?Ve(a,i):!t&&We&&We(a,i)}Ze&&(t&&qe.onRawSelect?qe.onRawSelect(e,i,n):!t&&qe.onRawDeselect&&qe.onRawDeselect(e,i,n))},Ht=Object(A["useState"])([]),Qt=Object(w["a"])(Ht,2),Kt=Qt[0],zt=Qt[1],Vt=function(e){if(!Ze||!qe.skipTriggerChange){var t=Nt(e),n=U(Array.from(e),{labelInValue:At,options:t,getLabeledValue:o,prevValue:_t,optionLabelProp:pt}),r=gt?n:n[0];if(ze&&(0!==xt.length||0!==n.length)){var i=l(e,t,{prevValueOptions:Kt});zt(i.map((function(t,n){var r=Object(x["a"])({},t);return Object.defineProperty(r,"_INTERNAL_OPTION_VALUE_",{get:function(){return e[n]}}),r}))),ze(r,gt?i:i[0])}wt(r)}},Wt=function(e,t){var n,r=t.selected,i=t.source;re||(gt?(n=new Set(xt),r?n.add(e):n["delete"](e)):(n=new Set,n.add(e)),(gt||!gt&&Array.from(xt)[0]!==e)&&Vt(Array.from(n)),Ut(e,!gt||r,i),"combobox"===M?(It(String(e)),Ot("")):gt&&!X||(It(""),Ot("")))},Gt=function(e,t){Wt(e,Object(x["a"])(Object(x["a"])({},t),{},{source:"option"}))},Xt=function(e,t){Wt(e,Object(x["a"])(Object(x["a"])({},t),{},{source:"selection"}))},qt="combobox"===M&&fe&&fe()||null,Yt=Object(B["a"])(void 0,{defaultValue:y,value:v}),Zt=Object(w["a"])(Yt,2),Jt=Zt[0],$t=Zt[1],en=Jt,tn=!ue&&!jt.length;(re||tn&&en&&"combobox"===M)&&(en=!1);var nn=!tn&&en,rn=function(e){var t=void 0!==e?e:!en;Jt===t||re||($t(t),Fe&&Fe(t))};Ae([$e.current,et.current&&et.current.getPopupElement()],nn,rn);var on=function(e,t,n){var r=!0,i=e;Ot(null);var o=n?null:pe(e,Pe),a=o;if("combobox"===M)t&&Vt([i]);else if(o){i="","tags"!==M&&(a=o.map((function(e){var t=Pt.find((function(t){var n=t.data;return n[pt]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var s=Array.from(new Set([].concat(Object(b["a"])(xt),Object(b["a"])(a))));Vt(s),s.forEach((function(e){Ut(e,!0,"input")})),rn(!1),r=!1}return It(i),q&&Lt!==i&&q(i),r},an=function(e){var t=Array.from(new Set([].concat(Object(b["a"])(xt),[e])));Vt(t),t.forEach((function(e){Ut(e,!0,"input")})),It("")};Object(A["useEffect"])((function(){Jt&&re&&$t(!1)}),[re]),Object(A["useEffect"])((function(){en||gt||"combobox"===M||on("",!1,!1)}),[en]);var sn=J(),ln=Object(w["a"])(sn,2),cn=ln[0],un=ln[1],dn=function(e){var t,n=cn(),r=e.which;if(en||r!==k["a"].ENTER||rn(!0),un(!!Lt),r===k["a"].BACKSPACE&&!n&>&&!Lt&&xt.length){var i=H(Rt,xt);null!==i.removedValue&&(Vt(i.values),Ut(i.removedValue,!1,"input"))}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1?t-1:0),r=1;r1?i-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,i=void 0===r?"keyboard":r;_n(t),he&&"combobox"===M&&null!==e&&"keyboard"===i&&Ot(String(e))},Cn=Object(A["useState"])(null),Sn=Object(w["a"])(Cn,2),kn=Sn[0],En=Sn[1],On=Object(A["useState"])({}),Bn=Object(w["a"])(On,2),Mn=Bn[1];function Tn(){Mn({})}W((function(){if(nn){var e=Math.ceil($e.current.offsetWidth);kn!==e&&En(e)}}),[nn]);var In,Ln=A["createElement"](n,{ref:nt,prefixCls:p,id:ft,open:en,childrenAsData:!_,options:jt,flattenOptions:Ft,multiple:gt,values:Ct,height:_e,itemHeight:xe,onSelect:Gt,onToggleOpen:rn,onActiveValue:xn,defaultActiveFirstOption:wn,notFoundContent:ue,onScroll:je,searchValue:Lt,menuItemSelectedIcon:ne,virtual:!1!==ke&&!1!==Be,onMouseEnter:Tn}),Dn=function(){Ze&&qe.onClear&&qe.onClear(),Ge&&Ge(),Vt([]),on("",!1,!1)};!re&&Y&&(xt.length||Lt)&&(In=A["createElement"](L,{className:"".concat(p,"-clear"),onMouseDown:Dn,customizeIcon:Z},"\xd7"));var Pn,Nn=void 0!==$?$:ie||!gt&&"combobox"!==M;Nn&&(Pn=A["createElement"](L,{className:O()("".concat(p,"-arrow"),Object(C["a"])({},"".concat(p,"-arrow-loading"),ie)),customizeIcon:ee,customizeIconProps:{loading:ie,searchValue:Lt,open:en,focused:at,showSearch:mt}}));var jn=O()(p,g,(h={},Object(C["a"])(h,"".concat(p,"-focused"),at),Object(C["a"])(h,"".concat(p,"-multiple"),gt),Object(C["a"])(h,"".concat(p,"-single"),!gt),Object(C["a"])(h,"".concat(p,"-allow-clear"),Y),Object(C["a"])(h,"".concat(p,"-show-arrow"),Nn),Object(C["a"])(h,"".concat(p,"-disabled"),re),Object(C["a"])(h,"".concat(p,"-loading"),ie),Object(C["a"])(h,"".concat(p,"-open"),en),Object(C["a"])(h,"".concat(p,"-customize-input"),qt),Object(C["a"])(h,"".concat(p,"-show-search"),mt),h));return A["createElement"]("div",Object.assign({className:jn},Je,{ref:$e,onMouseDown:mn,onKeyDown:dn,onKeyUp:hn,onFocus:pn,onBlur:An}),at&&!en&&A["createElement"]("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(xt.join(", "))),A["createElement"](ae,{ref:et,disabled:re,prefixCls:p,visible:nn,popupElement:Ln,containerWidth:kn,animation:Ce,transitionName:Se,dropdownStyle:Ee,dropdownClassName:Oe,direction:De,dropdownMatchSelectWidth:Be,dropdownRender:Me,dropdownAlign:Te,getPopupContainer:ye,empty:!Dt.length,getTriggerDOMNode:function(){return vt.current}},A["createElement"](te,Object.assign({},e,{domRef:vt,prefixCls:p,inputElement:qt,ref:tt,id:ft,showSearch:mt,mode:M,accessibilityIndex:bn,multiple:gt,tagRender:Ne,values:Rt,open:en,onToggleOpen:rn,searchValue:Lt,activeValue:Et,onSearch:on,onSearchSubmit:an,onSelect:Xt,tokenWithEnter:rt}))),Pn,In)}var h=A["forwardRef"](d);return h}var be=n("Zm9Q"),_e=n("JX7q"),we=A["createContext"](null),xe=function(e){var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd;if(!n)return null;for(var o="".concat(t,"-indent-unit"),a=[],s=0;s=0&&n.splice(r,1),n}function De(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function Pe(e){return e.split("-")}function Ne(e,t){return"".concat(e,"-").concat(t)}function je(e){return e&&e.type&&e.type.isTreeNode}function Fe(e,t){var n=[e],r=t[e];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){var t=e.key,r=e.children;n.push(t),i(r)}))}return i(r.children),n}function Re(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),i=r.top,o=r.bottom,a=r.height,s=Math.max(a*Te,Ie);return n<=i+s?-1:n>=o-s?1:0}function Ue(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function He(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(_["a"])(e))return Object(ue["a"])(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Qe(e,t){var n=new Set;function r(e){if(!n.has(e)){var i=t[e];if(i){n.add(e);var o=i.parent,a=i.node;a.disabled||o&&r(o.key)}}}return(e||[]).forEach((function(e){r(e)})),Object(b["a"])(n)}function Ke(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}function ze(e,t){return null!==e&&void 0!==e?e:t}function Ve(e){function t(e){var n=Object(be["a"])(e);return n.map((function(e){if(!je(e))return Object(ue["a"])(!e,"Tree/TreeNode can only accept TreeNode as children."),null;var n=e.key,r=e.props,i=r.children,o=Object(S["a"])(r,["children"]),a=Object(x["a"])({key:n},o),s=t(i);return s.length&&(a.children=s),a})).filter((function(e){return e}))}return t(e)}function We(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),r=[];function i(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(a,s){var l=Ne(o?o.pos:"0",s),c=ze(a.key,l),u=Object(x["a"])(Object(x["a"])({},a),{},{parent:o,pos:l,children:null,data:a,isStart:[].concat(Object(b["a"])(o?o.isStart:[]),[0===s]),isEnd:[].concat(Object(b["a"])(o?o.isEnd:[]),[s===e.length-1])});return r.push(u),!0===t||n.has(c)?u.children=i(a.children||[],u):u.children=[],u}))}return i(e),r}function Ge(e,t,n){var r;function i(n,o,a){var s=n?n.children:e,l=n?Ne(a.pos,o):"0";if(n){var c=r(n,l),u={node:n,index:o,pos:l,key:c,parentPos:a.node?a.pos:null,level:a.level+1};t(u)}s&&s.forEach((function(e,t){i(e,t,{node:n,pos:l,level:a?a.level+1:-1})}))}n?"string"===typeof n?r=function(e){return e[n]}:"function"===typeof n&&(r=function(e){return n(e)}):r=function(e,t){return ze(e.key,t)},i(null)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=arguments.length>2?arguments[2]:void 0,a={},s={},l={posEntities:a,keyEntities:s};return n&&(l=n(l)||l),Ge(e,(function(e){var t=e.node,n=e.index,i=e.pos,o=e.key,c=e.parentPos,u=e.level,d={node:t,index:n,key:o,pos:i,level:u},h=ze(o,i);a[i]=d,s[h]=d,d.parent=a[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),r&&r(d,l)}),o),i&&i(l),l}function qe(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=u[e],h={eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==i.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==s.indexOf(e),pos:String(d?d.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c};return h}function Ye(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,h=e.active,f=Object(x["a"])(Object(x["a"])({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h});return"props"in f||Object.defineProperty(f,"props",{get:function(){return Object(ue["a"])(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}function Ze(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function Je(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function $e(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){i.add(e.key)}))}))}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.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=i.has(t);a&&!n&&(a=!1),s||!n&&!o.has(t)||(s=!0)})),a&&i.add(t.key),s&&o.add(t.key),l.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Ze(o,i))}}function et(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;o.has(t)||a.has(t)||i(n)||s.filter((function(e){return!i(e.node)})).forEach((function(e){o["delete"](e.key)}))}))}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!c.has(e.parent.key))if(i(e.parent.node))c.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)})),r||o["delete"](t.key),s&&a.add(t.key),c.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Ze(a,o))}}function tt(e,t,n,r){var i,o=[];i=r||Je;var a,s=new Set(e.filter((function(e){var t=!!n[e];return t||o.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,i=l.get(r);i||(i=new Set,l.set(r,i)),i.add(t),c=Math.max(c,r)})),Object(ue["a"])(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?$e(s,l,c,i):et(s,t.halfCheckedKeys,l,c,i),a}var nt=n("YrtM"),rt=n("+nKL"),it=function(e,t){var n=e.className,r=e.style,i=e.motion,o=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=Object(S["a"])(e,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),h=A["useState"](!0),f=Object(w["a"])(h,2),p=f[0],g=f[1],m=A["useContext"](we),v=m.prefixCls,y=A["useRef"](!1),b=function(){y.current||l(),y.current=!0};return Object(A["useEffect"])((function(){o&&"hide"===a&&p&&g(!1)}),[o]),Object(A["useEffect"])((function(){return o&&s(),function(){o&&b()}}),[]),o?A["createElement"](T["b"],Object.assign({ref:t,visible:p},i,{motionAppear:"show"===a,onAppearEnd:b,onLeaveEnd:b}),(function(e,t){var n=e.className,r=e.style;return A["createElement"]("div",{ref:t,className:O()("".concat(v,"-treenode-motion"),n),style:r},o.map((function(e){var t=e.data,n=t.key,r=Object(S["a"])(t,["key"]),i=e.isStart,o=e.isEnd;delete r.children;var a=qe(n,u);return A["createElement"](Me,Object.assign({},r,a,{active:c,data:e.data,key:n,isStart:i,isEnd:o}))})))})):A["createElement"](Me,Object.assign({domRef:t,className:n,style:r},d,{active:c}))};it.displayName="MotionTreeNode";var ot=A["forwardRef"](it),at=ot;function st(){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 i(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 ").concat(t);return t}var vt=function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),o=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,h=e.dragging,f=e.dragOverNodeKey,p=e.dropPosition,g=e.motion,m=e.height,v=e.itemHeight,y=e.virtual,b=e.focusable,_=e.activeItem,x=e.focused,C=e.tabIndex,k=e.onKeyDown,E=e.onFocus,O=e.onBlur,B=e.onActiveChange,M=e.onListChangeStart,T=e.onListChangeEnd,I=Object(S["a"])(e,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),L=A["useRef"](null);A["useImperativeHandle"](t,(function(){return{scrollTo:function(e){L.current.scrollTo(e)}}}));var D=A["useState"](i),P=Object(w["a"])(D,2),N=P[0],j=P[1],F=A["useState"](r),R=Object(w["a"])(F,2),U=R[0],H=R[1],Q=A["useState"](r),K=Object(w["a"])(Q,2),z=K[0],V=K[1],W=A["useState"]([]),G=Object(w["a"])(W,2),X=G[0],q=G[1],Y=A["useState"](null),Z=Object(w["a"])(Y,2),J=Z[0],$=Z[1];function ee(){H(r),V(r),q([]),$(null),T()}A["useEffect"]((function(){j(i);var e=st(N,i);if(null!==e.key)if(e.add){var t=U.findIndex((function(t){var n=t.data.key;return n===e.key})),n=At(lt(U,r,e.key),y,m,v),o=U.slice();o.splice(t+1,0,pt),V(o),q(n),$("show")}else{var a=r.findIndex((function(t){var n=t.data.key;return n===e.key})),s=At(lt(r,U,e.key),y,m,v),l=r.slice();l.splice(a+1,0,pt),V(l),q(s),$("hide")}else U!==r&&(H(r),V(r))}),[i,r]),A["useEffect"]((function(){h||ee()}),[h]);var te=g?z:r,ne={expandedKeys:i,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:f,dropPosition:p,keyEntities:u};return A["createElement"](A["Fragment"],null,x&&_&&A["createElement"]("span",{style:ct,"aria-live":"assertive"},mt(_)),A["createElement"]("div",{role:"tree"},A["createElement"]("input",{style:ct,disabled:!1===b||d,tabIndex:!1!==b?C:null,onKeyDown:k,onFocus:E,onBlur:O,value:"",onChange:ut})),A["createElement"](rt["a"],Object.assign({},I,{data:te,itemKey:gt,height:m,fullHeight:!1,virtual:y,itemHeight:v,prefixCls:"".concat(n,"-list"),ref:L}),(function(e){var t=e.pos,n=e.data,r=n.key,i=Object(S["a"])(n,["key"]),o=e.isStart,a=e.isEnd,s=ze(r,t);delete i.children;var l=qe(s,ne);return A["createElement"](at,Object.assign({},i,l,{active:_&&r===_.data.key,pos:t,data:e.data,isStart:o,isEnd:a,motion:g,motionNodes:r===dt?X:null,motionType:J,onMotionStart:M,onMotionEnd:ee,treeNodeRequiredProps:ne,onMouseMove:function(){B(null)}}))})))},yt=A["forwardRef"](vt);yt.displayName="NodeList";var bt=yt,_t=function(e){Object(v["a"])(n,e);var t=Object(y["a"])(n);function n(){var e;return Object(g["a"])(this,n),e=t.apply(this,arguments),e.destroyed=!1,e.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.listRef=A["createRef"](),e.onNodeDragStart=function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n;var l=Le(i,s);e.setState({dragging:!0,dragNodesKeys:Fe(s,o)}),e.setExpandedKeys(l),a&&a({event:t,node:Ye(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,a=r.dragNodesKeys,s=e.props.onDragEnter,l=n.props,c=l.pos,u=l.eventKey;if(e.dragNode&&-1===a.indexOf(u)){var d=Re(t,n);e.dragNode.props.eventKey!==u||0!==d?setTimeout((function(){e.setState({dragOverNodeKey:u,dropPosition:d}),e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.delayedDragEnterLogic[c]=window.setTimeout((function(){if(e.state.dragging){var r=Object(b["a"])(i),a=o[u];a&&(a.children||[]).length&&(r=De(i,u)),"expandedKeys"in e.props||e.setExpandedKeys(r),s&&s({event:t,node:Ye(n.props),expandedKeys:r})}}),400)}),0):e.setState({dragOverNodeKey:"",dropPosition:null})}},e.onNodeDragOver=function(t,n){var r=e.state.dragNodesKeys,i=e.props.onDragOver,o=n.props.eventKey;if(-1===r.indexOf(o)){if(e.dragNode&&o===e.state.dragOverNodeKey){var a=Re(t,n);if(a===e.state.dropPosition)return;e.setState({dropPosition:a})}i&&i({event:t,node:Ye(n.props)})}},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;e.setState({dragOverNodeKey:""}),r&&r({event:t,node:Ye(n.props)})},e.onNodeDragEnd=function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:""}),e.cleanDragState(),r&&r({event:t,node:Ye(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r=e.state,i=r.dragNodesKeys,o=void 0===i?[]:i,a=r.dropPosition,s=e.props.onDrop,l=n.props,c=l.eventKey,u=l.pos;if(e.setState({dragOverNodeKey:""}),e.cleanDragState(),-1===o.indexOf(c)){var d=Pe(u),h={event:t,node:Ye(n.props),dragNode:e.dragNode?Ye(e.dragNode.props):null,dragNodesKeys:o.slice(),dropPosition:a+Number(d[d.length-1]),dropToGap:!1};0!==a&&(h.dropToGap=!0),s&&s(h),e.dragNode=null}else Object(ue["a"])(!1,"Can not drop to dragNode(include it's children node)")},e.cleanDragState=function(){var t=e.state.dragging;t&&e.setState({dragging:!1})},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,i=e.state.keyEntities,o=e.props,a=o.onSelect,s=o.multiple,l=n.selected,c=n.key,u=!l;r=u?s?De(r,c):[c]:Le(r,c);var d=r.map((function(e){var t=i[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),a&&a(r,{event:"select",selected:u,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var i,o=e.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,c=e.props,u=c.checkStrictly,d=c.onCheck,h=n.key,f={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(u){var p=r?De(s,h):Le(s,h),A=Le(l,h);i={checked:p,halfChecked:A},f.checkedNodes=p.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:p})}else{var g=tt([].concat(Object(b["a"])(s),[h]),!0,a),m=g.checkedKeys,v=g.halfCheckedKeys;if(!r){var y=new Set(m);y["delete"](h);var _=tt(Array.from(y),{checked:!1,halfCheckedKeys:v},a);m=_.checkedKeys,v=_.halfCheckedKeys}i=m,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=v,m.forEach((function(e){var t=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})}d&&d(i,f)},e.onNodeLoad=function(t){return new Promise((function(n){e.setState((function(r){var i=r.loadedKeys,o=void 0===i?[]:i,a=r.loadingKeys,s=void 0===a?[]:a,l=e.props,c=l.loadData,u=l.onLoad,d=t.key;if(!c||-1!==o.indexOf(d)||-1!==s.indexOf(d))return{};var h=c(t);return h.then((function(){var r=e.state,i=r.loadedKeys,o=r.loadingKeys,a=De(i,d),s=Le(o,d);u&&u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState({loadingKeys:s}),n()})),{loadingKeys:De(s,d)}}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state,n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities;return{expandedKeys:n||[],selectedKeys:r||[],loadedKeys:i||[],loadingKeys:o||[],checkedKeys:a||[],halfCheckedKeys:s||[],dragOverNodeKey:l,dropPosition:c,keyEntities:u}},e.setExpandedKeys=function(t){var n=e.state.treeData,r=We(n,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,i=e.state.listChanging,o=e.props,a=o.onExpand,s=o.loadData,l=n.key,c=n.expanded;if(!i){var u=r.indexOf(l),d=!c;if(Object(ue["a"])(c&&-1!==u||!c&&-1===u,"Expand state not sync with index check"),r=d?De(r,l):Le(r,l),e.setExpandedKeys(r),a&&a(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var h=e.onNodeLoad(n);h&&h.then((function(){var t=We(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){var t=e.data.key;return t===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,i=n.activeKey,o=r.findIndex((function(e){var t=e.data.key;return t===i}));-1===o&&t<0&&(o=r.length),o=(o+t+r.length)%r.length;var a=r[o];if(a){var s=a.data.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,i=n.expandedKeys,o=n.checkedKeys,a=e.props,s=a.onKeyDown,l=a.checkable,c=a.selectable;switch(t.which){case k["a"].UP:e.offsetActiveKey(-1),t.preventDefault();break;case k["a"].DOWN:e.offsetActiveKey(1),t.preventDefault();break}var u=e.getActiveItem();if(u&&u.data){var d=e.getTreeNodeRequiredProps(),h=!1===u.data.isLeaf||!!(u.data.children||[]).length,f=Ye(Object(x["a"])(Object(x["a"])({},qe(r,d)),{},{data:u.data,active:!0}));switch(t.which){case k["a"].LEFT:h&&i.includes(r)?e.onNodeExpand({},f):u.parent&&e.onActiveChange(u.parent.data.key),t.preventDefault();break;case k["a"].RIGHT:h&&!i.includes(r)?e.onNodeExpand({},f):u.children&&u.children.length&&e.onActiveChange(u.children[0].data.key),t.preventDefault();break;case k["a"].ENTER:case k["a"].SPACE:!l||f.disabled||!1===f.checkable||f.disableCheckbox?l||!c||f.disabled||!1===f.selectable||e.onNodeSelect({},f):e.onNodeCheck({},f,!o.includes(r));break}}s&&s(t)},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 i=!1,o=!0,a={};Object.keys(t).forEach((function(n){n in e.props?o=!1:(i=!0,a[n]=t[n])})),!i||n&&!o||e.setState(Object(x["a"])(Object(x["a"])({},a),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return Object(m["a"])(n,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,o=t.dragging,a=t.activeKey,s=this.props,l=s.prefixCls,c=s.className,u=s.style,d=s.showLine,h=s.focusable,f=s.tabIndex,p=void 0===f?0:f,g=s.selectable,m=s.showIcon,v=s.icon,y=s.switcherIcon,b=s.draggable,_=s.checkable,w=s.checkStrictly,x=s.disabled,S=s.motion,k=s.loadData,E=s.filterTreeNode,B=s.height,M=s.itemHeight,T=s.virtual,I=s.titleRender,L=s.onContextMenu,D=Ke(this.props);return A["createElement"](we.Provider,{value:{prefixCls:l,selectable:g,showIcon:m,icon:v,switcherIcon:y,draggable:b,checkable:_,checkStrictly:w,disabled:x,keyEntities:i,loadData:k,filterTreeNode:E,titleRender:I,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}},A["createElement"]("div",{className:O()(l,c,(e={},Object(C["a"])(e,"".concat(l,"-show-line"),d),Object(C["a"])(e,"".concat(l,"-focused"),n),Object(C["a"])(e,"".concat(l,"-active-focused"),null!==a),e))},A["createElement"](bt,Object.assign({ref:this.listRef,prefixCls:l,style:u,data:r,disabled:x,selectable:g,checkable:!!_,motion:S,dragging:o,height:B,itemHeight:M,virtual:T,focusable:h,focused:n,tabIndex:p,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:L},this.getTreeNodeRequiredProps(),D))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function o(t){return!r&&t in e||r&&r[t]!==e[t]}if(o("treeData")?n=e.treeData:o("children")&&(Object(ue["a"])(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Ve(e.children)),n){i.treeData=n;var a=Xe(n);i.keyEntities=Object(x["a"])(Object(C["a"])({},dt,ft),a.keyEntities)}var s,l=i.keyEntities||t.keyEntities;if(o("expandedKeys")||r&&o("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Qe(e.expandedKeys,l):e.expandedKeys;else if(!r&&e.defaultExpandAll){var c=Object(x["a"])({},l);delete c[dt],i.expandedKeys=Object.keys(c).map((function(e){return c[e].key}))}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Qe(e.defaultExpandedKeys,l):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var u=We(n||t.treeData,i.expandedKeys||t.expandedKeys);i.flattenNodes=u}if((e.selectable&&(o("selectedKeys")?i.selectedKeys=Ue(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=Ue(e.defaultSelectedKeys,e))),e.checkable)&&(o("checkedKeys")?s=He(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=He(e.defaultCheckedKeys)||{}:n&&(s=He(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var d=s,h=d.checkedKeys,f=void 0===h?[]:h,p=d.halfCheckedKeys,A=void 0===p?[]:p;if(!e.checkStrictly){var g=tt(f,!0,l);f=g.checkedKeys,A=g.halfCheckedKeys}i.checkedKeys=f,i.halfCheckedKeys=A}return o("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(A["Component"]);_t.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:[]},_t.TreeNode=Me;var wt=_t,xt=wt,Ct=A["createContext"](null);function St(e,t){if(!e)return!0;var n=e.data,r=n.disabled,i=n.disableCheckbox;switch(t){case"select":return r;case"checkbox":return r||i}return!1}function kt(e,t){var n=A["useCallback"]((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select",r=arguments.length>2?arguments[2]:void 0,i=e.get(t);return!r&&St(i,n)?null:i}),[e]),r=A["useCallback"]((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"select",r=arguments.length>2?arguments[2]:void 0,i=t.get(e);return!r&&St(i,n)?null:i}),[t]);return[n,r]}function Et(e){return A["useMemo"]((function(){var t=new Map,n=new Map;return e.forEach((function(e){t.set(e.key,e),n.set(e.data.value,e)})),[t,n]}),[e])}var Ot={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Bt=function(e,t){var n=e.prefixCls,r=e.height,i=e.itemHeight,o=e.virtual,a=e.options,s=e.flattenOptions,l=e.multiple,c=e.searchValue,u=e.onSelect,d=e.onToggleOpen,h=e.open,f=e.notFoundContent,p=e.onMouseEnter,g=A["useContext"](Ct),m=g.checkable,v=g.checkedKeys,y=g.halfCheckedKeys,_=g.treeExpandedKeys,x=g.treeDefaultExpandAll,C=g.treeDefaultExpandedKeys,S=g.onTreeExpand,E=g.treeIcon,O=g.showTreeIcon,B=g.switcherIcon,M=g.treeLine,T=g.treeNodeFilterProp,I=g.loadData,L=g.treeLoadedKeys,D=g.treeMotion,P=g.onTreeLoad,N=A["useRef"](),j=Object(nt["a"])((function(){return a}),[h,a],(function(e,t){return t[0]&&e[1]!==t[1]})),F=Et(s),R=Object(w["a"])(F,2),U=R[0],H=R[1],Q=kt(U,H),K=Object(w["a"])(Q,2),z=K[0],V=K[1],W=A["useMemo"]((function(){return v.map((function(e){var t=V(e);return t?t.key:null}))}),[v]),G=A["useMemo"]((function(){return m?{checked:W,halfChecked:y}:null}),[W,y,m]);A["useEffect"]((function(){var e;h&&!l&&W.length&&(null===(e=N.current)||void 0===e||e.scrollTo({key:W[0]}))}),[h]);var X=String(c).toLowerCase(),q=function(e){return!!X&&String(e[T]).toLowerCase().includes(X)},Y=A["useState"](C),Z=Object(w["a"])(Y,2),J=Z[0],$=Z[1],ee=A["useState"](null),te=Object(w["a"])(ee,2),ne=te[0],re=te[1],ie=A["useMemo"]((function(){return _?Object(b["a"])(_):c?ne:J}),[J,ne,X,_]);A["useEffect"]((function(){c&&re(s.map((function(e){return e.key})))}),[c]);var oe=function(e){$(e),re(e),S&&S(e)},ae=function(e){e.preventDefault()},se=function(e,t){var n=t.node.key,r=z(n,m?"checkbox":"select");null!==r&&u(r.data.value,{selected:!v.includes(r.data.value)}),l||d(!1)},le=A["useState"](null),ce=Object(w["a"])(le,2),ue=ce[0],de=ce[1],he=z(ue);if(A["useImperativeHandle"](t,(function(){return{onKeyDown:function(e){var t,n=e.which;switch(n){case k["a"].UP:case k["a"].DOWN:case k["a"].LEFT:case k["a"].RIGHT:null===(t=N.current)||void 0===t||t.onKeyDown(e);break;case k["a"].ENTER:null!==he&&se(null,{node:{key:ue},selected:!v.includes(he.data.value)});break;case k["a"].ESC:d(!1)}},onKeyUp:function(){}}})),0===j.length)return A["createElement"]("div",{role:"listbox",className:"".concat(n,"-empty"),onMouseDown:ae},f);var fe={};return L&&(fe.loadedKeys=L),ie&&(fe.expandedKeys=ie),A["createElement"]("div",{onMouseDown:ae,onMouseEnter:p},he&&h&&A["createElement"]("span",{style:Ot,"aria-live":"assertive"},he.data.value),A["createElement"](xt,Object.assign({ref:N,focusable:!1,prefixCls:"".concat(n,"-tree"),treeData:j,height:r,itemHeight:i,virtual:o,multiple:l,icon:E,showIcon:O,switcherIcon:B,showLine:M,loadData:c?null:I,motion:D,checkable:m,checkStrictly:!0,checkedKeys:G,selectedKeys:m?[]:W,defaultExpandAll:x},fe,{onActiveChange:de,onSelect:se,onCheck:se,onExpand:oe,onLoad:P,filterTreeNode:q})))},Mt=A["forwardRef"](Bt);Mt.displayName="OptionList";var Tt=Mt,It=function(){return null},Lt=It;function Dt(e){return Object(be["a"])(e).map((function(e){if(!A["isValidElement"](e)||!e.type)return null;var t=e.key,n=e.props,r=n.children,i=n.value,o=Object(S["a"])(n,["children","value"]),a=Object(x["a"])({key:t,value:i},o),s=Dt(r);return s.length&&(a.children=s),a})).filter((function(e){return e}))}function Pt(e){if(!e)return e;var t=Object(x["a"])({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Object(ue["a"])(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Nt(e,t,n,r,i){var o=null,a=null;function s(){function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map((function(r,l){var c="".concat(i,"-").concat(l),u=n.includes(r.value),d=e(r.children||[],c,u),h=A["createElement"](Lt,Object.assign({},r),d.map((function(e){return e.node})));if(t===r.value&&(o=h),u){var f={pos:c,node:h,children:d};return s||a.push(f),f}return null})).filter((function(e){return e}))}a||(a=[],e(r),a.sort((function(e,t){var r=e.node.props.value,i=t.node.props.value,o=n.indexOf(r),a=n.indexOf(i);return o-a})))}Object.defineProperty(e,"triggerNode",{get:function(){return Object(ue["a"])(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Object(ue["a"])(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),i?a:a.map((function(e){var t=e.node;return t}))}})}function jt(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Ft(e,t){var n=new Map;return t.forEach((function(e){var t=e.data;n.set(t.value,t)})),e.map((function(e){return Pt(n.get(e))}))}function Rt(e,t){var n=Ft([e],t)[0];return!!n&&n.disabled}function Ut(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function Ht(e){var t=e.parent,n=0,r=t;while(r)r=r.parent,n+=1;return n}function Qt(e){function t(e){return(e||[]).map((function(e){var n=e.value,r=e.key,i=e.children,o=Object(x["a"])(Object(x["a"])({},e),{},{key:"key"in e?r:n});return i&&(o.children=t(i)),o}))}var n=We(t(e),!0);return n.map((function(e){return{key:e.data.key,data:e.data,level:Ht(e)}}))}function Kt(e){return function(t,n){var r=n[e];return String(r).toLowerCase().includes(String(t).toLowerCase())}}function zt(e,t,n){var r,i=n.optionFilterProp,o=n.filterOption;if(!1===o)return t;function a(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.map((function(t){var i=t.children,o=n||r(e,Pt(t)),s=a(i||[],o);return o||s.length?Object(x["a"])(Object(x["a"])({},t),{},{children:s}):null})).filter((function(e){return e}))}return r="function"===typeof o?o:Kt(i),a(t)}function Vt(e,t,n,r){var i=new Map;return jt(t).forEach((function(e){e&&"object"===Object(_["a"])(e)&&"value"in e&&i.set(e.value,e)})),e.map((function(e){var t={value:e},o=n(e,"select",!0),a=o?r(o.data):e;if(i.has(e)){var s=i.get(e);t.label="label"in s?s.label:a,"halfChecked"in s&&(t.halfChecked=s.halfChecked)}else t.label=a;return t}))}function Wt(e,t){var n=new Set(e);return n.add(t),Array.from(n)}function Gt(e,t){var n=new Set(e);return n["delete"](t),Array.from(n)}function Xt(e,t){var n=t.id,r=t.pId,i=t.rootPId,o={},a=[],s=e.map((function(e){var t=Object(x["a"])({},e),r=t[n];return o[r]=t,t.key=t.key||r,t}));return s.forEach((function(e){var t=e[r],n=o[t];n&&(n.children=n.children||[],n.children.push(e)),(t===i||!n&&null===i)&&a.push(e)})),a}function qt(e,t){new Set;function n(e){return(e||[]).map((function(e){var r=e.key,i=e.value,o=e.children,a=Object(S["a"])(e,["key","value","children"]),s="value"in e?i:r,l=Object(x["a"])(Object(x["a"])({},a),{},{key:null!==r&&void 0!==r?r:s,value:s,title:t(e)});return"children"in e&&(l.children=n(o)),l}))}return n(e)}function Yt(e,t,n){var r=n.getLabelProp,i=n.simpleMode,o=A["useRef"]({});return e?(o.current.formatTreeData=o.current.treeData===e?o.current.formatTreeData:qt(i?Xt(e,Object(x["a"])({id:"id",pId:"pId",rootPId:null},!0!==i?i:{})):e,r),o.current.treeData=e):o.current.formatTreeData=o.current.children===t?o.current.formatTreeData:qt(Dt(t),r),o.current.formatTreeData}var Zt="SHOW_ALL",Jt="SHOW_PARENT",$t="SHOW_CHILD";function en(e,t,n){var r=new Set(e);return t===$t?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.every((function(e){var t=e.node;return Ut(t)||r.has(t.key)})))})):t===Jt?e.filter((function(e){var t=n[e],i=t?t.parent:null;return!(i&&!Ut(i.node)&&r.has(i.node.key))})):e}function tn(e,t){var n=t.value,r=t.getEntityByValue,i=t.getEntityByKey,o=t.treeConduction,a=t.showCheckedStrategy,s=t.conductKeyEntities,l=t.getLabelProp;return A["useMemo"]((function(){var t=e;if(o){var c=en(e.map((function(e){var t=r(e);return t?t.key:e})),a,s);t=c.map((function(e){var t=i(e);return t?t.data.value:e}))}return Vt(t,n,r,l)}),[e,n,o,a,r])}var nn=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],rn=ye({prefixCls:"rc-tree-select",components:{optionList:Tt},convertChildrenToData:function(){return null},flattenOptions:Qt,getLabeledValue:fe,filterOptions:zt,isValueDisabled:Rt,findValueOption:Ft,omitDOMProps:function(e){var t=Object(x["a"])({},e);return nn.forEach((function(e){delete t[e]})),t}});rn.displayName="Select";var on=A["forwardRef"]((function(e,t){var n=e.multiple,r=e.treeCheckable,i=e.treeCheckStrictly,o=e.showCheckedStrategy,a=void 0===o?"SHOW_CHILD":o,s=e.labelInValue,l=e.loadData,c=e.treeLoadedKeys,u=e.treeNodeFilterProp,d=void 0===u?"value":u,h=e.treeNodeLabelProp,f=e.treeDataSimpleMode,p=e.treeData,g=e.treeExpandedKeys,m=e.treeDefaultExpandedKeys,v=e.treeDefaultExpandAll,y=e.children,x=e.treeIcon,C=e.showTreeIcon,S=e.switcherIcon,k=e.treeLine,E=e.treeMotion,O=e.filterTreeNode,M=e.dropdownPopupAlign,T=e.onChange,I=e.onTreeExpand,L=e.onTreeLoad,D=e.onDropdownVisibleChange,P=e.onSelect,N=e.onDeselect,j=r||i,F=n||j,R=r&&!i,U=i||s,H=A["useRef"](null);A["useImperativeHandle"](t,(function(){return{focus:H.current.focus,blur:H.current.blur}}));var Q=function(e){return p&&e.label||e.title},K=function(e){return h?e[h]:Q(e)},z=Yt(p,y,{getLabelProp:Q,simpleMode:f}),V=Object(A["useMemo"])((function(){return Qt(z)}),[z]),W=Et(V),G=Object(w["a"])(W,2),X=G[0],q=G[1],Y=kt(X,q),Z=Object(w["a"])(Y,2),J=Z[0],$=Z[1],ee=Object(A["useMemo"])((function(){return R?Xe(z):{keyEntities:null}}),[z,r,i]),te=ee.keyEntities,ne=Object(B["a"])(e.defaultValue,{value:e.value}),re=Object(w["a"])(ne,2),ie=re[0],oe=re[1],ae=function(e){var t=[],n=[];return e.forEach((function(e){$(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}},le=Object(A["useMemo"])((function(){var e=[],t=[];if(jt(ie).forEach((function(n){if(n&&"object"===Object(_["a"])(n)&&"value"in n)if(n.halfChecked&&i){var r=$(n.value);e.push(r?r.key:n.value)}else t.push(n.value);else t.push(n)})),R){var n=ae(t),r=n.missingRawValues,o=n.existRawValues,a=o.map((function(e){return $(e).key})),s=tt(a,!0,te),l=s.checkedKeys,c=s.halfCheckedKeys;return[[].concat(Object(b["a"])(r),Object(b["a"])(l.map((function(e){return J(e).data.value})))),c]}return[t,e]}),[ie,F,U,r,i]),ce=Object(w["a"])(le,2),de=ce[0],he=ce[1],fe=tn(de,{treeConduction:R,value:ie,showCheckedStrategy:a,conductKeyEntities:te,getEntityByValue:$,getEntityByKey:J,getLabelProp:K}),pe=function(e,t,n){if(oe(F?e:e[0]),T){var r=e;if(R&&"SHOW_ALL"!==a){var o=e.map((function(e){var t=$(e);return t?t.key:e})),s=en(o,a,te);r=s.map((function(e){var t=J(e);return t?t.data.value:e}))}var l=t||{triggerValue:void 0,selected:void 0},c=l.triggerValue,u=l.selected,d=U?Vt(r,ie,$,K):r;if(i){var h=he.map((function(e){var t=J(e);return t?t.data.value:e})).filter((function(e){return!r.includes(e)}));d=[].concat(Object(b["a"])(d),Object(b["a"])(Vt(h,ie,$,K)))}var f={preValue:fe,triggerValue:c},p=!0;(i||"selection"===n&&!u)&&(p=!1),Nt(f,c,e,z,p),j?f.checked=u:f.selected=u,T(F?d:d[0],U?null:r.map((function(e){var t=$(e);return t?K(t.data):null})),f)}},Ae=function(e,t,n){var r=e;if(F){var i=Wt(de,e);if(R){var o=ae(i),a=o.missingRawValues,s=o.existRawValues,l=s.map((function(e){return $(e).key})),c=tt(l,!0,te),u=c.checkedKeys;i=[].concat(Object(b["a"])(a),Object(b["a"])(u.map((function(e){return J(e).data.value}))))}pe(i,{selected:!0,triggerValue:e},n)}else pe([e],{selected:!0,triggerValue:e},n);P&&P(r,t)},ge=function(e,t,n){var r=e,i=Gt(de,e);if(R){var o=ae(i),a=o.missingRawValues,s=o.existRawValues,l=s.map((function(e){return $(e).key})),c=tt(l,{checked:!1,halfCheckedKeys:he},te),u=c.checkedKeys;i=[].concat(Object(b["a"])(a),Object(b["a"])(u.map((function(e){return J(e).data.value}))))}pe(i,{selected:!1,triggerValue:e},n),N&&N(r,t)},me=function(){pe([],null,"clear")},ve=A["useCallback"]((function(e){if(D){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return Object(ue["a"])(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),D(e,t)}}),[D]);var ye={optionLabelProp:null,optionFilterProp:d,dropdownAlign:M,internalProps:{mark:se,onClear:me,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:Ae,onRawDeselect:ge}};return"filterTreeNode"in e&&(ye.filterOption=O),A["createElement"](Ct.Provider,{value:{checkable:j,loadData:l,treeLoadedKeys:c,onTreeLoad:L,checkedKeys:de,halfCheckedKeys:he,treeDefaultExpandAll:v,treeExpandedKeys:g,treeDefaultExpandedKeys:m,onTreeExpand:I,treeIcon:x,treeMotion:E,showTreeIcon:C,switcherIcon:S,treeLine:k,treeNodeFilterProp:d}},A["createElement"](rn,Object.assign({ref:H,mode:F?"multiple":null},e,ye,{value:fe,labelInValue:!0,options:z,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:ve})))})),an=function(e){Object(v["a"])(n,e);var t=Object(y["a"])(n);function n(){var e;return Object(g["a"])(this,n),e=t.apply(this,arguments),e.selectRef=A["createRef"](),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(m["a"])(n,[{key:"render",value:function(){return A["createElement"](on,Object.assign({ref:this.selectRef},this.props))}}]),n}(A["Component"]);an.TreeNode=Lt,an.SHOW_ALL=Zt,an.SHOW_PARENT=Jt,an.SHOW_CHILD=$t;var sn=an,ln=sn,cn=n("BGR+"),un=n("H84U"),dn=n("uaoM"),hn=n("1vzs"),fn=n("2jpz"),pn=n("3Nzz"),An=function(e){h()(n,e);var t=p()(n);function n(e){var r;return l()(this,n),r=t.call(this,e),r.selectRef=A["createRef"](),r.renderTreeSelect=function(e){var t,n=e.getPopupContainer,o=e.getPrefixCls,s=e.renderEmpty,l=e.direction,c=e.virtual,u=e.dropdownMatchSelectWidth,d=r.props,h=d.prefixCls,f=d.size,p=d.className,g=d.treeCheckable,m=d.multiple,v=d.listHeight,y=void 0===v?256:v,b=d.listItemHeight,_=void 0===b?26:b,w=d.notFoundContent,x=d.switcherIcon,C=d.treeLine,S=d.getPopupContainer,k=d.dropdownClassName,E=d.bordered,B=d.treeIcon,M=void 0!==B&&B,T=o("select",h),I=o("select-tree",h),L=o("tree-select",h),D=O()(k,"".concat(L,"-dropdown"),a()({},"".concat(L,"-dropdown-rtl"),"rtl"===l)),P=!(!g&&!m),N=Object(hn["a"])(i()(i()({},r.props),{multiple:P,prefixCls:T})),j=N.suffixIcon,F=N.itemIcon,R=N.removeIcon,U=N.clearIcon;t=void 0!==w?w:s("Select");var H=Object(cn["default"])(r.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return A["createElement"](pn["b"].Consumer,null,(function(e){var o,s=f||e,d=O()(!h&&L,(o={},a()(o,"".concat(T,"-lg"),"large"===s),a()(o,"".concat(T,"-sm"),"small"===s),a()(o,"".concat(T,"-rtl"),"rtl"===l),a()(o,"".concat(T,"-borderless"),!E),o),p);return A["createElement"](ln,i()({virtual:c,dropdownMatchSelectWidth:u},H,{ref:r.selectRef,prefixCls:T,className:d,listHeight:y,listItemHeight:_,treeCheckable:g?A["createElement"]("span",{className:"".concat(T,"-tree-checkbox-inner")}):g,inputIcon:j,menuItemSelectedIcon:F,removeIcon:R,clearIcon:U,switcherIcon:function(e){return Object(fn["a"])(I,x,C,e)},showTreeIcon:M,notFoundContent:t,getPopupContainer:S||n,treeMotion:null,dropdownClassName:D}))}))},Object(dn["a"])(!1!==e.multiple||!e.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),r}return u()(n,[{key:"focus",value:function(){this.selectRef.current&&this.selectRef.current.focus()}},{key:"blur",value:function(){this.selectRef.current&&this.selectRef.current.blur()}},{key:"render",value:function(){return A["createElement"](un["a"],null,this.renderTreeSelect)}}]),n}(A["Component"]);An.TreeNode=Lt,An.SHOW_ALL=Zt,An.SHOW_PARENT=Jt,An.SHOW_CHILD=$t,An.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};t["a"]=An},"5Uyt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("KmBX"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},"5YOS":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("xb2K"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},"5YgA":function(e,t,n){},"5bA4":function(e,t,n){"use strict";var r=n("VTBJ"),i=n("q1tI"),o={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"},a=o,s=n("6VBw"),l=function(e,t){return i["createElement"](s["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:t,icon:a}))};l.displayName="LeftOutlined";t["a"]=i["forwardRef"](l)},"5nXd":function(e,t,n){var r=n("MFOe"),i=r.slice,o=r.pluck,a=r.each,s=r.bind,l=r.create,c=r.isList,u=r.isFunction,d=r.isObject;e.exports={createStore:p};var h={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each((function(n,r){e.call(t,t._deserialize(n),(r||"").replace(t._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return p.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return p(this.storage,this.plugins,e)}};function f(){var e="undefined"==typeof console?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}function p(e,t,n){n||(n=""),e&&!c(e)&&(e=[e]),t&&!c(t)&&(t=[t]);var r=n?"__storejs_"+n+"_":"",p=n?new RegExp("^"+r):null,A=/^[a-zA-Z0-9_\-]*$/;if(!A.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:r,_namespaceRegexp:p,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var n=e.read(t)===t;return e.remove(t),n}catch(r){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){var t=i(arguments,0),r=this;function o(){if(n)return a(arguments,(function(e,n){t[n]=e})),n.apply(r,t)}var s=[o].concat(t);return e.apply(r,s)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var n="";try{n=JSON.parse(e)}catch(r){n=e}return void 0!==n?n:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(c(e))a(e,(function(e){t._addPlugin(e)}));else{var n=o(this.plugins,(function(t){return e===t}));if(!n){if(this.plugins.push(e),!u(e))throw new Error("Plugins must be function values that return objects");var r=e.call(this);if(!d(r))throw new Error("Plugins must return an object of function properties");a(r,(function(n,r){if(!u(n))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(n,r)}))}}},addStorage:function(e){f("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},m=l(g,h,{plugins:[]});return m.raw={},a(m,(function(e,t){u(e)&&(m.raw[t]=s(m,e))})),a(e,(function(e){m._addStorage(e)})),a(t,(function(e){m._addPlugin(e)})),m}},"5rEg":function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("lwsE"),a=n.n(o),s=n("W8MJ"),l=n.n(s),c=n("7W2i"),u=n.n(c),d=n("LQ03"),h=n.n(d),f=n("lSNA"),p=n.n(f),A=n("q1tI"),g=n("TSYQ"),m=n.n(g),v=n("BGR+"),y=n("kbBi"),b=n.n(y),_=n("CWQg"),w=n("0n0R"),x=Object(_["a"])("text","input");function C(e){return!!(e.prefix||e.suffix||e.allowClear)}var S=function(e){u()(n,e);var t=h()(n);function n(){var e;return a()(this,n),e=t.apply(this,arguments),e.containerRef=A["createRef"](),e.onInputMouseUp=function(t){var n;if(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target)){var r=e.props.triggerFocus;r()}},e}return l()(n,[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.allowClear,r=t.value,i=t.disabled,o=t.readOnly,a=t.inputType,s=t.handleReset;if(!n)return null;var l=!i&&!o&&r,c=a===x[0]?"".concat(e,"-textarea-clear-icon"):"".concat(e,"-clear-icon");return A["createElement"](b.a,{onClick:s,className:m()(c,p()({},"".concat(c,"-hidden"),!l)),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,r=t.allowClear;return n||r?A["createElement"]("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,r=this.props,i=r.focused,o=r.value,a=r.prefix,s=r.className,l=r.size,c=r.suffix,u=r.disabled,d=r.allowClear,h=r.direction,f=r.style,g=r.readOnly,v=r.bordered,y=this.renderSuffix(e);if(!C(this.props))return Object(w["a"])(t,{value:o});var b=a?A["createElement"]("span",{className:"".concat(e,"-prefix")},a):null,_=m()(s,"".concat(e,"-affix-wrapper"),(n={},p()(n,"".concat(e,"-affix-wrapper-focused"),i),p()(n,"".concat(e,"-affix-wrapper-disabled"),u),p()(n,"".concat(e,"-affix-wrapper-sm"),"small"===l),p()(n,"".concat(e,"-affix-wrapper-lg"),"large"===l),p()(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),c&&d&&o),p()(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===h),p()(n,"".concat(e,"-affix-wrapper-readonly"),g),p()(n,"".concat(e,"-affix-wrapper-borderless"),!v),n));return A["createElement"]("span",{ref:this.containerRef,className:_,style:f,onMouseUp:this.onInputMouseUp},b,Object(w["a"])(t,{style:null,value:o,className:I(e,v,l,u)}),y)}},{key:"renderInputWithLabel",value:function(e,t){var n,r,i=this.props,o=i.addonBefore,a=i.addonAfter,s=i.style,l=i.size,c=i.className,u=i.direction;if(!o&&!a)return t;var d="".concat(e,"-group"),h="".concat(d,"-addon"),f=o?A["createElement"]("span",{className:h},o):null,g=a?A["createElement"]("span",{className:h},a):null,v=m()("".concat(e,"-wrapper"),(n={},p()(n,d,o||a),p()(n,"".concat(d,"-rtl"),"rtl"===u),n)),y=m()(c,"".concat(e,"-group-wrapper"),(r={},p()(r,"".concat(e,"-group-wrapper-sm"),"small"===l),p()(r,"".concat(e,"-group-wrapper-lg"),"large"===l),p()(r,"".concat(e,"-group-wrapper-rtl"),"rtl"===u),r));return A["createElement"]("span",{className:y,style:s},A["createElement"]("span",{className:v},f,Object(w["a"])(t,{style:null}),g))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n,r=this.props,i=r.value,o=r.allowClear,a=r.className,s=r.style,l=r.direction,c=r.bordered;if(!o)return Object(w["a"])(t,{value:i});var u=m()(a,"".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),(n={},p()(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===l),p()(n,"".concat(e,"-affix-wrapper-borderless"),!c),n));return A["createElement"]("span",{className:u,style:s},Object(w["a"])(t,{style:null,value:i}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===x[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}]),n}(A["Component"]),k=S,E=n("H84U"),O=n("3Nzz"),B=n("uaoM");function M(e){return"undefined"===typeof e||null===e?"":e}function T(e,t,n){if(n){var r=t;if("click"===t.type){r=Object.create(t),r.target=e,r.currentTarget=e;var i=e.value;return e.value="",n(r),void(e.value=i)}n(r)}}function I(e,t,n,r,i){var o;return m()(e,(o={},p()(o,"".concat(e,"-sm"),"small"===n),p()(o,"".concat(e,"-lg"),"large"===n),p()(o,"".concat(e,"-disabled"),r),p()(o,"".concat(e,"-rtl"),"rtl"===i),p()(o,"".concat(e,"-borderless"),!t),o))}var L=function(e){u()(n,e);var t=h()(n);function n(e){var r;a()(this,n),r=t.call(this,e),r.direction="ltr",r.focus=function(){r.input.focus()},r.saveClearableInput=function(e){r.clearableInput=e},r.saveInput=function(e){r.input=e},r.onFocus=function(e){var t=r.props.onFocus;r.setState({focused:!0},r.clearPasswordValueAttribute),t&&t(e)},r.onBlur=function(e){var t=r.props.onBlur;r.setState({focused:!1},r.clearPasswordValueAttribute),t&&t(e)},r.handleReset=function(e){r.setValue("",(function(){r.focus()})),T(r.input,e,r.props.onChange)},r.renderInput=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.props,s=a.className,l=a.addonBefore,c=a.addonAfter,u=a.size,d=a.disabled,h=Object(v["default"])(r.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return A["createElement"]("input",i()({autoComplete:o.autoComplete},h,{onChange:r.handleChange,onFocus:r.onFocus,onBlur:r.onBlur,onKeyDown:r.handleKeyDown,className:m()(I(e,n,u||t,d,r.direction),p()({},s,s&&!l&&!c)),ref:r.saveInput}))},r.clearPasswordValueAttribute=function(){r.removePasswordTimeout=setTimeout((function(){r.input&&"password"===r.input.getAttribute("type")&&r.input.hasAttribute("value")&&r.input.removeAttribute("value")}))},r.handleChange=function(e){r.setValue(e.target.value,r.clearPasswordValueAttribute),T(r.input,e,r.props.onChange)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,i=t.onKeyDown;13===e.keyCode&&n&&n(e),i&&i(e)},r.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,o=e.input,a=r.state,s=a.value,l=a.focused,c=r.props,u=c.prefixCls,d=c.bordered,h=void 0===d||d,f=t("input",u);return r.direction=n,A["createElement"](O["b"].Consumer,null,(function(e){return A["createElement"](k,i()({size:e},r.props,{prefixCls:f,inputType:"input",value:M(s),element:r.renderInput(f,e,h,o),handleReset:r.handleReset,ref:r.saveClearableInput,direction:n,focused:l,triggerFocus:r.focus,bordered:h}))}))};var o="undefined"===typeof e.value?e.defaultValue:e.value;return r.state={value:o,focused:!1,prevValue:e.value},r}return l()(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return C(e)!==C(this.props)&&Object(B["a"])(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value&&this.setState({value:e},t)}},{key:"render",value:function(){return A["createElement"](E["a"],null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}]),n}(A["Component"]);L.defaultProps={type:"text"};var D=L,P=function(e){return A["createElement"](E["a"],null,(function(t){var n,r=t.getPrefixCls,i=t.direction,o=e.prefixCls,a=e.className,s=void 0===a?"":a,l=r("input-group",o),c=m()(l,(n={},p()(n,"".concat(l,"-lg"),"large"===e.size),p()(n,"".concat(l,"-sm"),"small"===e.size),p()(n,"".concat(l,"-compact"),e.compact),p()(n,"".concat(l,"-rtl"),"rtl"===i),n),s);return A["createElement"]("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))},N=P,j=n("c+Xe"),F=n("w6Tc"),R=n.n(F),U=n("gZBC"),H=n.n(U),Q=n("2/Rp"),K=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 i=0;for(r=Object.getOwnPropertySymbols(e);i=0&&s<0)&&(a=A,s=p,i=u,o.length=0),l(d,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}function p(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function A(e,t,n,r){var i=n.payloadBatch,o=t.axis,s=o.model,l=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,u=a.makeKey(c),d=e.map[u];d||(d=e.map[u]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:i.slice()})}}function g(e,t,n){var r=n.axesInfo=[];l(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function m(e,t,n,r){if(!_(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function v(e,t,n){var i=n.getZr(),o="axisPointerLastHighlights",a=u(i)[o]||{},s=u(i)[o]={};l(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&l(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var c=[],d=[];r.each(a,(function(e,t){!s[t]&&d.push(e)})),r.each(s,(function(e,t){!a[t]&&c.push(e)})),d.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:d}),c.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}function y(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function b(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 _(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=d},"63Hc":function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;nf&&(h=0,d={}),h++,d[n]=i,i}function y(e,t,n,r,i,o,a,s){return a?_(e,t,n,r,i,o,a,s):b(e,t,n,r,i,o,s)}function b(e,t,n,i,o,a,s){var l=I(e,t,o,a,s),c=v(e,t);o&&(c+=o[1]+o[3]);var u=l.outerHeight,d=w(0,c,n),h=x(0,u,i),f=new r(d,h,c,u);return f.lineHeight=l.lineHeight,f}function _(e,t,n,i,o,a,s,l){var c=L(e,{rich:s,truncate:l,font:t,textAlign:n,textPadding:o,textLineHeight:a}),u=c.outerWidth,d=c.outerHeight,h=w(0,u,n),f=x(0,d,i);return new r(h,f,u,d)}function w(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function x(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function C(e,t,n){var r=t.textPosition,i=t.textDistance,o=n.x,a=n.y;i=i||0;var s=n.height,l=n.width,c=s/2,u="left",d="top";switch(r){case"left":o-=i,a+=c,u="right",d="middle";break;case"right":o+=i+l,a+=c,d="middle";break;case"top":o+=l/2,a-=i,u="center",d="bottom";break;case"bottom":o+=l/2,a+=s+i,u="center";break;case"inside":o+=l/2,a+=c,u="center",d="middle";break;case"insideLeft":o+=i,a+=c,d="middle";break;case"insideRight":o+=l-i,a+=c,u="right",d="middle";break;case"insideTop":o+=l/2,a+=i,u="center";break;case"insideBottom":o+=l/2,a+=s-i,u="center",d="bottom";break;case"insideTopLeft":o+=i,a+=i;break;case"insideTopRight":o+=l-i,a+=i,u="right";break;case"insideBottomLeft":o+=i,a+=s-i,d="bottom";break;case"insideBottomRight":o+=l-i,a+=s-i,u="right",d="bottom";break}return e=e||{},e.x=o,e.y=a,e.textAlign=u,e.textVerticalAlign=d,e}function S(e,t,n){var r={textPosition:e,textDistance:n};return C({},r,t)}function k(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=E(t,n,r,i);for(var a=0,s=o.length;a=o;c++)a-=o;var u=v(n,t);return u>a&&(n="",u=0),a=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=a,r.containerWidth=e,r}function O(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=v(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?B(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=v(e,r)}return""===e&&(e=t.placeholder),e}function B(e,t,n,r){for(var i=0,o=0,a=e.length;od)e="",a=[];else if(null!=h)for(var f=E(h-(n?n[1]+n[3]:0),t,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),p=0,A=a.length;po&&D(n,e.substring(o,a)),D(n,r[2],r[1]),o=p.lastIndex}om)return{lines:[],width:0,height:0};C.textWidth=v(C.text,O);var T=S.textWidth,I=null==T||"auto"===T;if("string"===typeof T&&"%"===T.charAt(T.length-1))C.percentWidth=T,h.push(C),T=0;else{if(I){T=C.textWidth;var L=S.textBackgroundColor,P=L&&L.image;P&&(P=i.findExistImage(P),i.isImageReady(P)&&(T=Math.max(T,P.width*B/P.height)))}var N=E?E[1]+E[3]:0;T+=N;var j=null!=g?g-w:null;null!=j&&j"],i.isArray(e)&&(e=e.slice(),r=!0),o=t?e:r?[u(e[0]),u(e[1])]:u(e),i.isString(c)?c.replace("{value}",r?o[0]:o).replace("{value2}",r?o[1]:o):i.isFunction(c)?r?c(e[0],e[1]):c(e):r?e[0]===l[0]?n[0]+" "+o[1]:e[1]===l[1]?n[1]+" "+o[0]:o[0]+" - "+o[1]:o;function u(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=A([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var o=r[i],a=e.getDimensionInfo(o);if(!a.isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},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={});i.merge(r,n),i.merge(o,n);var l=this.isCategory();function c(n){f(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")},p(this.stateList,(function(e){var t=n[e];if(i.isString(t)){var r=a.get(t,"active",l);r?(n[e]={},n[e][t]=r):delete n[e]}}),this)}function u(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},p(r,(function(e,t){if(s.isValidType(t)){var n=a.get(t,"inactive",l);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function A(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor");p(this.stateList,(function(o){var a=this.itemSize,s=e[o];s||(s=e[o]={color:l?r:[r]}),null==s.symbol&&(s.symbol=t&&i.clone(t)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&i.clone(n)||(l?a[0]:[a[0],a[0]])),s.symbol=d(s.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var c=s.symbolSize;if(null!=c){var u=-1/0;h(c,(function(e){e>u&&(u=e)})),s.symbolSize=d(c,(function(e){return g(e,[0,u],[0,a[0]],!0)}))}}),this)}c.call(this,r),c.call(this,o),u.call(this,r,"inRange","outOfRange"),A.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m}),y=v;e.exports=y},"6usn":function(e,t,n){var r=n("bYtY");function i(e,t){return r.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=t[r],a=e[r]/2,s="dataTo"+n,l="category"===i.type?i.getBandWidth():Math.abs(i[s](o-a)-i[s](o+a));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function o(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),o=t.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:o[1],r0:o[0]},api:{coord:r.bind((function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a})),size:r.bind(i,e)}}}e.exports=o},"6xvX":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("V7ic"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},"711d":function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},"72pK":function(e,t){function n(e,t,n,o,a,s){e=e||0;var l=n[1]-n[0];if(null!=a&&(a=i(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===o){var c=Math.abs(t[1]-t[0]);c=i(c,[0,l]),a=s=i(c,[a,s]),o=0}t[0]=i(t[0],n),t[1]=i(t[1],n);var u=r(t,o);t[o]+=e;var d=a||0,h=n.slice();u.sign<0?h[0]+=d:h[1]-=d,t[o]=i(t[o],h);var f=r(t,o);null!=a&&(f.sign!==u.sign||f.spans&&(t[1-o]=t[o]+f.sign*s),t}function r(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 i(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=n},"75ce":function(e,t,n){var r=n("ProS");n("IXuL"),n("8X+K");var i=n("f5Yq"),o=n("h8O9"),a=n("/d5a");n("Ae16"),r.registerVisual(i("line","circle","line")),r.registerLayout(o("line")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a("line"))},"75ev":function(e,t,n){var r=n("ProS");n("IWNH"),n("bNin"),n("v5uJ");var i=n("f5Yq"),o=n("yik8");r.registerVisual(i("tree","circle")),r.registerLayout(o)},"77Zs":function(e,t,n){var r=n("Xi7e");function i(){this.__data__=new r,this.size=0}e.exports=i},"7AJT":function(e,t,n){var r=n("bYtY"),i=n("hM6l"),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.position=o||"bottom"};o.prototype={constructor:o,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},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},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},r.inherits(o,i);var a=o;e.exports=a},"7DRL":function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("bYtY")),o=i.createHashMap,a=i.isString,s=i.isArray,l=i.each,c=(i.assert,n("MEGo")),u=c.parseXML,d=o(),h={registerMap:function(e,t,n){var r;return s(t)?r=t:t.svg?r=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),r=[{type:"geoJSON",source:t,specialAreas:n}]),l(r,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=f[t];n(e)})),d.set(e,r)},retrieveMap:function(e){return d.get(e)}},f={geoJSON:function(e){var t=e.source;e.geoJSON=a(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=u(e.source)}};e.exports=h},"7G+c":function(e,t,n){var r=n("bYtY"),i=r.createHashMap,o=r.isTypedArray,a=n("Yl7c"),s=a.enableClassCheck,l=n("k9D9"),c=l.SOURCE_FORMAT_ORIGINAL,u=l.SERIES_LAYOUT_BY_COLUMN,d=l.SOURCE_FORMAT_UNKNOWN,h=l.SOURCE_FORMAT_TYPED_ARRAY,f=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===f?{}:[]),this.sourceFormat=e.sourceFormat||d,this.seriesLayoutBy=e.seriesLayoutBy||u,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&i(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}p.seriesDataToSource=function(e){return new p({data:e,sourceFormat:o(e)?h:c,fromDataset:!1})},s(p);var A=p;e.exports=A},"7GkX":function(e,t,n){var r=n("b80T"),i=n("A90E"),o=n("MMmD");function a(e){return o(e)?r(e):i(e)}e.exports=a},"7Kak":function(e,t,n){"use strict";n("cIOH"),n("KPFz")},"7Phj":function(e,t,n){var r=n("bYtY"),i=n("OELB"),o=i.parsePercent,a=r.each;function s(e){var t=l(e);a(t,(function(e){var t=e.seriesModels;t.length&&(c(e),a(t,(function(t,n){u(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function l(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),o=r.indexOf(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(e)})),t}function c(e){var t,n,i=e.axis,s=e.seriesModels,l=s.length,c=e.boxWidthList=[],u=e.boxOffsetList=[],d=[];if("category"===i.type)n=i.getBandWidth();else{var h=0;a(s,(function(e){h=Math.max(h,e.getData().count())})),t=i.getExtent(),Math.abs(t[1]-t[0])}a(s,(function(e){var t=e.get("boxWidth");r.isArray(t)||(t=[t,t]),d.push([o(t[0],n)||0,o(t[1],n)||0])}));var f=.8*n-2,p=f/l*.3,A=(f-p*(l-1))/l,g=A/2-f/2;a(s,(function(e,t){u.push(g),g+=p+A,c.push(Math.min(Math.max(A,d[t][0]),d[t][1]))}))}function u(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],c=i.mapDimension(l[a]),u=i.mapDimension(l[s],!0);if(!(null==c||u.length<5))for(var d=0;d=0&&n.splice(r,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n15)break}}a.__drawIndex=m,a.__drawIndex0&&e>r[0]){for(s=0;se)break;o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)}else a("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var n,r,i=this._zlevelList;for(r=0;r0?A:0),this._needsManuallyCompositing),l.__builtin__||a("ZLevel "+c+" has been used by unkown layer "+l.id),l!==o&&(l.__used=!0,l.__startIndex!==n&&(l.__dirty=!0),l.__startIndex=n,l.incremental?l.__drawIndex=-1:l.__drawIndex=n,t(n),o=l),r.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=n))}t(n),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)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?o.merge(n[e],t,!0):n[e]=t;for(var r=0;r=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,i=this._names=[];if("category"===n){var s=[];r.each(t,(function(e,t){var n,o=a.getDataItemValue(e);r.isObject(e)?(n=r.clone(e),n.value=t):n=t,s.push(n),r.isString(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")})),t=s}var l={category:"ordinal",time:"time"}[n]||"number",c=this._data=new o([{name:"value",type:l}],this);c.initData(t,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;e.exports=l},"7aKB":function(e,t,n){var r=n("bYtY"),i=n("6GrX"),o=n("OELB");function a(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function s(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 l=r.normalizeCssArray,c=/([&<>"'])/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"};function d(e){return null==e?"":(e+"").replace(c,(function(e,t){return u[t]}))}var h=["a","b","c","d","e","f","g"],f=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,n){r.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var o=t[0].$vars||[],a=0;a':'':{renderMode:o,content:"{marker"+a+"|} ",style:{color:n}}:""}function m(e,t){return e+="","0000".substr(0,t-e.length)+e}function v(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=o.parseDate(t),i=n?"UTC":"",a=r["get"+i+"FullYear"](),s=r["get"+i+"Month"]()+1,l=r["get"+i+"Date"](),c=r["get"+i+"Hours"](),u=r["get"+i+"Minutes"](),d=r["get"+i+"Seconds"](),h=r["get"+i+"Milliseconds"]();return e=e.replace("MM",m(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",m(l,2)).replace("d",l).replace("hh",m(c,2)).replace("h",c).replace("mm",m(u,2)).replace("m",u).replace("ss",m(d,2)).replace("s",d).replace("SSS",m(h,3)),e}function y(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}var b=i.truncateText;function _(e){return i.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function w(e,t,n,r,o,a,s,l){return i.getBoundingRect(e,t,n,r,o,l,a,s)}function x(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location=e}else window.open(e,t)}t.addCommas=a,t.toCamelCase=s,t.normalizeCssArray=l,t.encodeHTML=d,t.formatTpl=p,t.formatTplSimple=A,t.getTooltipMarker=g,t.formatTime=v,t.capitalFirst=y,t.truncateText=b,t.getTextBoundingRect=_,t.getTextRect=w,t.windowOpen=x},"7bkD":function(e,t,n){var r=n("bYtY");function i(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,o={},a=i.position,s=i.orient,l=n.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};o.position=["vertical"===s?u.vertical[a]:c[0],"horizontal"===s?u.horizontal[a]:c[3]];var d={horizontal:0,vertical:1};o.rotation=Math.PI/2*d[s];var h={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=h[a],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),r.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var f=t.rotate;return null==f&&(f=e.get("axisLabel.rotate")),o.labelRotation="top"===a?-f:f,o.z2=1,o}t.layout=i},"7fqy":function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},"7hqr":function(e,t,n){var r=n("bYtY"),i=r.each,o=r.isString;function a(e,t,n){n=n||{};var r,a,s,l,c=n.byIndex,u=n.stackedCoordDimension,d=!(!e||!e.get("stack"));if(i(t,(function(e,n){o(e)&&(t[n]=e={name:e}),d&&!e.isExtraCoord&&(c||r||!e.ordinalMeta||(r=e),a||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(a=e))})),!a||c||r||(c=!0),a){s="__\0ecstackresult",l="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var h=a.coordDim,f=a.type,p=0;i(t,(function(e){e.coordDim===h&&p++})),t.push({name:s,coordDim:h,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,t.push({name:l,coordDim:l,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:r&&r.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:s}}function s(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function l(e,t){return s(e,t)?e.getCalculationInfo("stackResultDimension"):t}t.enableDataStack=a,t.isDimensionStacked=s,t.getStackedDimension=l},"7mYs":function(e,t,n){var r=n("ProS"),i=n("bYtY"),o=n("IwbS"),a=n("7aKB"),s=n("OELB"),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\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"]},c={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},u=r.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,a,r),this._renderWeekText(e,o,a,r)},_renderDayRect:function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),l=t.start.time;l<=t.end.time;l=r.getNextNDay(l,1).time){var c=r.dataToRect([l],!1).tl,u=new o.Rect({shape:{x:c[0],y:c[1],width:a,height:s},cursor:"default",style:i});n.add(u)}},_renderLines:function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){h(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=o.getDateInfo(d)}function h(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},_getEdgesPoints:function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},_drawSplitline:function(e,t,n){var r=new o.Polyline({z2:20,shape:{points:e},style:t});n.add(r)},_getLinePointsOfOneWeek:function(e,t,n){var r=e.coordinateSystem;t=r.getDateInfo(t);for(var i=[],o=0;o<7;o++){var a=r.getNextNDay(t.time,o),s=r.dataToRect([a.time],!1);i[2*a.day]=s.tl,i[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return i},_formatterLabel:function(e,t){return"string"===typeof e&&e?a.formatTplSimple(e,t):"function"===typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,r,i){t=t.slice();var o=["center","bottom"];"bottom"===r?(t[1]+=i,o=["center","top"]):"left"===r?t[0]-=i:"right"===r?(t[0]+=i,o=["center","top"]):t[1]-=i;var a=0;return"left"!==r&&"right"!==r||(a=Math.PI/2),{rotation:a,position:t,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),s=i.get("position");s||(s="horizontal"!==n?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,u=(l[0][1]+l[1][1])/2,d="horizontal"===n?0:1,h={top:[c,l[d][1]],bottom:[c,l[1-d][1]],left:[l[1-d][0],u],right:[l[d][0],u]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var p=i.get("formatter"),A={start:t.start.y,end:t.end.y,nameMap:f},g=this._formatterLabel(p,A),m=new o.Text({z2:30});o.setTextStyle(m.style,i,{text:g}),m.attr(this._yearTextPositionControl(m,h[s],n,s,a)),r.add(m)}},_monthTextPositionControl:function(e,t,n,r,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(e,t,n){var r=e.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),s=r.get("margin"),c=r.get("position"),u=r.get("align"),d=[this._tlpoints,this._blpoints];i.isString(a)&&(a=l[a.toUpperCase()]||[]);var h="start"===c?0:1,f="horizontal"===t?0:1;s="start"===c?-s:s;for(var p="center"===u,A=0;A1?(A.width=u,A.height=u/f):(A.height=u,A.width=u*f),A.y=c[1]-A.height/2,A.x=c[0]-A.width/2}else o=e.getBoxLayoutParams(),o.aspect=f,A=s.getLayoutRect(o,{width:d,height:h});this.setViewRect(A.x,A.y,A.width,A.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function h(e,t){o.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var f={dimensions:a.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",(function(e,r){var i=e.get("map"),o=e.get("aspectScale"),s=!0,l=u.retrieveMap(i);l&&l[0]&&"svg"===l[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var c=new a(i+r,i,e.get("nameMap"),s);c.aspectScale=o,c.zoomLimit=e.get("scaleLimit"),n.push(c),h(c,e),e.coordinateSystem=c,c.model=e,c.resize=d,c.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),o.each(r,(function(e,r){var i=o.map(e,(function(e){return e.get("nameMap")})),s=new a(r,r,o.mergeAll(i));s.zoomLimit=o.retrieve.apply(null,o.map(e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=d,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),o.each(e,(function(e){e.coordinateSystem=s,h(s,e)}))})),n},getFilledRegions:function(e,t,n){for(var r=(e||[]).slice(),i=o.createHashMap(),a=0;a=32&&e<=255)return e;var t=r[e];return void 0!==t?t:16777216|e}};t["default"]=i},"8CQX":function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getKeycode=f,t.getKey=p,t.getKeysym=A;var i=h(n("mHUz")),o=h(n("8+yF")),a=h(n("6Qwc")),s=h(n("gIYZ")),l=h(n("mTgk")),c=d(n("GdRQ"));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n["default"]=e,t&&t.set(e,n),n}function h(e){return e&&e.__esModule?e:{default:e}}function f(e){if(e.code){switch(e.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return e.code}if("keypress"!==e.type&&e.keyCode in a["default"]){var t=a["default"][e.keyCode];if(c.isMac()&&"ContextMenu"===t&&(t="MetaRight"),2===e.location)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(3===e.location)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function p(e){if(void 0!==e.key){switch(e.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return e["char"]}switch(e.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(e.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if("\0"===e.key&&"NumpadDecimal"===e.code)return"Delete";if(!c.isIE()&&!c.isEdge())return e.key;if(1!==e.key.length&&"Unidentified"!==e.key)return e.key}var t=f(e);return t in s["default"]?s["default"][t]:e.charCode?String.fromCharCode(e.charCode):"Unidentified"}function A(e){var t=p(e);if("Unidentified"===t)return null;if(t in l["default"]){var n=e.location;if("Meta"===t&&0===n&&(n=2),"Clear"===t&&3===n){var r=f(e);"NumLock"===r&&(n=0)}if((void 0===n||n>3)&&(n=0),"Meta"===t){var a=f(e);if("AltLeft"===a)return i["default"].XK_Meta_L;if("AltRight"===a)return i["default"].XK_Meta_R}if("Clear"===t){var s=f(e);if("NumLock"===s)return i["default"].XK_Num_Lock}return l["default"][t][n]}if(1!==t.length)return null;var c=t.charCodeAt();return c?o["default"].lookup(c):null}},"8EBN":function(e,t,n){(function(e){e(n("VrN/"))})((function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n>l&1&&(this._zlibs[l].reset(),i.Info("Reset zlib stream "+l));this._ctl=this._ctl>>4}var c;if(8===this._ctl)c=this._fillRect(e,t,n,r,o,a,s);else if(9===this._ctl)c=this._jpegRect(e,t,n,r,o,a,s);else if(10===this._ctl)c=this._pngRect(e,t,n,r,o,a,s);else{if(0!=(128&this._ctl))throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");c=this._basicRect(this._ctl,e,t,n,r,o,a,s)}return c&&(this._ctl=null),c}},{key:"_fillRect",value:function(e,t,n,r,i,o,a){if(i.rQwait("TIGHT",3))return!1;var s=i.rQi,l=i.rQ;return o.fillRect(e,t,n,r,[l[s+2],l[s+1],l[s]],!1),i.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,t,n,r,i,o,a){var s=this._readData(i);return null!==s&&(o.imageRect(e,t,n,r,"image/jpeg",s),!0)}},{key:"_pngRect",value:function(e,t,n,r,i,o,a){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,t,n,r,i,o,a,s){if(null===this._filter)if(4&e){if(o.rQwait("TIGHT",1))return!1;this._filter=o.rQshift8()}else this._filter=0;var l,c=3&e;switch(this._filter){case 0:l=this._copyFilter(c,t,n,r,i,o,a,s);break;case 1:l=this._paletteFilter(c,t,n,r,i,o,a,s);break;case 2:l=this._gradientFilter(c,t,n,r,i,o,a,s);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return l&&(this._filter=null),l}},{key:"_copyFilter",value:function(e,t,n,r,i,o,a,s){var l,c=r*i*3;if(c<12){if(o.rQwait("TIGHT",c))return!1;l=o.rQshiftBytes(c)}else{if(l=this._readData(o),null===l)return!1;this._zlibs[e].setInput(l),l=this._zlibs[e].inflate(c),this._zlibs[e].setInput(null)}return a.blitRgbImage(t,n,r,i,l,0,!1),!0}},{key:"_paletteFilter",value:function(e,t,n,r,i,o,a,s){if(0===this._numColors){if(o.rQwait("TIGHT palette",1))return!1;var l=o.rQpeek8()+1,c=3*l;if(o.rQwait("TIGHT palette",1+c))return!1;this._numColors=l,o.rQskipBytes(1),o.rQshiftTo(this._palette,c)}var u,d=this._numColors<=2?1:8,h=Math.floor((r*d+7)/8),f=h*i;if(f<12){if(o.rQwait("TIGHT",f))return!1;u=o.rQshiftBytes(f)}else{if(u=this._readData(o),null===u)return!1;this._zlibs[e].setInput(u),u=this._zlibs[e].inflate(f),this._zlibs[e].setInput(null)}return 2==this._numColors?this._monoRect(t,n,r,i,u,this._palette,a):this._paletteRect(t,n,r,i,u,this._palette,a),this._numColors=0,!0}},{key:"_monoRect",value:function(e,t,n,r,i,o,a){for(var s=this._getScratchBuffer(n*r*4),l=Math.floor((n+7)/8),c=Math.floor(n/8),u=0;u=0;p--)d=4*(u*n+8*f+7-p),h=3*(i[u*l+f]>>p&1),s[d]=o[h],s[d+1]=o[h+1],s[d+2]=o[h+2],s[d+3]=255;for(var A=7;A>=8-n%8;A--)d=4*(u*n+8*f+7-A),h=3*(i[u*l+f]>>A&1),s[d]=o[h],s[d+1]=o[h+1],s[d+2]=o[h+2],s[d+3]=255}a.blitRgbxImage(e,t,n,r,s,0,!1)}},{key:"_paletteRect",value:function(e,t,n,r,i,o,a){for(var s=this._getScratchBuffer(n*r*4),l=n*r*4,c=0,u=0;c=0;a--){var s=n[a].dimension,l=e.dimensions[s],c=e.getDimensionInfo(l);if(r=c&&c.coordDim,"x"===r||"y"===r){o=n[a];break}}if(o){var d=t.getAxis(r),h=i.map(o.stops,(function(e){return{coord:d.toGlobalCoord(d.dataToCoord(e.value)),color:e.color}})),f=h.length,p=o.outerColors.slice();f&&h[0].coord>h[f-1].coord&&(h.reverse(),p.reverse());var A=10,g=h[0].coord-A,m=h[f-1].coord+A,v=m-g;if(v<.001)return"transparent";i.each(h,(function(e){e.offset=(e.coord-g)/v})),h.push({offset:f?h[f-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:p[0]||"transparent"});var y=new u.LinearGradient(0,0,0,0,h,!0);return y[r]=g,y[r+"2"]=m,y}}}function O(e,t,n){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!B(a,t))){var s=t.mapDimension(a.dim),l={};return i.each(a.getViewLabels(),(function(e){l[e.tickValue]=1})),function(e){return!l.hasOwnProperty(t.get(s,e))}}}}function B(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function M(e,t,n){if("cartesian2d"===e.type){var r=e.getBaseAxis().isHorizontal(),i=b(e,t,n);if(!n.get("clip",!0)){var o=i.shape,a=Math.max(o.width,o.height);r?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return i}return _(e,t,n)}var T=A.extend({type:"line",init:function(){var e=new u.Group,t=new s;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=a.mapArray(a.getItemLayout),u="polar"===r.type,d=this._coordSys,h=this._symbolDraw,f=this._polyline,p=this._polygon,A=this._lineGroup,g=e.get("animation"),v=!l.isEmpty(),y=l.get("origin"),b=m(r,a,y),_=S(r,a,b),x=e.get("showSymbol"),B=x&&!u&&O(e,a,r),T=this._data;T&&T.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),T.setItemGraphicEl(t,null))})),x||h.remove(),o.add(A);var I,L=!u&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(I=r.getArea(),null!=I.width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r1+=.5)),this._clipShapeForSymbol=I,f&&d.type===r.type&&L===this._step?(v&&!p?p=this._newPolygon(c,_,r,g):p&&!v&&(A.remove(p),p=this._polygon=null),A.setClipPath(M(r,!1,e)),x&&h.updateData(a,{isIgnore:B,clipShape:I}),a.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),w(this._stackedOnPoints,_)&&w(this._points,c)||(g?this._updateAnimation(a,_,r,n,L,y):(L&&(c=k(c,r,L),_=k(_,r,L)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:_})))):(x&&h.updateData(a,{isIgnore:B,clipShape:I}),L&&(c=k(c,r,L),_=k(_,r,L)),f=this._newPolyline(c,r,g),v&&(p=this._newPolygon(c,_,r,g)),A.setClipPath(M(r,!0,e)));var D=E(a,r)||a.getVisual("color");f.useStyle(i.defaults(s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"}));var P=e.get("smooth");if(P=C(e.get("smooth")),f.setShape({smooth:P,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),p){var N=a.getCalculationInfo("stackedOnSeries"),j=0;p.useStyle(i.defaults(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel"})),N&&(j=C(N.get("smooth"))),p.setShape({smooth:P,stackedOnSmooth:j,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=c,this._step=L,this._valueOrigin=y},dispose:function(){},highlight:function(e,t,n,r){var i=e.getData(),o=d.queryDataIndex(i,r);if(!(o instanceof Array)&&null!=o&&o>=0){var a=i.getItemGraphicEl(o);if(!a){var s=i.getItemLayout(o);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new l(i,o),a.position=s,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,i.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else A.prototype.highlight.call(this,e,t,n,r)},downplay:function(e,t,n,r){var i=e.getData(),o=d.queryDataIndex(i,r);if(null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else A.prototype.downplay.call(this,e,t,n,r)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new f({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,r,i,o){var a=this._polyline,s=this._polygon,l=e.hostModel,d=c(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=d.current,f=d.stackedOnCurrent,p=d.next,A=d.stackedOnNext;if(i&&(h=k(d.current,n,i),f=k(d.stackedOnCurrent,n,i),p=k(d.next,n,i),A=k(d.stackedOnNext,n,i)),x(h,p)>3e3||s&&x(f,A)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:A}));a.shape.__points=d.current,a.shape.points=h,u.updateProps(a,{shape:{points:p}},l),s&&(s.setShape({points:h,stackedOnPoints:f}),u.updateProps(s,{shape:{points:p,stackedOnPoints:A}},l));for(var g=[],m=d.status,v=0;v1&&void 0!==arguments[1]?arguments[1]:2;t();var o=Object(N["a"])((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o}return s["useEffect"]((function(){return function(){t()}}),[]),[n,t]},F=Object(h["a"])()?s["useLayoutEffect"]:s["useEffect"],R=F,U=[T,I,L,D],H=!1,Q=!0;function K(e){return e===L||e===D}var z=function(e,t){var n=Object(P["a"])(M),r=Object(o["a"])(n,2),i=r[0],a=r[1],l=j(),c=Object(o["a"])(l,2),u=c[0],d=c[1];function h(){a(T,!0)}return R((function(){if(i!==M&&i!==D){var e=U.indexOf(i),n=U[e+1],r=t(i);r===H?a(n,!0):u((function(e){function t(){e.isCanceled()||a(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),s["useEffect"]((function(){return function(){d()}}),[]),[h,i]},V=function(e){var t=Object(s["useRef"])(),n=Object(s["useRef"])(e);n.current=e;var r=s["useCallback"]((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(C,r),e.removeEventListener(x,r))}function o(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(C,r),e.addEventListener(x,r),t.current=e)}return s["useEffect"]((function(){return function(){i(t.current)}}),[]),[o,i]};function W(e,t,n,a){var l=a.motionEnter,c=void 0===l||l,u=a.motionAppear,d=void 0===u||u,h=a.motionLeave,f=void 0===h||h,p=a.motionDeadline,A=a.motionLeaveImmediately,g=a.onAppearPrepare,m=a.onEnterPrepare,v=a.onLeavePrepare,y=a.onAppearStart,b=a.onEnterStart,_=a.onLeaveStart,w=a.onAppearActive,x=a.onEnterActive,C=a.onLeaveActive,S=a.onAppearEnd,M=a.onEnterEnd,D=a.onLeaveEnd,N=a.onVisibleChanged,j=Object(P["a"])(),F=Object(o["a"])(j,2),U=F[0],W=F[1],G=Object(P["a"])(k),X=Object(o["a"])(G,2),q=X[0],Y=X[1],Z=Object(P["a"])(null),J=Object(o["a"])(Z,2),$=J[0],ee=J[1],te=Object(s["useRef"])(!1),ne=Object(s["useRef"])(null);function re(){return n()}var ie=Object(s["useRef"])(!1);function oe(e){var t=re();if(!e||e.deadline||e.target===t){var n,r=ie.current;q===E&&r?n=null===S||void 0===S?void 0:S(t,e):q===O&&r?n=null===M||void 0===M?void 0:M(t,e):q===B&&r&&(n=null===D||void 0===D?void 0:D(t,e)),q!==k&&r&&!1!==n&&(Y(k,!0),ee(null,!0))}}var ae=V(oe),se=Object(o["a"])(ae,1),le=se[0],ce=s["useMemo"]((function(){var e,t,n;switch(q){case E:return e={},Object(r["a"])(e,T,g),Object(r["a"])(e,I,y),Object(r["a"])(e,L,w),e;case O:return t={},Object(r["a"])(t,T,m),Object(r["a"])(t,I,b),Object(r["a"])(t,L,x),t;case B:return n={},Object(r["a"])(n,T,v),Object(r["a"])(n,I,_),Object(r["a"])(n,L,C),n;default:return{}}}),[q]),ue=z(q,(function(e){if(e===T){var t=ce[T];return t?t(re()):H}var n;fe in ce&&ee((null===(n=ce[fe])||void 0===n?void 0:n.call(ce,re(),null))||null);return fe===L&&(le(re()),p>0&&(clearTimeout(ne.current),ne.current=setTimeout((function(){oe({deadline:!0})}),p))),Q})),de=Object(o["a"])(ue,2),he=de[0],fe=de[1],pe=K(fe);ie.current=pe,R((function(){W(t);var n,r=te.current;(te.current=!0,e)&&(!r&&t&&d&&(n=E),r&&t&&c&&(n=O),(r&&!t&&f||!r&&A&&!t&&f)&&(n=B),n&&(Y(n),he()))}),[t]),Object(s["useEffect"])((function(){(q===E&&!d||q===O&&!c||q===B&&!f)&&Y(k)}),[d,c,f]),Object(s["useEffect"])((function(){return function(){te.current=!1,clearTimeout(ne.current)}}),[]);var Ae=s["useRef"](!1);Object(s["useEffect"])((function(){U&&(Ae.current=!0),void 0!==U&&q===k&&((Ae.current||U)&&(null===N||void 0===N||N(U)),Ae.current=!0)}),[U,q]);var ge=$;return ce[T]&&fe===I&&(ge=Object(i["a"])({transition:"none"},ge)),[q,fe,ge,null!==U&&void 0!==U?U:t]}var G=n("1OyB"),X=n("vuIU"),q=n("Ji7U"),Y=n("LK+K"),Z=function(e){Object(q["a"])(n,e);var t=Object(Y["a"])(n);function n(){return Object(G["a"])(this,n),t.apply(this,arguments)}return Object(X["a"])(n,[{key:"render",value:function(){return this.props.children}}]),n}(s["Component"]),J=Z;function $(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(a["a"])(e)&&(t=e.transitionSupport);var u=s["forwardRef"]((function(e,t){var a=e.visible,u=void 0===a||a,h=e.removeOnLeave,f=void 0===h||h,p=e.forceRender,A=e.children,g=e.motionName,m=e.leavedClassName,v=e.eventProps,y=n(e),b=Object(s["useRef"])(),_=Object(s["useRef"])();function w(){try{return b.current instanceof HTMLElement?b.current:Object(l["a"])(_.current)}catch(e){return null}}var x=W(y,u,w,e),C=Object(o["a"])(x,4),E=C[0],O=C[1],B=C[2],M=C[3],L=s["useRef"](M);M&&(L.current=!0);var D,P=s["useCallback"]((function(e){b.current=e,Object(c["b"])(t,e)}),[t]),N=Object(i["a"])(Object(i["a"])({},v),{},{visible:u});if(A)if(E!==k&&n(e)){var j,F;O===T?F="prepare":K(O)?F="active":O===I&&(F="start"),D=A(Object(i["a"])(Object(i["a"])({},N),{},{className:d()(S(g,E),(j={},Object(r["a"])(j,S(g,"".concat(E,"-").concat(F)),F),Object(r["a"])(j,g,"string"===typeof g),j)),style:B}),P)}else D=M?A(Object(i["a"])({},N),P):!f&&L.current&&m?A(Object(i["a"])(Object(i["a"])({},N),{},{className:m}),P):p||!f&&!m?A(Object(i["a"])(Object(i["a"])({},N),{},{style:{display:"none"}}),P):null;else D=null;if(s["isValidElement"](D)&&Object(c["c"])(D)){var R=D,U=R.ref;U||(D=s["cloneElement"](D,{ref:P}))}return s["createElement"](J,{ref:_},D)}));return u.displayName="CSSMotion",u}var ee=$(w),te=n("wx14"),ne=n("Ff2n"),re=n("JX7q"),ie="add",oe="keep",ae="remove",se="removed";function le(e){var t;return t=e&&"object"===Object(a["a"])(e)&&"key"in e?e:{key:e},Object(i["a"])(Object(i["a"])({},t),{},{key:String(t.key)})}function ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(le)}function ue(){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,a=ce(e),s=ce(t);a.forEach((function(e){for(var t=!1,a=r;a1}));return c.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae})),n.forEach((function(t){t.key===e&&(t.status=oe)}))})),n}var de=["component","children","onVisibleChanged","onAllRemoved"],he=["status"],fe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){Object(q["a"])(o,e);var n=Object(Y["a"])(o);function o(){var e;Object(G["a"])(this,o);for(var t=arguments.length,a=new Array(t),s=0;ss)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&c(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})}}};function c(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}r.registerPreprocessor(a)},"8x+h":function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("ProS")),o=n("bYtY"),a=n("K4ya"),s=n("Qxkt"),l=["#ddd"],c=i.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&a.replaceVisualOption(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:l},r.hasOwnProperty("liftZ")||(r.liftZ=5)},setAreas:function(e){e&&(this.areas=o.map(e,(function(e){return u(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=u(this.option,e),this.brushType=this.brushOption.brushType}});function u(e,t){return o.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var d=c;e.exports=d},"8z0m":function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),o=n("RIqP"),a=n.n(o),s=n("pVnL"),l=n.n(s),c=n("J4zp"),u=n.n(c),d=n("q1tI"),h=n.n(d),f=n("TSYQ"),p=n.n(f);function A(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function g(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function m(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(t+"[]",e)})):n.append(t,e.data[t])})),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(A(e,t),g(t)):e.onSuccess(g(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 v=+new Date,y=0;function b(){return"rc-upload-"+v+"-"+ ++y}function _(e,t){return-1!==e.indexOf(t,e.length-t.length)}var w=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();return"."===t.charAt(0)?_(r.toLowerCase(),t.toLowerCase()):/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):i===t}))}return!0};function x(e,t){var n=e.createReader(),r=[];function i(){n.readEntries((function(e){var n=Array.prototype.slice.apply(e);r=r.concat(n);var o=!n.length;o?t(r):i()}))}i()}var C=function(e,t,n){var r=function e(r,i){i=i||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&x(r,(function(t){t.forEach((function(t){e(t,""+i+r.name+"/")}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},S=C,k=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function L(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var D=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t}),{})},P=function(e){function t(){var e,n,r,i;T(this,t);for(var o=arguments.length,a=Array(o),s=0;s0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},me=function(e){return 0===e.indexOf("image/")},ve=function(e){if(e.type&&!e.thumbUrl)return me(e.type);var t=e.thumbUrl||e.url,n=ge(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},ye=200;function be(e){return new Promise((function(t){if(e.type&&me(e.type)){var n=document.createElement("canvas");n.width=ye,n.height=ye,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ye,"px; height: ").concat(ye,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),i=new Image;i.onload=function(){var e=i.width,o=i.height,a=ye,s=ye,l=0,c=0;e=1)&&(e=1),e}s===c&&l===h||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=d(this,r)),this._modBy=c,this._modDataCount=h;var p=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var A=this._dueIndex,g=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(a||A1&&r>0?s:a}};return o;function a(){return t=e?null:o=0;m--){var v=g[m],y=v.node,b=v.width,_=v.text;A>p.width&&(A-=b-u,b=u,_=null);var w=new r.Polygon({shape:{points:h(l,0,b,d,m===g.length-1,0===m)},style:o.defaults(n.getItemStyle(),{lineJoin:"bevel",text:_,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:o.curry(s,y)});this.group.add(w),f(w,e,y),l+=b+c}},remove:function(){this.group.removeAll()}};var p=d;e.exports=p},"9u0u":function(e,t,n){var r=n("bYtY");function i(e,t){var n={};return r.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,c=-1/0,u=n[a].length,d=0;d0){var E="button"===p?"".concat(C,"-button"):C;k=f.map((function(e){return"string"===typeof e?s["createElement"](x,{ref:t,key:e,prefixCls:E,disabled:g,value:e,checked:h===e},e):s["createElement"](x,{ref:t,key:"radio-group-value-options-".concat(e.value),prefixCls:E,disabled:e.disabled||g,value:e.value,checked:h===e.value,style:e.style},e.label)}))}var O=v||a,B=u()(S,"".concat(S,"-").concat(A),(n={},i()(n,"".concat(S,"-").concat(O),O),i()(n,"".concat(S,"-rtl"),"rtl"===o),n),d);return s["createElement"]("div",{className:B,style:y,onMouseEnter:_,onMouseLeave:w,id:b},k)};return s["createElement"](f,{value:{onChange:A,value:h,disabled:e.disabled,name:e.name}},g())}));O.defaultProps={buttonStyle:"outline"};var B=s["memo"](O),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 i=0;for(r=Object.getOwnPropertySymbols(e);i=1},subscribe:function(e){return c.size||this.register(),u+=1,c.set(u,e),e(d),u},unsubscribe:function(e){c["delete"](e),c.size||this.unregister()},unregister:function(){var e=this;Object.keys(l).forEach((function(t){var n=l[t],r=e.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),c.clear()},register:function(){var e=this;Object.keys(l).forEach((function(t){var n=l[t],r=function(n){var r=n.matches;e.dispatch(a()(a()({},d),i()({},t,r)))},o=window.matchMedia(n);o.addListener(r),e.matchHandlers[n]={mql:o,listener:r},r(o)}))}};t["a"]=h},AE9C:function(e,t,n){var r=n("bYtY"),i=n("crZl"),o=n("IwbS"),a=n("oVpE"),s=a.createSymbol,l=n("+TT/"),c=n("y7Aq"),u=i.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),s=i.getTextColor(),c=this._getItemAlign(),u=t.itemSize,d=this._getViewData(),h=d.endsText,f=r.retrieve(t.get("showLabel",!0),!h);function p(i){var l=i.piece,d=new o.Group;d.onclick=r.bind(this._onItemClick,this,l),this._enableHoverLink(d,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(d,h,[0,0,u[0],u[1]]),f){var p=this.visualMapModel.getValueState(h);d.add(new o.Text({style:{x:"right"===c?-n:u[0]+n,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:a,textFill:s,opacity:"outOfRange"===p?.5:1}}))}e.add(d)}h&&this._renderEndsText(e,h[0],u,f,c),r.each(d.viewPieceList,p,this),h&&this._renderEndsText(e,h[1],u,f,c),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function n(e){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.makeHighDownBatch(n.findTargetDataIndices(t),n)})}e.on("mouseover",r.bind(n,this,"highlight")).on("mouseout",r.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,r,i){if(t){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:r?i:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=r.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return("horizontal"===i?o:!o)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},_createItemSymbol:function(e,t,n){e.add(s(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,n=t.option,i=r.clone(n.selected),o=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[o]=!0,r.each(i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),d=u;e.exports=d},AEZ6:function(e,t,n){var r=n("bYtY"),i=r.each,o=r.createHashMap,a=n("T4UG"),s=n("MwEJ"),l=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n=this.getSource();return c(n,this),s(n,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},defaultOption:{zlevel:0,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"}});function c(e,t){if(!e.encodeDefine){var n=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(n){var r=e.encodeDefine=o();i(n.dimensions,(function(e){var t=u(e);r.set(e,t)}))}}}function u(e){return+e.replace("dim","")}e.exports=l},AH3D:function(e,t,n){var r=n("ProS");n("y4/Y"),n("qWt2"),n("Qvb6"),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},ALo7:function(e,t,n){var r=n("ProS"),i=n("bYtY"),o=n("5GtS"),a=n("4NO4"),s=a.defaultEmphasis,l=n("D5nY"),c=l.makeSeriesEncodeForNameBased,u=n("xKMd"),d=r.extendSeriesModel({type:"series.funnel",init:function(e){d.superApply(this,"init",arguments),this.legendVisualProvider=new u(i.bind(this.getData,this),i.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:i.curry(c,this)})},_defaultLabelLine:function(e){s(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},getDataParams:function(e){var t=this.getData(),n=d.superCall(this,"getDataParams",e),r=t.mapDimension("value"),i=t.getSum(r);return n.percent=i?+(t.get(r,e)/i*100).toFixed(2):0,n.$vars.push("percent"),n},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),h=d;e.exports=h},ANhw:function(e,t){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r>>6-2*i);return n}};e.exports=n})()},ANjR:function(e,t,n){var r=n("bYtY");function i(e,t){return t=t||[0,0],r.map([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function o(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:r.bind(i,e)}}}e.exports=o},AOa7:function(e,t,n){},AUH6:function(e,t,n){var r=n("bYtY"),i=n("mFDi"),o=n("bMXI"),a=n("W4dC");function s(e,t,n,r){o.call(this,e),this.map=t;var i=a.load(t,n);this._nameCoordMap=i.nameCoordMap,this._regionsMap=i.regionsMap,this._invertLongitute=null==r||r,this.regions=i.regions,this._rect=i.boundingRect}function l(e,t,n,r){var i=n.geoModel,o=n.seriesModel,a=i?i.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[e](r):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n=n)t|=1&e,e>>=1;return e+t}function o(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i=0)i++;return i-t}function a(e,t,n){n--;while(t>>1,i(a,e[o])<0?l=o:s=o+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function l(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}a++;while(a>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function c(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function u(e,t){var n,i,o=r,a=0,s=0;a=e.length;var u=[];function d(e,t){n[s]=e,i[s]=t,s+=1}function h(){while(s>1){var e=s-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;p(e)}}function f(){while(s>1){var e=s-2;e>0&&i[e-1]=r||g>=r);if(m)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===i){for(d=0;d=0;d--)e[g+d]=e[A+d];if(0===i){b=!0;break}}if(e[p--]=u[f--],1===--s){b=!0;break}if(y=s-l(e[h],u,0,s,s-1,t),0!==y){for(p-=y,f-=y,s-=y,g=p+1,A=f+1,d=0;d=r||y>=r);if(b)break;m<0&&(m=0),m+=2}if(o=m,o<1&&(o=1),1===s){for(p-=i,h-=i,g=p+1,A=h+1,d=i-1;d>=0;d--)e[g+d]=e[A+d];e[p]=u[f]}else{if(0===s)throw new Error;for(A=p-(s-1),d=0;d=0;d--)e[g+d]=e[A+d];e[p]=u[f]}else for(A=p-(s-1),d=0;dh&&(f=h),s(e,r,r+f,r+c,t),c=f}d.pushRun(r,c),d.mergeRuns(),l-=c,r+=c}while(0!==l);d.forceMergeRuns()}}e.exports=d},Bd2K:function(e,t,n){(function(e){e(n("VrN/"),n("osHv"))})((function(e){e.defineOption("autoCloseTags",!1,(function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],l=r.getOption("autoCloseTags"),c=0;cu.ch&&(A=A.slice(0,A.length-d.end+u.ch));var y=A.toLowerCase();if(!A||"string"==d.type&&(d.end!=u.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&p.close||d.string.indexOf("/")==u.ch-d.start-1||m&&a(m,y)>-1||s(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],A,u,!0))return e.Pass;var b="object"==typeof l&&l.emptyTags;if(b&&a(b,A)>-1)o[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var _=v&&a(v,y)>-1;o[c]={indent:_,text:">"+(_?"\n\n":"")+"",newPos:_?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}var w="object"==typeof l&&l.dontIndentOnAutoClose;for(c=i.length-1;c>=0;c--){var x=o[c];r.replaceRange(x.text,i[c].head,i[c].anchor,"+insert");var C=r.listSelections().slice(0);C[c]={head:x.newPos,anchor:x.newPos},r.setSelections(C),!w&&x.indent&&(r.indentLine(x.newPos.line,null,!0),r.indentLine(x.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":""!=t.getLine(u.line).charAt(d.end)&&(p+=">"),i[c]=p}if(t.replaceSelections(i),r=t.listSelections(),!l)for(c=0;c=0;c--){if(n[c]!=r)break;++l}i=s.to;for(c=1;c.5?t:e}function h(e,t,n,r,i){var o=e.length;if(1===i)for(var a=0;ai;if(o)e.length=i;else for(var a=r;a=0;n--)if(O[n]<=t)break;n=Math.min(n,_-2)}else{for(n=Q;n<_;n++)if(O[n]>t)break;n=Math.min(n-1,_-2)}Q=n,K=t;var r=O[n+1]-O[n];if(0!==r)if(j=(t-O[n])/r,b)if(R=B[n],F=B[0===n?n:n-1],U=B[n>_-2?_-1:n+1],H=B[n>_-3?_-1:n+2],C)A(F,R,U,H,j,j*j,j*j*j,c(e,s),E);else{if(S)i=A(F,R,U,H,j,j*j,j*j*j,z,1),i=v(z);else{if(k)return d(R,U,j);i=g(F,R,U,H,j,j*j,j*j*j)}m(e,s,i)}else if(C)h(B[n],B[n+1],j,c(e,s),E);else{var i;if(S)h(B[n],B[n+1],j,z,1),i=v(z);else{if(k)return d(B[n],B[n+1],j);i=u(B[n],B[n+1],j)}m(e,s,i)}},W=new r({target:e._target,life:w,loop:e._loop,delay:e._delay,onframe:V,ondestroy:n});return t&&"spline"!==t&&(W.easing=t),W}}}var _=function(e,t,n,r){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||l,this._setter=r||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(e,t){var n=this._tracks;for(var r in t)if(t.hasOwnProperty(r)){if(!n[r]){n[r]=[];var i=this._getter(this._target,r);if(null==i)continue;0!==e&&n[r].push({time:0,value:m(i)})}n[r].push({time:e,value:t[r]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;et&&(t=r.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex),r=this.getLevelModel();return r?n.getModel(e,r.getModel(e)):n.getModel(e)}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},c.prototype={constructor:c,type:"tree",eachNode:function(e,t,n){this.root.eachNode(e,t,n)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=i.clone(e)},getValueState:function(e){var t=a.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){var i=a.findPieceIndex(t,this._pieceList);i===e&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},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},getVisualMeta:function(e){if(!this.isCategory()){var t=[],n=[],r=this,o=this._pieceList.slice();if(o.length){var a=o[0].interval[0];a!==-1/0&&o.unshift({interval:[-1/0,a]}),a=o[o.length-1].interval[1],a!==1/0&&o.push({interval:[a,1/0]})}else o.push({interval:[-1/0,1/0]});var s=-1/0;return i.each(o,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function l(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}}}),d={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),r=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var a=(r[1]-r[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var s=0,l=r[0];s","\u2265"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function h(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var f=u;e.exports=f},BvKs:function(e,t,n){"use strict";n.d(t,"a",(function(){return at}));var r=n("pVnL"),i=n.n(r),o=n("lSNA"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("7W2i"),h=n.n(d),f=n("LQ03"),p=n.n(f),A=n("q1tI"),g=n("VTBJ"),m=n("1OyB"),v=n("vuIU"),y=n("JX7q"),b=n("Ji7U"),_=n("LK+K"),w=n("I8Z2"),x=n("BGR+"),C=n("wx14"),S=n("rePB"),k=n("4IlW"),E=n("2GS6"),O=n("Gytx"),B=n.n(O),M=n("TSYQ"),T=n.n(M),I=n("U8pU"),L=n("ODXe"),D=/iPhone/i,P=/iPod/i,N=/iPad/i,j=/\bAndroid(?:.+)Mobile\b/i,F=/Android/i,R=/\bAndroid(?:.+)SD4930UR\b/i,U=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,H=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,K=/BlackBerry/i,z=/BB10/i,V=/Opera Mini/i,W=/\b(CriOS|Chrome)(?:.+)Mobile/i,G=/Mobile(?:.+)Firefox\b/i;function X(e,t){return e.test(t)}function q(e){var t=e||("undefined"!==typeof navigator?navigator.userAgent:""),n=t.split("[FBAN");if("undefined"!==typeof n[1]){var r=n,i=Object(L["a"])(r,1);t=i[0]}if(n=t.split("Twitter"),"undefined"!==typeof n[1]){var o=n,a=Object(L["a"])(o,1);t=a[0]}var s={apple:{phone:X(D,t)&&!X(H,t),ipod:X(P,t),tablet:!X(D,t)&&X(N,t)&&!X(H,t),device:(X(D,t)||X(P,t)||X(N,t))&&!X(H,t)},amazon:{phone:X(R,t),tablet:!X(R,t)&&X(U,t),device:X(R,t)||X(U,t)},android:{phone:!X(H,t)&&X(R,t)||!X(H,t)&&X(j,t),tablet:!X(H,t)&&!X(R,t)&&!X(j,t)&&(X(U,t)||X(F,t)),device:!X(H,t)&&(X(R,t)||X(U,t)||X(j,t)||X(F,t))||X(/\bokhttp\b/i,t)},windows:{phone:X(H,t),tablet:X(Q,t),device:X(H,t)||X(Q,t)},other:{blackberry:X(K,t),blackberry10:X(z,t),opera:X(V,t),firefox:X(G,t),chrome:X(W,t),device:X(K,t)||X(z,t)||X(V,t)||X(G,t)||X(W,t)},any:null,phone:null,tablet:null};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}var Y=Object(g["a"])(Object(g["a"])({},q()),{},{isMobile:q}),Z=Y;function J(){}function $(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function ee(e){return"".concat(e,"-menu-")}function te(e,t){var n=-1;A["Children"].forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?A["Children"].forEach(e.props.children,(function(e){n+=1,t(e,n)})):t(e,n)}))}function ne(e,t,n){e&&!n.find&&A["Children"].forEach(e,(function(e){if(e){var r=e.type;if(!r||!(r.isSubMenu||r.isMenuItem||r.isMenuItemGroup))return;-1!==t.indexOf(e.key)?n.find=!0:e.props.children&&ne(e.props.children,t,n)}}))}var re=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],ie=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"===typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var r=getComputedStyle(e),i=r.marginLeft,o=r.marginRight;n+=+i.replace("px","")+ +o.replace("px","")}n=+n.toFixed(6)}return n||0},oe=function(e,t,n){e&&"object"===Object(I["a"])(e.style)&&(e.style[t]=n)},ae=function(){return Z.any},se=n("KQm4"),le=n("Ff2n"),ce=n("i8i4"),ue=n("bdgK"),de=n("Uaa1"),he=n("HTfv"),fe={adjustX:1,adjustY:1},pe={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:fe,offset:[4,0]}},Ae={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:fe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:fe,offset:[4,0]}},ge=0,me={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ve=function(e,t,n){var r=ee(t),i=e.getState();e.setState({defaultActiveFirst:Object(g["a"])(Object(g["a"])({},i.defaultActiveFirst),{},Object(S["a"])({},r,n))})},ye=function(e){Object(b["a"])(n,e);var t=Object(_["a"])(n);function n(e){var r;Object(m["a"])(this,n),r=t.call(this,e),r.onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,i=r.props,o=i.isOpen,a=i.store;if(t===k["a"].ENTER)return r.onTitleClick(e),ve(a,r.props.eventKey,!0),!0;if(t===k["a"].RIGHT)return o?n.onKeyDown(e):(r.triggerOpenChange(!0),ve(a,r.props.eventKey,!0)),!0;if(t===k["a"].LEFT){var s;if(!o)return;return s=n.onKeyDown(e),s||(r.triggerOpenChange(!1),s=!0),s}return!o||t!==k["a"].UP&&t!==k["a"].DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onMouseEnter,o=t.store;ve(o,r.props.eventKey,!1),i({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,o=t.onMouseLeave;n.subMenuInstance=Object(y["a"])(r),o({key:i,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onItemHover,o=t.onTitleMouseEnter;i({key:n,hover:!0}),o({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,o=t.onItemHover,a=t.onTitleMouseLeave;n.subMenuInstance=Object(y["a"])(r),o({key:i,hover:!1}),a({key:i,domEvent:e})},r.onTitleClick=function(e){var t=Object(y["a"])(r),n=t.props;n.onTitleClick({key:n.eventKey,domEvent:e}),"hover"!==n.triggerSubMenuAction&&(r.triggerOpenChange(!n.isOpen,"click"),ve(n.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"===typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return Object(g["a"])(Object(g["a"])({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,i=function(){r.onOpenChange({key:n,item:Object(y["a"])(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){i()}),0):i()},r.isChildrenSelected=function(){var e={find:!1};return ne(r.props.children,r.props.selectedKeys,e),e.find},r.isOpen=function(){return-1!==r.props.openKeys.indexOf(r.props.eventKey)},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=ce["findDOMNode"](r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(y["a"])(r),t=e.props;return{mode:"horizontal"===t.mode?"vertical":t.mode,visible:r.props.isOpen,level:t.level+1,inlineIndent:t.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:t.selectedKeys,eventKey:"".concat(t.eventKey,"-menu-"),openKeys:t.openKeys,motion:t.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:t.subMenuOpenDelay,parentMenu:Object(y["a"])(r),subMenuCloseDelay:t.subMenuCloseDelay,forceSubMenuRender:t.forceSubMenuRender,triggerSubMenuAction:t.triggerSubMenuAction,builtinPlacements:t.builtinPlacements,defaultActiveFirst:t.store.getState().defaultActiveFirst[ee(t.eventKey)],multiple:t.multiple,prefixCls:t.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:t.itemIcon,expandIcon:t.expandIcon,direction:t.direction}},r.getMotion=function(e,t){var n=Object(y["a"])(r),i=n.haveRendered,o=r.props,a=o.motion,s=o.rootPrefixCls,l=Object(g["a"])(Object(g["a"])({},a),{},{leavedClassName:"".concat(s,"-hidden"),removeOnLeave:!1,motionAppear:i||!t||"inline"!==e});return l};var i=e.store,o=e.eventKey,a=i.getState(),s=a.defaultActiveFirst;r.isRootMenu=!1;var l=!1;return s&&(l=s[o]),ve(i,o,l),r}return Object(v["a"])(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,i=t.manualRef;i&&i(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.getBaseProps(),r=this.getMotion(n.mode,n.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||n.visible||n.forceSubMenuRender,!this.haveOpened)return A["createElement"]("div",null);var i=n.direction;return A["createElement"](he["default"],Object.assign({visible:n.visible},r),(function(r){var o=r.className,a=r.style,s=T()("".concat(n.prefixCls,"-sub"),o,Object(S["a"])({},"".concat(n.prefixCls,"-rtl"),"rtl"===i));return A["createElement"](Le,Object.assign({},n,{id:t.internalMenuId,className:s,style:a}),e)}))}},{key:"render",value:function(){var e,t=Object(g["a"])({},this.props),n=t.isOpen,r=this.getPrefixCls(),i="inline"===t.mode,o=T()(r,"".concat(r,"-").concat(t.mode),(e={},Object(S["a"])(e,t.className,!!t.className),Object(S["a"])(e,this.getOpenClassName(),n),Object(S["a"])(e,this.getActiveClassName(),t.active||n&&!i),Object(S["a"])(e,this.getDisabledClassName(),t.disabled),Object(S["a"])(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(ge+=1,this.internalMenuId="$__$".concat(ge,"$Menu")));var a={},s={},l={};t.disabled||(a={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},s={onClick:this.onTitleClick},l={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var c={},u=t.direction;i&&("rtl"===u?c.paddingRight=t.inlineIndent*t.level:c.paddingLeft=t.inlineIndent*t.level);var d={};this.props.isOpen&&(d={"aria-owns":this.internalMenuId});var h=null;"horizontal"!==t.mode&&(h=this.props.expandIcon,"function"===typeof this.props.expandIcon&&(h=A["createElement"](this.props.expandIcon,Object(g["a"])({},this.props))));var f=A["createElement"]("div",Object.assign({ref:this.saveSubMenuTitle,style:c,className:"".concat(r,"-title"),role:"button"},l,s,{"aria-expanded":n},d,{"aria-haspopup":"true",title:"string"===typeof t.title?t.title:void 0}),t.title,h||A["createElement"]("i",{className:"".concat(r,"-arrow")})),p=this.renderChildren(t.children),m=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},v=me[t.mode],y=t.popupOffset?{offset:t.popupOffset}:{},b="inline"===t.mode?"":t.popupClassName;b+="rtl"===u?" ".concat(r,"-rtl"):"";var _=t.disabled,w=t.triggerSubMenuAction,x=t.subMenuOpenDelay,C=t.forceSubMenuRender,k=t.subMenuCloseDelay,E=t.builtinPlacements;re.forEach((function(e){return delete t[e]})),delete t.onClick;var O="rtl"===u?Object.assign({},Ae,E):Object.assign({},pe,E);return delete t.direction,A["createElement"]("li",Object.assign({},t,a,{className:o,role:"menuitem"}),i&&f,i&&p,!i&&A["createElement"](de["a"],{prefixCls:r,popupClassName:T()("".concat(r,"-popup"),b),getPopupContainer:m,builtinPlacements:O,popupPlacement:v,popupVisible:n,popupAlign:y,popup:p,action:_?[]:[w],mouseEnterDelay:x,mouseLeaveDelay:k,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:C},f))}}]),n}(A["Component"]);ye.defaultProps={onMouseEnter:J,onMouseLeave:J,onTitleMouseEnter:J,onTitleMouseLeave:J,onTitleClick:J,manualRef:J,mode:"vertical",title:""};var be=Object(w["b"])((function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,o=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(o)>-1,active:r[a]===o,selectedKeys:i}}))(ye);be.isSubMenu=!0;var _e=be,we="menuitem-overflowed",xe=.5,Ce=function(e){Object(b["a"])(n,e);var t=Object(_["a"])(n);function n(){var e;return Object(m["a"])(this,n),e=t.apply(this,arguments),e.resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=ce["findDOMNode"](Object(y["a"])(e));return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var i=e.props,o=i.overflowedIndicator,a=i.level,s=i.mode,l=i.prefixCls,c=i.theme;if(1!==a||"horizontal"!==s)return null;var u=e.props.children[0],d=u.props,h=(d.children,d.title,d.style),f=Object(le["a"])(d,["children","title","style"]),p=Object(g["a"])({},h),m="".concat(t,"-overflowed-indicator"),v="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?p=Object(g["a"])(Object(g["a"])({},p),{},{display:"none"}):r&&(p=Object(g["a"])(Object(g["a"])({},p),{},{visibility:"hidden",position:"absolute"}),m="".concat(m,"-placeholder"),v="".concat(v,"-placeholder"));var y=c?"".concat(l,"-").concat(c):"",b={};return re.forEach((function(e){void 0!==f[e]&&(b[e]=f[e])})),A["createElement"](_e,Object.assign({title:o,className:"".concat(l,"-overflowed-submenu"),popupClassName:y},b,{key:m,eventKey:v,disabled:!1,style:p}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=ce["findDOMNode"](Object(y["a"])(e));if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];oe(r,"display","inline-block");var i=e.getMenuItemNodes(),o=i.filter((function(e){return e.className.split(" ").indexOf(we)>=0}));o.forEach((function(e){oe(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return ie(e,!0)})),o.forEach((function(e){oe(e,"display","none")})),e.overflowedIndicatorWidth=ie(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),oe(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=ce["findDOMNode"](Object(y["a"])(e));if(t){var n=ie(t);e.overflowedItems=[];var r,i=0;e.originalTotalWidth>n+xe&&(r=-1,e.menuItemSizes.forEach((function(t){i+=t,i+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(v["a"])(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=ce["findDOMNode"](this);if(!t)return;this.resizeObserver=new ue["default"]((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!==typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,i,o){var a=i;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(o>n&&(a=A["cloneElement"](i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat(we)})),o===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return A["cloneElement"](e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(i.props.eventKey,t.overflowedItems)));var l=[].concat(Object(se["a"])(r),[s,a]);return o===e.length-1&&l.push(t.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),l}return[].concat(Object(se["a"])(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(le["a"])(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return A["createElement"](i,Object.assign({},r),this.renderChildren(n))}}]),n}(A["Component"]);Ce.defaultProps={tag:"div",className:""};var Se=Ce;function ke(e){return!e.length||e.every((function(e){return!!e.props.disabled}))}function Ee(e,t,n){var r=e.getState();e.setState({activeKey:Object(g["a"])(Object(g["a"])({},r.activeKey),{},Object(S["a"])({},t,n))})}function Oe(e){return e.eventKey||"0-menu-"}function Be(e,t){var n,r=t,i=e.children,o=e.eventKey;if(r&&(te(i,(function(e,t){e&&e.props&&!e.props.disabled&&r===$(e,o,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(te(i,(function(e,t){r||!e||e.props.disabled||(r=$(e,o,t))})),r):r}function Me(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var Te=function(e){Object(b["a"])(n,e);var t=Object(_["a"])(n);function n(e){var r;return Object(m["a"])(this,n),r=t.call(this,e),r.onKeyDown=function(e,t){var n,i=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var o=null;return i!==k["a"].UP&&i!==k["a"].DOWN||(o=r.step(i===k["a"].UP?-1:1)),o?(e.preventDefault(),Ee(r.props.store,Oe(r.props),o.props.eventKey),"function"===typeof t&&t(o),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;Ee(r.props.store,Oe(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[Oe(r.props)],i=t.length;if(!i)return null;e<0&&(t=t.concat().reverse());var o=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(o=t,!1)})),r.props.defaultActiveFirst||-1===o||!ke(t.slice(o,i-1))){var a=(o+1)%i,s=a;do{var l=t[s];if(l&&!l.props.disabled)return l;s=(s+1)%i}while(s!==a);return null}},r.renderCommonMenuItem=function(e,t,n){var i=r.props.store.getState(),o=Object(y["a"])(r),a=o.props,s=$(e,a.eventKey,t),l=e.props;if(!l||"string"===typeof e.type)return e;var c=s===i.activeKey,u=Object(g["a"])(Object(g["a"])({mode:l.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:l.disabled?void 0:Object(E["a"])(e.ref,Me.bind(Object(y["a"])(r))),eventKey:s,active:!l.disabled&&c,multiple:a.multiple,onClick:function(e){(l.onClick||J)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:l.itemIcon||r.props.itemIcon,expandIcon:l.expandIcon||r.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||ae())&&(u.triggerSubMenuAction="click"),A["cloneElement"](e,u)},r.renderMenuItem=function(e,t,n){if(!e)return null;var i=r.props.store.getState(),o={openKeys:i.openKeys,selectedKeys:i.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,o)},e.store.setState({activeKey:Object(g["a"])(Object(g["a"])({},e.store.getState().activeKey),{},Object(S["a"])({},e.eventKey,Be(e,e.activeKey)))}),r.instanceArray=[],r}return Object(v["a"])(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!B()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Oe(t)],r=Be(t,n);if(r!==n)Ee(t.store,Oe(t),r);else if("activeKey"in e){var i=Be(e,e.activeKey);r!==i&&Ee(t.store,Oe(t),r)}}},{key:"render",value:function(){var e=this,t=Object(C["a"])({},this.props);this.instanceArray=[];var n=T()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),r={className:n,role:t.role||"menu"};t.id&&(r.id=t.id),t.focusable&&(r.tabIndex=0,r.onKeyDown=this.onKeyDown);var i=t.prefixCls,o=t.eventKey,a=t.visible,s=t.level,l=t.mode,c=t.overflowedIndicator,u=t.theme;return re.forEach((function(e){return delete t[e]})),delete t.onClick,A["createElement"](Se,Object.assign({},t,{prefixCls:i,mode:l,tag:"ul",level:s,theme:u,visible:a,overflowedIndicator:c},r),A["Children"].map(t.children,(function(t,n){return e.renderMenuItem(t,n,o||"0-menu-")})))}}]),n}(A["Component"]);Te.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:J};var Ie=Object(w["b"])()(Te),Le=Ie,De=n("Kwbf");function Pe(e,t,n){var r=e.prefixCls,i=e.motion,o=e.defaultMotions,a=void 0===o?{}:o,s=e.openAnimation,l=e.openTransitionName,c=t.switchingModeFromInline;if(i)return i;if("object"===Object(I["a"])(s)&&s)Object(De["a"])(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"===typeof s)return{motionName:"".concat(r,"-open-").concat(s)};if(l)return{motionName:l};var u=a[n];return u||(c?null:a.other)}var Ne=function(e){Object(b["a"])(n,e);var t=Object(_["a"])(n);function n(e){var r;Object(m["a"])(this,n),r=t.call(this,e),r.inlineOpenKeys=[],r.onSelect=function(e){var t=Object(y["a"])(r),n=t.props;if(n.selectable){var i=r.store.getState(),o=i.selectedKeys,a=e.key;o=n.multiple?o.concat([a]):[a],"selectedKeys"in n||r.store.setState({selectedKeys:o}),n.onSelect(Object(g["a"])(Object(g["a"])({},e),{},{selectedKeys:o}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(y["a"])(r),i=n.store,o=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(i.setState({openKeys:[]}),o([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(y["a"])(r),n=t.props,i=r.store.getState().openKeys.concat(),o=!1,a=function(e){var t=!1;if(e.open)t=-1===i.indexOf(e.key),t&&i.push(e.key);else{var n=i.indexOf(e.key);t=-1!==n,t&&i.splice(n,1)}o=o||t};Array.isArray(e)?e.forEach(a):a(e),o&&("openKeys"in r.props||r.store.setState({openKeys:i}),n.onOpenChange(i))},r.onDeselect=function(e){var t=Object(y["a"])(r),n=t.props;if(n.selectable){var i=r.store.getState().selectedKeys.concat(),o=e.key,a=i.indexOf(o);-1!==a&&i.splice(a,1),"selectedKeys"in n||r.store.setState({selectedKeys:i}),n.onDeselect(Object(g["a"])(Object(g["a"])({},e),{},{selectedKeys:i}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,o="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||o)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,o=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(o=e.openKeys||[]),r.store=Object(w["c"])({selectedKeys:i,openKeys:o,activeKey:{"0-menu-":Be(e,e.activeKey)}}),r.state={switchingModeFromInline:!1},r}return Object(v["a"])(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){this.updateOpentKeysWhenSwitchMode(e),this.updateMiniStore();var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&i([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(e){var t=this.props,n=this.store,r=this.inlineOpenKeys,i=n.getState(),o={};"inline"===e.mode&&"inline"!==t.mode&&this.setState({switchingModeFromInline:!0}),"openKeys"in t||((t.inlineCollapsed&&!e.inlineCollapsed||t.siderCollapsed&&!e.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=i.openKeys.concat(),o.openKeys=[]),(!t.inlineCollapsed&&e.inlineCollapsed||!t.siderCollapsed&&e.siderCollapsed)&&(o.openKeys=r,this.inlineOpenKeys=[])),Object.keys(o).length&&n.setState(o)}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys,r=this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e);r?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(g["a"])({},Object(x["default"])(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(g["a"])(Object(g["a"])({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Pe(this.props,this.state,t)}),delete e.openAnimation,delete e.openTransitionName,A["createElement"](w["a"],{store:this.store},A["createElement"](Le,Object.assign({},e,{ref:this.setInnerMenu}),this.props.children))}}]),n}(A["Component"]);Ne.defaultProps={selectable:!0,onClick:J,onSelect:J,onOpenChange:J,onDeselect:J,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:A["createElement"]("span",null,"\xb7\xb7\xb7")};var je=Ne,Fe=function(e){Object(b["a"])(n,e);var t=Object(_["a"])(n);function n(){var e;return Object(m["a"])(this,n),e=t.apply(this,arguments),e.onKeyDown=function(t){var n=t.keyCode;if(n===k["a"].ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,o=n.onMouseLeave;i({key:r,hover:!1}),o({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,o=n.onMouseEnter;i({key:r,hover:!0}),o({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,i=n.multiple,o=n.onClick,a=n.onSelect,s=n.onDeselect,l=n.isSelected,c={key:r,keyPath:[r],item:Object(y["a"])(e),domEvent:t};o(c),i?l?s(c):a(c):l||a(c)},e.saveNode=function(t){e.node=t},e}return Object(v["a"])(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(g["a"])({},this.props),n=T()(this.getPrefixCls(),t.className,(e={},Object(S["a"])(e,this.getActiveClassName(),!t.disabled&&t.active),Object(S["a"])(e,this.getSelectedClassName(),t.isSelected),Object(S["a"])(e,this.getDisabledClassName(),t.disabled),e)),r=Object(g["a"])(Object(g["a"])({},t.attribute),{},{title:"string"===typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=Object(g["a"])(Object(g["a"])({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},o=Object(g["a"])({},t.style);"inline"===t.mode&&("rtl"===t.direction?o.paddingRight=t.inlineIndent*t.level:o.paddingLeft=t.inlineIndent*t.level),re.forEach((function(e){return delete t[e]})),delete t.direction;var a=this.props.itemIcon;return"function"===typeof this.props.itemIcon&&(a=A["createElement"](this.props.itemIcon,this.props)),A["createElement"]("li",Object.assign({},Object(x["default"])(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,i,{style:o,ref:this.saveNode}),t.children,a)}}]),n}(A["Component"]);Fe.isMenuItem=!0,Fe.defaultProps={onSelect:J,onMouseEnter:J,onMouseLeave:J,manualRef:J};var Re=Object(w["b"])((function(e,t){var n=e.activeKey,r=e.selectedKeys,i=t.eventKey,o=t.subMenuKey;return{active:n[o]===i,isSelected:-1!==r.indexOf(i)}}))(Fe),Ue=Re,He=function(e){Object(b["a"])(n,e);var t=Object(_["a"])(n);function n(){var e;return Object(m["a"])(this,n),e=t.apply(this,arguments),e.renderInnerMenuItem=function(t){var n=e.props,r=n.renderMenuItem,i=n.index;return r(t,i,e.props.subMenuKey)},e}return Object(v["a"])(n,[{key:"render",value:function(){var e=Object(C["a"])({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,i="".concat(r,"-item-group-title"),o="".concat(r,"-item-group-list"),a=e.title,s=e.children;return re.forEach((function(t){return delete e[t]})),delete e.onClick,delete e.direction,A["createElement"]("li",Object.assign({},e,{className:"".concat(n," ").concat(r,"-item-group")}),A["createElement"]("div",{className:i,title:"string"===typeof a?a:void 0},a),A["createElement"]("ul",{className:o},A["Children"].map(s,this.renderInnerMenuItem)))}}]),n}(A["Component"]);He.isMenuItemGroup=!0,He.defaultProps={disabled:!0};var Qe=He,Ke=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return A["createElement"]("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Ke.defaultProps={disabled:!0,className:"",style:{}};var ze=Ke,Ve=je,We=Object(A["createContext"])({inlineCollapsed:!1}),Ge=We,Xe=n("0n0R"),qe=function(e){h()(n,e);var t=p()(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"renderTitle",value:function(e){var t=this.props,n=t.icon,r=t.title,i=t.level,o=t.rootPrefixCls;if(!n)return e&&1===i&&r&&"string"===typeof r?A["createElement"]("div",{className:"".concat(o,"-inline-collapsed-noicon")},r.charAt(0)):r;var a=Object(Xe["b"])(r)&&"span"===r.type;return A["createElement"](A["Fragment"],null,n,a?r:A["createElement"]("span",null,r))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootPrefixCls,r=t.popupClassName;return A["createElement"](Ge.Consumer,null,(function(t){var o=t.inlineCollapsed,a=t.antdMenuTheme;return A["createElement"](_e,i()({},Object(x["default"])(e.props,["icon"]),{title:e.renderTitle(o),popupClassName:T()(n,"".concat(n,"-").concat(a),r)}))}))}}]),n}(A["Component"]);qe.contextType=Ge,qe.isSubMenu=1;var Ye=qe,Ze=n("Zm9Q"),Je=n("3S7+"),$e=n("ZX9x"),et=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 i=0;for(r=Object.getOwnPropertySymbols(e);i1&&r&&r.length>1){var s=o(r)/o(i);!isFinite(s)&&(s=1),t.pinchScale=s;var l=a(r);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=i;e.exports=l},C0tN:function(e,t,n){n("0o9m"),n("8Uz6"),n("Ducp"),n("6/nd")},CBdT:function(e,t,n){var r=n("ProS");n("8waO"),n("AEZ6"),n("YNf1");var i=n("q3GZ");r.registerVisual(i)},CF2D:function(e,t,n){var r=n("ProS");n("vZI5"),n("GeKi");var i=n("6r85"),o=n("TJmX"),a=n("CbHG");r.registerPreprocessor(i),r.registerVisual(o),r.registerLayout(a)},CFYs:function(e,t,n){"use strict";var r=n("lSNA"),i=n.n(r),o=n("pVnL"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("PJYZ"),h=n.n(d),f=n("7W2i"),p=n.n(f),A=n("LQ03"),g=n.n(A),m=n("q1tI"),v=n.n(m),y=n("TSYQ"),b=n.n(y),_=n("BGR+"),w=n("V/uB"),x=n.n(w),C=n("NAnI"),S=n.n(C),k=n("J84W"),E=n.n(k),O=n("kbBi"),B=n.n(O),M=n("H84U"),T=n("CWQg"),I=n("uaoM"),L=n("lMfh"),D=n.n(L),P=2,N=.16,j=.05,F=.05,R=.15,U=5,H=4,Q=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function K(e,t,n){var r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-P*t:Math.round(e.h)+P*t:n?Math.round(e.h)+P*t:Math.round(e.h)-P*t,r<0?r+=360:r>=360&&(r-=360),r}function z(e,t,n){return 0===e.h&&0===e.s?e.s:(r=n?e.s-N*t:t===H?e.s+N:e.s+j*t,r>1&&(r=1),n&&t===U&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function V(e,t,n){var r;return r=n?e.v+F*t:e.v-R*t,r>1&&(r=1),Number(r.toFixed(2))}function W(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=D()(e),i=U;i>0;i-=1){var o=r.toHsv(),a=D()({h:K(o,i,!0),s:z(o,i,!0),v:V(o,i,!0)}).toHexString();n.push(a)}n.push(r.toHexString());for(var s=1;s<=H;s+=1){var l=r.toHsv(),c=D()({h:K(l,s),s:z(l,s),v:V(l,s)}).toHexString();n.push(c)}return"dark"===t.theme?Q.map((function(e){var r=e.index,i=e.opacity,o=D.a.mix(t.backgroundColor||"#141414",n[r],100*i).toHexString();return o})):n}var G={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},X={},q={};Object.keys(G).forEach((function(e){X[e]=W(G[e]),X[e].primary=X[e][5],q[e]=W(G[e],{theme:"dark",backgroundColor:"#141414"}),q[e].primary=q[e][5]}));X.red,X.volcano,X.gold,X.orange,X.yellow,X.lime,X.green,X.cyan,X.blue,X.geekblue,X.purple,X.magenta,X.grey;function Y(e){return!e||e<0?0:e>100?100:e}function Z(e){var t=e.success,n=e.successPercent,r=n;return t&&"progress"in t&&(Object(I["a"])(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}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 i=0;for(r=Object.getOwnPropertySymbols(e);ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fe(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var pe=function(e){var t=e.className,n=e.percent,r=e.prefixCls,i=e.strokeColor,o=e.strokeLinecap,a=e.strokeWidth,s=e.style,l=e.trailColor,c=e.trailWidth,u=e.transition,d=he(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete d.gapPosition;var h=Array.isArray(n)?n:[n],f=Array.isArray(i)?i:[i],p=ie(h),A=ae(p,1),g=A[0],m=a/2,y=100-a/2,_="M ".concat("round"===o?m:0,",").concat(m,"\n L ").concat("round"===o?y:100,",").concat(m),w="0 0 100 ".concat(a),x=0;return v.a.createElement("svg",oe({className:b()("".concat(r,"-line"),t),viewBox:w,preserveAspectRatio:"none",style:s},d),v.a.createElement("path",{className:"".concat(r,"-line-trail"),d:_,strokeLinecap:o,stroke:l,strokeWidth:c||a,fillOpacity:"0"}),h.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(x,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},i=f[t]||f[f.length-1];return x+=e,v.a.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:_,strokeLinecap:o,stroke:i,strokeWidth:a,fillOpacity:"0",ref:g[t],style:n})})))};pe.defaultProps=re;function Ae(){return Ae=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xe(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Ce=0;function Se(e){return+e.replace("%","")}function ke(e){return Array.isArray(e)?e:[e]}function Ee(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,a=50-r/2,s=0,l=-a,c=0,u=-2*a;switch(o){case"left":s=-a,l=0,c=2*a,u=0;break;case"right":s=a,l=0,c=-2*a,u=0;break;case"bottom":l=a,u=2*a;break;default:}var d="M 50,50 m ".concat(s,",").concat(l,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(c,",").concat(-u,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-c,",").concat(u),h=2*Math.PI*a,f={stroke:n,strokeDasharray:"".concat(t/100*(h-i),"px ").concat(h,"px"),strokeDashoffset:"-".concat(i/2+e/100*(h-i),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:d,pathStyle:f}}var Oe=function(e){var t=e.prefixCls,n=e.strokeWidth,r=e.trailWidth,i=e.gapDegree,o=e.gapPosition,a=e.trailColor,s=e.strokeLinecap,l=e.style,c=e.className,u=e.strokeColor,d=e.percent,h=we(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),f=Object(m["useMemo"])((function(){return Ce+=1,Ce}),[]),p=Ee(0,100,a,n,i,o),A=p.pathString,g=p.pathStyle,y=ke(d),_=ke(u),w=_.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),x=ie(y),C=ge(x,1),S=C[0],k=function(){var e=0;return y.map((function(r,a){var l=_[a]||_[_.length-1],c="[object Object]"===Object.prototype.toString.call(l)?"url(#".concat(t,"-gradient-").concat(f,")"):"",u=Ee(e,r,l,n,i,o);return e+=r,v.a.createElement("path",{key:a,className:"".concat(t,"-circle-path"),d:u.pathString,stroke:c,strokeLinecap:s,strokeWidth:n,opacity:0===r?0:1,fillOpacity:"0",style:u.pathStyle,ref:S[a]})}))};return v.a.createElement("svg",Ae({className:b()("".concat(t,"-circle"),c),viewBox:"0 0 100 100",style:l},h),w&&v.a.createElement("defs",null,v.a.createElement("linearGradient",{id:"".concat(t,"-gradient-").concat(f),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(w).sort((function(e,t){return Se(e)-Se(t)})).map((function(e,t){return v.a.createElement("stop",{key:t,offset:e,stopColor:w[e]})})))),v.a.createElement("path",{className:"".concat(t,"-circle-trail"),d:A,stroke:a,strokeLinecap:s,strokeWidth:r||n,fillOpacity:"0",style:g}),k().reverse())};Oe.defaultProps=re;var Be=Oe;function Me(e){var t=e.percent,n=e.success,r=e.successPercent,i=Y(t),o=Z({success:n,successPercent:r});return o?[Y(o),Y(i-Y(o))]:i}function Te(e){var t=e.success,n=e.strokeColor,r=e.successPercent,i=n||null,o=Z({success:t,successPercent:r});return o?[G.green,i]:i}var Ie=function(e){var t=e.prefixCls,n=e.width,r=e.strokeWidth,o=e.trailColor,a=e.strokeLinecap,s=e.gapPosition,l=e.gapDegree,c=e.type,u=e.children,d=n||120,h={width:d,height:d,fontSize:.15*d+6},f=r||6,p=s||"dashboard"===c&&"bottom"||"top",A=function(){return l||0===l?l:"dashboard"===c?75:void 0},g=Te(e),v="[object Object]"===Object.prototype.toString.call(g),y=b()("".concat(t,"-inner"),i()({},"".concat(t,"-circle-gradient"),v));return m["createElement"]("div",{className:y,style:h},m["createElement"](Be,{percent:Me(e),strokeWidth:f,trailWidth:f,strokeColor:g,strokeLinecap:a,trailColor:o,prefixCls:t,gapDegree:A(),gapPosition:p}),u)},Le=Ie,De=function(e){for(var t=e.size,n=e.steps,r=e.percent,o=void 0===r?0:r,a=e.strokeWidth,s=void 0===a?8:a,l=e.strokeColor,c=e.trailColor,u=e.prefixCls,d=e.children,h=Math.floor(n*(o/100)),f="small"===t?2:14,p=[],A=0;A=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,r=this.props,i=r.showInfo,o=r.format,a=r.type,s=r.percent,l=Z(this.props);if(!i)return null;var c=o||function(e){return"".concat(e,"%")},u="line"===a;return o||"exception"!==t&&"success"!==t?n=c(Y(s),Y(l)):"exception"===t?n=u?m["createElement"](B.a,null):m["createElement"](x.a,null):"success"===t&&(n=u?m["createElement"](E.a,null):m["createElement"](S.a,null)),m["createElement"]("span",{className:"".concat(e,"-text"),title:"string"===typeof n?n:void 0},n)}},{key:"render",value:function(){return m["createElement"](M["a"],null,this.renderProgress)}}]),n}(m["Component"]);Fe.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};t["a"]=Fe},CH3K:function(e,t){function n(e,t){var n=-1,r=t.length,i=e.length;while(++nf?w[a]:_[a],ends:S,brushRect:O(m,v,c)})}function k(e,n){var r=[];return r[o]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function E(e,t,n){var a=t.slice(),s=t.slice();a[o]=i(a[o]+r/2,1,!1),s[o]=i(s[o]-r/2,1,!0),n?e.push(a,s):e.push(s,a)}function O(e,t,n){var i=k(e,n),s=k(t,n);return i[o]-=r/2,s[o]-=r/2,{x:i[0],y:i[1],width:a?r:s[0]-i[0],height:a?s[1]-i[1]:r}}function B(e){return e[o]=i(e[o],1),e}}function v(e,n){var r,i,s=new u(4*e.count),c=0,f=[],m=[];while(null!=(i=e.next())){var v=n.get(l,i),y=n.get(d,i),b=n.get(p,i),_=n.get(A,i),w=n.get(g,i);isNaN(v)||isNaN(_)||isNaN(w)?(s[c++]=NaN,c+=3):(s[c++]=h(n,i,y,b,p),f[o]=v,f[a]=_,r=t.dataToPoint(f,null,m),s[c++]=r?r[0]:NaN,s[c++]=r?r[1]:NaN,f[a]=w,r=t.dataToPoint(f,null,m),s[c++]=r?r[1]:NaN)}n.setLayout("largePoints",s)}}};function h(e,t,n,r,i){var o;return o=n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1,o}function f(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=s(c(e.get("barMaxWidth"),i),i),a=s(c(e.get("barMinWidth"),1),i),l=e.get("barWidth");return null!=l?s(l,i):Math.max(Math.min(i/2,o),a)}e.exports=d},CiB2:function(e,t,n){"use strict";function r(e){if(null==e)throw new TypeError("Cannot destructure undefined")}n.d(t,"a",(function(){return r}))},Cm0C:function(e,t,n){n("5NHt"),n("f3JH")},CrYA:function(e,t,n){var r=n("MFOe"),i=r.Global;function o(){return i.sessionStorage}function a(e){return o().getItem(e)}function s(e,t){return o().setItem(e,t)}function l(e){for(var t=o().length-1;t>=0;t--){var n=o().key(t);e(a(n),n)}}function c(e){return o().removeItem(e)}function u(){return o().clear()}e.exports={name:"sessionStorage",read:a,write:s,each:l,remove:c,clearAll:u}},Csr3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("4vCz"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},Cwc5:function(e,t,n){var r=n("NKxu"),i=n("Npjl");function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},D1WM:function(e,t,n){var r=n("bYtY"),i=n("hM6l"),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},r.inherits(o,i);var a=o;e.exports=a},D5nY:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("4NO4")),o=i.makeInner,a=i.getDataItemValue,s=n("bYtY"),l=s.createHashMap,c=s.each,u=s.map,d=s.isArray,h=s.isString,f=s.isObject,p=s.isTypedArray,A=s.isArrayLike,g=s.extend,m=(s.assert,n("7G+c")),v=n("k9D9"),y=v.SOURCE_FORMAT_ORIGINAL,b=v.SOURCE_FORMAT_ARRAY_ROWS,_=v.SOURCE_FORMAT_OBJECT_ROWS,w=v.SOURCE_FORMAT_KEYED_COLUMNS,x=v.SOURCE_FORMAT_UNKNOWN,C=v.SOURCE_FORMAT_TYPED_ARRAY,S=v.SERIES_LAYOUT_BY_ROW,k={Must:1,Might:2,Not:3},E=o();function O(e){var t=e.option.source,n=x;if(p(t))n=C;else if(d(t)){0===t.length&&(n=b);for(var r=0,i=t.length;r0&&(s=this.getLineLength(r)/c*1e3),s!==this._period||l!==this._loop){r.stopAnimation();var h=u;d&&(h=u(n)),r.__t>0&&(h=-s*r.__t),r.__t=0;var f=r.animate("",l).when(s,{__t:1}).delay(h).during((function(){i.updateSymbolPosition(r)}));l||f.done((function(){i.remove(r)})),f.start()}this._period=s,this._loop=l}},d.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},d.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]},d.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,o=e.position,a=[o[0],o[1]],s=c.quadraticAt,u=c.quadraticDerivativeAt;o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var d=u(t[0],r[0],n[0],i),h=u(t[1],r[1],n[1],i);if(e.rotation=-Math.atan2(h,d)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT=a&&d+1>=s){for(var h=[],f=0;f=a&&f+1>=s)return r(o,c.components,t,e);u[n]=c}else u[n]=void 0}l++}while(l<=c){var A=p();if(A)return A}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,o=n.length,a=e.newPos,s=a-r,l=0;while(a+1=0)&&(D=e);var N=new l.Text({position:B(t.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(N.style,N.hoverStyle={},y,b,{labelFetcher:D,labelDataIndex:P,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!v){var j=[1/u[0],1/u[1]];l.updateProps(N,{scale:j},e)}n.add(N)}if(s)s.setItemGraphicEl(o,n);else{c=e.getRegionModel(t.name);i.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:c&&c.option||{}}}var F=n.__regions||(n.__regions=[]);F.push(t),n.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(n,m),d.add(n)})),this._updateController(e,t,n),p(this,e,d,n,i),A(e,d)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&r.each(c.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,n){var i=e.coordinateSystem,a=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var c=e.mainType;function u(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,o.updateViewOnPan(l,e.dx,e.dy),n.dispatchAction(r.extend(u(),{dx:e.dx,dy:e.dy}))}),this),a.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,o.updateViewOnZoom(l,e.scale,e.originX,e.originY),n.dispatchAction(r.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),a.setPointerChecker((function(t,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!s(t,n,e)}))}};var m=g;e.exports=m},DFOY:function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("lSNA"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("PJYZ"),h=n.n(d),f=n("7W2i"),p=n.n(f),A=n("LQ03"),g=n.n(A),m=n("q1tI"),v=n.n(m),y=n("VTBJ"),b=n("1OyB"),_=n("vuIU"),w=n("JX7q"),x=n("Ji7U"),C=n("LK+K"),S=n("i8i4"),k=n.n(S),E=n("l4aY"),O=n("m+aA"),B=n("c+Xe"),M=n("zT1h"),T=n("QC+M"),I=n("TSYQ"),L=n.n(I);function D(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function P(e,t,n){var r=e[t]||{};return Object(y["a"])(Object(y["a"])({},r),n)}function N(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a0&&(e.deadlineId=setTimeout((function(){e.onMotionEnd({deadline:!0})}),i))}}))},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=R()(t)},e.cancelNextFrame=function(){e.raf&&(R.a.cancel(e.raf),e.raf=null)},e}return Object(_["a"])(n,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var e,t=this.state,n=t.status,i=t.statusActive,o=t.statusStyle,a=this.props,s=a.children,l=a.motionName,c=a.visible,u=a.removeOnLeave,d=a.leavedClassName,h=a.eventProps;return s?n!==te&&r(this.props)?s(Object(y["a"])(Object(y["a"])({},h),{},{className:L()(ee(l,n),(e={},Object(H["a"])(e,ee(l,"".concat(n,"-active")),i),Object(H["a"])(e,l,"string"===typeof l),e)),style:o}),this.setNodeRef):c?s(Object(y["a"])({},h),this.setNodeRef):u?null:s(Object(y["a"])(Object(y["a"])({},h),{},{className:d}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.status;if(!r(e))return{};var o=e.visible,a=e.motionAppear,s=e.motionEnter,l=e.motionLeave,c=e.motionLeaveImmediately,u={prevProps:e};return(i===ne&&!a||i===re&&!s||i===ie&&!l)&&(u.status=te,u.statusActive=!1,u.newStatus=!1),!n&&o&&a&&(u.status=ne,u.statusActive=!1,u.newStatus=!0),n&&!n.visible&&o&&s&&(u.status=re,u.statusActive=!1,u.newStatus=!0),(n&&n.visible&&!o&&l||!n&&c&&!o&&l)&&(u.status=ie,u.statusActive=!1,u.newStatus=!0),u}}]),n}(m["Component"]);return i.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},n?m["forwardRef"]((function(e,t){return m["createElement"](i,Object.assign({internalRef:t},e))})):i}var ae=oe($),se="add",le="keep",ce="remove",ue="removed";function de(e){var t;return t=e&&"object"===Object(Q["a"])(e)&&"key"in e?e:{key:e},Object(y["a"])(Object(y["a"])({},t),{},{key:String(t.key)})}function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(de)}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=he(e),a=he(t);o.forEach((function(e){for(var t=!1,o=r;o1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ce})),n.forEach((function(t){t.key===e&&(t.status=le)}))})),n}var pe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae,n=function(n){Object(x["a"])(i,n);var r=Object(C["a"])(i);function i(){var e;return Object(b["a"])(this,i),e=r.apply(this,arguments),e.state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){var n=e.keyEntities;return{keyEntities:n.map((function(e){return e.key!==t?e:Object(y["a"])(Object(y["a"])({},e),{},{status:ue})}))}}))},e}return Object(_["a"])(i,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=Object(j["a"])(r,["component","children"]),s=i||m["Fragment"],l={};return pe.forEach((function(e){l[e]=a[e],delete a[e]})),delete a.keys,m["createElement"](s,Object.assign({},a),n.map((function(n){var r=n.status,i=Object(j["a"])(n,["status"]),a=r===se||r===le;return m["createElement"](t,Object.assign({},l,{key:i.key,visible:a,eventProps:i,onLeaveEnd:function(){l.onLeaveEnd&&l.onLeaveEnd.apply(l,arguments),e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=t.keys,i=n.keyEntities,o=he(r);if(!e)return{keyEntities:o.map((function(e){return Object(y["a"])(Object(y["a"])({},e),{},{status:le})}))};var a=fe(i,o),s=i.length;return{keyEntities:a.filter((function(e){for(var t=null,n=0;n1&&(u=m["createElement"]("div",{className:"".concat(n,"-content")},o)),m["createElement"]("div",{ref:t,className:r,onMouseEnter:a,onMouseLeave:s,onMouseDown:l,onTouchStart:c,style:i},u)},ve=m["forwardRef"](me);ve.displayName="PopupInner";var ye=ve;function be(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function _e(e){return e&&e.motionName}var we=function(e){Object(x["a"])(n,e);var t=Object(C["a"])(n);function n(){var e;return Object(b["a"])(this,n),e=t.apply(this,arguments),e.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},e.popupRef=v.a.createRef(),e.alignRef=v.a.createRef(),e.nextFrameState=null,e.nextFrameId=null,e.onAlign=function(t,n){var r=e.state.status,i=e.props,o=i.getClassNameFromAlign,a=i.onAlign,s=o(n);"align"===r?e.setState({alignClassName:s,status:"aligned"},(function(){e.alignRef.current.forceAlign()})):"aligned"===r?(e.setState({alignClassName:s,status:"afterAlign"}),a(t,n)):e.setState({alignClassName:s})},e.onMotionEnd=function(){var t=e.props.visible;e.setState({status:t?"AfterMotion":"stable",inMotion:!1})},e.setStateOnNextFrame=function(t){e.cancelFrameState(),e.nextFrameState=Object(y["a"])(Object(y["a"])({},e.nextFrameState),t),e.nextFrameId=R()((function(){var t=Object(y["a"])({},e.nextFrameState);e.nextFrameState=null,e.setState(t)}))},e.getMotion=function(){return Object(y["a"])({},be(e.props))},e.getAlignTarget=function(){var t=e.props,n=t.point,r=t.getRootDomNode;return n||r},e.cancelFrameState=function(){R.a.cancel(e.nextFrameId)},e.renderPopupElement=function(){var t=e.state,n=t.status,r=t.targetHeight,i=t.targetWidth,o=t.alignClassName,a=e.props,s=a.prefixCls,l=a.className,c=a.style,u=a.stretch,d=a.visible,h=a.align,f=a.destroyPopupOnHide,p=a.onMouseEnter,A=a.onMouseLeave,g=a.onMouseDown,m=a.onTouchStart,b=a.children,_=L()(s,l,o),w="".concat(s,"-hidden"),x={};u&&(-1!==u.indexOf("height")?x.height=r:-1!==u.indexOf("minHeight")&&(x.minHeight=r),-1!==u.indexOf("width")?x.width=i:-1!==u.indexOf("minWidth")&&(x.minWidth=i));var C=Object(y["a"])(Object(y["a"])(Object(y["a"])(Object(y["a"])({},x),e.getZIndexStyle()),c),{},{opacity:"stable"!==n&&d?0:void 0,pointerEvents:"stable"!==n&&d?"none":void 0}),S=e.getMotion(),k=d;d&&"beforeMotion"!==n&&"motion"!==n&&"stable"!==n&&(S.motionAppear=!1,S.motionEnter=!1,S.motionLeave=!1),"afterAlign"!==n&&"beforeMotion"!==n||(k=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach((function(t){var n=null===S||void 0===S?void 0:S[t];S[t]=function(){for(var t=arguments.length,r=new Array(t),i=0;i0;(h||!1===e.isLeaf)&&(u+=" ".concat(r,"-menu-item-expand"),e.loading||(d=m["createElement"]("span",{className:"".concat(r,"-menu-item-expand-icon")},o))),"hover"!==i||!h&&!1!==e.isLeaf||(c={onMouseEnter:this.delayOnSelect.bind(this,s),onMouseLeave:this.delayOnSelect.bind(this),onClick:s}),this.isActiveOption(e,t)&&(u+=" ".concat(r,"-menu-item-active"),c.ref=this.saveMenuItem(t)),e.disabled&&(u+=" ".concat(r,"-menu-item-disabled"));var f=null;e.loading&&(u+=" ".concat(r,"-menu-item-loading"),f=a||null);var p="";return"title"in e?p=e.title:"string"===typeof e[this.getFieldName("label")]&&(p=e[this.getFieldName("label")]),m["createElement"]("li",Object.assign({key:e[this.getFieldName("value")],className:u,title:p},c,{role:"menuitem",onMouseDown:function(e){return e.preventDefault()}}),e[this.getFieldName("label")],d,f)}},{key:"getActiveOptions",value:function(e){var t=this,n=this.props.options,r=e||this.props.activeValue;return Ne()(n,(function(e,n){return e[t.getFieldName("value")]===r[n]}),{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var e=this,t=this.props.options,n=this.getActiveOptions().map((function(t){return t[e.getFieldName("children")]})).filter((function(e){return!!e}));return n.unshift(t),n}},{key:"delayOnSelect",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tt(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function nt(e){return at(e)||ot(e)||it(e)||rt()}function rt(){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 it(e,t){if(e){if("string"===typeof e)return st(e,t);var n=Object.prototype.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)?st(e,t):void 0}}function ot(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function at(e){if(Array.isArray(e))return st(e)}function st(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=o.length?0:s):(s-=1,s=s<0?o.length-1:s):s=0,n[i]=o[s][r.getFieldName("value")]}else if(e.keyCode===De["a"].LEFT||e.keyCode===De["a"].BACKSPACE)e.preventDefault(),n.splice(n.length-1,1);else if(e.keyCode===De["a"].RIGHT)e.preventDefault(),o[a]&&o[a][r.getFieldName("children")]&&n.push(o[a][r.getFieldName("children")][0][r.getFieldName("value")]);else if(e.keyCode===De["a"].ESC||e.keyCode===De["a"].TAB)return void r.setPopupVisible(!1);n&&0!==n.length||r.setPopupVisible(!1);var l=r.getActiveOptions(n),c=l[l.length-1];r.handleMenuSelect(c,l.length-1,e),r.props.onKeyDown&&r.props.onKeyDown(e)}else r.setPopupVisible(!0)}},r.saveTrigger=function(e){r.trigger=e};var i=[];return"value"in e?i=e.value||[]:"defaultValue"in e&&(i=e.defaultValue||[]),Le()(!("filedNames"in e),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),r.state={popupVisible:e.popupVisible,activeValue:i,value:i,prevProps:e},r.defaultFieldNames={label:"label",value:"value",children:"children"},r}return ut(n,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(e){var t=this.defaultFieldNames,n=this.props,r=n.fieldNames,i=n.filedNames;return"filedNames"in this.props?i[e]||t[e]:r[e]||t[e]}},{key:"getFieldNames",value:function(){var e=this.props,t=e.fieldNames,n=e.filedNames;return"filedNames"in this.props?n:t}},{key:"getCurrentLevelOptions",value:function(){var e=this,t=this.props.options,n=void 0===t?[]:t,r=this.state.activeValue,i=void 0===r?[]:r,o=Ne()(n,(function(t,n){return t[e.getFieldName("value")]===i[n]}),{childrenKeyName:this.getFieldName("children")});return o[o.length-2]?o[o.length-2][this.getFieldName("children")]:nt(n).filter((function(e){return!e.disabled}))}},{key:"getActiveOptions",value:function(e){var t=this;return Ne()(this.props.options||[],(function(n,r){return n[t.getFieldName("value")]===e[r]}),{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.transitionName,r=e.popupClassName,i=e.options,o=void 0===i?[]:i,a=e.disabled,s=e.builtinPlacements,l=e.popupPlacement,c=e.children,u=e.dropdownRender,d=et(e,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),h=m["createElement"]("div",null),f="";o&&o.length>0?h=m["createElement"](Ye,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):f=" ".concat(t,"-menus-empty");var p=h;return u&&(p=u(h)),m["createElement"](Te,Object.assign({ref:this.saveTrigger},d,{popupPlacement:l,builtinPlacements:s,popupTransitionName:n,action:a?[]:["click"],popupVisible:!a&&this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(t,"-menus"),popupClassName:r+f,popup:p}),m["cloneElement"](c,{onKeyDown:this.handleKeyDown,tabIndex:a?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=void 0===n?{}:n,i={prevProps:e};return"value"in e&&!je(r.value,e.value)&&(i.value=e.value||[],"loadData"in e||(i.activeValue=e.value||[])),"popupVisible"in e&&(i.popupVisible=e.popupVisible),i}}]),n}(m["Component"]);return e.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Je,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},e}(),yt=vt,bt=yt,_t=n("BGR+"),wt=n("kbBi"),xt=n.n(wt),Ct=n("HQEm"),St=n.n(Ct),kt=n("fEPi"),Et=n.n(kt),Ot=n("5YOS"),Bt=n.n(Ot),Mt=n("DFhj"),Tt=n.n(Mt),It=n("5rEg"),Lt=n("H84U"),Dt=n("YMnH"),Pt=n("uaoM"),Nt=n("3Nzz"),jt=n("0n0R"),Ft=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 i=0;for(r=Object.getOwnPropertySymbols(e);i-1}))}function Qt(e,t,n,r){return t.map((function(t,i){var o=t[r.label],a=o.indexOf(e)>-1?Ut(o,e,n):o;return 0===i?a:[" / ",a]}))}function Kt(e,t,n,r){function i(e){return e[r.label].indexOf(n)>-1}return e.findIndex(i)-t.findIndex(i)}function zt(e){var t=e.fieldNames;return t}function Vt(e){var t=zt(e)||{},n={children:t.children||"children",label:t.label||"label",value:t.value||"value"};return n}function Wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Vt(t),i=[],o=r.children;return e.forEach((function(e){var r=n.concat(e);!t.changeOnSelect&&e[o]&&e[o].length||i.push(r),e[o]&&(i=i.concat(Wt(e[o],t,r)))})),i}var Gt=function(e){return e.join(" / ")};var Xt=function(e){p()(n,e);var t=g()(n);function n(e){var r;return l()(this,n),r=t.call(this,e),r.cachedOptions=[],r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];"value"in r.props||r.setState({value:e});var n=r.props.onChange;n&&n(e,t)},r.saveInput=function(e){r.input=e},r.handleChange=function(e,t){if(r.setState({inputValue:""}),t[0].__IS_FILTERED_OPTION){var n=e[0],i=t[0].path;r.setValue(n,i)}else r.setValue(e,t)},r.handlePopupVisibleChange=function(e){"popupVisible"in r.props||r.setState((function(t){return{popupVisible:e,inputFocused:e,inputValue:e?t.inputValue:""}}));var t=r.props.onPopupVisibleChange;t&&t(e)},r.handleInputBlur=function(){r.setState({inputFocused:!1})},r.handleInputClick=function(e){var t=r.state,n=t.inputFocused,i=t.popupVisible;(n||i)&&e.stopPropagation()},r.handleKeyDown=function(e){e.keyCode!==De["a"].BACKSPACE&&e.keyCode!==De["a"].SPACE||e.stopPropagation()},r.handleInputChange=function(e){var t=r.state.popupVisible,n=e.target.value;t||r.handlePopupVisibleChange(!0),r.setState({inputValue:n})},r.clearSelection=function(e){var t=r.state.inputValue;e.preventDefault(),e.stopPropagation(),t?r.setState({inputValue:""}):(r.handlePopupVisibleChange(!1),r.clearSelectionTimeout=setTimeout((function(){r.setValue([])}),200))},r.renderCascader=function(e,t){var n=e.getPopupContainer,o=e.getPrefixCls,s=e.renderEmpty,l=e.direction;return m["createElement"](Nt["b"].Consumer,null,(function(e){var c,u,d,f,p,A=h()(r),g=A.props,v=A.state,y=g.prefixCls,b=g.inputPrefixCls,_=g.children,w=g.placeholder,x=void 0===w?t.placeholder||"Please select":w,C=g.size,S=g.disabled,k=g.className,E=g.style,O=g.allowClear,B=g.showSearch,M=void 0!==B&&B,T=g.suffixIcon,I=g.expandIcon,D=g.notFoundContent,P=g.popupClassName,N=g.bordered,j=g.dropdownRender,F=Ft(g,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),R=C||e,U=v.value,H=v.inputFocused,Q="rtl"===l,K=o("cascader",y),z=o("input",b),V=L()((c={},a()(c,"".concat(z,"-lg"),"large"===R),a()(c,"".concat(z,"-sm"),"small"===R),c)),W=O&&!S&&U.length>0||v.inputValue?m["createElement"](xt.a,{className:"".concat(K,"-picker-clear"),onClick:r.clearSelection}):null,G=L()((u={},a()(u,"".concat(K,"-picker-arrow"),!0),a()(u,"".concat(K,"-picker-arrow-expand"),v.popupVisible),u)),X=L()(k,"".concat(K,"-picker"),(d={},a()(d,"".concat(K,"-picker-rtl"),Q),a()(d,"".concat(K,"-picker-with-value"),v.inputValue),a()(d,"".concat(K,"-picker-disabled"),S),a()(d,"".concat(K,"-picker-").concat(R),!!R),a()(d,"".concat(K,"-picker-show-search"),!!M),a()(d,"".concat(K,"-picker-focused"),H),a()(d,"".concat(K,"-picker-borderless"),!N),d)),q=Object(_t["default"])(F,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),Y=g.options,Z=Vt(r.props);Y&&Y.length>0?v.inputValue&&(Y=r.generateFilteredOptions(K,s)):Y=[(p={},a()(p,Z.label,D||s("Cascader")),a()(p,Z.value,"ANT_CASCADER_NOT_FOUND"),p)];v.popupVisible?r.cachedOptions=Y:Y=r.cachedOptions;var J={},$=1===(Y||[]).length&&Y[0].isEmptyNode;$&&(J.height="auto");var ee,te=!1!==M.matchInputWidth;te&&(v.inputValue||$)&&r.input&&(J.width=r.input.input.offsetWidth),ee=T?Object(jt["c"])(T,m["createElement"]("span",{className:"".concat(K,"-picker-arrow")},T),(function(){var e;return{className:L()((e={},a()(e,T.props.className,T.props.className),a()(e,"".concat(K,"-picker-arrow"),!0),e))}})):m["createElement"](St.a,{className:G});var ne,re=_||m["createElement"]("span",{style:E,className:X},m["createElement"]("span",{className:"".concat(K,"-picker-label")},r.getLabel()),m["createElement"](It["a"],i()({},q,{tabIndex:"-1",ref:r.saveInput,prefixCls:z,placeholder:U&&U.length>0?void 0:x,className:"".concat(K,"-input ").concat(V),value:v.inputValue,disabled:S,readOnly:!M,autoComplete:q.autoComplete||"off",onClick:M?r.handleInputClick:void 0,onBlur:M?r.handleInputBlur:void 0,onKeyDown:r.handleKeyDown,onChange:M?r.handleInputChange:void 0})),W,ee);ne=I||(Q?m["createElement"](Tt.a,null):m["createElement"](Et.a,null));var ie=m["createElement"]("span",{className:"".concat(K,"-menu-item-loading-icon")},m["createElement"](Bt.a,{spin:!0})),oe=g.getPopupContainer||n,ae=Object(_t["default"])(g,["inputIcon","expandIcon","loadingIcon","bordered"]),se=L()(P,(f={},a()(f,"".concat(K,"-menu-").concat(l),"rtl"===l),a()(f,"".concat(K,"-menu-empty"),1===Y.length&&"ANT_CASCADER_NOT_FOUND"===Y[0].value),f));return m["createElement"](bt,i()({},ae,{prefixCls:K,getPopupContainer:oe,options:Y,value:U,popupVisible:v.popupVisible,onPopupVisibleChange:r.handlePopupVisibleChange,onChange:r.handleChange,dropdownMenuColumnStyle:J,expandIcon:ne,loadingIcon:ie,popupClassName:se,popupPlacement:r.getPopupPlacement(l),dropdownRender:j}),re)}))},r.state={value:e.value||e.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:e.popupVisible,flattenOptions:e.showSearch?Wt(e.options,e):void 0,prevProps:e},r}return u()(n,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var e=this.props,t=e.options,n=e.displayRender,r=void 0===n?Gt:n,i=Vt(this.props),o=this.state.value,a=Array.isArray(o[0])?o[0]:o,s=Ne()(t,(function(e,t){return e[i.value]===a[t]}),{childrenKeyName:i.children}),l=s.length?s.map((function(e){return e[i.label]})):o;return r(l,s)}},{key:"generateFilteredOptions",value:function(e,t){var n,r,i=this,o=this.props,s=o.showSearch,l=o.notFoundContent,c=Vt(this.props),u=s.filter,d=void 0===u?Ht:u,h=s.render,f=void 0===h?Qt:h,p=s.sort,A=void 0===p?Kt:p,g=s.limit,m=void 0===g?Rt:g,v=this.state,y=v.flattenOptions,b=void 0===y?[]:y,_=v.inputValue;if(m>0){r=[];var w=0;b.some((function(e){var t=d(i.state.inputValue,e,c);return t&&(r.push(e),w+=1),w>=m}))}else Object(Pt["a"])("number"!==typeof m,"Cascader","'limit' of showSearch should be positive number or false."),r=b.filter((function(e){return d(i.state.inputValue,e,c)}));return r=r.sort((function(e,t){return A(e,t,_,c)})),r.length>0?r.map((function(t){var n;return n={__IS_FILTERED_OPTION:!0,path:t},a()(n,c.value,t.map((function(e){return e[c.value]}))),a()(n,c.label,f(_,t,e,c)),a()(n,"disabled",t.some((function(e){return!!e.disabled}))),a()(n,"isEmptyNode",!0),n})):[(n={},a()(n,c.value,"ANT_CASCADER_NOT_FOUND"),a()(n,c.label,l||t("Cascader")),a()(n,"disabled",!0),a()(n,"isEmptyNode",!0),n)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ltr",t=this.props.popupPlacement;return void 0!==t?t:"rtl"===e?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var e=this;return m["createElement"](Lt["a"],null,(function(t){return m["createElement"](Dt["a"],null,(function(n){return e.renderCascader(t,n)}))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return"value"in e&&(r.value=e.value||[]),"popupVisible"in e&&(r.popupVisible=e.popupVisible),e.showSearch&&n.options!==e.options&&(r.flattenOptions=Wt(e.options,e)),r}}]),n}(m["Component"]);Xt.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};t["a"]=Xt},DFhj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("GGyF"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},DL4k:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},DN4a:function(e,t,n){var r=n("Fofx"),i=n("QBsz"),o=r.identity,a=5e-5;function s(e){return e>a||e<-a}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];c.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;if(n||t){i=i||r.create(),n?this.getLocalTransform(i):o(i),t&&(n?r.mul(i,e.transform,i):r.copy(i,e.transform)),this.transform=i;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*a+s)/u[0]||0,d=((u[1]-l)*a+l)/u[1]||0;i[0]*=c,i[1]*=c,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,i)}else i&&o(i)},c.getLocalTransform=function(e){return l.getLocalTransform(this,e)},c.setTransform=function(e){var t=this.transform,n=e.dpr||1;t?e.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):e.setTransform(n,0,0,n,0,0)},c.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var d=[],h=r.create();c.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=this.position,i=this.scale;s(t-1)&&(t=Math.sqrt(t)),s(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(t=-t),e[3]<0&&(n=-n),r[0]=e[4],r[1]=e[5],i[0]=t,i[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r.mul(d,e.invTransform,t),t=d);var n=this.origin;n&&(n[0]||n[1])&&(h[4]=n[0],h[5]=n[1],r.mul(d,t,h),d[4]-=n[0],d[5]-=n[1],t=d),this.setLocalTransform(t)}},c.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)},c.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},c.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},l.getLocalTransform=function(e,t){t=t||[],o(t);var n=e.origin,i=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),r.scale(t,t,i),a&&r.rotate(t,t,a),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t};var f=l;e.exports=f},DO2E:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),i=n("B8du"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;e.exports=u}).call(this,n("YuTi")(e))},DYRE:function(e,t,n){"use strict";n("cIOH"),n("OPEp")},DZo9:function(e,t,n){"use strict";n("cIOH"),n("JGo8"),n("+L6B"),n("MXD1"),n("5Dmo")},Dagg:function(e,t,n){var r=n("Gev7"),i=n("mFDi"),o=n("bYtY"),a=n("Xnb7");function s(e){r.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var n=this.style,r=n.image;n.bind(e,this,t);var i=this._image=a.createOrUpdateImage(r,this._image,this,this.onload);if(i&&a.isImageReady(i)){var o=n.x||0,s=n.y||0,l=n.width,c=n.height,u=i.width/i.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=i.width,c=i.height),this.setTransform(e),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(i,d,h,n.sWidth,n.sHeight,o,s,l,c)}else if(n.sx&&n.sy){d=n.sx,h=n.sy;var f=l-d,p=c-h;e.drawImage(i,d,h,f,p,o,s,l,c)}else e.drawImage(i,o,s,l,c);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new i(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(s,r);var l=s;e.exports=l},Dg8C:function(e,t,n){var r=n("XxSj"),i=n("bYtY");function o(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes;if(n.length){var o=1/0,a=-1/0;i.each(n,(function(e){var t=e.getLayout().value;ta&&(a=t)})),i.each(n,(function(t){var n=new r({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",i)}))}}))}e.exports=o},DjyN:function(e,t,n){"use strict";n("cIOH"),n("Urep"),n("OaEy")},DlQD:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return r=e[Symbol.iterator](),r.next.bind(r)}function o(e,t){return t={exports:{}},e(t,t.exports),t.exports}var a=o((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function n(t){e.exports.defaults=t}e.exports={defaults:t(),getDefaults:t,changeDefaults:n}})),s=(a.defaults,a.getDefaults,a.changeDefaults,/[&<>"']/),l=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},h=function(e){return d[e]};function f(e,t){if(t){if(s.test(e))return e.replace(l,h)}else if(c.test(e))return e.replace(u,h);return e}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function A(e){return e.replace(p,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var g=/(^|[^\[])\^/g;function m(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=r.source||r,r=r.replace(g,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var v=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(e,t,n){if(e){var r;try{r=decodeURIComponent(A(n)).replace(v,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!y.test(n)&&(n=S(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var _={},w=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/;function S(e,t){_[" "+e]||(w.test(e)?_[" "+e]=e+"/":_[" "+e]=B(e,"/",!0)),e=_[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(x,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(C,"$1")+t:e+t}var k={exec:function(){}};function E(e){for(var t,n,r=1;r=0&&"\\"===n[i])r=!r;return r?"|":" |"})),r=n.split(/ \|/),i=0;if(r.length>t)r.splice(t);else while(r.length=r.length?e.slice(r.length):e})).join("\n")}var U=function(){function e(e){this.options=e||L}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var r=t[t.length-1];if(r&&"paragraph"===r.type)return{raw:n[0],text:n[0].trimRight()};var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:D(i,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=R(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:P(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,i=n.align.length;for(r=0;r ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){for(var n,r,i,o,a,s,l,c=t[0],u=t[2],d=u.length>1,h=")"===u[u.length-1],f={type:"list",raw:c,ordered:d,start:d?+u.slice(0,-1):"",loose:!1,items:[]},p=t[0].match(this.rules.block.item),A=!1,g=p.length,m=0;m1||this.options.smartLists&&i!==u)&&(o=p.slice(m+1).join("\n"),f.raw=f.raw.substring(0,f.raw.length-o.length),m=g-1)),a=A||/\n\n(?!\s*$)/.test(n),m!==g-1&&(A="\n"===n.charAt(n.length-1),a||(a=A)),a&&(f.loose=!0),s=/^\[[ xX]\] /.test(n),l=void 0,s&&(l=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:c,task:s,checked:l,loose:a,text:n});return f}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):N(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));var n=t[1].toLowerCase().replace(/\s+/g," ");return{tag:n,raw:t[0],href:t[2],title:t[3]}}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:P(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i=n.align.length;for(r=0;r/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):N(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=j(t[2],"()");if(n>-1){var r=0===t[0].indexOf("!")?5:4,i=r+t[1].length+n;t[2]=t[2].substring(0,n),t[0]=t[0].substring(0,i).trim(),t[3]=""}var o=t[2],a="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s?(o=s[1],a=s[3]):a=""}else a=t[3]?t[3].slice(1,-1):"";o=o.trim().replace(/^<([\s\S]*)>$/,"$1");var l=F(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0]);return l}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}var o=F(n,r,n[0]);return o}},t.strong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.strong.start.exec(e);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var i,o="**"===r[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;o.lastIndex=0;while(null!=(r=o.exec(t)))if(i=this.rules.inline.strong.middle.exec(t.slice(0,r.index+3)),i)return{type:"strong",raw:e.slice(0,i[0].length),text:e.slice(2,i[0].length-2)}}},t.em=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.em.start.exec(e);if(r&&(!r[1]||r[1]&&(""===n||this.rules.inline.punctuation.exec(n)))){t=t.slice(-1*e.length);var i,o="*"===r[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;o.lastIndex=0;while(null!=(r=o.exec(t)))if(i=this.rules.inline.em.middle.exec(t.slice(0,r.index+2)),i)return{type:"em",raw:e.slice(0,i[0].length),text:e.slice(1,i[0].length-1)}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=n.startsWith(" ")&&n.endsWith(" ");return r&&i&&(n=n.substring(1,n.length-1)),n=N(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[1]}},t.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return"@"===i[2]?(n=N(this.options.mangle?t(i[1]):i[1]),r="mailto:"+n):(n=N(i[1]),r=n),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])r=N(this.options.mangle?t(n[0]):n[0]),i="mailto:"+r;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=N(n[0]),i="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,i=this.rules.inline.text.exec(e);if(i)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):N(i[0]):i[0]:N(this.options.smartypants?n(i[0]):i[0]),{type:"text",raw:i[0],text:r}},e}(),H=I.noopTest,Q=I.edit,K=I.merge,z={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:H,table:H,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};z.def=Q(z.def).replace("label",z._label).replace("title",z._title).getRegex(),z.bullet=/(?:[*+-]|\d{1,9}[.)])/,z.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,z.item=Q(z.item,"gm").replace(/bull/g,z.bullet).getRegex(),z.list=Q(z.list).replace(/bull/g,z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+z.def.source+")").getRegex(),z._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",z._comment=//,z.html=Q(z.html,"i").replace("comment",z._comment).replace("tag",z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),z.paragraph=Q(z._paragraph).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.blockquote=Q(z.blockquote).replace("paragraph",z.paragraph).getRegex(),z.normal=K({},z),z.gfm=K({},z.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),z.gfm.nptable=Q(z.gfm.nptable).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.gfm.table=Q(z.gfm.table).replace("hr",z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",z._tag).getRegex(),z.pedantic=K({},z.normal,{html:Q("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:H,paragraph:Q(z.normal._paragraph).replace("hr",z.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:H,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:H,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=Q(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",V._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",V.em.start=Q(V.em.start).replace(/punctuation/g,V._punctuation).getRegex(),V.em.middle=Q(V.em.middle).replace(/punctuation/g,V._punctuation).replace(/overlapSkip/g,V._overlapSkip).getRegex(),V.em.endAst=Q(V.em.endAst,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.em.endUnd=Q(V.em.endUnd,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.strong.start=Q(V.strong.start).replace(/punctuation/g,V._punctuation).getRegex(),V.strong.middle=Q(V.strong.middle).replace(/punctuation/g,V._punctuation).replace(/blockSkip/g,V._blockSkip).getRegex(),V.strong.endAst=Q(V.strong.endAst,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.strong.endUnd=Q(V.strong.endUnd,"g").replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=Q(V._blockSkip,"g").getRegex(),V.overlapSkip=Q(V._overlapSkip,"g").getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,V.autolink=Q(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=Q(V.tag).replace("comment",z._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=Q(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=Q(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=Q(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=K({},V),V.pedantic=K({},V.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Q(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:Q(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=K({},V.normal,{escape:Q(V.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var J=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||G,this.options.tokenizer=this.options.tokenizer||new U,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:X.normal,inline:q.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=q.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=q.breaks:t.inline=q.gfm),this.tokenizer.rules=t}e.lex=function(t,n){var r=new e(n);return r.lex(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var r,i,o,a;void 0===t&&(t=[]),void 0===n&&(n=!0),e=e.replace(/^ +$/gm,"");while(e)if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e,t))e=e.substring(r.raw.length),r.type?t.push(r):(a=t[t.length-1],a.raw+="\n"+r.raw,a.text+="\n"+r.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),o=r.items.length,i=0;i0)while(null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s)))l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s)))s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(e)if(o=this.tokenizer.escape(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.tag(e,n,r))e=e.substring(o.raw.length),n=o.inLink,r=o.inRawBlock,t.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,r)),t.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,r)),t.push(o);else if(o=this.tokenizer.strong(e,s,i))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,r),t.push(o);else if(o=this.tokenizer.em(e,s,i))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,r),t.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,r),t.push(o);else if(o=this.tokenizer.autolink(e,Z))e=e.substring(o.raw.length),t.push(o);else if(n||!(o=this.tokenizer.url(e,Z))){if(o=this.tokenizer.inlineText(e,r,Y))e=e.substring(o.raw.length),i=o.raw.slice(-1),t.push(o);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(o.raw.length),t.push(o);return t},t(e,null,[{key:"rules",get:function(){return{block:X,inline:q}}}]),e}(),$=a.defaults,ee=I.cleanUrl,te=I.escape,ne=function(){function e(e){this.options=e||$}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'
'+(n?e:te(e,!0))+"
\n":"
"+(n?e:te(e,!0))+"
\n"},t.blockquote=function(e){return"
\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var r=t?"ol":"ul",i=t&&1!==n?' start="'+n+'"':"";return"<"+r+i+">\n"+e+"\n"},t.listitem=function(e){return"
  • "+e+"
  • \n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return"

    "+e+"

    \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},t.tablerow=function(e){return"\n"+e+"\n"},t.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return r+e+"\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
    ":"
    "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(e=ee(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var r='",r},t.image=function(e,t,n){if(e=ee(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var r=''+n+'":">",r},t.text=function(e){return e},e}(),re=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.slug=function(e){var t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},e}(),oe=a.defaults,ae=I.unescape,se=function(){function e(e){this.options=e||oe,this.options.renderer=this.options.renderer||new ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new re,this.slugger=new ie}e.parse=function(t,n){var r=new e(n);return r.parse(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,s,l,c,u,d,h,f,p,A,g,m,v,y,b="",_=e.length;for(n=0;n<_;n++)switch(d=e[n],d.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(d.tokens),d.depth,ae(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,r=0;r0&&"text"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):A+=y),A+=this.parse(g.tokens,p),u+=this.renderer.listitem(A,v,m);b+=this.renderer.list(u,h,f);continue;case"html":b+=this.renderer.html(d.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<_&&"text"===e[n+1].type)d=e[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);b+=t?this.renderer.paragraph(u):u;continue;default:var w='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(w);throw new Error(w)}return b},t.parseInline=function(e,t){t=t||this.renderer;var n,r,i="",o=e.length;for(n=0;nAn error occurred:

    "+ue(l.message+"",!0)+"
    ";throw l}}pe.options=pe.setOptions=function(e){return le(pe.defaults,e),he(pe.defaults),pe},pe.getDefaults=de,pe.defaults=fe,pe.use=function(e){var t=le({},e);if(e.renderer&&function(){var n=pe.defaults.renderer||new ne,r=function(t){var r=n[t];n[t]=function(){for(var i=arguments.length,o=new Array(i),a=0;a=0;n--)if(o(t[n])){var r=t[n].split("="),i=unescape(r[0]),s=unescape(r[1]);e(s,i)}}function c(e,t){e&&(a.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function u(e){e&&h(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function d(){l((function(e,t){u(t)}))}function h(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},Ducp:function(e,t,n){var r=n("bYtY"),i=n("IwbS"),o=n("+TT/"),a=n("XpcN"),s=i.Group,l=["width","height"],c=["x","y"],u=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,o,a,s,l){var c=this;u.superCall(this,"renderInner",e,t,n,o,a,s,l);var d=this._controllerGroup,h=t.get("pageIconSize",!0);r.isArray(h)||(h=[h,h]),p("pagePrev",0);var f=t.getModel("pageTextStyle");function p(e,n){var a=e+"DataIndex",s=i.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:r.bind(c._pageGo,c,a,t,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});s.name=e,d.add(s)}d.add(new i.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(e,t,n,i,a,s){var u=this.getSelectorGroup(),d=e.getOrient().index,h=l[d],f=c[d],p=l[1-d],A=c[1-d];a&&o.box("horizontal",u,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),m=u.getBoundingRect(),v=[-m.x,-m.y],y=r.clone(n);a&&(y[h]=n[h]-m[h]-g);var b=this._layoutContentAndController(e,i,y,d,h,p,A);if(a){if("end"===s)v[d]+=b[h]+g;else{var _=m[h]+g;v[d]-=_,b[f]-=_}b[h]+=m[h]+g,v[1-d]+=b[A]+b[p]/2-m[p]/2,b[p]=Math.max(b[p],m[p]),b[A]=Math.min(b[A],m[A]+v[1-d]),u.attr("position",v)}return b},_layoutContentAndController:function(e,t,n,a,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;o.box(e.get("orient"),u,e.get("itemGap"),a?n.width:null,a?null:n.height),o.box("horizontal",h,e.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),p=h.getBoundingRect(),A=this._showController=f[s]>n[s],g=[-f.x,-f.y];t||(g[a]=u.position[a]);var m=[0,0],v=[-p.x,-p.y],y=r.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(A){var b=e.get("pageButtonPosition",!0);"end"===b?v[a]+=n[s]-p[s]:m[a]+=p[s]+y}v[1-a]+=f[l]/2-p[l]/2,u.attr("position",g),d.attr("position",m),h.attr("position",v);var _={x:0,y:0};if(_[s]=A?n[s]:f[s],_[l]=Math.max(f[l],p[l]),_[c]=Math.min(0,p[c]+v[1-a]),d.__rectSize=n[s],A){var w={x:0,y:0};w[s]=Math.max(n[s]-p[s]-y,0),w[l]=_[l],d.setClipPath(new i.Rect({shape:w})),d.__rectSize=w[s]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&i.updateProps(u,{position:x.contentPosition},!!A&&e),this._updatePageInfoView(e,x),_},_pageGo:function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;r.each(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var i=n.childOfName("pageText"),o=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,l=t.pageCount;i&&o&&i.setStyle("text",r.isString(o)?o.replace("{current}",s).replace("{total}",l):o({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=l[i],a=c[i],s=this._findTargetItemIndex(t),u=n.children(),d=u[s],h=u.length,f=h?1:0,p={contentPosition:n.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var A=b(d);p.contentPosition[i]=-A.s;for(var g=s+1,m=A,v=A,y=null;g<=h;++g)y=b(u[g]),(!y&&v.e>m.s+r||y&&!_(y,m.s))&&(m=v.i>m.i?v:y,m&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=m.i),++p.pageCount)),v=y;for(g=s-1,m=A,v=A,y=null;g>=-1;--g)y=b(u[g]),y&&_(v,y.s)||!(m.i=t&&e.s<=t+r}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n}}),d=u;e.exports=d},"E/ki":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},E2g8:function(e,t,n){(function(t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"===typeof e}var i=void 0;i=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var o=i,a=0,s=void 0,l=void 0,c=function(e,t){w[a]=e,w[a+1]=t,a+=2,2===a&&(l?l(x):S())};function u(e){l=e}function d(e){c=e}var h="undefined"!==typeof window?window:void 0,f=h||{},p=f.MutationObserver||f.WebKitMutationObserver,A="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),g="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function m(){return function(){return t.nextTick(x)}}function v(){return"undefined"!==typeof s?function(){s(x)}:_()}function y(){var e=0,t=new p(x),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=x,function(){return e.port2.postMessage(0)}}function _(){var e=setTimeout;return function(){return e(x,1)}}var w=new Array(1e3);function x(){for(var e=0;e",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:l,Enter:c};function o(e){for(var t=0;t=0;l--){var u=a[l].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}}function c(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function d(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var c,d=r(o,"closeBefore"),h=r(o,"triples"),p=a.charAt(l+1)==i,A=t.listSelections(),g=l%2==0,m=0;m1&&h.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;v="addFour"}else if(p){var w=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(_)||w==i||e.isWordChar(w))return e.Pass;v="both"}else{if(!g||!(0===_.length||/\s/.test(_)||d.indexOf(_)>-1))return e.Pass;v="both"}else v=p&&f(t,b)?"both":h.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=v)return e.Pass}else c=v}var x=l%2?a.charAt(l-1):i,C=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var e=0;e<3;e++)t.execCommand("goCharRight");else if("surround"==c){var n=t.getSelections();for(e=0;et[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&w(t)}};function w(e){return new o(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=p},ERHi:function(e,t,n){var r=n("ProS");n("Z6js"),n("R4Th");var i=n("f5Yq"),o=n("h8O9");r.registerVisual(i("effectScatter","circle")),r.registerLayout(o("effectScatter"))},EXcs:function(e,t,n){"use strict";var r=function(){return{height:0,opacity:0}},i=function(e){return{height:e.scrollHeight,opacity:1}},o=function(e){return{height:e.offsetHeight}},a=function(e,t){return"height"===t.propertyName},s={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:i,onEnterActive:i,onLeaveStart:o,onLeaveActive:r,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500};t["a"]=s},Em2t:function(e,t,n){var r=n("bahg"),i=n("quyA"),o=n("0JQy");function a(e){return i(e)?o(e):r(e)}e.exports=a},EpBk:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},Ez2D:function(e,t,n){var r=n("bYtY"),i=n("4NO4");function o(e,t){var n,o=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),l=i.queryDataIndex(s,e);if(null==l||l<0||r.isArray(l))return{point:[]};var c=s.getItemGraphicEl(l),u=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)o=u.dataToPoint(s.getValues(r.map(u.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(c){var d=c.getBoundingRect().clone();d.applyTransform(c.transform),o=[d.x+d.width/2,d.y+d.height/2]}return{point:o,el:c}}e.exports=o},F0hE:function(e,t,n){var r=n("ProS"),i=n("bYtY"),o=n("ca2m"),a=n("Qxkt"),s=n("ICMv"),l=o.valueAxis;function c(e,t){return i.defaults({show:t},e)}var u=r.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),l=this.get("axisType"),c=this.get("axisLabel"),u=this.get("name"),d=this.get("name.show"),h=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),A=i.map(this.get("indicator")||[],(function(A){null!=A.max&&A.max>0&&!A.min?A.min=0:null!=A.min&&A.min<0&&!A.max&&(A.max=0);var g=u;if(null!=A.color&&(g=i.defaults({color:A.color},u)),A=i.merge(i.clone(A),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:o,axisType:l,axisLabel:c,name:A.text,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:p},!1),d||(A.name=""),"string"===typeof h){var m=A.name;A.name=h.replace("{value}",null!=m?m:"")}else"function"===typeof h&&(A.name=h(A.name,A));var v=i.extend(new a(A,null,this.ecModel),s);return v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this.getIndicatorModels=function(){return A}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:i.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),d=u;e.exports=d},F5Ls:function(e,t){var n={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};function r(e,t){if("china"===e){var r=n[t.name];if(r){var i=t.center;i[0]+=r[0]/10.5,i[1]+=-r[1]/14}}}e.exports=r},F7hV:function(e,t,n){var r=n("MBQ8"),i=r.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},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}}});e.exports=i},F9bG:function(e,t,n){var r=n("bYtY"),i=n("ItGF"),o=n("4NO4"),a=o.makeInner,s=a(),l=r.each;function c(e,t,n){if(!i.node){var r=t.getZr();s(r).records||(s(r).records={}),u(r,t);var o=s(r).records[e]||(s(r).records[e]={});o.handler=n}}function u(e,t){function n(n,r){e.on(n,(function(n){var i=p(t);l(s(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),d(i.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,n("click",r.curry(f,"click")),n("mousemove",r.curry(f,"mousemove")),n("globalout",h))}function d(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function h(e,t,n){e.handler("leave",null,n)}function f(e,t,n,r){t.handler(e,n,r)}function p(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function A(e,t){if(!i.node){var n=t.getZr(),r=(s(n).records||{})[e];r&&(s(n).records[e]=null)}}t.register=c,t.unregister=A},FBjb:function(e,t,n){var r=n("bYtY"),i=n("oVpE"),o=i.createSymbol,a=n("IwbS"),s=n("OELB"),l=s.parsePercent,c=n("x3X8"),u=c.getDefaultLabel;function d(e,t,n){a.Group.call(this),this.updateData(e,t,n)}var h=d.prototype,f=d.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function p(e){return[e[0]/2,e[1]/2]}function A(e,t){this.parent.drift(e,t)}h._createSymbol=function(e,t,n,r,i){this.removeAll();var a=t.getItemVisual(n,"color"),s=o(e,-1,-1,2,2,a,i);s.attr({z2:100,culling:!0,scale:p(r)}),s.drift=A,this._symbolType=e,this.add(s)},h.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},h.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},h.updateData=function(e,t,n){this.silent=!1;var r=e.getItemVisual(t,"symbol")||"circle",i=e.hostModel,o=f(e,t),s=r!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(r,e,t,o,l)}else{var c=this.childAt(0);c.silent=!1,a.updateProps(c,{scale:p(o)},i,t)}if(this._updateCommon(e,t,o,n),s){c=this.childAt(0);var u=n&&n.fadeIn,d={scale:c.scale.slice()};u&&(d.style={opacity:c.style.opacity}),c.scale=[0,0],u&&(c.style.opacity=0),a.initProps(c,d,i,t)}this._seriesModel=i};var g=["itemStyle"],m=["emphasis","itemStyle"],v=["label"],y=["emphasis","label"];function b(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var n=this.__symbolOriginalScale,r=n[1]/n[0],i={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*r)]};this.animateTo(i,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}h._updateCommon=function(e,t,n,i){var o=this.childAt(0),s=e.hostModel,c=e.getItemVisual(t,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var d=i&&i.itemStyle,h=i&&i.hoverItemStyle,f=i&&i.symbolOffset,A=i&&i.labelModel,_=i&&i.hoverLabelModel,w=i&&i.hoverAnimation,x=i&&i.cursorStyle;if(!i||e.hasItemOption){var C=i&&i.itemModel?i.itemModel:e.getItemModel(t);d=C.getModel(g).getItemStyle(["color"]),h=C.getModel(m).getItemStyle(),f=C.getShallow("symbolOffset"),A=C.getModel(v),_=C.getModel(y),w=C.getShallow("hoverAnimation"),x=C.getShallow("cursor")}else h=r.extend({},h);var S=o.style,k=e.getItemVisual(t,"symbolRotate");o.attr("rotation",(k||0)*Math.PI/180||0),f&&o.attr("position",[l(f[0],n[0]),l(f[1],n[1])]),x&&o.attr("cursor",x),o.setColor(c,i&&i.symbolInnerColor),o.setStyle(d);var E=e.getItemVisual(t,"opacity");null!=E&&(S.opacity=E);var O=e.getItemVisual(t,"liftZ"),B=o.__z2Origin;null!=O?null==B&&(o.__z2Origin=o.z2,o.z2+=O):null!=B&&(o.z2=B,o.__z2Origin=null);var M=i&&i.useNameLabel;function T(t,n){return M?e.getName(t):u(e,t)}a.setLabelStyle(S,h,A,_,{labelFetcher:s,labelDataIndex:t,defaultText:T,isRectText:!0,autoColor:c}),o.__symbolOriginalScale=p(n),o.hoverStyle=h,o.highDownOnUpdate=w&&s.isAnimationEnabled()?b:null,a.setHoverStyle(o)},h.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,(!t||!t.keepLabel)&&(n.style.text=null),a.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},r.inherits(d,a.Group);var _=d;e.exports=_},FGaS:function(e,t,n){var r=n("ProS"),i=n("IwbS"),o=n("bYtY"),a=n("oVpE");function s(e){return o.isArray(e)||(e=[+e,+e]),e}var l=r.extendChartView({type:"radar",render:function(e,t,n){var r=e.coordinateSystem,l=this.group,c=e.getData(),u=this._data;function d(e,t){var n=e.getItemVisual(t,"symbol")||"circle",r=e.getItemVisual(t,"color");if("none"!==n){var i=s(e.getItemVisual(t,"symbolSize")),o=a.createSymbol(n,-1,-1,2,2,r);return o.attr({style:{strokeNoScale:!0},z2:100,scale:[i[0]/2,i[1]/2]}),o}}function h(t,n,r,o,a,s){r.removeAll();for(var l=0;l=48&&e.keyCode<=57)t=e.keyCode;else if(e.keyCode>=65&&e.keyCode<=90){var r=String.fromCharCode(e.keyCode);r=e.shiftKey?r.toUpperCase():r.toLowerCase(),t=r.charCodeAt()}else t=0;this._sendKeyEvent(t,n,!0)}}},{key:"_handleKeyUp",value:function(e){(0,o.stopEvent)(e);var t=this._getKeyCode(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(s["default"].XK_Control_L,"ControlLeft",!0)),(l.isMac()||l.isIOS())&&"CapsLock"===t)return this._sendKeyEvent(s["default"].XK_Caps_Lock,"CapsLock",!0),void this._sendKeyEvent(s["default"].XK_Caps_Lock,"CapsLock",!1);this._sendKeyEvent(this._keyDownList[t],t,!1),!l.isWindows()||"ShiftLeft"!==t&&"ShiftRight"!==t||("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftRight"],"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftLeft"],"ShiftLeft",!1))}},{key:"_handleAltGrTimeout",value:function(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(s["default"].XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){for(var e in i.Debug(">> Keyboard.allKeysUp"),this._keyDownList)this._sendKeyEvent(this._keyDownList[e],e,!1);i.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(e){if(!e.skipCheckAlt&&!e.altKey){var t=this._target,n=this._keyDownList;["AltLeft","AltRight"].forEach((function(e){if(e in n){var r=new KeyboardEvent("keyup",{key:n[e],code:e});r.skipCheckAlt=!0,t.dispatchEvent(r)}}))}}},{key:"grab",value:function(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),l.isWindows()&&l.isFirefox()){var e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((function(t){return document.addEventListener(t,e,{capture:!0,passive:!0})}))}}},{key:"ungrab",value:function(){if(l.isWindows()&&l.isFirefox()){var e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((function(t){return document.removeEventListener(t,e)}))}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}]),e}();t["default"]=A},FxDU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=n("QO+J"),i=n("j5sG"),o="undefined"!==typeof ResizeObserver?i.createSensor:r.createSensor;t.createSensor=o},GGyF:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("wgjA")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="LeftOutlined";var h=a.forwardRef(d);t.default=h},GIiI:function(e,t,n){"use strict";var r=n("VTBJ"),i=n("q1tI"),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},a=o,s=n("6VBw"),l=function(e,t){return i["createElement"](s["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:t,icon:a}))};l.displayName="PoweroffOutlined";t["a"]=i["forwardRef"](l)},GMDS:function(e,t,n){var r=n("bYtY"),i=n("4NgU"),o=n("jkPA"),a=i.prototype,s=i.extend({type:"ordinal",init:function(e,t){e&&!r.isArray(e)||(e=new o({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),a.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return a.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(a.scale.call(this,e))},getTicks:function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push(n),n++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:r.noop,niceExtent:r.noop});s.create=function(){return new s};var l=s;e.exports=l},GQ8N:function(e,t,n){"use strict";function r(e){return e>>>0}function i(e){return 0|e}Object.defineProperty(t,"__esModule",{value:!0}),t.toUnsigned32bit=r,t.toSigned32bit=i},GUcZ:function(e,t,n){"use strict";var r=n("fWQN"),i=n("mtLc"),o=function(){function e(){Object(r["a"])(this,e)}return Object(i["a"])(e,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","error",r),e.ENABLE_ERROR&&(console.error?console.error(r):console.warn?console.warn(r):console.log(r))}},{key:"i",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","info",r),e.ENABLE_INFO&&(console.info?console.info(r):console.log(r))}},{key:"w",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",r),e.ENABLE_WARN&&(console.warn?console.warn(r):console.log(r))}},{key:"d",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",r),e.ENABLE_DEBUG&&(console.debug?console.debug(r):console.log(r))}},{key:"v",value:function(t,n){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var r="[".concat(t,"] > ").concat(n);e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",r),e.ENABLE_VERBOSE&&console.log(r)}}]),e}();c.GLOBAL_TAG="flv.js",c.FORCE_GLOBAL_TAG=!1,c.ENABLE_ERROR=!0,c.ENABLE_INFO=!0,c.ENABLE_WARN=!0,c.ENABLE_DEBUG=!0,c.ENABLE_VERBOSE=!0,c.ENABLE_CALLBACK=!1,c.emitter=new l.a;var u=c,d=function(){function e(){Object(r["a"])(this,e),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return Object(i["a"])(e,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}]),e}(),h=d,f=n("yKVA"),p=n("879j"),A=function(){function e(t){Object(r["a"])(this,e),this._message=t}return Object(i["a"])(e,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),e}(),g=function(e){Object(f["a"])(n,e);var t=Object(p["a"])(n);function n(e){return Object(r["a"])(this,n),t.call(this,e)}return Object(i["a"])(n,[{key:"name",get:function(){return"IllegalStateException"}}]),n}(A),m=function(e){Object(f["a"])(n,e);var t=Object(p["a"])(n);function n(e){return Object(r["a"])(this,n),t.call(this,e)}return Object(i["a"])(n,[{key:"name",get:function(){return"InvalidArgumentException"}}]),n}(A),v=function(e){Object(f["a"])(n,e);var t=Object(p["a"])(n);function n(e){return Object(r["a"])(this,n),t.call(this,e)}return Object(i["a"])(n,[{key:"name",get:function(){return"NotImplementedException"}}]),n}(A),y={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},b={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},_=function(){function e(t){Object(r["a"])(this,e),this._type=t||"undefined",this._status=y.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(i["a"])(e,[{key:"destroy",value:function(){this._status=y.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===y.kConnecting||this._status===y.kBuffering}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}},{key:"open",value:function(e,t){throw new v("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new v("Unimplemented abstract function!")}}]),e}(),w=n("w4Tj"),x=n("oZsa"),C={};function S(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:n[0]||""},i={};if(r.browser){i[r.browser]=!0;var o=r.majorVersion.split(".");i.version={major:parseInt(r.majorVersion,10),string:r.version},o.length>1&&(i.version.minor=parseInt(o[1],10)),o.length>2&&(i.version.build=parseInt(o[2],10))}if(r.platform&&(i[r.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;var a="msie";r.browser=a,i[a]=!0}if(i.edge){delete i.edge;var s="msedge";r.browser=s,i[s]=!0}if(i.opr){var l="opera";r.browser=l,i[l]=!0}if(i.safari&&i.android){var c="android";r.browser=c,i[c]=!0}for(var u in i.name=r.browser,i.platform=r.platform,C)C.hasOwnProperty(u)&&delete C[u];Object.assign(C,i)}S();var k=C,E=function(e){Object(f["a"])(n,e);var t=Object(p["a"])(n);function n(e,i){var o;return Object(r["a"])(this,n),o=t.call(this,"fetch-stream-loader"),o.TAG="FetchStreamLoader",o._seekHandler=e,o._config=i,o._needStash=!0,o._requestAbort=!1,o._contentLength=null,o._receivedLength=0,o}return Object(i["a"])(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(w["a"])(Object(x["a"])(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){var n=this;this._dataSource=e,this._range=t;var r=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(r=e.redirectedURL);var i=this._seekHandler.getConfig(r,t),o=new self.Headers;if("object"===typeof i.headers){var a=i.headers;for(var s in a)a.hasOwnProperty(s)&&o.append(s,a[s])}var l={method:"GET",headers:o,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===typeof this._config.headers)for(var c in this._config.headers)o.append(c,this._config.headers[c]);!1===e.cors&&(l.mode="same-origin"),e.withCredentials&&(l.credentials="include"),e.referrerPolicy&&(l.referrerPolicy=e.referrerPolicy),this._status=y.kConnecting,self.fetch(i.url,l).then((function(e){if(n._requestAbort)return n._requestAbort=!1,void(n._status=y.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==i.url&&n._onURLRedirect){var t=n._seekHandler.removeURLParameters(e.url);n._onURLRedirect(t)}var r=e.headers.get("Content-Length");return null!=r&&(n._contentLength=parseInt(r),0!==n._contentLength&&n._onContentLengthKnown&&n._onContentLengthKnown(n._contentLength)),n._pump.call(n,e.body.getReader())}if(n._status=y.kError,!n._onError)throw new A("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);n._onError(b.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}))["catch"]((function(e){if(n._status=y.kError,!n._onError)throw e;n._onError(b.EXCEPTION,{code:-1,msg:e.message})}))}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(e){var t=this;return e.read().then((function(n){if(n.done)if(null!==t._contentLength&&t._receivedLength=15048,t=!k.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(n){return!1}}}]),n}(_),O=E,B=function(e){Object(f["a"])(n,e);var t=Object(p["a"])(n);function n(e,i){var o;return Object(r["a"])(this,n),o=t.call(this,"xhr-moz-chunked-loader"),o.TAG="MozChunkedLoader",o._seekHandler=e,o._config=i,o._needStash=!0,o._xhr=null,o._requestAbort=!1,o._contentLength=null,o._receivedLength=0,o}return Object(i["a"])(n,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),Object(w["a"])(Object(x["a"])(n.prototype),"destroy",this).call(this)}},{key:"open",value:function(e,t){this._dataSource=e,this._range=t;var n=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(n=e.redirectedURL);var r=this._seekHandler.getConfig(n,t);this._requestURL=r.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",r.url,!0),i.responseType="moz-chunked-arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onloadend=this._onLoadEnd.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"===typeof r.headers){var o=r.headers;for(var a in o)o.hasOwnProperty(a)&&i.setRequestHeader(a,o[a])}if("object"===typeof this._config.headers){var s=this._config.headers;for(var l in s)s.hasOwnProperty(l)&&i.setRequestHeader(l,s[l])}this._status=y.kConnecting,i.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=y.kComplete}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL&&t.responseURL!==this._requestURL&&this._onURLRedirect){var n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(0!==t.status&&(t.status<200||t.status>299)){if(this._status=y.kError,!this._onError)throw new A("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(b.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=y.kBuffering}}},{key:"_onProgress",value:function(e){if(this._status!==y.kError){null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}}},{key:"_onLoadEnd",value:function(e){!0!==this._requestAbort?this._status!==y.kError&&(this._status=y.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}},{key:"_onXhrError",value:function(e){this._status=y.kError;var t=0,n=null;if(this._contentLength&&e.loaded=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(e,t){this._lastTimeLoaded=0;var n=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?n=this._currentRedirectedURL:void 0!=e.redirectedURL&&(n=e.redirectedURL));var r=this._seekHandler.getConfig(n,t);this._currentRequestURL=r.url;var i=this._xhr=new XMLHttpRequest;if(i.open("GET",r.url,!0),i.responseType="arraybuffer",i.onreadystatechange=this._onReadyStateChange.bind(this),i.onprogress=this._onProgress.bind(this),i.onload=this._onLoad.bind(this),i.onerror=this._onXhrError.bind(this),e.withCredentials&&(i.withCredentials=!0),"object"===typeof r.headers){var o=r.headers;for(var a in o)o.hasOwnProperty(a)&&i.setRequestHeader(a,o[a])}if("object"===typeof this._config.headers){var s=this._config.headers;for(var l in s)s.hasOwnProperty(l)&&i.setRequestHeader(l,s[l])}i.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=y.kComplete}},{key:"_internalAbort",value:function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}},{key:"_onReadyStateChange",value:function(e){var t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){var n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=y.kBuffering}else{if(this._status=y.kError,!this._onError)throw new A("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(b.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}},{key:"_onProgress",value:function(e){if(this._status!==y.kError){if(null===this._contentLength){var t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;var n=e.total;this._internalAbort(),null!=n&0!==n&&(this._totalLength=n)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var r=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(r)}}},{key:"_normalizeSpeed",value:function(e){var t=this._chunkSizeKBList,n=t.length-1,r=0,i=0,o=n;if(e=t[r]&&e=3&&(t=this._speedSampler.currentKBps)),0!==t){var n=this._normalizeSpeed(t);this._currentSpeedNormalized!==n&&(this._currentSpeedNormalized=n,this._currentChunkSizeKB=n)}var r=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=r.byteLength;var o=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength0)for(var o=n.split("&"),a=0;a0;s[0]!==this._startName&&s[0]!==this._endName&&(l&&(i+="&"),i+=o[a])}return 0===i.length?t:t+"?"+i}}]),e}(),F=j,R=function(){function e(t,n,i){Object(r["a"])(this,e),this.TAG="IOController",this._config=n,this._extraData=i,this._stashInitialSize=393216,void 0!=n.stashInitialSize&&n.stashInitialSize>0&&(this._stashInitialSize=n.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===n.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=t,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(t.url),this._refTotalLength=t.filesize?t.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return Object(i["a"])(e,[{key:"destroy",value:function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}},{key:"isWorking",value:function(){return this._loader&&this._loader.isWorking()&&!this._paused}},{key:"isPaused",value:function(){return this._paused}},{key:"status",get:function(){return this._loader.status}},{key:"extraData",get:function(){return this._extraData},set:function(e){this._extraData=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(e){this._onSeeked=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(e){this._onRedirect=e}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(e){this._onRecoveredEarlyEof=e}},{key:"currentURL",get:function(){return this._dataSource.url}},{key:"hasRedirect",get:function(){return null!=this._redirectedURL||void 0!=this._dataSource.redirectedURL}},{key:"currentRedirectedURL",get:function(){return this._redirectedURL||this._dataSource.redirectedURL}},{key:"currentSpeed",get:function(){return this._loaderClass===I?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var e=this._config;if("range"===e.seekType)this._seekHandler=new N(this._config.rangeLoadZeroStart);else if("param"===e.seekType){var t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new F(t,n)}else{if("custom"!==e.seekType)throw new m("Invalid seekType in config: ".concat(e.seekType));if("function"!==typeof e.customSeekHandler)throw new m("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}},{key:"_selectLoader",value:function(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=D;else if(O.isSupported())this._loaderClass=O;else if(M.isSupported())this._loaderClass=M;else{if(!I.isSupported())throw new A("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=I}}},{key:"_createLoader",value:function(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}},{key:"open",value:function(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}},{key:"abort",value:function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}},{key:"pause",value:function(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}},{key:"resume",value:function(){if(this._paused){this._paused=!1;var e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}},{key:"seek",value:function(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}},{key:"_internalSeek",value:function(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;var n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(e){if(!e||"string"!==typeof e||0===e.length)throw new m("Url must be a non-empty string!");this._dataSource.url=e}},{key:"_expandBuffer",value:function(e){var t=this._stashSize;while(t+10485760){var r=new Uint8Array(this._stashBuffer,0,this._stashUsed),i=new Uint8Array(n,0,t);i.set(r,0)}this._stashBuffer=n,this._bufferSize=t}}},{key:"_normalizeSpeed",value:function(e){var t=this._speedNormalizeList,n=t.length-1,r=0,i=0,o=n;if(e=t[r]&&e=512&&e<=1024?Math.floor(1.5*e):2*e,t>8192&&(t=8192);var n=1024*t+1048576;this._bufferSize0){var s=this._stashBuffer.slice(0,this._stashUsed),l=this._dispatchChunks(s,this._stashByteStart);if(l0){var c=new Uint8Array(s,l);a.set(c,0),this._stashUsed=c.byteLength,this._stashByteStart+=l}}else this._stashUsed=0,this._stashByteStart+=l;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{var u=this._dispatchChunks(e,t);if(uthis._bufferSize&&(this._expandBuffer(d),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,u),0),this._stashUsed+=d,this._stashByteStart=t+u}}}else if(0===this._stashUsed){var h=this._dispatchChunks(e,t);if(hthis._bufferSize&&this._expandBuffer(f);var p=new Uint8Array(this._stashBuffer,0,this._bufferSize);p.set(new Uint8Array(e,h),0),this._stashUsed+=f,this._stashByteStart=t+h}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);var A=new Uint8Array(this._stashBuffer,0,this._bufferSize);A.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;var m=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(m0){var v=new Uint8Array(this._stashBuffer,m);A.set(v,0)}this._stashUsed-=m,this._stashByteStart+=m}}}},{key:"_flushStashBuffer",value:function(e){if(this._stashUsed>0){var t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n0){var i=new Uint8Array(this._stashBuffer,0,this._bufferSize),o=new Uint8Array(t,n);i.set(o,0),this._stashUsed=o.byteLength,this._stashByteStart+=n}return 0}u.w(this.TAG,"".concat(r," bytes unconsumed data remain when flush buffer, dropped"))}return this._stashUsed=0,this._stashByteStart=0,r}return 0}},{key:"_onLoaderComplete",value:function(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(e,t){switch(u.e(this.TAG,"Loader error, code = ".concat(t.code,", msg = ").concat(t.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=b.UNRECOVERABLE_EARLY_EOF),e){case b.EARLY_EOF:if(!this._config.isLive&&this._totalLength){var n=this._currentRange.to+1;return void(n0){var n=e.getConfig();t.emit("change",n)}}},{key:"registerListener",value:function(t){e.emitter.addListener("change",t)}},{key:"removeListener",value:function(t){e.emitter.removeListener("change",t)}},{key:"addLogListener",value:function(t){u.emitter.addListener("log",t),u.emitter.listenerCount("log")>0&&(u.ENABLE_CALLBACK=!0,e._notifyChange())}},{key:"removeLogListener",value:function(t){u.emitter.removeListener("log",t),0===u.emitter.listenerCount("log")&&(u.ENABLE_CALLBACK=!1,e._notifyChange())}}]),e}();G.emitter=new l.a;var X=G,q=function(){function e(){Object(r["a"])(this,e),this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}return Object(i["a"])(e,[{key:"isComplete",value:function(){var e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}},{key:"isSeekable",value:function(){return!0===this.hasKeyframesIndex}},{key:"getNearestKeyframe",value:function(e){if(null==this.keyframesIndex)return null;var t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}},{key:"_search",value:function(e,t){var n=0,r=e.length-1,i=0,o=0,a=r;t=e[i]&&t=128){t.push(String.fromCharCode(65535&o)),r+=2;continue}}}else if(n[r]<240){if(Z(n,r,2)){var a=(15&n[r])<<12|(63&n[r+1])<<6|63&n[r+2];if(a>=2048&&55296!==(63488&a)){t.push(String.fromCharCode(65535&a)),r+=3;continue}}}else if(n[r]<248&&Z(n,r,3)){var s=(7&n[r])<<18|(63&n[r+1])<<12|(63&n[r+2])<<6|63&n[r+3];if(s>65536&&s<1114112){s-=65536,t.push(String.fromCharCode(s>>>10|55296)),t.push(String.fromCharCode(1023&s|56320)),r+=4;continue}}t.push(String.fromCharCode(65533)),++r}return t.join("")}var $=J,ee=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}(),te=function(){function e(){Object(r["a"])(this,e)}return Object(i["a"])(e,null,[{key:"parseScriptData",value:function(t,n,r){var i={};try{var o=e.parseValue(t,n,r),a=e.parseValue(t,n+o.size,r-o.size);i[o.data]=a.data}catch(s){u.e("AMF",s.toString())}return i}},{key:"parseObject",value:function(t,n,r){if(r<3)throw new g("Data not enough when parse ScriptDataObject");var i=e.parseString(t,n,r),o=e.parseValue(t,n+i.size,r-i.size),a=o.objectEnd;return{data:{name:i.data,value:o.data},size:i.size+o.size,objectEnd:a}}},{key:"parseVariable",value:function(t,n,r){return e.parseObject(t,n,r)}},{key:"parseString",value:function(e,t,n){if(n<2)throw new g("Data not enough when parse String");var r,i=new DataView(e,t,n),o=i.getUint16(0,!ee);return r=o>0?$(new Uint8Array(e,t+2,o)):"",{data:r,size:2+o}}},{key:"parseLongString",value:function(e,t,n){if(n<4)throw new g("Data not enough when parse LongString");var r,i=new DataView(e,t,n),o=i.getUint32(0,!ee);return r=o>0?$(new Uint8Array(e,t+4,o)):"",{data:r,size:4+o}}},{key:"parseDate",value:function(e,t,n){if(n<10)throw new g("Data size invalid when parse Date");var r=new DataView(e,t,n),i=r.getFloat64(0,!ee),o=r.getInt16(8,!ee);return i+=60*o*1e3,{data:new Date(i),size:10}}},{key:"parseValue",value:function(t,n,r){if(r<1)throw new g("Data not enough when parse Value");var i,o=new DataView(t,n,r),a=1,s=o.getUint8(0),l=!1;try{switch(s){case 0:i=o.getFloat64(1,!ee),a+=8;break;case 1:var c=o.getUint8(1);i=!!c,a+=1;break;case 2:var d=e.parseString(t,n+1,r-1);i=d.data,a+=d.size;break;case 3:i={};var h=0;9===(16777215&o.getUint32(r-4,!ee))&&(h=3);while(a32)throw new m("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var n=this._current_word_bits_left?this._current_word:0;n>>>=32-this._current_word_bits_left;var r=e-this._current_word_bits_left;this._fillCurrentWord();var i=Math.min(r,this._current_word_bits_left),o=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,n=n<>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}},{key:"readUEG",value:function(){var e=this._skipLeadingZero();return this.readBits(e+1)-1}},{key:"readSEG",value:function(){var e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}]),e}(),ie=re,oe=function(){function e(){Object(r["a"])(this,e)}return Object(i["a"])(e,null,[{key:"_ebsp2rbsp",value:function(e){for(var t=e,n=t.byteLength,r=new Uint8Array(n),i=0,o=0;o=2&&3===t[o]&&0===t[o-1]&&0===t[o-2]||(r[i]=t[o],i++);return new Uint8Array(r.buffer,0,i)}},{key:"parseSPS",value:function(t){var n=e._ebsp2rbsp(t),r=new ie(n);r.readByte();var i=r.readByte();r.readByte();var o=r.readByte();r.readUEG();var a=e.getProfileString(i),s=e.getLevelString(o),l=1,c=420,u=[0,420,422,444],d=8;if((100===i||110===i||122===i||244===i||44===i||83===i||86===i||118===i||128===i||138===i||144===i)&&(l=r.readUEG(),3===l&&r.readBits(1),l<=3&&(c=u[l]),d=r.readUEG()+8,r.readUEG(),r.readBits(1),r.readBool()))for(var h=3!==l?8:12,f=0;f0&&L<16?(k=D[L-1],E=P[L-1]):255===L&&(k=r.readByte()<<8|r.readByte(),E=r.readByte()<<8|r.readByte())}if(r.readBool()&&r.readBool(),r.readBool()&&(r.readBits(4),r.readBool()&&r.readBits(24)),r.readBool()&&(r.readUEG(),r.readUEG()),r.readBool()){var N=r.readBits(32),j=r.readBits(32);B=r.readBool(),M=j,T=2*N,O=M/T}}var F=1;1===k&&1===E||(F=k/E);var R=0,U=0;if(0===l)R=1,U=2-b;else{var H=3===l?1:2,Q=1===l?2:1;R=H,U=Q*(2-b)}var K=16*(v+1),z=16*(y+1)*(2-b);K-=(_+w)*R,z-=(x+C)*U;var V=Math.ceil(K*F);return r.destroy(),r=null,{profile_string:a,level_string:s,bit_depth:d,ref_frames:m,chroma_format:c,chroma_format_string:e.getChromaFormatString(c),frame_rate:{fixed:B,fps:O,fps_den:T,fps_num:M},sar_ratio:{width:k,height:E},codec_size:{width:K,height:z},present_size:{width:V,height:z}}}},{key:"_skipScalingList",value:function(e,t){for(var n=8,r=8,i=0,o=0;o13))return 0;var o=e.probe(t);r=o.dataOffset}if(this._firstParse){this._firstParse=!1,n+r!==this._dataOffset&&u.w(this.TAG,"First time parsing but chunk byteStart invalid!");var a=new DataView(t,r),s=a.getUint32(0,!i);0!==s&&u.w(this.TAG,"PrevTagSize0 !== 0 !!!"),r+=4}while(rt.byteLength)break;var c=l.getUint8(0),d=16777215&l.getUint32(0,!i);if(r+11+d+4>t.byteLength)break;if(8===c||9===c||18===c){var h=l.getUint8(4),f=l.getUint8(5),p=l.getUint8(6),A=l.getUint8(7),m=p|f<<8|h<<16|A<<24,v=16777215&l.getUint32(7,!i);0!==v&&u.w(this.TAG,"Meet tag which has StreamID != 0!");var y=r+11;switch(c){case 8:this._parseAudioData(t,y,d,m);break;case 9:this._parseVideoData(t,y,d,m,n+r);break;case 18:this._parseScriptData(t,y,d);break}var b=l.getUint32(11+d,!i);b!==11+d&&u.w(this.TAG,"Invalid PrevTagSize ".concat(b)),r+=11+d+4}else u.w(this.TAG,"Unsupported tag type ".concat(c,", skipped")),r+=11+d+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),r}},{key:"_parseScriptData",value:function(e,t,n){var r=ne.parseScriptData(e,t,n);if(r.hasOwnProperty("onMetaData")){if(null==r.onMetaData||"object"!==typeof r.onMetaData)return void u.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&u.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;var i=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},i)),"boolean"===typeof i.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=i.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"===typeof i.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=i.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"===typeof i.audiodatarate&&(this._mediaInfo.audioDataRate=i.audiodatarate),"number"===typeof i.videodatarate&&(this._mediaInfo.videoDataRate=i.videodatarate),"number"===typeof i.width&&(this._mediaInfo.width=i.width),"number"===typeof i.height&&(this._mediaInfo.height=i.height),"number"===typeof i.duration){if(!this._durationOverrided){var o=Math.floor(i.duration*this._timescale);this._duration=o,this._mediaInfo.duration=o}}else this._mediaInfo.duration=0;if("number"===typeof i.framerate){var a=Math.floor(1e3*i.framerate);if(a>0){var s=a/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=s,this._referenceFrameRate.fps_num=a,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=s}}if("object"===typeof i.keyframes){this._mediaInfo.hasKeyframesIndex=!0;var l=i.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(l),i.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=i,u.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}},{key:"_parseKeyframesIndex",value:function(e){for(var t=[],n=[],r=1;r>>4;if(2===a||10===a){var s=0,l=(12&o)>>>2;if(l>=0&&l<=4){s=this._flvSoundRateTable[l];var c=1&o,d=this._audioMetadata,h=this._audioTrack;if(d||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),d=this._audioMetadata={},d.type="audio",d.id=h.id,d.timescale=this._timescale,d.duration=this._duration,d.audioSampleRate=s,d.channelCount=0===c?1:2),10===a){var f=this._parseAACAudioData(e,t+1,n-1);if(void 0==f)return;if(0===f.packetType){d.config&&u.w(this.TAG,"Found another AudioSpecificConfig!");var p=f.data;d.audioSampleRate=p.samplingRate,d.channelCount=p.channelCount,d.codec=p.codec,d.originalCodec=p.originalCodec,d.config=p.config,d.refSampleDuration=1024/d.audioSampleRate*d.timescale,u.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",d);var A=this._mediaInfo;A.audioCodec=d.originalCodec,A.audioSampleRate=d.audioSampleRate,A.audioChannelCount=d.channelCount,A.hasVideo?null!=A.videoCodec&&(A.mimeType='video/x-flv; codecs="'+A.videoCodec+","+A.audioCodec+'"'):A.mimeType='video/x-flv; codecs="'+A.audioCodec+'"',A.isComplete()&&this._onMediaInfo(A)}else if(1===f.packetType){var g=this._timestampBase+r,m={unit:f.data,length:f.data.byteLength,dts:g,pts:g};h.samples.push(m),h.length+=f.data.length}else u.e(this.TAG,"Flv: Unsupported AAC data type ".concat(f.packetType))}else if(2===a){if(!d.codec){var v=this._parseMP3AudioData(e,t+1,n-1,!0);if(void 0==v)return;d.audioSampleRate=v.samplingRate,d.channelCount=v.channelCount,d.codec=v.codec,d.originalCodec=v.originalCodec,d.refSampleDuration=1152/d.audioSampleRate*d.timescale,u.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",d);var y=this._mediaInfo;y.audioCodec=d.codec,y.audioSampleRate=d.audioSampleRate,y.audioChannelCount=d.channelCount,y.audioDataRate=v.bitRate,y.hasVideo?null!=y.videoCodec&&(y.mimeType='video/x-flv; codecs="'+y.videoCodec+","+y.audioCodec+'"'):y.mimeType='video/x-flv; codecs="'+y.audioCodec+'"',y.isComplete()&&this._onMediaInfo(y)}var b=this._parseMP3AudioData(e,t+1,n-1,!1);if(void 0==b)return;var _=this._timestampBase+r,w={unit:b,length:b.byteLength,dts:_,pts:_};h.samples.push(w),h.length+=b.length}}else this._onError(le.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+l)}else this._onError(le.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+a)}}},{key:"_parseAACAudioData",value:function(e,t,n){if(!(n<=1)){var r={},i=new Uint8Array(e,t,n);return r.packetType=i[0],0===i[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=i.subarray(1),r}u.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!")}},{key:"_parseAACAudioSpecificConfig",value:function(e,t,n){var r=new Uint8Array(e,t,n),i=null,o=0,a=0,s=0,l=null;if(o=a=r[0]>>>3,s=(7&r[0])<<1|r[1]>>>7,s<0||s>=this._mpegSamplingRates.length)this._onError(le.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");else{var c=this._mpegSamplingRates[s],u=(120&r[1])>>>3;if(!(u<0||u>=8)){5===o&&(l=(7&r[1])<<1|r[2]>>>7,(124&r[2])>>>2);var d=self.navigator.userAgent.toLowerCase();return-1!==d.indexOf("firefox")?s>=6?(o=5,i=new Array(4),l=s-3):(o=2,i=new Array(2),l=s):-1!==d.indexOf("android")?(o=2,i=new Array(2),l=s):(o=5,l=s,i=new Array(4),s>=6?l=s-3:1===u&&(o=2,i=new Array(2),l=s)),i[0]=o<<3,i[0]|=(15&s)>>>1,i[1]=(15&s)<<7,i[1]|=(15&u)<<3,5===o&&(i[1]|=(15&l)>>>1,i[2]=(1&l)<<7,i[2]|=8,i[3]=0),{config:i,samplingRate:c,channelCount:u,codec:"mp4a.40."+o,originalCodec:"mp4a.40."+a}}this._onError(le.FORMAT_ERROR,"Flv: AAC invalid channel configuration")}}},{key:"_parseMP3AudioData",value:function(e,t,n,r){if(!(n<4)){this._littleEndian;var i=new Uint8Array(e,t,n),o=null;if(r){if(255!==i[0])return;var a=i[1]>>>3&3,s=(6&i[1])>>1,l=(240&i[2])>>>4,c=(12&i[2])>>>2,d=i[3]>>>6&3,h=3!==d?2:1,f=0,p=0,A="mp3";switch(a){case 0:f=this._mpegAudioV25SampleRateTable[c];break;case 2:f=this._mpegAudioV20SampleRateTable[c];break;case 3:f=this._mpegAudioV10SampleRateTable[c];break}switch(s){case 1:34,l>>4,s=15&o;7===s?this._parseAVCVideoPacket(e,t+1,n-1,r,i,a):this._onError(le.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(s))}}},{key:"_parseAVCVideoPacket",value:function(e,t,n,r,i,o){if(n<4)u.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");else{var a=this._littleEndian,s=new DataView(e,t,n),l=s.getUint8(0),c=16777215&s.getUint32(0,!a),d=c<<8>>8;if(0===l)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(1===l)this._parseAVCVideoData(e,t+4,n-4,r,i,o,d);else if(2!==l)return void this._onError(le.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(l))}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(e,t,n){if(n<7)u.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");else{var r=this._videoMetadata,i=this._videoTrack,o=this._littleEndian,a=new DataView(e,t,n);r?"undefined"!==typeof r.avcc&&u.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=i.id,r.timescale=this._timescale,r.duration=this._duration);var s=a.getUint8(0),l=a.getUint8(1);a.getUint8(2),a.getUint8(3);if(1===s&&0!==l)if(this._naluLengthSize=1+(3&a.getUint8(4)),3===this._naluLengthSize||4===this._naluLengthSize){var c=31&a.getUint8(5);if(0!==c){c>1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(c));for(var d=6,h=0;h1&&u.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(x)),d++;for(var C=0;C=n){u.w(this.TAG,"Malformed Nalu near timestamp ".concat(p,", offset = ").concat(h,", dataSize = ").concat(n));break}var g=l.getUint32(h,!s);if(3===f&&(g>>>=8),g>n-f)return void u.w(this.TAG,"Malformed Nalus near timestamp ".concat(p,", NaluSize > DataSize!"));var m=31&l.getUint8(h+f);5===m&&(A=!0);var v=new Uint8Array(e,t+h,f+g),y={type:m,data:v};c.push(y),d+=v.byteLength,h+=f+g}if(c.length){var b=this._videoTrack,_={units:c,length:d,isKeyframe:A,dts:p,cts:a,pts:p+a};A&&(_.fileposition=i),b.samples.push(_),b.length+=d}}}],[{key:"probe",value:function(e){var t=new Uint8Array(e),n={match:!1};if(70!==t[0]||76!==t[1]||86!==t[2]||1!==t[3])return n;var r=(4&t[4])>>>2!==0,i=0!==(1&t[4]),o=ce(t,5);return o<9?n:{match:!0,consumed:o,dataOffset:o,hasAudioTrack:r,hasVideoTrack:i}}}]),e}(),de=ue,he=function(){function e(){Object(r["a"])(this,e)}return Object(i["a"])(e,null,[{key:"init",value:function(){for(var t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=e.constants={};n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(e){for(var t=8,n=null,r=Array.prototype.slice.call(arguments,1),i=r.length,o=0;o>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n.set(e,4);for(var a=8,s=0;s>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}},{key:"trak",value:function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"tkhd",value:function(t){var n=t.id,r=t.duration,i=t.presentWidth,o=t.presentHeight;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,255&i,0,0,o>>>8&255,255&o,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))}},{key:"mdhd",value:function(t){var n=t.timescale,r=t.duration;return e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,85,196,0,0]))}},{key:"hdlr",value:function(t){var n=null;return n="audio"===t.type?e.constants.HDLR_AUDIO:e.constants.HDLR_VIDEO,e.box(e.types.hdlr,n)}},{key:"minf",value:function(t){var n=null;return n="audio"===t.type?e.box(e.types.smhd,e.constants.SMHD):e.box(e.types.vmhd,e.constants.VMHD),e.box(e.types.minf,n,e.dinf(),e.stbl(t))}},{key:"dinf",value:function(){var t=e.box(e.types.dinf,e.box(e.types.dref,e.constants.DREF));return t}},{key:"stbl",value:function(t){var n=e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.STTS),e.box(e.types.stsc,e.constants.STSC),e.box(e.types.stsz,e.constants.STSZ),e.box(e.types.stco,e.constants.STCO));return n}},{key:"stsd",value:function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp3(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.mp4a(t)):e.box(e.types.stsd,e.constants.STSD_PREFIX,e.avc1(t))}},{key:"mp3",value:function(t){var n=t.channelCount,r=t.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types[".mp3"],i)}},{key:"mp4a",value:function(t){var n=t.channelCount,r=t.audioSampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>>8&255,255&r,0,0]);return e.box(e.types.mp4a,i,e.esds(t))}},{key:"esds",value:function(t){var n=t.config||[],r=n.length,i=new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(n).concat([6,1,2]));return e.box(e.types.esds,i)}},{key:"avc1",value:function(t){var n=t.avcc,r=t.codecWidth,i=t.codecHeight,o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,r>>>8&255,255&r,i>>>8&255,255&i,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,o,e.box(e.types.avcC,n))}},{key:"mvex",value:function(t){return e.box(e.types.mvex,e.trex(t))}},{key:"trex",value:function(t){var n=t.id,r=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,r)}},{key:"moof",value:function(t,n){return e.box(e.types.moof,e.mfhd(t.sequenceNumber),e.traf(t,n))}},{key:"mfhd",value:function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,n)}},{key:"traf",value:function(t,n){var r=t.id,i=e.box(e.types.tfhd,new Uint8Array([0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r])),o=e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),a=e.sdtp(t),s=e.trun(t,a.byteLength+16+16+8+16+8+8);return e.box(e.types.traf,i,o,s,a)}},{key:"sdtp",value:function(t){for(var n=t.samples||[],r=n.length,i=new Uint8Array(4+r),o=0;o>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var s=0;s>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,u.isLeading<<2|u.dependsOn,u.isDependedOn<<6|u.hasRedundancy<<4|u.isNonSync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*s)}return e.box(e.types.trun,a)}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}}]),e}();he.init();var fe=he,pe=function(){function e(){Object(r["a"])(this,e)}return Object(i["a"])(e,null,[{key:"getSilentFrame",value:function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}]),e}(),Ae=pe,ge=Object(i["a"])((function e(t,n,i,o,a){Object(r["a"])(this,e),this.dts=t,this.pts=n,this.duration=i,this.originalDts=o,this.isSyncPoint=a,this.fileposition=null})),me=function(){function e(){Object(r["a"])(this,e),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return Object(i["a"])(e,[{key:"appendSyncPoint",value:function(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}]),e}(),ve=function(){function e(){Object(r["a"])(this,e),this._list=[]}return Object(i["a"])(e,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(e){var t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts=t[i].dts&&et[r].lastSample.originalDts&&e=t[r].lastSample.originalDts&&(r===t.length-1||r0&&(i=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=i,this._list.splice(i,0,n)}},{key:"getLastSegmentBefore",value:function(e){var t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}},{key:"getLastSampleBefore",value:function(e){var t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}},{key:"getLastSyncPointBefore",value:function(e){var t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;while(0===n.length&&t>0)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}}]),e}(),be=function(){function e(t){Object(r["a"])(this,e),this.TAG="MP4Remuxer",this._config=t,this._isLive=!0===t.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ye("audio"),this._videoSegmentInfoList=new ye("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!k.chrome||!(k.version.major<50||50===k.version.major&&k.version.build<2661)),this._fillSilentAfterSeek=k.msedge||k.msie,this._mp3UseMpegAudio=!k.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(i["a"])(e,[{key:"destroy",value:function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}},{key:"bindDataSource",value:function(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(e){this._onInitSegment=e}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(e){this._onMediaSegment=e}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(e,t){if(!this._onMediaSegment)throw new g("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}},{key:"_onTrackMetadataReceived",value:function(e,t){var n=null,r="mp4",i=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",i="",n=new Uint8Array):n=fe.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,n=fe.generateInitSegment(t)}if(!this._onInitSegment)throw new g("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:i,container:"".concat(e,"/").concat(r),mediaDuration:t.duration})}},{key:"_calculateDtsBase",value:function(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}},{key:"flushStashedSamples",value:function(){var e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(n.samples.push(e),n.length=e.length);var r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)}},{key:"_remuxAudio",value:function(e,t){if(null!=this._audioMeta){var n=e,r=n.samples,i=void 0,o=-1,a=-1,s=this._audioMeta.refSampleDuration,l="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,c=this._dtsBaseInited&&void 0===this._audioNextDts,d=!1;if(r&&0!==r.length&&(1!==r.length||t)){var h=0,f=null,p=0;l?(h=0,p=n.length):(h=8,p=8+n.length);var A=null;if(r.length>1&&(A=r.pop(),p-=A.length),null!=this._audioStashedLastSample){var g=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(g),p+=g.length}null!=A&&(this._audioStashedLastSample=A);var m=r[0].dts-this._dtsBase;if(this._audioNextDts)i=m-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())i=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(d=!0);else{var v=this._audioSegmentInfoList.getLastSampleBefore(m);if(null!=v){var y=m-(v.originalDts+v.duration);y<=3&&(y=0);var b=v.dts+v.duration+y;i=m-b}else i=0}if(d){var _=m-i,w=this._videoSegmentInfoList.getLastSegmentBefore(m);if(null!=w&&w.beginDts<_){var x=Ae.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(x){var C=w.beginDts,S=_-w.beginDts;u.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(C,", duration: ").concat(S)),r.unshift({unit:x,dts:C,pts:C}),p+=x.byteLength}}else d=!1}for(var E=[],O=0;O=1?E[E.length-1].duration:Math.floor(s);var N=!1,j=null;if(L>1.5*s&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!k.safari){N=!0;var F=Math.abs(L-s),R=Math.ceil(F/s),U=I+s;u.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+"dts: ".concat(I+L," ms, expected: ").concat(I+Math.round(s)," ms, ")+"delta: ".concat(Math.round(F)," ms, generate: ").concat(R," frames"));var H=Ae.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==H&&(u.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),H=M),j=[];for(var Q=0;Q0){var z=j[j.length-1];z.duration=K-z.dts}var V={dts:K,pts:K,cts:0,unit:H,size:H.byteLength,duration:0,originalDts:T,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};j.push(V),p+=V.size,U+=s}var W=j[j.length-1];W.duration=I+L-W.dts,L=Math.round(s)}E.push({dts:I,pts:I,cts:0,unit:B.unit,size:B.unit.byteLength,duration:L,originalDts:T,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),N&&E.push.apply(E,j)}l?f=new Uint8Array(p):(f=new Uint8Array(p),f[0]=p>>>24&255,f[1]=p>>>16&255,f[2]=p>>>8&255,f[3]=255&p,f.set(fe.types.mdat,4));for(var G=0;G1&&(h=r.pop(),d-=h.length),null!=this._videoStashedLastSample){var f=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(f),d+=f.length}null!=h&&(this._videoStashedLastSample=h);var p=r[0].dts-this._dtsBase;if(this._videoNextDts)i=p-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())i=0;else{var A=this._videoSegmentInfoList.getLastSampleBefore(p);if(null!=A){var g=p-(A.originalDts+A.duration);g<=3&&(g=0);var m=A.dts+A.duration+g;i=p-m}else i=0}for(var v=new me,y=[],b=0;b=1?y[y.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(x){var M=new ge(C,k,E,_.dts,!0);M.fileposition=_.fileposition,v.appendSyncPoint(M)}y.push({dts:C,pts:k,cts:S,units:_.units,size:_.length,isKeyframe:x,duration:E,originalDts:w,flags:{isLeading:0,dependsOn:x?2:1,isDependedOn:x?1:0,hasRedundancy:0,isNonSync:x?0:1}})}u=new Uint8Array(d),u[0]=d>>>24&255,u[1]=d>>>16&255,u[2]=d>>>8&255,u[3]=255&d,u.set(fe.types.mdat,4);for(var T=0;T0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((r=de.probe(e)).match){this._demuxer=new de(r,this._config),this._remuxer||(this._remuxer=new _e(this._config));var o=this._mediaDataSource;void 0==o.duration||isNaN(o.duration)||(this._demuxer.overridedDuration=o.duration),"boolean"===typeof o.hasAudio&&(this._demuxer.overridedHasAudio=o.hasAudio),"boolean"===typeof o.hasVideo&&(this._demuxer.overridedHasVideo=o.hasVideo),this._demuxer.timestampBase=o.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),i=this._demuxer.parseChunks(e,t)}else r=null,u.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then((function(){n._internalAbort()})),this._emitter.emit(xe.DEMUX_ERROR,le.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}},{key:"_onMediaInfo",value:function(e){var t=this;null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Y.prototype));var n=Object.assign({},e);Object.setPrototypeOf(n,Y.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=n,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then((function(){var e=t._pendingSeekTime;t._pendingSeekTime=null,t.seek(e)}))}},{key:"_onMetaDataArrived",value:function(e){this._emitter.emit(xe.METADATA_ARRIVED,e)}},{key:"_onScriptDataArrived",value:function(e){this._emitter.emit(xe.SCRIPTDATA_ARRIVED,e)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(e){var t=e,n=t+1;n0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(xe.RECOMMEND_SEEKPOINT,r)}}},{key:"_enableStatisticsReporter",value:function(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(e){var t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(xe.MEDIA_INFO,n)}},{key:"_reportStatisticsInfo",value:function(){var e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(xe.STATISTICS_INFO,e)}}]),e}(),Se=Ce,ke=function(e){var t=null,n=A.bind(this);function r(t,n){var r={msg:xe.INIT_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function i(t,n){var r={msg:xe.MEDIA_SEGMENT,data:{type:t,data:n}};e.postMessage(r,[n.data])}function o(){var t={msg:xe.LOADING_COMPLETE};e.postMessage(t)}function s(){var t={msg:xe.RECOVERED_EARLY_EOF};e.postMessage(t)}function l(t){var n={msg:xe.MEDIA_INFO,data:t};e.postMessage(n)}function c(t){var n={msg:xe.METADATA_ARRIVED,data:t};e.postMessage(n)}function u(t){var n={msg:xe.SCRIPTDATA_ARRIVED,data:t};e.postMessage(n)}function d(t){var n={msg:xe.STATISTICS_INFO,data:t};e.postMessage(n)}function h(t,n){e.postMessage({msg:xe.IO_ERROR,data:{type:t,info:n}})}function f(t,n){e.postMessage({msg:xe.DEMUX_ERROR,data:{type:t,info:n}})}function p(t){e.postMessage({msg:xe.RECOMMEND_SEEKPOINT,data:t})}function A(t,n){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:n}})}a.install(),e.addEventListener("message",(function(a){switch(a.data.cmd){case"init":t=new Se(a.data.param[0],a.data.param[1]),t.on(xe.IO_ERROR,h.bind(this)),t.on(xe.DEMUX_ERROR,f.bind(this)),t.on(xe.INIT_SEGMENT,r.bind(this)),t.on(xe.MEDIA_SEGMENT,i.bind(this)),t.on(xe.LOADING_COMPLETE,o.bind(this)),t.on(xe.RECOVERED_EARLY_EOF,s.bind(this)),t.on(xe.MEDIA_INFO,l.bind(this)),t.on(xe.METADATA_ARRIVED,c.bind(this)),t.on(xe.SCRIPTDATA_ARRIVED,u.bind(this)),t.on(xe.STATISTICS_INFO,d.bind(this)),t.on(xe.RECOMMEND_SEEKPOINT,p.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(a.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":var A=a.data.param;X.applyConfig(A),!0===A.enableCallback?X.addLogListener(n):X.removeLogListener(n);break}}))},Ee=ke,Oe=function(){function e(t,i){if(Object(r["a"])(this,e),this.TAG="Transmuxer",this._emitter=new l.a,i.enableWorker&&"undefined"!==typeof Worker)try{var o=n("0r65");this._worker=o(Ee),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[t,i]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},X.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:X.getConfig()})}catch(s){u.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Se(t,i)}else this._controller=new Se(t,i);if(this._controller){var a=this._controller;a.on(xe.IO_ERROR,this._onIOError.bind(this)),a.on(xe.DEMUX_ERROR,this._onDemuxError.bind(this)),a.on(xe.INIT_SEGMENT,this._onInitSegment.bind(this)),a.on(xe.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),a.on(xe.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),a.on(xe.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),a.on(xe.MEDIA_INFO,this._onMediaInfo.bind(this)),a.on(xe.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),a.on(xe.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),a.on(xe.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),a.on(xe.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(i["a"])(e,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),X.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"hasWorker",value:function(){return null!=this._worker}},{key:"open",value:function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}},{key:"close",value:function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}},{key:"seek",value:function(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}},{key:"pause",value:function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}},{key:"resume",value:function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}},{key:"_onInitSegment",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(xe.INIT_SEGMENT,e,t)}))}},{key:"_onMediaSegment",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(xe.MEDIA_SEGMENT,e,t)}))}},{key:"_onLoadingComplete",value:function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(xe.LOADING_COMPLETE)}))}},{key:"_onRecoveredEarlyEof",value:function(){var e=this;Promise.resolve().then((function(){e._emitter.emit(xe.RECOVERED_EARLY_EOF)}))}},{key:"_onMediaInfo",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(xe.MEDIA_INFO,e)}))}},{key:"_onMetaDataArrived",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(xe.METADATA_ARRIVED,e)}))}},{key:"_onScriptDataArrived",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(xe.SCRIPTDATA_ARRIVED,e)}))}},{key:"_onStatisticsInfo",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(xe.STATISTICS_INFO,e)}))}},{key:"_onIOError",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(xe.IO_ERROR,e,t)}))}},{key:"_onDemuxError",value:function(e,t){var n=this;Promise.resolve().then((function(){n._emitter.emit(xe.DEMUX_ERROR,e,t)}))}},{key:"_onRecommendSeekpoint",value:function(e){var t=this;Promise.resolve().then((function(){t._emitter.emit(xe.RECOMMEND_SEEKPOINT,e)}))}},{key:"_onLoggingConfigChanged",value:function(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}},{key:"_onWorkerMessage",value:function(e){var t=e.data,n=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case xe.INIT_SEGMENT:case xe.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case xe.LOADING_COMPLETE:case xe.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case xe.MEDIA_INFO:Object.setPrototypeOf(n,Y.prototype),this._emitter.emit(t.msg,n);break;case xe.METADATA_ARRIVED:case xe.SCRIPTDATA_ARRIVED:case xe.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case xe.IO_ERROR:case xe.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case xe.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":u.emitter.emit("log",n.type,n.logcat);break;default:break}}}]),e}(),Be=Oe,Me={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Te=Me,Ie=function(){function e(t){Object(r["a"])(this,e),this.TAG="MSEController",this._config=t,this._emitter=new l.a,this._config.isLive&&void 0==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new ve}return Object(i["a"])(e,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){if(this._mediaSource)throw new g("MediaSource has been attached to an HTMLMediaElement!");var t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var e=this._mediaSource;for(var t in this._sourceBuffers){var n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;var r=this._sourceBuffers[t];if(r){if("closed"!==e.readyState){try{e.removeSourceBuffer(r)}catch(i){u.e(this.TAG,i.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if("open"===e.readyState)try{e.endOfStream()}catch(i){u.e(this.TAG,i.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}},{key:"appendInitSegment",value:function(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);var n=e,r="".concat(n.container);n.codec&&n.codec.length>0&&(r+=";codecs=".concat(n.codec));var i=!1;if(u.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])u.v(this.TAG,"Notice: ".concat(n.type," mimeType changed, origin: ").concat(this._mimeTypes[n.type],", target: ").concat(r));else{i=!0;try{var o=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);o.addEventListener("error",this.e.onSourceBufferError),o.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(a){return u.e(this.TAG,a.message),void this._emitter.emit(Te.ERROR,{code:a.code,msg:a.message})}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),i||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),k.safari&&"audio/mpeg"===n.container&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(e){var t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var n=this._sourceBuffers[t.type];!n||n.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}},{key:"seek",value:function(e){for(var t in this._sourceBuffers)if(this._sourceBuffers[t]){var n=this._sourceBuffers[t];if("open"===this._mediaSource.readyState)try{n.abort()}catch(l){u.e(this.TAG,l.message)}this._idrList.clear();var r=this._pendingSegments[t];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(var i=0;i=1&&e-r.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var e=this._mediaElement.currentTime;for(var t in this._sourceBuffers){var n=this._sourceBuffers[t];if(n){for(var r=n.buffered,i=!1,o=0;o=this._config.autoCleanupMaxBackwardDuration){i=!0;var l=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:a,end:l})}}else s0&&(isNaN(t)||n>t)&&(u.v(this.TAG,"Update MediaSource duration from ".concat(t," to ").concat(n)),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}}},{key:"_doRemoveRanges",value:function(){for(var e in this._pendingRemoveRanges)if(this._sourceBuffers[e]&&!this._sourceBuffers[e].updating){var t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];while(n.length&&!t.updating){var r=n.shift();t.remove(r.start,r.end)}}}},{key:"_doAppendSegments",value:function(){var e=this._pendingSegments;for(var t in e)if(this._sourceBuffers[t]&&!this._sourceBuffers[t].updating&&e[t].length>0){var n=e[t].shift();if(n.timestampOffset){var r=this._sourceBuffers[t].timestampOffset,i=n.timestampOffset/1e3,o=Math.abs(r-i);o>.1&&(u.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(r," to ").concat(i)),this._sourceBuffers[t].timestampOffset=i),delete n.timestampOffset}if(!n.data||0===n.data.byteLength)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,"video"===t&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(a){this._pendingSegments[t].unshift(n),22===a.code?(this._isBufferFull||this._emitter.emit(Te.BUFFER_FULL),this._isBufferFull=!0):(u.e(this.TAG,a.message),this._emitter.emit(Te.ERROR,{code:a.code,msg:a.message}))}}}},{key:"_onSourceOpen",value:function(){if(u.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){var e=this._pendingSourceBufferInit;while(e.length){var t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Te.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){u.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){u.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}},{key:"_hasPendingSegments",value:function(){var e=this._pendingSegments;return e.video.length>0||e.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}},{key:"_onSourceBufferUpdateEnd",value:function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Te.UPDATE_END)}},{key:"_onSourceBufferError",value:function(e){u.e(this.TAG,"SourceBuffer Error: ".concat(e))}}]),e}(),Le=Ie,De={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Pe={NETWORK_EXCEPTION:b.EXCEPTION,NETWORK_STATUS_CODE_INVALID:b.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:b.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:b.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:le.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:le.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:le.CODEC_UNSUPPORTED},Ne=function(){function e(t,n){if(Object(r["a"])(this,e),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new l.a,this._config=Q(),"object"===typeof n&&Object.assign(this._config,n),"flv"!==t.type.toLowerCase())throw new m("FlvPlayer requires an flv MediaDataSource input!");!0===t.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=t,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var i=k.chrome&&(k.version.major<50||50===k.version.major&&k.version.build<2661);this._alwaysSeekKeyframe=!!(i||k.msedge||k.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(i["a"])(e,[{key:"destroy",value:function(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(e,t){var n=this;e===W.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then((function(){n._emitter.emit(W.MEDIA_INFO,n.mediaInfo)})):e===W.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then((function(){n._emitter.emit(W.STATISTICS_INFO,n.statisticsInfo)})),this._emitter.addListener(e,t)}},{key:"off",value:function(e,t){this._emitter.removeListener(e,t)}},{key:"attachMediaElement",value:function(e){var t=this;if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Le(this._config),this._msectl.on(Te.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Te.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Te.SOURCE_OPEN,(function(){t._mseSourceOpened=!0,t._hasPendingLoad&&(t._hasPendingLoad=!1,t.load())})),this._msectl.on(Te.ERROR,(function(e){t._emitter.emit(W.ERROR,De.MEDIA_ERROR,Pe.MEDIA_MSE_ERROR,e)})),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(n){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}},{key:"load",value:function(){var e=this;if(!this._mediaElement)throw new g("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new g("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Be(this._mediaDataSource,this._config),this._transmuxer.on(xe.INIT_SEGMENT,(function(t,n){e._msectl.appendInitSegment(n)})),this._transmuxer.on(xe.MEDIA_SEGMENT,(function(t,n){if(e._msectl.appendMediaSegment(n),e._config.lazyLoad&&!e._config.isLive){var r=e._mediaElement.currentTime;n.info.endDts>=1e3*(r+e._config.lazyLoadMaxDuration)&&null==e._progressChecker&&(u.v(e.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),e._suspendTransmuxer())}})),this._transmuxer.on(xe.LOADING_COMPLETE,(function(){e._msectl.endOfStream(),e._emitter.emit(W.LOADING_COMPLETE)})),this._transmuxer.on(xe.RECOVERED_EARLY_EOF,(function(){e._emitter.emit(W.RECOVERED_EARLY_EOF)})),this._transmuxer.on(xe.IO_ERROR,(function(t,n){e._emitter.emit(W.ERROR,De.NETWORK_ERROR,t,n)})),this._transmuxer.on(xe.DEMUX_ERROR,(function(t,n){e._emitter.emit(W.ERROR,De.MEDIA_ERROR,t,{code:-1,msg:n})})),this._transmuxer.on(xe.MEDIA_INFO,(function(t){e._mediaInfo=t,e._emitter.emit(W.MEDIA_INFO,Object.assign({},t))})),this._transmuxer.on(xe.METADATA_ARRIVED,(function(t){e._emitter.emit(W.METADATA_ARRIVED,t)})),this._transmuxer.on(xe.SCRIPTDATA_ARRIVED,(function(t){e._emitter.emit(W.SCRIPTDATA_ARRIVED,t)})),this._transmuxer.on(xe.STATISTICS_INFO,(function(t){e._statisticsInfo=e._fillStatisticsInfo(t),e._emitter.emit(W.STATISTICS_INFO,Object.assign({},e._statisticsInfo))})),this._transmuxer.on(xe.RECOMMEND_SEEKPOINT,(function(t){e._mediaElement&&!e._config.accurateSeek&&(e._requestSetTime=!0,e._mediaElement.currentTime=t/1e3)})),this._transmuxer.open()))}},{key:"unload",value:function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){return Object.assign({},this._mediaInfo)}},{key:"statisticsInfo",get:function(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}},{key:"_fillStatisticsInfo",value:function(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var i=this._mediaElement.getVideoPlaybackQuality();n=i.totalVideoFrames,r=i.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}},{key:"_onmseUpdateEnd",value:function(){if(this._config.lazyLoad&&!this._config.isLive){for(var e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;r=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(u.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}},{key:"_onmseBufferFull",value:function(){u.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}},{key:"_suspendTransmuxer",value:function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}},{key:"_checkProgressAndResume",value:function(){for(var e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1,r=0;r=i&&e=o-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(u.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(e){for(var t=this._mediaElement.buffered,n=0;n=r&&e0){var i=this._mediaElement.buffered.start(0);(i<1&&e0&&t.currentTime0){var r=n.start(0);if(r<1&&t0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(e){this._mediaElement.volume=e}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(e){this._mediaElement.muted=e}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}},{key:"mediaInfo",get:function(){var e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}},{key:"statisticsInfo",get:function(){var e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;var t=!0,n=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){var i=this._mediaElement.getVideoPlaybackQuality();n=i.totalVideoFrames,r=i.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}},{key:"_onvLoadedMetadata",value:function(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(W.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(W.STATISTICS_INFO,this.statisticsInfo)}}]),e}(),Re=Fe;function Ue(e,t){var n=e;if(null==n||"object"!==typeof n)throw new m("MediaDataSource must be an javascript object!");if(!n.hasOwnProperty("type"))throw new m("MediaDataSource must has type field to indicate video file type!");switch(n.type){case"flv":return new je(n,t);default:return new Re(n,t)}}function He(){return z.supportMSEH264Playback()}function Qe(){return z.getFeatureList()}a.install();var Ke={};Ke.createPlayer=Ue,Ke.isSupported=He,Ke.getFeatureList=Qe,Ke.BaseLoader=_,Ke.LoaderStatus=y,Ke.LoaderErrors=b,Ke.Events=W,Ke.ErrorTypes=De,Ke.ErrorDetails=Pe,Ke.FlvPlayer=je,Ke.NativePlayer=Re,Ke.LoggingControl=X,Object.defineProperty(Ke,"version",{enumerable:!0,get:function(){return"__VERSION__"}});t["a"]=Ke},GVMX:function(e,t,n){var r=n("JEkh"),i=r.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=i},GdRQ:function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isMac=y,t.isWindows=b,t.isIOS=_,t.isSafari=w,t.isIE=x,t.isEdge=C,t.isFirefox=S,t.hasScrollbarGutter=t.supportsImageMetadata=t.supportsCursorURIs=t.dragThreshold=t.isTouchDevice=void 0;var i=a(n("Lo0S"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}var s="ontouchstart"in document.documentElement||void 0!==document.ontouchstart||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;t.isTouchDevice=s,window.addEventListener("touchstart",(function e(){t.isTouchDevice=s=!0,window.removeEventListener("touchstart",e,!1)}),!1);var l=10*(window.devicePixelRatio||1);t.dragThreshold=l;var c=!1;try{var u=document.createElement("canvas");u.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',0===u.style.cursor.indexOf("url")?(i.Info("Data URI scheme cursor supported"),c=!0):i.Warn("Data URI scheme cursor not supported")}catch(k){i.Error("Data URI scheme cursor test exception: "+k)}var d=c;t.supportsCursorURIs=d;var h=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),h=!0}catch(E){}var f=h;t.supportsImageMetadata=f;var p=!0;try{var A=document.createElement("div");A.style.visibility="hidden",A.style.overflow="scroll",document.body.appendChild(A);var g=document.createElement("div");A.appendChild(g);var m=A.offsetWidth-g.offsetWidth;A.parentNode.removeChild(A),p=0!=m}catch(k){i.Error("Scrollbar test exception: "+k)}var v=p;function y(){return navigator&&!!/mac/i.exec(navigator.platform)}function b(){return navigator&&!!/win/i.exec(navigator.platform)}function _(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function w(){return navigator&&-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")}function x(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function C(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function S(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}t.hasScrollbarGutter=v},GeKi:function(e,t,n){var r=n("bYtY"),i=n("6Ic6"),o=n("IwbS"),a=n("y+Vt"),s=n("sK/D"),l=s.createClipPath,c=["itemStyle"],u=["emphasis","itemStyle"],d=["color","color0","borderColor","borderColor0"],h=i.extend({type:"candlestick",render:function(e,t,n){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,r){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s,c=t.getItemLayout(n);if(a&&A(l,c))return;s=p(c,n,!0),o.initProps(s,{shape:{points:c.ends}},e,n),g(s,t,n,i),r.add(s),t.setItemGraphicEl(n,s)}})).update((function(s,c){var u=n.getItemGraphicEl(c);if(t.hasValue(s)){var d=t.getItemLayout(s);a&&A(l,d)?r.remove(u):(u?o.updateProps(u,{shape:{points:d.ends}},e,s):u=p(d,s),g(u,t,s,i),r.add(u),t.setItemGraphicEl(s,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),y(e,this.group);var t=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var o,a=r.getItemLayout(n);o=p(a,n),g(o,r,n,i),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(e,t){y(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:r.noop}),f=a.extend({type:"normalCandlestickBox",shape:{},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]))}});function p(e,t,n){var r=e.ends;return new f({shape:{points:n?m(r,e):r},z2:100})}function A(e,t){for(var n=!0,r=0;r0?"P":"N",o=r.getVisual("borderColor"+i)||r.getVisual("color"+i),a=n.getModel(c).getItemStyle(d);t.useStyle(a),t.style.fill=null,t.style.stroke=o}var _=h;e.exports=_},Gev7:function(e,t,n){var r=n("bYtY"),i=n("K2GJ"),o=n("1bdT"),a=n("ni6a");function s(e){for(var t in e=e||{},o.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new i(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return r.contain(n[0],n[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?o.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new i(e,this),this.dirty(!1),this},calculateTextPosition:null},r.inherits(s,o),r.mixin(s,a);var l=s;e.exports=l},GrKN:function(e,t,n){var r=n("e8zy"),i=n("vGzR");function o(e,t){var n=new i(t);return n.process(e)}for(var a in t=e.exports=o,t.FilterCSS=i,r)t[a]=r[a];"undefined"!==typeof window&&(window.filterCSS=e.exports)},GrNh:function(e,t,n){var r=n("bYtY"),i=n("IwbS"),o=n("6Ic6");function a(e,t,n,r){var i=t.getData(),o=this.dataIndex,a=i.getName(o),l=t.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:e,name:a,seriesId:t.id}),i.each((function(e){s(i.getItemGraphicEl(e),i.getItemLayout(e),t.isSelected(i.getName(e)),l,n)}))}function s(e,t,n,r,i){var o=(t.startAngle+t.endAngle)/2,a=Math.cos(o),s=Math.sin(o),l=n?r:0,c=[a*l,s*l];i?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function l(e,t){i.Group.call(this);var n=new i.Sector({z2:2}),r=new i.Polyline,o=new i.Text;this.add(n),this.add(r),this.add(o),this.updateData(e,t,!0)}var c=l.prototype;c.updateData=function(e,t,n){var o=this.childAt(0),a=this.childAt(1),l=this.childAt(2),c=e.hostModel,u=e.getItemModel(t),d=e.getItemLayout(t),h=r.extend({},d);h.label=null;var f=c.getShallow("animationTypeUpdate");if(n){o.setShape(h);var p=c.getShallow("animationType");"scale"===p?(o.shape.r=d.r0,i.initProps(o,{shape:{r:d.r}},c,t)):(o.shape.endAngle=d.startAngle,i.updateProps(o,{shape:{endAngle:d.endAngle}},c,t))}else"expansion"===f?o.setShape(h):i.updateProps(o,{shape:h},c,t);var A=e.getItemVisual(t,"color");o.useStyle(r.defaults({lineJoin:"bevel",fill:A},u.getModel("itemStyle").getItemStyle())),o.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&o.attr("cursor",g),s(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var m=!n&&"transition"===f;this._updateLabel(e,t,m),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var n=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===t?(a.ignore=a.hoverIgnore,l.ignore=l.hoverIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:d.r+c.get("hoverOffset")}},300,"elasticOut"))):(a.ignore=a.normalIgnore,l.ignore=l.normalIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:d.r}},300,"elasticOut")))},i.setHoverStyle(this)},c._updateLabel=function(e,t,n){var r=this.childAt(1),o=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,u=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))o.ignore=o.normalIgnore=o.hoverIgnore=r.ignore=r.normalIgnore=r.hoverIgnore=!0;else{var d={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},h={x:c.x,y:c.y};n?(i.updateProps(r,{shape:d},a,t),i.updateProps(o,{style:h},a,t)):(r.attr({shape:d}),o.attr({style:h})),o.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var f=s.getModel("label"),p=s.getModel("emphasis.label"),A=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");i.setLabelStyle(o.style,o.hoverStyle={},f,p,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!f.get("show"),o.hoverIgnore=!p.get("show"),r.ignore=r.normalIgnore=!A.get("show"),r.hoverIgnore=!g.get("show"),r.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),r.setStyle(A.getModel("lineStyle").getLineStyle()),r.hoverStyle=g.getModel("lineStyle").getLineStyle();var m=A.get("smooth");m&&!0===m&&(m=.4),r.setShape({smooth:m})}},r.inherits(l,i.Group);var u=o.extend({type:"pie",init:function(){var e=new i.Group;this._sectorGroup=e},render:function(e,t,n,i){if(!i||i.from!==this.uid){var o=e.getData(),s=this._data,c=this.group,u=t.get("animation"),d=!s,h=e.get("animationType"),f=e.get("animationTypeUpdate"),p=r.curry(a,this.uid,e,u,n),A=e.get("selectedMode");if(o.diff(s).add((function(e){var t=new l(o,e);d&&"scale"!==h&&t.eachChild((function(e){e.stopAnimation(!0)})),A&&t.on("click",p),o.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);d||"transition"===f||n.eachChild((function(e){e.stopAnimation(!0)})),n.updateData(o,e),n.off("click"),A&&n.on("click",p),c.add(n),o.setItemGraphicEl(e,n)})).remove((function(e){var t=s.getItemGraphicEl(e);c.remove(t)})).execute(),u&&o.count()>0&&(d?"scale"!==h:"transition"!==f)){for(var g=o.getItemLayout(0),m=1;isNaN(g.startAngle)&&m=r.r0}}}),d=u;e.exports=d},Gytx:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l=a&&rc?"true":"false","aria-posinset":c+1,"aria-setsize":u,tabIndex:i?-1:0},a.a.createElement("div",{className:"".concat(o,"-first")},h),a.a.createElement("div",{className:"".concat(o,"-second")},h)));return l&&(f=l(f,this.props)),f}}]),n}(a.a.Component);function x(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 C(e){for(var t=1;t0&&!l||t===g["a"].RIGHT&&c>0&&l?(c-=o?.5:1,r.changeValue(c),e.preventDefault()):t===g["a"].LEFT&&cc/2||!o&&t-l3&&(i=n.call(i,1));for(var a=t.length,s=0;s4&&(i=n.call(i,1,i.length-1));for(var a=i[i.length-1],s=t.length,l=0;l=0?"p":"n",L=x;if(_&&(i[u][T]||(i[u][T]={p:x,n:x}),L=i[u][T][I]),"radius"===p.dim){var D=p.dataToRadius(M)-x,P=r.dataToAngle(T);Math.abs(D)=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)}});e.exports=i},Hxpc:function(e,t,n){var r=n("bYtY"),i=n("4NO4"),o=n("bLfw"),a=n("Qxkt"),s=n("cCMj"),l=n("7uqq"),c=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){o.prototype.init.apply(this,arguments),i.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=r.reduce(e.regions||[],(function(e,n){return n.name&&e.set(n.name,new a(n,t)),e}),r.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,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",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new a(null,this,this.ecModel)},getFormattedLabel:function(e,t){var n=this.getRegionModel(e),r=n.get("label"+("normal"===t?".":t+".")+"formatter"),i={name:e};return"function"===typeof r?(i.status=t,r(i)):"string"===typeof r?r.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});r.mixin(c,s);var u=c;e.exports=u},"I+77":function(e,t,n){var r=n("ProS");n("h54F"),n("lwQL"),n("10cm");var i=n("Z1r0"),o=n("f5Yq"),a=n("KUOm"),s=n("3m61"),l=n("01d+"),c=n("rdor"),u=n("WGYa"),d=n("ewwo");r.registerProcessor(i),r.registerVisual(o("graph","circle",null)),r.registerVisual(a),r.registerVisual(s),r.registerLayout(l),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),r.registerLayout(u),r.registerCoordinateSystem("graphView",{create:d})},"I+Bx":function(e,t,n){var r=n("bYtY"),i=n("eIcI"),o=n("ieMj"),a=n("OELB"),s=n("aX7z"),l=s.getScaleExtent,c=s.niceScaleExtent,u=n("IDmD"),d=n("jCoz");function h(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=r.map(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new i(n,"log"===e.get("axisType")?new d:new o);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}h.prototype.getIndicatorAxes=function(){return this._indicatorAxes},h.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},h.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,i=this.cx+e*Math.cos(r),o=this.cy-e*Math.sin(r);return[i,o]},h.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 i,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;ln[0]&&isFinite(A)&&isFinite(n[0]))}else{var f=i.getTicks().length-1;f>o&&(h=s(h));var p=Math.ceil(n[1]/h)*h,A=a.round(p-h*o);i.setExtent(A,p),i.setInterval(h)}}))},h.dimensions=[],h.create=function(e,t){var n=[];return e.eachComponent("radar",(function(r){var i=new h(r,e,t);n.push(i),r.coordinateSystem=i})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])})),n},u.register("radar",h);var f=h;e.exports=f},"I3/A":function(e,t,n){var r=n("bYtY"),i=n("YXkt"),o=n("c2i1"),a=n("Mdki"),s=n("sdST"),l=n("IDmD"),c=n("MwEJ");function u(e,t,n,u,d){for(var h=new o(u),f=0;f "+y)),g++)}var b,_=n.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)b=c(e,n);else{var w=l.get(_),x=w&&"view"!==w.type&&w.dimensions||[];r.indexOf(x,"value")<0&&x.concat(["value"]);var C=s(e,{coordDimensions:x});b=new i(C,n),b.initData(e)}var S=new i(["value"],n);return S.initData(A,p),d&&d(b,S),a({mainData:b,struct:h,structAttr:"graph",datas:{node:b,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),h.update(),h}e.exports=u},I8Z2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return m}));var r=n("q1tI"),i=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)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=r["createContext"](null),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.render=function(){return r["createElement"](o.Provider,{value:this.props.store},this.props.children)},t}(r["Component"]),s=n("Gytx"),l=n.n(s),c=n("2mql"),u=n.n(c),d=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)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(){return h=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis._ux||y(t-this._yi)>this._uy||this._len<5;return this.addData(c.L,e,t),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),n&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,n,r,i,o){return this.addData(c.C,e,t,n,r,i,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,r,i,o):this._ctx.bezierCurveTo(e,t,n,r,i,o)),this._xi=i,this._yi=o,this},quadraticCurveTo:function(e,t,n,r){return this.addData(c.Q,e,t,n,r),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},arc:function(e,t,n,r,i,o){return this.addData(c.A,e,t,n,n,r,i-r,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=g(i)*n+e,this._yi=m(i)*n+t,this},arcTo:function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},rect:function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(c.R,e,t,n,r),this},closePath:function(){this.addData(c.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,n),e.closePath()),this._xi=t,this._yi=n,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,n=0;nt.length&&(this._expandData(),t=this.data);for(var n=0;n0&&f<=e||u<0&&f>=e||0===u&&(d>0&&g<=t||d<0&&g>=t))r=this._dashIdx,n=a[r],f+=u*n,g+=d*n,this._dashIdx=(r+1)%m,u>0&&fl||d>0&&gc||s[r%2?"moveTo":"lineTo"](u>=0?p(f,e):A(f,e),d>=0?p(g,t):A(g,t));u=f-e,d=g-t,this._dashOffset=-v(u*u+d*d)},_dashedBezierTo:function(e,t,n,i,o,a){var s,l,c,u,d,h=this._dashSum,f=this._dashOffset,p=this._lineDash,A=this._ctx,g=this._xi,m=this._yi,y=r.cubicAt,b=0,_=this._dashIdx,w=p.length,x=0;for(f<0&&(f=h+f),f%=h,s=0;s<1;s+=.1)l=y(g,e,n,o,s+.1)-y(g,e,n,o,s),c=y(m,t,i,a,s+.1)-y(m,t,i,a,s),b+=v(l*l+c*c);for(;_f)break;s=(x-f)/b;while(s<=1)u=y(g,e,n,o,s),d=y(m,t,i,a,s),_%2?A.moveTo(u,d):A.lineTo(u,d),s+=p[_]/b,_=(_+1)%w;_%2!==0&&A.lineTo(o,a),l=o-u,c=a-d,this._dashOffset=-v(l*l+c*c)},_dashedQuadraticTo:function(e,t,n,r){var i=n,o=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,o)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,b&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,s=0,l=0;ll||y(a-i)>u||h===d-1)&&(e.lineTo(o,a),r=o,i=a);break;case c.C:e.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),r=s[h-2],i=s[h-1];break;case c.Q:e.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),r=s[h-2],i=s[h-1];break;case c.A:var p=s[h++],A=s[h++],v=s[h++],b=s[h++],_=s[h++],w=s[h++],x=s[h++],C=s[h++],S=v>b?v:b,k=v>b?1:v/b,E=v>b?b/v:1,O=Math.abs(v-b)>.001,B=_+w;O?(e.translate(p,A),e.rotate(x),e.scale(k,E),e.arc(0,0,S,_,B,1-C),e.scale(1/k,1/E),e.rotate(-x),e.translate(-p,-A)):e.arc(p,A,S,_,B,1-C),1===h&&(t=g(_)*v+p,n=m(_)*b+A),r=g(B)*v+p,i=m(B)*b+A;break;case c.R:t=r=s[h],n=i=s[h+1],e.rect(s[h++],s[h++],s[h++],s[h++]);break;case c.Z:e.closePath(),r=t,i=n}}}},_.CMD=c;var w=_;e.exports=w},IUWy:function(e,t){var n={};function r(e,t){n[e]=t}function i(e){return n[e]}t.register=r,t.get=i},IWNH:function(e,t,n){var r=n("T4UG"),i=n("Bsck"),o=n("7aKB"),a=o.encodeHTML,s=n("Qxkt"),l=r.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new s(n,this,this.ecModel),o=i.createTree(t,this,{},a);function a(e){e.wrapMethod("getItemModel",(function(e,t){var n=o.getNodeByDataIndex(t);return n.children.length&&n.isExpand||(e.parentModel=r),e}))}var l=0;o.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var c=e.expandAndCollapse,u=c&&e.initialTreeDepth>=0?e.initialTreeDepth:l;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<=u})),o.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,n=t.root.children[0],r=t.getNodeByDataIndex(e),i=r.getValue(),o=r.name;while(r&&r!==n)o=r.parentNode.name+"."+o,r=r.parentNode;return a(o+(isNaN(i)||null==i?"":" : "+i))},defaultOption:{zlevel:0,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",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},IWp7:function(e,t,n){var r=n("bYtY"),i=n("OELB"),o=n("7aKB"),a=n("lE7J"),s=n("ieMj"),l=s.prototype,c=Math.ceil,u=Math.floor,d=1e3,h=60*d,f=60*h,p=24*f,A=function(e,t,n,r){while(n>>1;e[i][1]n&&(s=n);var l=m.length,d=A(m,s,0,l),h=m[Math.min(d,l-1)],f=h[1];if("year"===h[0]){var p=o/f,g=i.nice(p/e,!0);f*=g}var v=this.getSetting("useUTC")?0:60*new Date(+r[0]||+r[1]).getTimezoneOffset()*1e3,y=[Math.round(c((r[0]-v)/f)*f+v),Math.round(u((r[1]-v)/f)*f+v)];a.fixExtent(y,r),this._stepLvl=h,this._interval=f,this._niceExtent=y},parse:function(e){return+i.parseDate(e)}});r.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var m=[["hh:mm:ss",d],["hh:mm:ss",5*d],["hh:mm:ss",10*d],["hh:mm:ss",15*d],["hh:mm:ss",30*d],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",5*h],["hh:mm\nMM-dd",10*h],["hh:mm\nMM-dd",15*h],["hh:mm\nMM-dd",30*h],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",2*f],["hh:mm\nMM-dd",6*f],["hh:mm\nMM-dd",12*f],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];g.create=function(e){return new g({useUTC:e.ecModel.get("useUTC")})};var v=g;e.exports=v},IXuL:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("MwEJ")),o=n("T4UG"),a=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},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}});e.exports=a},IXyC:function(e,t,n){var r=n("bYtY"),i=n("bLfw");n("3zoK");var o=i.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,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},init:function(){i.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&r.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},setAxisExpand:function(e){r.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=r.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);r.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=o},ItGF:function(e,t){var n={};n="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:i(navigator.userAgent);var r=n;function i(e){var t={},n={},r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(e);return r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11),domSupported:"undefined"!==typeof document}}e.exports=r},ItS6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=n("eP3c"),i=o(n("1q3G"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;nthis.chunkSize&&(this.chunkSize=e,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=e;var t=(0,r.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=e)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,r.inflateReset)(this.strm)}}]),e}();t["default"]=c},Itpr:function(e,t,n){var r=n("+TT/");function i(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,n,r=[e];while(t=r.pop())if(n=t.children,t.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var a=n[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}function o(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){u(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=d(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function a(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:g}function l(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n}function c(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function d(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,d=s.hierNode.modifier;while(s=h(s),o=f(o),s&&o){i=h(i),a=f(a),i.hierNode.ancestor=e;var g=s.hierNode.prelim+d-o.hierNode.prelim-c+r(s,o);g>0&&(A(p(s,e,n),e,g),c+=g,l+=g),d+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=i.hierNode.modifier,u+=a.hierNode.modifier}s&&!h(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!f(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=e)}return n}function h(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function f(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function A(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 g(e,t){return e.parentNode===t.parentNode?1:2}t.init=i,t.firstWalk=o,t.secondWalk=a,t.separation=s,t.radialCoordinate=l,t.getViewRect=c},IwbS:function(e,t,n){var r=n("bYtY"),i=n("NC18"),o=n("Qe9p"),a=n("Fofx"),s=n("QBsz"),l=n("y+Vt"),c=n("DN4a"),u=n("Dagg");t.Image=u;var d=n("4fz+");t.Group=d;var h=n("dqUG");t.Text=h;var f=n("2fw6");t.Circle=f;var p=n("SqI9");t.Sector=p;var A=n("RXMa");t.Ring=A;var g=n("h7HQ");t.Polygon=g;var m=n("1Jh7");t.Polyline=m;var v=n("x6Kt");t.Rect=v;var y=n("yxFR");t.Line=y;var b=n("rA99");t.BezierCurve=b;var _=n("jTL6");t.Arc=_;var w=n("1MYJ");t.CompoundPath=w;var x=n("SKnc");t.LinearGradient=x;var C=n("3e3G");t.RadialGradient=C;var S=n("mFDi");t.BoundingRect=S;var k=n("OS9S");t.IncrementalDisplayable=k;var E=n("nPnh"),O=Math.max,B=Math.min,M={},T=1,I={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},L="emphasis",D="normal",P=1,N={},j={};function F(e){return l.extend(e)}function R(e,t){return i.extendFromString(e,t)}function U(e,t){j[e]=t}function H(e){if(j.hasOwnProperty(e))return j[e]}function Q(e,t,n,r){var o=i.createFromString(e,t);return n&&("center"===r&&(n=z(n,o.getBoundingRect())),W(o,n)),o}function K(e,t,n){var r=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(z(t,i))}}});return r}function z(e,t){var n,r=t.width/t.height,i=e.height*r;i<=e.width?n=e.height:(i=e.width,n=i/r);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var V=i.mergePath;function W(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function G(e){return E.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function X(e){return E.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var q=E.subPixelOptimize;function Y(e){return null!=e&&"none"!==e}var Z=r.createHashMap(),J=0;function $(e){if("string"!==typeof e)return e;var t=Z.get(e);return t||(t=o.lift(e,-.1),J<1e4&&(Z.set(e,t),J++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var n=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var r=e.style;for(var i in t)null!=t[i]&&(n[i]=r[i]);n.fill=r.fill,n.stroke=r.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,r=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=r?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var i=e,o=e.style;r&&(i=n.addHover(e),o=i.style),Ce(o),r||ee(i),o.extendFrom(t),ne(o,t,"fill"),ne(o,t,"stroke"),xe(o),r||(e.dirty(!1),e.z2+=T)}}}function ne(e,t,n){!Y(t[n])&&Y(e[n])&&(e[n]=$(e[n]))}function re(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var n=e.style,r=e.__cachedNormalStl;r&&(Ce(n),e.setStyle(r),xe(n));var i=e.__cachedNormalZ2;null!=i&&e.z2-i===T&&(e.z2=i)}}function ie(e,t,n){var r,i=D,o=D;e.__highlighted&&(i=L,r=!0),t(e,n),e.__highlighted&&(o=L,r=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),r&&e.__highDownOnUpdate&&e.__highDownOnUpdate(i,o)}function oe(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,re(e),te(e))}function ae(e){!ue(this,e)&&!this.__highByOuter&&ie(this,te)}function se(e){!ue(this,e)&&!this.__highByOuter&&ie(this,re)}function le(e){this.__highByOuter|=1<<(e||0),ie(this,te)}function ce(e){!(this.__highByOuter&=~(1<<(e||0)))&&ie(this,re)}function ue(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function de(e,t){he(e,!0),ie(e,oe,t)}function he(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var r=n?"off":"on";e[r]("mouseover",ae)[r]("mouseout",se),e[r]("emphasis",le)[r]("normal",ce),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function fe(e){return!(!e||!e.__highDownDispatcher)}function pe(e){var t=N[e];return null==t&&P<=32&&(t=N[e]=P++),t}function Ae(e,t,n,i,o,a,s){o=o||M;var l,c=o.labelFetcher,u=o.labelDataIndex,d=o.labelDimIndex,h=o.labelProp,f=n.getShallow("show"),p=i.getShallow("show");(f||p)&&(c&&(l=c.getFormattedLabel(u,"normal",null,d,h)),null==l&&(l=r.isFunction(o.defaultText)?o.defaultText(u,o):o.defaultText));var A=f?l:null,g=p?r.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,d,h):null,l):null;null==A&&null==g||(me(e,n,a,o),me(t,i,s,o,!0)),e.text=A,t.text=g}function ge(e,t,n){var i=e.style;t&&(Ce(i),e.setStyle(t),xe(i)),i=e.__hoverStl,n&&i&&(Ce(i),r.extend(i,n),xe(i))}function me(e,t,n,i,o){return ye(e,t,i,o),n&&r.extend(e,n),e}function ve(e,t,n){var r,i={isRectText:!0};!1===n?r=!0:i.autoColor=n,ye(e,t,i,r)}function ye(e,t,n,i){if(n=n||M,n.isRectText){var o;n.getTextPosition?o=n.getTextPosition(t,i):(o=t.getShallow("position")||(i?null:"inside"),"outside"===o&&(o="top")),e.textPosition=o,e.textOffset=t.getShallow("offset");var a=t.getShallow("rotate");null!=a&&(a*=Math.PI/180),e.textRotation=a,e.textDistance=r.retrieve2(t.getShallow("distance"),i?null:5)}var s,l=t.ecModel,c=l&&l.option.textStyle,u=be(t);if(u)for(var d in s={},u)if(u.hasOwnProperty(d)){var h=t.getModel(["rich",d]);_e(s[d]={},h,c,n,i)}return e.rich=s,_e(e,t,c,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function be(e){var t;while(e&&e!==e.ecModel){var n=(e.option||M).rich;if(n)for(var r in t=t||{},n)n.hasOwnProperty(r)&&(t[r]=1);e=e.parentModel}return t}function _e(e,t,n,i,o,a){n=!o&&n||M,e.textFill=we(t.getShallow("color"),i)||n.color,e.textStroke=we(t.getShallow("textBorderColor"),i)||n.textBorderColor,e.textStrokeWidth=r.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),o||(a&&(e.insideRollbackOpt=i,xe(e)),null==e.textFill&&(e.textFill=i.autoColor)),e.fontStyle=t.getShallow("fontStyle")||n.fontStyle,e.fontWeight=t.getShallow("fontWeight")||n.fontWeight,e.fontSize=t.getShallow("fontSize")||n.fontSize,e.fontFamily=t.getShallow("fontFamily")||n.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),a&&i.disableBox||(e.textBackgroundColor=we(t.getShallow("backgroundColor"),i),e.textPadding=t.getShallow("padding"),e.textBorderColor=we(t.getShallow("borderColor"),i),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||n.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||n.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||n.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||n.textShadowOffsetY}function we(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function xe(e){var t,n=e.textPosition,r=e.insideRollbackOpt;if(r&&null==e.textFill){var i=r.autoColor,o=r.isRectText,a=r.useInsideStyle,s=!1!==a&&(!0===a||o&&n&&"string"===typeof n&&n.indexOf("inside")>=0),l=!s&&null!=i;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=i,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=i)}e.insideRollback=t}function Ce(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Se(e,t){var n=t&&t.getModel("textStyle");return r.trim([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(" "))}function ke(e,t,n,r,i,o){"function"===typeof i&&(o=i,i=null);var a=r&&r.isAnimationEnabled();if(a){var s=e?"Update":"",l=r.getShallow("animationDuration"+s),c=r.getShallow("animationEasing"+s),u=r.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"===typeof l&&(l=l(i)),l>0?t.animateTo(n,l,u||0,c,o,!!o):(t.stopAnimation(),t.attr(n),o&&o())}else t.stopAnimation(),t.attr(n),o&&o()}function Ee(e,t,n,r,i){ke(!0,e,t,n,r,i)}function Oe(e,t,n,r,i){ke(!1,e,t,n,r,i)}function Be(e,t){var n=a.identity([]);while(e&&e!==t)a.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function Me(e,t,n){return t&&!r.isArrayLike(t)&&(t=c.getLocalTransform(t)),n&&(t=a.invert([],t)),s.applyTransform([],e,t)}function Te(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Me(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ie(e,t,n,i){if(e&&t){var o=a(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=o[e.anid];if(t){var r=l(e);e.attr(l(t)),Ee(e,r,n,e.dataIndex)}}}))}function a(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=r.extend({},e.shape)),t}}function Le(e,t){return r.map(e,(function(e){var n=e[0];n=O(n,t.x),n=B(n,t.x+t.width);var r=e[1];return r=O(r,t.y),r=B(r,t.y+t.height),[n,r]}))}function De(e,t){var n=O(e.x,t.x),r=B(e.x+e.width,t.x+t.width),i=O(e.y,t.y),o=B(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Pe(e,t,n){t=r.extend({rectHover:!0},t);var i=t.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),r.defaults(i,n),new u(t)):Q(e.replace("path://",""),t,n,"center")}function Ne(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var g=Fe(f,p,u,d)/h;return!(g<0||g>1)}function Fe(e,t,n,r){return e*r-n*t}function Re(e){return e<=1e-6&&e>=-1e-6}U("circle",f),U("sector",p),U("ring",A),U("polygon",g),U("polyline",m),U("rect",v),U("line",y),U("bezierCurve",b),U("arc",_),t.Z2_EMPHASIS_LIFT=T,t.CACHED_LABEL_STYLE_PROPERTIES=I,t.extendShape=F,t.extendPath=R,t.registerShape=U,t.getShapeClass=H,t.makePath=Q,t.makeImage=K,t.mergePath=V,t.resizePath=W,t.subPixelOptimizeLine=G,t.subPixelOptimizeRect=X,t.subPixelOptimize=q,t.setElementHoverStyle=oe,t.setHoverStyle=de,t.setAsHighDownDispatcher=he,t.isHighDownDispatcher=fe,t.getHighlightDigit=pe,t.setLabelStyle=Ae,t.modifyLabelStyle=ge,t.setTextStyle=me,t.setText=ve,t.getFont=Se,t.updateProps=Ee,t.initProps=Oe,t.getTransform=Be,t.applyTransform=Me,t.transformDirection=Te,t.groupTransition=Ie,t.clipPointsByRect=Le,t.clipRectByRect=De,t.createIcon=Pe,t.linePolygonIntersect=Ne,t.lineLineIntersect=je},IyUQ:function(e,t,n){var r=n("bYtY"),i=n("YH21"),o=n("IwbS"),a=n("iLNv"),s=n("fc+c"),l=n("OELB"),c=n("+TT/"),u=n("72pK"),d=o.Rect,h=l.linearMap,f=l.asc,p=r.bind,A=r.each,g=7,m=1,v=30,y="horizontal",b="vertical",_=5,w=["line","bar","candlestick","scatter"],x=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,r){x.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){x.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===y?{right:i.width-n.x-n.width,top:i.height-v-g,width:n.width,height:v}:{right:g,top:n.y,width:v,height:n.height},a=c.getLayoutParams(e.option);r.each(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=c.getLayoutRect(a,i,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==y||i?n===y&&i?{scale:a?[-1,1]:[-1,-1]}:n!==b||i?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=e.getBoundingRect([o]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new d({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new d({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=a){var s=i.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c,u=[0,t[1]],d=[0,t[0]],f=[[t[0],0],[0,0]],p=[],A=d[1]/(i.count()-1),g=0,m=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(m>0&&t%m)g+=A;else{var n=null==e||isNaN(e)||""===e,r=n?0:h(e,s,u,!0);n&&!c&&t?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&c&&(f.push([g,0]),p.push([g,0])),f.push([g,r]),p.push([g,r]),g+=A,c=n}}));var v=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:f},style:r.defaults({fill:v.get("dataBackgroundColor")},v.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:p},style:v.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(o,a){var s=e.getAxisProxy(o.name,a).getTargetSeriesModels();r.each(s,(function(e){if(!n&&!(!0!==t&&r.indexOf(w,e.get("type"))<0)){var s,l=i.getComponent(o.axis,a).axis,c=C(o.name),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(s=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),n={thisAxis:l,series:e,thisDim:o.name,otherDim:c,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],r=this._displayables.barGroup,i=this._size,a=this.dataZoomModel;r.add(e.filler=new d({draggable:!0,cursor:S(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),r.add(new d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:m,fill:"rgba(0,0,0,0)"}})),A([0,1],(function(e){var i=o.createIcon(a.get("handleIcon"),{cursor:S(this._orient),draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=i.getBoundingRect();this._handleHeight=l.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,i.setStyle(a.getModel("handleStyle").getItemStyle());var c=a.get("handleColor");null!=c&&(i.style.fill=c),r.add(t[e]=i);var u=a.textStyleModel;this.group.add(n[e]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[h(e[0],[0,100],t,!0),h(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];u(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?h(o.minSpan,a,i,!0):null,null!=o.maxSpan?h(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=f([h(r[0],i,a,!0),h(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,r=f(n.slice()),i=this._size;A([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scale:[o/2,o/2],position:[n[e],i[1]/2-o/2]})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,u=e?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var d=f(this._handleEnds.slice());function h(e){var t=o.getTransform(n.handles[e].parent,this.group),s=o.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+_,c=o.applyTransform([d[e]+(0===e?-l:l),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],textVerticalAlign:i===y?"middle":s,textAlign:i===y?s:"center",text:a[e]})}h.call(this,0),h.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=t.getPixelPrecision());var a=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(o,20));return r.isFunction(i)?i(e,a):r.isString(i)?i.replace("{value}",a):a},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,n,r){this._dragging=!0,i.stop(r.event);var a=this._displayables.barGroup.getLocalTransform(),s=o.applyTransform([t,n],a,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,n=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(A(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}})),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});function C(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function S(e){return"vertical"===e?"ns-resize":"ew-resize"}var k=x;e.exports=k},IzEo:function(e,t,n){"use strict";n("cIOH"),n("lnY3"),n("Znn+"),n("14J3"),n("jCWc")},J66h:function(e,t,n){(function(n){var r,i;(function(t,n){e.exports=n(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:this,(function(n){"use strict";n=n||{};var o,a=n.Base64,s="2.6.4",l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(e){for(var t={},n=0,r=e.length;n>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(h,d)},p=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[l.charAt(n>>>18),l.charAt(n>>>12&63),t>=2?"=":l.charAt(n>>>6&63),t>=1?"=":l.charAt(63&n)];return r.join("")},A=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,p)},g=function(e){return A(f(String(e)))},m=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?m(g(e)):g(e)},y=function(e){return v(e,!0)};n.Uint8Array&&(o=function(e,t){for(var n="",r=0,i=e.length;r>>18)+l.charAt(c>>>12&63)+("undefined"!=typeof a?l.charAt(c>>>6&63):"=")+("undefined"!=typeof s?l.charAt(63&c):"=")}return t?m(n):n});var b,_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return u(55296+(n>>>10))+u(56320+(1023&n));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=function(e){return e.replace(_,w)},C=function(e){var t=e.length,n=t%4,r=(t>0?c[e.charAt(0)]<<18:0)|(t>1?c[e.charAt(1)]<<12:0)|(t>2?c[e.charAt(2)]<<6:0)|(t>3?c[e.charAt(3)]:0),i=[u(r>>>16),u(r>>>8&255),u(255&r)];return i.length-=[0,0,2,1][n],i.join("")},S=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,C)},k=function(e){return S(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(e){return x(S(e))},O=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},B=function(e){return E(O(e))};n.Uint8Array&&(b=function(e){return Uint8Array.from(k(O(e)),(function(e){return e.charCodeAt(0)}))});var M=function(){var e=n.Base64;return n.Base64=a,e};if(n.Base64={VERSION:s,atob:k,btoa:A,fromBase64:B,toBase64:v,utob:f,encode:v,encodeURI:y,btou:x,decode:B,noConflict:M,fromUint8Array:o,toUint8Array:b},"function"===typeof Object.defineProperty){var T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T((function(){return B(this)}))),Object.defineProperty(String.prototype,"toBase64",T((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",T((function(){return v(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:(r=[],i=function(){return n.Base64}.apply(t,r),void 0===i||(e.exports=i)),{Base64:n.Base64}}))}).call(this,n("yLpj"))},JEkh:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("ProS")),o=n("bYtY"),a=n("ItGF"),s=n("4NO4"),l=n("7aKB"),c=n("OKJ2"),u=l.addCommas,d=l.encodeHTML;function h(e){s.defaultEmphasis(e,"label",["show"])}var f=i.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},isAnimationEnabled:function(){if(a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,n,r){var i=this.constructor,a=this.mainType+"Model";n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),s=e[a];n&&n.data?(s?s._mergeOption(n,t,!0):(r&&h(n),o.each(n.data,(function(e){e instanceof Array?(h(e[0]),h(e[1])):h(e)})),s=new i(n,this,t),o.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[a]=s):e[a]=null}),this)},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),r=o.isArray(n)?o.map(n,u).join(", "):u(n),i=t.getName(e),a=d(this.name);return(null!=n||i)&&(a+="
    "),i&&(a+=d(i),null!=n&&(a+=" : ")),null!=n&&(a+=d(r)),a},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(f,c);var p=f;e.exports=p},JGo8:function(e,t,n){},JHRd:function(e,t,n){var r=n("Kz5y"),i=r.Uint8Array;e.exports=i},JHgL:function(e,t,n){var r=n("QkVE");function i(e){return r(this,e).get(e)}e.exports=i},JLnu:function(e,t,n){var r=n("+TT/"),i=n("OELB"),o=i.parsePercent,a=i.linearMap;function s(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function l(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a=1;I--)if(0!==H[I])break;if(L>I&&(L=I),0===I)return o[a++]=20971520,o[a++]=20971520,v.bits=1,0;for(T=1;T0&&(e===u||1!==I))return-1;for(Q[1]=0,B=1;Bl||e===h&&j>c)return 1;for(;;){S=B-P,m[M]C?(k=K[z+m[M]],E=R[U+m[M]]):(k=96,E=0),y=1<>P)+b]=S<<24|k<<16|E|0}while(0!==b);y=1<>=1;if(0!==y?(F&=y-1,F+=y):F=0,M++,0===--H[B]){if(B===I)break;B=t[n+m[M]]}if(B>L&&(F&w)!==_){0===P&&(P=L),x+=T,D=B-P,N=1<l||e===h&&j>c)return 1;_=F&w,o[_]=L<<24|D<<16|x-a|0}}return 0!==F&&(o[x+F]=B-P<<24|64<<16|0),v.bits=L,0}},JTzB:function(e,t,n){var r=n("NykK"),i=n("ExA7"),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},JVwQ:function(e,t,n){var r=n("ProS"),i=n("1NG9"),o=i.Polygon,a=n("IwbS"),s=n("bYtY"),l=s.bind,c=s.extend,u=n("gPAo"),d=r.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){var r=e.getData(),i=this.group,s=e.getLayerSeries(),d=r.getLayout("layoutInfo"),f=d.rect,p=d.boundaryGap;function A(e){return e.name}i.attr("position",[0,f.y+p[0]]);var g=new u(this._layersSeries||[],s,A,A),m={};function v(t,n,l){var u=this._layers;if("remove"!==t){for(var d,f,p,A=[],g=[],v=s[n].indices,y=0;y0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=this.props.getCurrentAnchor;if("function"===typeof n)return n();var r=[],i=this.getContainer();if(this.links.forEach((function(n){var o=M.exec(n.toString());if(o){var a=document.getElementById(o[1]);if(a){var s=B(a,i);se.top?t:e}));return o.link}return""}}]),n}(m["Component"]);T.defaultProps={affix:!0,showInkInFixed:!1},T.contextType=x["b"];var I=function(e){p()(n,e);var t=g()(n);function n(){var e;return l()(this,n),e=t.apply(this,arguments),e.handleClick=function(t){var n=e.context,r=n.scrollTo,i=n.onClick,o=e.props,a=o.href,s=o.title;i&&i(t,{title:s,href:a}),r(a)},e.renderAnchorLink=function(t){var n=t.getPrefixCls,r=e.props,i=r.prefixCls,o=r.href,s=r.title,l=r.children,c=r.className,u=r.target,d=n("anchor",i),h=e.context.activeLink===o,f=b()(c,"".concat(d,"-link"),a()({},"".concat(d,"-link-active"),h)),p=b()("".concat(d,"-link-title"),a()({},"".concat(d,"-link-title-active"),h));return m["createElement"]("div",{className:f},m["createElement"]("a",{className:p,href:o,title:"string"===typeof s?s:"",target:u,onClick:e.handleClick},s),l)},e}return u()(n,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(e){var t=e.href,n=this.props.href;t!==n&&(this.context.unregisterLink(t),this.context.registerLink(n))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return m["createElement"](x["a"],null,this.renderAnchorLink)}}]),n}(m["Component"]);I.defaultProps={href:"#"},I.contextType=E;var L=I;T.Link=L;t["a"]=T},JuEJ:function(e,t,n){var r=n("bYtY"),i=n("4NO4"),o=r.each,a=r.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=s.length;n0},extendFrom:function(e,t){if(e)for(var n in e)!e.hasOwnProperty(n)||!0!==t&&(!1===t?this.hasOwnProperty(n):null==e[n])||(this[n]=e[n])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,n){for(var r="radial"===t.type?c:l,i=r(e,t,n),o=t.colorStops,a=0;a=0||i&&r.indexOf(i,s)<0)){var l=t.getShallow(s);null!=l&&(o[e[a][0]]=l)}}return o}}e.exports=i},KMkd:function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},KPFz:function(e,t,n){},KQeH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},KS52:function(e,t,n){var r=n("OELB"),i=r.parsePercent,o=r.linearMap,a=n("+TT/"),s=n("u3DP"),l=n("bYtY"),c=2*Math.PI,u=Math.PI/180;function d(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h(e,t,n,r){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),a=d(e,n),h=e.get("center"),f=e.get("radius");l.isArray(f)||(f=[0,f]),l.isArray(h)||(h=[h,h]);var p=i(a.width,n.getWidth()),A=i(a.height,n.getHeight()),g=Math.min(p,A),m=i(h[0],p)+a.x,v=i(h[1],A)+a.y,y=i(f[0],g/2),b=i(f[1],g/2),_=-e.get("startAngle")*u,w=e.get("minAngle")*u,x=0;t.each(r,(function(e){!isNaN(e)&&x++}));var C=t.getSum(r),S=Math.PI/(C||x)*2,k=e.get("clockwise"),E=e.get("roseType"),O=e.get("stillShowZeroSum"),B=t.getDataExtent(r);B[0]=0;var M=c,T=0,I=_,L=k?1:-1;if(t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:k,cx:m,cy:v,r0:y,r:E?NaN:b,viewRect:a});else{r="area"!==E?0===C&&O?S:e*S:c/x,rr?i>=o?10+e:20+e:i<=o?10+e:e},H=function(e,t){if("number"===typeof e){var n=U(e,t),r=x||void 0===v(P)[t];return c["createElement"]("span",{className:"".concat(R,"-only"),style:{transition:r?"none":void 0,msTransform:"translateY(".concat(100*-n,"%)"),WebkitTransform:"translateY(".concat(100*-n,"%)"),transform:"translateY(".concat(100*-n,"%)")},key:t},y(n,"".concat(R,"-only-unit")))}return c["createElement"]("span",{key:"symbol",className:"".concat(R,"-symbol")},e)},Q=function(){return E&&Number(E)%1===0?v(E).map((function(e,t){return H(e,t)})).reverse():E},K=l()(l()({},b),{style:i,className:h()(R,r),title:o});return i&&i.borderColor&&(K.style=l()(l()({},i),{boxShadow:"0 0 0 1px ".concat(i.borderColor," inset")})),u?Object(g["a"])(u,{className:h()("".concat(R,"-custom-component"),u.props&&u.props.className)}):c["createElement"](s,K,Q())},_=b,w=n("09Wf");function x(e){return-1!==w["a"].indexOf(e)}var C=function(e){var t,n=e.className,r=e.prefixCls,o=e.style,a=e.color,s=e.children,u=e.text,d=e.placement,f=void 0===d?"end":d,p=c["useContext"](A["b"]),g=p.getPrefixCls,m=p.direction,v=g("ribbon",r),y=x(a),b=h()(v,n,"".concat(v,"-placement-").concat(f),(t={},i()(t,"".concat(v,"-rtl"),"rtl"===m),i()(t,"".concat(v,"-color-").concat(a),y),t)),_={},w={};return a&&!y&&(_.background=a,w.color=a),c["createElement"]("div",{className:"".concat(v,"-wrapper")},s,c["createElement"]("div",{className:b,style:l()(l()({},_),o)},u,c["createElement"]("div",{className:"".concat(v,"-corner"),style:w})))},S=C,k=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 i=0;for(r=Object.getOwnPropertySymbols(e);ib?"".concat(b,"+"):v;return e},U=function(){return!!d||!!p},H=function(){var e=R();return"0"===e||0===e},Q=function(){return C&&!H()||U()},K=function(){return Q()?"":R()},z=function(){return O||("string"===typeof v||"number"===typeof v?v:void 0)},V=function(){return"rtl"===j?B?l()({left:parseInt(B[0],10),marginTop:B[1]},M):M:B?l()({right:-parseInt(B[0],10),marginTop:B[1]},M):M},W=function(){var e=K(),t=null===e||void 0===e||""===e;return(t||H()&&!L)&&!Q()},G=function(){var e=W();return e||!f?null:c["createElement"]("span",{className:"".concat(F,"-status-text")},f)},X=function(){var e=v;if(e&&"object"===a()(e))return Object(g["a"])(e,{style:l()(l()({},V()),e.props&&e.props.style)})},q=function(){var e,t=N("scroll-number",o),n=K(),r=Q(),a=W(),s=h()((e={},i()(e,"".concat(F,"-dot"),r),i()(e,"".concat(F,"-count"),!r),i()(e,"".concat(F,"-count-sm"),"small"===E),i()(e,"".concat(F,"-multiple-words"),!r&&v&&v.toString&&v.toString().length>1),i()(e,"".concat(F,"-status-").concat(d),!!d),i()(e,"".concat(F,"-status-").concat(p),x(p)),e)),l=V();return p&&!x(p)&&(l=l||{},l.background=p),a?null:c["createElement"](_,{prefixCls:t,"data-show":!a,className:s,count:n,displayComponent:X(),title:z(),style:l,key:"scrollNumber"})},Y=h()((t={},i()(t,"".concat(F,"-status-dot"),U()),i()(t,"".concat(F,"-status-").concat(d),!!d),i()(t,"".concat(F,"-status-").concat(p),x(p)),t)),Z={};p&&!x(p)&&(Z.background=p);var J=h()(T,F,(n={},i()(n,"".concat(F,"-status"),U()),i()(n,"".concat(F,"-not-a-wrapper"),!s),i()(n,"".concat(F,"-rtl"),"rtl"===j),n));if(!s&&U()){var $=V(),ee=$&&$.color;return c["createElement"]("span",l()({},D,{className:J,style:$}),c["createElement"]("span",{className:Y,style:Z}),c["createElement"]("span",{style:{color:ee},className:"".concat(F,"-status-text")},f))}return c["createElement"]("span",l()({},D,{className:J}),s,c["createElement"](u["a"],{component:"",showProp:"data-show",transitionName:s?"".concat(F,"-zoom"):"",transitionAppear:!0},q()),G())};E.Ribbon=S;t["a"]=E},Kvyg:function(e,t,n){},KxBF:function(e,t){function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r0&&Date.now()-this._tracked[0].started>m)return this._state=a,void this._ignored.push(e);if(this._waitingRelease)return this._state=a,void this._ignored.push(e);switch(this._tracked.push({id:e,started:Date.now(),active:!0,firstX:t,firstY:n,lastX:t,lastY:n,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(s|u|d),this._stopLongpressTimeout();break;case 3:this._state&=~(l|h|f);break;default:this._state=a}}}},{key:"_touchMove",value:function(e,t,n){var r=this._tracked.find((function(t){return t.id===e}));if(void 0!==r){r.lastX=t,r.lastY=n;var i=t-r.firstX,o=n-r.firstY;if(r.firstX===r.lastX&&r.firstY===r.lastY||(r.angle=180*Math.atan2(o,i)/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(i,o)A){var m=Math.abs(r.angle-a.angle);m=Math.abs((m+180)%360-180),this._state&=m>g?~h:~f,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}}},{key:"_touchEnd",value:function(e,t,n){if(-1!==this._ignored.indexOf(e))return this._ignored.splice(this._ignored.indexOf(e),1),void(0===this._ignored.length&&0===this._tracked.length&&(this._state=p,this._waitingRelease=!1));if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=a),!this._hasDetectedGesture()&&(this._state&=~(u|h|f),this._state&=~d,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=~(l|c);break;case 2:this._state&=~(s|c);break}if(this._waitingRelease){Date.now()-this._releaseStart>m&&(this._state=a),this._tracked.some((function(e){return Date.now()-e.started>v}))&&(this._state=a);var r=this._tracked.find((function(t){return t.id===e}));if(r.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==a)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var i=0;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e){u(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return h(t,e),r(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(n){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&null!=a&&null!=l&&(u=U(c,a,l),!t.ignoreViewBox)){var f=i;i=new r,i.add(f),f.scale=u.scale.slice(),f.position=u.position.slice()}return t.ignoreRootClip||null==a||null==l||i.setClipPath(new s({shape:{x:0,y:0,width:a,height:l}})),{root:i,width:a,height:l,viewBoxRect:c,viewBoxTransform:u}},k.prototype._parseNode=function(e,t){var n,r=e.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){var i=O[r];if(i){var o=i.call(this,e),a=e.getAttribute("id");a&&(this._defs[a]=o)}}else{i=E[r];i&&(n=i.call(this,e,t),t.add(n))}var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},k.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,r=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(r)}var i=new o({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});M(t,i),L(e,i,this._defs);var a=i.style.fontSize;a&&a<9&&(i.style.fontSize=9,i.scale=i.scale||[1,1],i.scale[0]*=a/9,i.scale[1]*=a/9);var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i};var E={g:function(e,t){var n=new r;return M(t,n),L(e,n,this._defs),n},rect:function(e,t){var n=new s;return M(t,n),L(e,n,this._defs),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},circle:function(e,t){var n=new a;return M(t,n),L(e,n,this._defs),n.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),n},line:function(e,t){var n=new c;return M(t,n),L(e,n,this._defs),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},ellipse:function(e,t){var n=new l;return M(t,n),L(e,n,this._defs),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},polygon:function(e,t){var n=e.getAttribute("points");n&&(n=T(n));var r=new d({shape:{points:n||[]}});return M(t,r),L(e,r,this._defs),r},polyline:function(e,t){var n=new u;M(t,n),L(e,n,this._defs);var r=e.getAttribute("points");r&&(r=T(r));var i=new h({shape:{points:r||[]}});return i},image:function(e,t){var n=new i;return M(t,n),L(e,n,this._defs),n.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),n},text:function(e,t){var n=e.getAttribute("x")||0,i=e.getAttribute("y")||0,o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new r;return M(t,s),L(e,s,this._defs),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new r;return M(t,s),L(e,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(e,t){var n=e.getAttribute("d")||"",r=m(n);return M(t,r),L(e,r,this._defs),r}},O={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),r=parseInt(e.getAttribute("x2")||10,10),i=parseInt(e.getAttribute("y2")||0,10),o=new f(t,n,r,i);return B(e,o),o},radialgradient:function(e){}};function B(e,t){var n=e.firstChild;while(n){if(1===n.nodeType){var r=n.getAttribute("offset");r=r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var i=n.getAttribute("stop-color")||"#000000";t.addColorStop(r,i)}n=n.nextSibling}}function M(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),_(t.__inheritedStyle,e.__inheritedStyle))}function T(e){for(var t=w(e).split(C),n=[],r=0;r0;o-=2){var a=i[o],s=i[o-1];switch(r=r||A.create(),s){case"translate":a=w(a).split(C),A.translate(r,r,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=w(a).split(C),A.scale(r,r,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=w(a).split(C),A.rotate(r,r,parseFloat(a[0]));break;case"skew":a=w(a).split(C),console.warn("Skew transform is not supported yet");break;case"matrix":a=w(a).split(C);r[0]=parseFloat(a[0]),r[1]=parseFloat(a[1]),r[2]=parseFloat(a[2]),r[3]=parseFloat(a[3]),r[4]=parseFloat(a[4]),r[5]=parseFloat(a[5]);break}}t.setLocalTransform(r)}}var F=/([^\s:;]+)\s*:\s*([^:;]+)/g;function R(e){var t=e.getAttribute("style"),n={};if(!t)return n;var r,i={};F.lastIndex=0;while(null!=(r=F.exec(t)))i[r[1]]=r[2];for(var o in I)I.hasOwnProperty(o)&&null!=i[o]&&(n[I[o]]=i[o]);return n}function U(e,t,n){var r=t/e.width,i=n/e.height,o=Math.min(r,i),a=[o,o],s=[-(e.x+e.width/2)*o+t/2,-(e.y+e.height/2)*o+n/2];return{scale:a,position:s}}function H(e,t){var n=new k;return n.parse(e,t)}t.parseXML=S,t.makeViewBoxTransform=U,t.parseSVG=H},MFOe:function(e,t,n){(function(t){var n=a(),r=s(),i=l(),o="undefined"!==typeof window?window:t;function a(){return Object.assign?Object.assign:function(e,t,n,r){for(var i=1;i=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(m,20))),A.coord[f]=g.coord[f]=c,i=[A,g,{type:s,valueIndex:i.valueIndex,value:c}]}return i=[a.dataTransform(e,i[0]),a.dataTransform(e,i[1]),r.extend({},i[2])],i[2].type=i[2].type||"",r.merge(i[2],i[0]),r.merge(i[2],i[1]),i};function h(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,n,r){var i=1-e,o=r.dimensions[e];return h(t[i])&&h(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function p(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(f(1,n,r,e)||f(0,n,r,e)))return!0}return a.dataFilter(e,t[0])&&a.dataFilter(e,t[1])}function A(e,t,n,r,i){var a,s=r.coordinateSystem,l=e.getItemModel(t),c=o.parsePercent(l.get("x"),i.getWidth()),u=o.parsePercent(l.get("y"),i.getHeight());if(isNaN(c)||isNaN(u)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,f=e.get(d[0],t),p=e.get(d[1],t);a=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var A=s.getAxis("x"),g=s.getAxis("y");d=s.dimensions;h(e.get(d[0],t))?a[0]=A.toGlobalCoord(A.getExtent()[n?0:1]):h(e.get(d[1],t))&&(a[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(c)||(a[0]=c),isNaN(u)||(a[1]=u)}else a=[c,u];e.setItemLayout(t,a)}var g=l.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markLineModel;if(t){var r=t.getData(),i=t.__from,o=t.__to;i.each((function(t){A(i,t,!0,e,n),A(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,n,i){var o=e.coordinateSystem,a=e.id,l=e.getData(),c=this.markerGroupMap,u=c.get(a)||c.set(a,new s);this.group.add(u.group);var d=m(o,e,t),h=d.from,f=d.to,p=d.line;t.__from=h,t.__to=f,t.setData(p);var g=t.get("symbol"),v=t.get("symbolSize");function y(t,n,r){var o=t.getItemModel(n);A(t,n,r,e,i),t.setItemVisual(n,{symbolSize:o.get("symbolSize")||v[r?0:1],symbol:o.get("symbol",!0)||g[r?0:1],color:o.get("itemStyle.color")||l.getVisual("color")})}r.isArray(g)||(g=[g,g]),"number"===typeof v&&(v=[v,v]),d.from.each((function(e){y(h,e,!0),y(f,e,!1)})),p.each((function(e){var t=p.getItemModel(e).get("lineStyle.color");p.setItemVisual(e,{color:t||h.getItemVisual(e,"color")}),p.setItemLayout(e,[h.getItemLayout(e),f.getItemLayout(e)]),p.setItemVisual(e,{fromSymbolSize:h.getItemVisual(e,"symbolSize"),fromSymbol:h.getItemVisual(e,"symbol"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol")})})),u.updateData(p),d.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){e.dataModel=t}))})),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}});function m(e,t,n){var o;o=e?r.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return r.defaults({name:e},n)})):[{name:"value",type:"float"}];var s=new i(o,n),l=new i(o,n),c=new i([],n),u=r.map(n.get("data"),r.curry(d,t,e,n));e&&(u=r.filter(u,r.curry(p,e)));var h=e?a.dimValueGetter:function(e){return e.value};return s.initData(r.map(u,(function(e){return e[0]})),null,h),l.initData(r.map(u,(function(e){return e[1]})),null,h),c.initData(r.map(u,(function(e){return e[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}e.exports=g},MHoB:function(e,t,n){var r=n("bYtY"),i=n("6uqw"),o=n("OELB"),a=[20,140],s=i.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=a[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=a[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):r.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){i.prototype.completeVisualOption.apply(this,arguments),r.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=o.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),n=l(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,c=t.length;a0&&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 i(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 ").concat(t);return t}var H=function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),o=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,h=e.disabled,f=e.dragging,p=e.dragOverNodeKey,A=e.dropPosition,g=e.motion,m=e.height,v=e.itemHeight,y=e.virtual,b=e.focusable,S=e.activeItem,k=e.focused,E=e.tabIndex,O=e.onKeyDown,P=e.onFocus,N=e.onBlur,H=e.onActiveChange,Q=e.onListChangeStart,K=e.onListChangeEnd,z=Object(x["a"])(e,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),V=s["useRef"](null);s["useImperativeHandle"](t,(function(){return{scrollTo:function(e){V.current.scrollTo(e)}}}));var W=s["useState"](i),G=Object(w["a"])(W,2),X=G[0],q=G[1],Y=s["useState"](r),Z=Object(w["a"])(Y,2),J=Z[0],$=Z[1],ee=s["useState"](r),te=Object(w["a"])(ee,2),ne=te[0],re=te[1],ie=s["useState"]([]),oe=Object(w["a"])(ie,2),ae=oe[0],se=oe[1],le=s["useState"](null),ce=Object(w["a"])(le,2),ue=ce[0],de=ce[1];function he(){$(r),re(r),se([]),de(null),K()}s["useEffect"]((function(){q(i);var e=M(X,i);if(null!==e.key)if(e.add){var t=J.findIndex((function(t){var n=t.data.key;return n===e.key})),n=F(T(J,r,e.key),y,m,v),o=J.slice();o.splice(t+1,0,j),re(o),se(n),de("show")}else{var a=r.findIndex((function(t){var n=t.data.key;return n===e.key})),s=F(T(r,J,e.key),y,m,v),l=r.slice();l.splice(a+1,0,j),re(l),se(s),de("hide")}else J!==r&&($(r),re(r))}),[i,r]),s["useEffect"]((function(){f||he()}),[f]);var fe=g?ne:r,pe={expandedKeys:i,selectedKeys:o,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:A,keyEntities:d};return s["createElement"](s["Fragment"],null,k&&S&&s["createElement"]("span",{style:I,"aria-live":"assertive"},U(S)),s["createElement"]("div",{role:"tree"},s["createElement"]("input",{style:I,disabled:!1===b||h,tabIndex:!1!==b?E:null,onKeyDown:O,onFocus:P,onBlur:N,value:"",onChange:L})),s["createElement"](C["a"],Object.assign({},z,{data:fe,itemKey:R,height:m,fullHeight:!1,virtual:y,itemHeight:v,prefixCls:"".concat(n,"-list"),ref:V}),(function(e){var t=e.pos,n=e.data,r=n.key,i=Object(x["a"])(n,["key"]),o=e.isStart,a=e.isEnd,l=Object(_["e"])(r,t);delete i.children;var c=Object(_["f"])(l,pe);return s["createElement"](B,Object.assign({},i,c,{active:S&&r===S.data.key,pos:t,data:e.data,isStart:o,isEnd:a,motion:g,motionNodes:r===D?ae:null,motionType:ue,onMotionStart:Q,onMotionEnd:he,treeNodeRequiredProps:pe,onMouseMove:function(){H(null)}}))})))},Q=s["forwardRef"](H);Q.displayName="NodeList";var K=Q,z=n("qOx5"),V=function(e){Object(f["a"])(n,e);var t=Object(p["a"])(n);function n(){var e;return Object(d["a"])(this,n),e=t.apply(this,arguments),e.destroyed=!1,e.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.listRef=s["createRef"](),e.onNodeDragStart=function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,a=e.props.onDragStart,s=n.props.eventKey;e.dragNode=n;var l=Object(b["b"])(i,s);e.setState({dragging:!0,dragNodesKeys:Object(b["g"])(s,o)}),e.setExpandedKeys(l),a&&a({event:t,node:Object(_["b"])(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,i=r.expandedKeys,o=r.keyEntities,a=r.dragNodesKeys,s=e.props.onDragEnter,l=n.props,c=l.pos,d=l.eventKey;if(e.dragNode&&-1===a.indexOf(d)){var h=Object(b["c"])(t,n);e.dragNode.props.eventKey!==d||0!==h?setTimeout((function(){e.setState({dragOverNodeKey:d,dropPosition:h}),e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.delayedDragEnterLogic[c]=window.setTimeout((function(){if(e.state.dragging){var r=Object(u["a"])(i),a=o[d];a&&(a.children||[]).length&&(r=Object(b["a"])(i,d)),"expandedKeys"in e.props||e.setExpandedKeys(r),s&&s({event:t,node:Object(_["b"])(n.props),expandedKeys:r})}}),400)}),0):e.setState({dragOverNodeKey:"",dropPosition:null})}},e.onNodeDragOver=function(t,n){var r=e.state.dragNodesKeys,i=e.props.onDragOver,o=n.props.eventKey;if(-1===r.indexOf(o)){if(e.dragNode&&o===e.state.dragOverNodeKey){var a=Object(b["c"])(t,n);if(a===e.state.dropPosition)return;e.setState({dropPosition:a})}i&&i({event:t,node:Object(_["b"])(n.props)})}},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;e.setState({dragOverNodeKey:""}),r&&r({event:t,node:Object(_["b"])(n.props)})},e.onNodeDragEnd=function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:""}),e.cleanDragState(),r&&r({event:t,node:Object(_["b"])(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r=e.state,i=r.dragNodesKeys,o=void 0===i?[]:i,a=r.dropPosition,s=e.props.onDrop,l=n.props,c=l.eventKey,u=l.pos;if(e.setState({dragOverNodeKey:""}),e.cleanDragState(),-1===o.indexOf(c)){var d=Object(b["k"])(u),h={event:t,node:Object(_["b"])(n.props),dragNode:e.dragNode?Object(_["b"])(e.dragNode.props):null,dragNodesKeys:o.slice(),dropPosition:a+Number(d[d.length-1]),dropToGap:!1};0!==a&&(h.dropToGap=!0),s&&s(h),e.dragNode=null}else Object(g["a"])(!1,"Can not drop to dragNode(include it's children node)")},e.cleanDragState=function(){var t=e.state.dragging;t&&e.setState({dragging:!1})},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,i=e.state.keyEntities,o=e.props,a=o.onSelect,s=o.multiple,l=n.selected,c=n.key,u=!l;r=u?s?Object(b["a"])(r,c):[c]:Object(b["b"])(r,c);var d=r.map((function(e){var t=i[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),a&&a(r,{event:"select",selected:u,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var i,o=e.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,c=e.props,d=c.checkStrictly,h=c.onCheck,f=n.key,p={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var A=r?Object(b["a"])(s,f):Object(b["b"])(s,f),g=Object(b["b"])(l,f);i={checked:A,halfChecked:g},p.checkedNodes=A.map((function(e){return a[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:A})}else{var m=Object(z["a"])([].concat(Object(u["a"])(s),[f]),!0,a),v=m.checkedKeys,y=m.halfCheckedKeys;if(!r){var _=new Set(v);_["delete"](f);var w=Object(z["a"])(Array.from(_),{checked:!1,halfCheckedKeys:y},a);v=w.checkedKeys,y=w.halfCheckedKeys}i=v,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=y,v.forEach((function(e){var t=a[e];if(t){var n=t.node,r=t.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:y})}h&&h(i,p)},e.onNodeLoad=function(t){return new Promise((function(n){e.setState((function(r){var i=r.loadedKeys,o=void 0===i?[]:i,a=r.loadingKeys,s=void 0===a?[]:a,l=e.props,c=l.loadData,u=l.onLoad,d=t.key;if(!c||-1!==o.indexOf(d)||-1!==s.indexOf(d))return{};var h=c(t);return h.then((function(){var r=e.state,i=r.loadedKeys,o=r.loadingKeys,a=Object(b["a"])(i,d),s=Object(b["b"])(o,d);u&&u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState({loadingKeys:s}),n()})),{loadingKeys:Object(b["a"])(s,d)}}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state,n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities;return{expandedKeys:n||[],selectedKeys:r||[],loadedKeys:i||[],loadingKeys:o||[],checkedKeys:a||[],halfCheckedKeys:s||[],dragOverNodeKey:l,dropPosition:c,keyEntities:u}},e.setExpandedKeys=function(t){var n=e.state.treeData,r=Object(_["d"])(n,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,i=e.state.listChanging,o=e.props,a=o.onExpand,s=o.loadData,l=n.key,c=n.expanded;if(!i){var u=r.indexOf(l),d=!c;if(Object(g["a"])(c&&-1!==u||!c&&-1===u,"Expand state not sync with index check"),r=d?Object(b["a"])(r,l):Object(b["b"])(r,l),e.setExpandedKeys(r),a&&a(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&s){var h=e.onNodeLoad(n);h&&h.then((function(){var t=Object(_["d"])(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){var t=e.data.key;return t===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,i=n.activeKey,o=r.findIndex((function(e){var t=e.data.key;return t===i}));-1===o&&t<0&&(o=r.length),o=(o+t+r.length)%r.length;var a=r[o];if(a){var s=a.data.key;e.onActiveChange(s)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,i=n.expandedKeys,o=n.checkedKeys,a=e.props,s=a.onKeyDown,l=a.checkable,u=a.selectable;switch(t.which){case A["a"].UP:e.offsetActiveKey(-1),t.preventDefault();break;case A["a"].DOWN:e.offsetActiveKey(1),t.preventDefault();break}var d=e.getActiveItem();if(d&&d.data){var h=e.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data.children||[]).length,p=Object(_["b"])(Object(c["a"])(Object(c["a"])({},Object(_["f"])(r,h)),{},{data:d.data,active:!0}));switch(t.which){case A["a"].LEFT:f&&i.includes(r)?e.onNodeExpand({},p):d.parent&&e.onActiveChange(d.parent.data.key),t.preventDefault();break;case A["a"].RIGHT:f&&!i.includes(r)?e.onNodeExpand({},p):d.children&&d.children.length&&e.onActiveChange(d.children[0].data.key),t.preventDefault();break;case A["a"].ENTER:case A["a"].SPACE:!l||p.disabled||!1===p.checkable||p.disableCheckbox?l||!u||p.disabled||!1===p.selectable||e.onNodeSelect({},p):e.onNodeCheck({},p,!o.includes(r));break}}s&&s(t)},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 i=!1,o=!0,a={};Object.keys(t).forEach((function(n){n in e.props?o=!1:(i=!0,a[n]=t[n])})),!i||n&&!o||e.setState(Object(c["a"])(Object(c["a"])({},a),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return Object(h["a"])(n,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,o=t.dragging,a=t.activeKey,c=this.props,u=c.prefixCls,d=c.className,h=c.style,f=c.showLine,p=c.focusable,A=c.tabIndex,g=void 0===A?0:A,m=c.selectable,_=c.showIcon,w=c.icon,x=c.switcherIcon,C=c.draggable,S=c.checkable,k=c.checkStrictly,E=c.disabled,O=c.motion,B=c.loadData,M=c.filterTreeNode,T=c.height,I=c.itemHeight,L=c.virtual,D=c.titleRender,P=c.onContextMenu,N=Object(b["f"])(this.props);return s["createElement"](y["a"].Provider,{value:{prefixCls:u,selectable:m,showIcon:_,icon:w,switcherIcon:x,draggable:C,checkable:S,checkStrictly:k,disabled:E,keyEntities:i,loadData:B,filterTreeNode:M,titleRender:D,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}},s["createElement"]("div",{className:v()(u,d,(e={},Object(l["a"])(e,"".concat(u,"-show-line"),f),Object(l["a"])(e,"".concat(u,"-focused"),n),Object(l["a"])(e,"".concat(u,"-active-focused"),null!==a),e))},s["createElement"](K,Object.assign({ref:this.listRef,prefixCls:u,style:h,data:r,disabled:E,selectable:m,checkable:!!S,motion:O,dragging:o,height:T,itemHeight:I,virtual:L,focusable:p,focused:n,tabIndex:g,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:P},this.getTreeNodeRequiredProps(),N))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i={prevProps:e};function o(t){return!r&&t in e||r&&r[t]!==e[t]}if(o("treeData")?n=e.treeData:o("children")&&(Object(g["a"])(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Object(_["c"])(e.children)),n){i.treeData=n;var a=Object(_["a"])(n);i.keyEntities=Object(c["a"])(Object(l["a"])({},D,N),a.keyEntities)}var s,u=i.keyEntities||t.keyEntities;if(o("expandedKeys")||r&&o("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Object(b["e"])(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=Object(c["a"])({},u);delete d[D],i.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(b["e"])(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var h=Object(_["d"])(n||t.treeData,i.expandedKeys||t.expandedKeys);i.flattenNodes=h}if((e.selectable&&(o("selectedKeys")?i.selectedKeys=Object(b["d"])(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=Object(b["d"])(e.defaultSelectedKeys,e))),e.checkable)&&(o("checkedKeys")?s=Object(b["j"])(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?s=Object(b["j"])(e.defaultCheckedKeys)||{}:n&&(s=Object(b["j"])(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),s)){var f=s,p=f.checkedKeys,A=void 0===p?[]:p,m=f.halfCheckedKeys,v=void 0===m?[]:m;if(!e.checkStrictly){var y=Object(z["a"])(A,!0,u);A=y.checkedKeys,v=y.halfCheckedKeys}i.checkedKeys=A,i.halfCheckedKeys=v}return o("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(s["Component"]);V.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:[]},V.TreeNode=k["a"];var W,G=V,X=G,q=n("RIqP"),Y=n.n(q),Z=n("J4zp"),J=n.n(Z),$=n("sEfC"),ee=n.n($),te=n("vk+C"),ne=n.n(te),re=n("Vy0f"),ie=n.n(re),oe=n("kGiB"),ae=n.n(oe),se=n("H84U");function le(e,t){function n(e){var n=e.key,r=e.children;!1!==t(n,e)&&le(r||[],t)}e.forEach(n)}function ce(e){var t=e.treeData,n=e.expandedKeys,r=e.startKey,i=e.endKey,o=[],a=W.None;if(r&&r===i)return[r];if(!r||!i)return[];function s(e){return e===r||e===i}return le(t,(function(e){if(a===W.End)return!1;if(s(e)){if(o.push(e),a===W.None)a=W.Start;else if(a===W.Start)return a=W.End,!1}else a===W.Start&&o.push(e);return-1!==n.indexOf(e)})),o}function ue(e,t){var n=Y()(t),r=[];return le(e,(function(e,t){var i=n.indexOf(e);return-1!==i&&(r.push(t),n.splice(i,1)),!!n.length})),r}(function(e){e[e["None"]=0]="None",e[e["Start"]=1]="Start",e[e["End"]=2]="End"})(W||(W={}));var de=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 i=0;for(r=Object.getOwnPropertySymbols(e);i=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n> Display.constructor"),this._target=t,!this._target)throw new Error("Target must be set");if("string"===typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},i.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),i.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return f(e,[{key:"viewportChangePos",value:function(e,t){var n=this._viewportLoc;e=Math.floor(e),t=Math.floor(t),this._clipViewport||(e=-n.w,t=-n.h);var r=n.x+n.w-1,o=n.y+n.h-1;e<0&&n.x+e<0&&(e=-n.x),r+e>=this._fbWidth&&(e-=r+e-this._fbWidth+1),n.y+t<0&&(t=-n.y),o+t>=this._fbHeight&&(t-=o+t-this._fbHeight+1),0===e&&0===t||(i.Debug("viewportChange deltaX: "+e+", deltaY: "+t),n.x+=e,n.y+=t,this._damage(n.x,n.y,n.w,n.h),this.flip())}},{key:"viewportChangeSize",value:function(e,t){this._clipViewport&&"undefined"!==typeof e&&"undefined"!==typeof t||(i.Debug("Setting viewport to full display region"),e=this._fbWidth,t=this._fbHeight),e=Math.floor(e),t=Math.floor(t),e>this._fbWidth&&(e=this._fbWidth),t>this._fbHeight&&(t=this._fbHeight);var n=this._viewportLoc;if(n.w!==e||n.h!==t){n.w=e,n.h=t;var r=this._target;r.width=e,r.height=t,this.viewportChangePos(0,0),this._damage(n.x,n.y,n.w,n.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(e){return 0===this._scale?0:(0,s.toSigned32bit)(e/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(e){return 0===this._scale?0:(0,s.toSigned32bit)(e/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(e,t){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=t;var n=this._backbuffer;if(n.width!==e||n.height!==t){var r=null;n.width>0&&n.height>0&&(r=this._drawCtx.getImageData(0,0,n.width,n.height)),n.width!==e&&(n.width=e),n.height!==t&&(n.height=t),r&&this._drawCtx.putImageData(r,0,0)}var i=this._viewportLoc;this.viewportChangeSize(i.w,i.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(e,t,n,r){ethis._damageBounds.right&&(this._damageBounds.right=e+n),t+r>this._damageBounds.bottom&&(this._damageBounds.bottom=t+r)}},{key:"flip",value:function(e){if(0===this._renderQ.length||e){var t=this._damageBounds.left,n=this._damageBounds.top,r=this._damageBounds.right-t,i=this._damageBounds.bottom-n,o=t-this._viewportLoc.x,a=n-this._viewportLoc.y;o<0&&(r+=o,t-=o,o=0),a<0&&(i+=a,n-=a,a=0),o+r>this._viewportLoc.w&&(r=this._viewportLoc.w-o),a+i>this._viewportLoc.h&&(i=this._viewportLoc.h-a),r>0&&i>0&&this._targetCtx.drawImage(this._backbuffer,t,n,r,i,o,a,r,i),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}else this._renderQPush({type:"flip"})}},{key:"pending",value:function(){return this._renderQ.length>0}},{key:"flush",value:function(){0===this._renderQ.length?this.onflush():this._flushing=!0}},{key:"fillRect",value:function(e,t,n,r,i,o){0===this._renderQ.length||o?(this._setFillColor(i),this._drawCtx.fillRect(e,t,n,r),this._damage(e,t,n,r)):this._renderQPush({type:"fill",x:e,y:t,width:n,height:r,color:i})}},{key:"copyImage",value:function(e,t,n,r,i,o,a){0===this._renderQ.length||a?(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,t,i,o,n,r,i,o),this._damage(n,r,i,o)):this._renderQPush({type:"copy",oldX:e,oldY:t,x:n,y:r,width:i,height:o})}},{key:"imageRect",value:function(e,t,n,r,i,a){if(0!==n&&0!==r){var s=new Image;s.src="data: "+i+";base64,"+o["default"].encode(a),this._renderQPush({type:"img",img:s,x:e,y:t,width:n,height:r})}}},{key:"startTile",value:function(e,t,n,r,i){this._tileX=e,this._tileY=t,this._tile=16===n&&16===r?this._tile16x16:this._drawCtx.createImageData(n,r);for(var o=i[2],a=i[1],s=i[0],l=this._tile.data,c=0;c=i?e/r.w:t/r.h}this._rescale(n)}},{key:"_rescale",value:function(e){this._scale=e;var t=this._viewportLoc,n=e*t.w+"px",r=e*t.h+"px";this._target.style.width===n&&this._target.style.height===r||(this._target.style.width=n,this._target.style.height=r)}},{key:"_setFillColor",value:function(e){var t="rgb("+e[2]+","+e[1]+","+e[0]+")";t!==this._prevDrawStyle&&(this._drawCtx.fillStyle=t,this._prevDrawStyle=t)}},{key:"_rgbImageData",value:function(e,t,n,r,i,o){for(var a=this._drawCtx.createImageData(n,r),s=a.data,l=0,c=o;l0){var t=this._renderQ[0];switch(t.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(t.oldX,t.oldY,t.x,t.y,t.width,t.height,!0);break;case"fill":this.fillRect(t.x,t.y,t.width,t.height,t.color,!0);break;case"blit":this.blitImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgb":this.blitRgbImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"img":if(t.img.complete&&0!==t.img.width&&0!==t.img.height){if(t.img.width!==t.width||t.img.height!==t.height)return void i.Error("Decoded image has incorrect dimensions. Got "+t.img.width+"x"+t.img.height+". Expected "+t.width+"x"+t.height+".");this.drawImage(t.img,t.x,t.y)}else t.img._noVNCDisplay=this,t.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}0===this._renderQ.length&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(e){this._rescale(e)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(e){this._clipViewport=e;var t=this._viewportLoc;this.viewportChangeSize(t.w,t.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();t["default"]=p},Mdki:function(e,t,n){var r=n("bYtY"),i=r.each,o="\0__link_datas",a="\0__link_mainData";function s(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,f(t,n,e),i(n,(function(n){i(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,r.curry(l,e))}))})),t.wrapMethod("cloneShallow",r.curry(u,e)),i(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(c,e))})),r.assert(n[t.dataType]===t)}function l(e,t){if(h(this)){var n=r.extend({},this[o]);n[this.dataType]=t,f(t,n,e)}else p(t,this.dataType,this[a],e);return t}function c(e,t){return e.struct&&e.struct.update(this),t}function u(e,t){return i(t[o],(function(n,r){n!==t&&p(n.cloneShallow(),r,t,e)})),t}function d(e){var t=this[a];return null==e||null==t?t:t[o][e]}function h(e){return e[a]===e}function f(e,t,n){e[o]={},i(t,(function(t,r){p(t,r,e,n)}))}function p(e,t,n,r){n[o][t]=e,e[a]=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=d}var A=s;e.exports=A},Mds0:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("8IMR")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="StarFilled";var h=a.forwardRef(d);t.default=h},Mgri:function(e,t,n){for(var r=n("bYtY"),i=n("8nly"),o=[126,25],a=[[[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]]],s=0;s=0;n--)t+=this._rQ[this._rQi++]<<8*n;return t}},{key:"rQshiftStr",value:function(e){"undefined"===typeof e&&(e=this.rQlen);for(var t="",n=0;n1&&void 0!==arguments[1]?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,t-e)}},{key:"rQwait",value:function(e,t,n){if(this.rQlen0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}},{key:"send",value:function(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}},{key:"sendString",value:function(e){this.send(e.split("").map((function(e){return e.charCodeAt(0)})))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,t){this._eventHandlers[e]=t}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,t){var n=this;this.init(),this._websocket=new WebSocket(e,t),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){i.Debug(">> WebSock.onopen"),n._websocket.protocol&&i.Info("Server choose sub-protocol: "+n._websocket.protocol),n._eventHandlers.open(),i.Debug("<< WebSock.onopen")},this._websocket.onclose=function(e){i.Debug(">> WebSock.onclose"),n._eventHandlers.close(e),i.Debug("<< WebSock.onclose")},this._websocket.onerror=function(e){i.Debug(">> WebSock.onerror: "+e),n._eventHandlers.error(e),i.Debug("<< WebSock.onerror: "+e)}}},{key:"close",value:function(){this._websocket&&(this._websocket.readyState!==WebSocket.OPEN&&this._websocket.readyState!==WebSocket.CONNECTING||(i.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var t=8*(this._rQlen-this._rQi+e),n=this._rQbufferSized&&(this._rQbufferSize=d,this._rQbufferSize-this.rQlenthis._rQbufferSize-this._rQlen&&this._expandCompactRQ(t.length),this._rQ.set(t,this._rQlen),this._rQlen+=t.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):i.Debug("Ignoring empty message")}},{key:"sQ",get:function(){return this._sQ}},{key:"rQ",get:function(){return this._rQ}},{key:"rQi",get:function(){return this._rQi},set:function(e){this._rQi=e}},{key:"rQlen",get:function(){return this._rQlen-this._rQi}}]),e}();t["default"]=h},MqEG:function(e,t,n){var r=n("bYtY"),i=n("fc+c"),o=n("72pK"),a=n("VXYp"),s=r.bind,l=i.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,i){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),r.each(this.getTargetCoordInfo(),(function(t,i){var o=r.map(t,(function(e){return a.generateCoordId(e.model)}));r.each(t,(function(t){var l=t.model,u={};r.each(["pan","zoom","scrollMove"],(function(e){u[e]=s(c[e],this,t,i)}),this),a.register(n,{coordId:a.generateCoordId(l),allCoordIds:o,containsPoint:function(e,t,n){return l.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,dataZoomModel:e,getRange:u})}),this)}),this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(e,t,n,r){var i=this._range,a=i.slice(),s=e.axisModels[0];if(s){var l=d[t](null,[r.originX,r.originY],s,n,e),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-c)*u+c,a[1]=(a[1]-c)*u+c;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:u((function(e,t,n,r,i,o){var a=d[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:u((function(e,t,n,r,i,o){var a=d[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function u(e){return function(t,n,r,i){var a=this._range,s=a.slice(),l=t.axisModels[0];if(l){var c=e(s,l,t,n,r,i);return o(c,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var d={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},h=l;e.exports=h},MvSz:function(e,t,n){var r=n("LXxW"),i=n("0ycA"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=l},MwEJ:function(e,t,n){var r=n("bYtY"),i=n("YXkt"),o=n("sdST"),a=n("k9D9"),s=a.SOURCE_FORMAT_ORIGINAL,l=n("L0Ub"),c=l.getDimensionTypeByAxis,u=n("4NO4"),d=u.getDataItemValue,h=n("IDmD"),f=n("i38C"),p=f.getCoordSysInfoBySeries,A=n("7G+c"),g=n("7hqr"),m=g.enableDataStack,v=n("D5nY"),y=v.makeSeriesEncodeForAxisCoordSys;function b(e,t,n){n=n||{},A.isInstance(e)||(e=A.seriesDataToSource(e));var a,s=t.get("coordinateSystem"),l=h.get(s),u=p(t);u&&(a=r.map(u.coordSysDims,(function(e){var t={name:e},n=u.axisMap.get(e);if(n){var r=n.get("type");t.type=c(r)}return t}))),a||(a=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var d,f,g=o(e,{coordDimensions:a,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?r.curry(y,a,t):null});u&&r.each(g,(function(e,t){var n=e.coordDim,r=u.categoryAxisMap.get(n);r&&(null==d&&(d=t),e.ordinalMeta=r.getOrdinalMeta()),null!=e.otherDims.itemName&&(f=!0)})),f||null==d||(g[d].otherDims.itemName=0);var v=m(t,g),b=new i(g,t);b.setCalculationInfo(v);var w=null!=d&&_(e)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return b.hasItemOption=!1,b.initData(e,null,w),b}function _(e){if(e.sourceFormat===s){var t=w(e.data||[]);return null!=t&&!r.isArray(d(t))}}function w(e){var t=0;while(t0?1:a<0?-1:0}function y(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function b(e,t,n,r,o,a,s,l,u,d){var h=u.valueDim,f=u.categoryDim,p=Math.abs(n[f.wh]),A=e.getItemVisual(t,"symbolSize");i.isArray(A)?A=A.slice():(null==A&&(A="100%"),A=[A,A]),A[f.index]=c(A[f.index],p),A[h.index]=c(A[h.index],r?p:Math.abs(a)),d.symbolSize=A;var g=d.symbolScale=[A[0]/l,A[1]/l];g[h.index]*=(u.isHorizontal?-1:1)*s}function _(e,t,n,r,i){var o=e.get(f)||0;o&&(A.attr({scale:t.slice(),rotation:n}),A.updateTransform(),o/=A.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o}function w(e,t,n,r,o,a,s,l,d,h,f,p){var A=f.categoryDim,g=f.valueDim,m=p.pxSign,v=Math.max(t[g.index]+l,0),y=v;if(r){var b=Math.abs(d),_=i.retrieve(e.get("symbolMargin"),"15%")+"",w=!1;_.lastIndexOf("!")===_.length-1&&(w=!0,_=_.slice(0,_.length-1)),_=c(_,t[g.index]);var x=Math.max(v+2*_,0),C=w?0:2*_,S=u(r),k=S?r:R((b+C)/x),E=b-k*v;_=E/2/(w?k:k-1),x=v+2*_,C=w?0:2*_,S||"fixed"===r||(k=h?R((Math.abs(h)+C)/x):0),y=k*x-C,p.repeatTimes=k,p.symbolMargin=_}var O=m*(y/2),B=p.pathPosition=[];B[A.index]=n[A.wh]/2,B[g.index]="start"===s?O:"end"===s?d-O:d/2,a&&(B[0]+=a[0],B[1]+=a[1]);var M=p.bundlePosition=[];M[A.index]=n[A.xy],M[g.index]=n[g.xy];var T=p.barRectShape=i.extend({},n);T[g.wh]=m*Math.max(Math.abs(n[g.wh]),Math.abs(B[g.index]+O)),T[A.wh]=n[A.wh];var I=p.clipShape={};I[A.xy]=-n[A.xy],I[A.wh]=f.ecSize[A.wh],I[g.xy]=0,I[g.wh]=n[g.wh]}function x(e){var t=e.symbolPatternSize,n=s(e.symbolType,-t/2,-t/2,t,t,e.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function C(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(N(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u0:r<0)&&(i=c-1-e),t[l.index]=d*(i-c/2+.5)+s[l.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function A(){N(e,(function(e){e.trigger("emphasis")}))}function g(){N(e,(function(e){e.trigger("normal")}))}}function S(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?j(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,r):(o=e.__pictorialMainPath=x(n),i.add(o),j(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,r),o.on("mouseover",a).on("mouseout",s)),T(o,n)}function k(e,t,n){var r=i.extend({},t.barRectShape),a=e.__pictorialBarRect;a?j(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new o.Rect({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function E(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,s=i.extend({},n.clipShape),l=t.valueDim,c=n.animationModel,u=n.dataIndex;if(a)o.updateProps(a,{shape:s},c,u);else{s[l.wh]=0,a=new o.Rect({shape:s}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var d={};d[l.wh]=n.clipShape[l.wh],o[r?"updateProps":"initProps"](a,{shape:d},c,u)}}}function O(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=B,n.isAnimationEnabled=M,n}function B(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function M(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function T(e,t){e.off("emphasis").off("normal");var n=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*n[0],1.1*n[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:n.slice()},400,"elasticOut")}))}function I(e,t,n,r){var i=new o.Group,a=new o.Group;return i.add(a),i.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?C(i,t,n):S(i,t,n),k(i,n,r),E(i,t,n,r),i.__pictorialShapeStr=P(e,n),i.__pictorialSymbolMeta=n,i}function L(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;o.updateProps(a,{position:n.bundlePosition.slice()},r,i),n.symbolRepeat?C(e,t,n,!0):S(e,t,n,!0),k(e,n,!0),E(e,t,n,!0)}function D(e,t,n,r){var a=r.__pictorialBarRect;a&&(a.style.text=null);var s=[];N(r,(function(e){s.push(e)})),r.__pictorialMainPath&&s.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),i.each(s,(function(e){o.updateProps(e,{scale:[0,0]},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function P(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function N(e,t,n){i.each(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function j(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&o[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function F(e,t,n){var r=n.color,a=n.dataIndex,s=n.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");N(e,(function(e){e.setColor(r),e.setStyle(i.defaults({fill:r,opacity:n.opacity},l)),o.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=n.z2}));var d={},f=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;h(p.style,d,s,r,t.seriesModel,a,f),o.setHoverStyle(p,d)}function R(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var U=g;e.exports=U},"N/zr":function(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=a(n("Lo0S"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function a(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}var s={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(e){for(var t="",n=e.length,r=n%3,i=0;i>2],t+=this.toBase64Table[((3&e[i])<<4)+(e[i+1]>>4)],t+=this.toBase64Table[((15&e[i+1])<<2)+(e[i+2]>>6)],t+=this.toBase64Table[63&e[i+2]];var o=n-r;return 2===r?(t+=this.toBase64Table[e[o]>>2],t+=this.toBase64Table[((3&e[o])<<4)+(e[o+1]>>4)],t+=this.toBase64Table[(15&e[o+1])<<2],t+=this.toBase64Table[64]):1===r&&(t+=this.toBase64Table[e[o]>>2],t+=this.toBase64Table[(3&e[o])<<4],t+=this.toBase64Table[64],t+=this.toBase64Table[64]),t},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.indexOf("=")-t;n<0&&(n=e.length-t);for(var r=3*(n>>2)+Math.floor(n%4/1.5),o=new Array(r),a=0,s=0,l=0,c=t;c=8&&(a-=8,d||(o[l++]=s>>a&255),s&=(1<0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",e,t):(s.virtualPiece=new o(n,e,t),d.add(s.virtualPiece)),r.piece._onclickEvent&&r.piece.off("click",r.piece._onclickEvent);var i=function(e){s._rootToNode(r.parentNode)};r.piece._onclickEvent=i,s.virtualPiece.on("click",i)}else s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece.childAt(0)===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";l(a,s)}}n=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}}}),d=u;e.exports=d},NAnI:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("wXyp"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},NBmB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodingName=i,t.encodings=void 0;var r={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};function i(e){switch(e){case r.encodingRaw:return"Raw";case r.encodingCopyRect:return"CopyRect";case r.encodingRRE:return"RRE";case r.encodingHextile:return"Hextile";case r.encodingTight:return"Tight";case r.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+e+"]"}}t.encodings=r},NC18:function(e,t,n){var r=n("y+Vt"),i=n("IMiH"),o=n("7oTu"),a=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,u=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},d=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(u(e)*u(t))},h=function(e,t){return(e[0]*t[1]1&&(u*=a(b),f*=a(b));var _=(i===o?-1:1)*a((u*u*(f*f)-u*u*(y*y)-f*f*(v*v))/(u*u*(y*y)+f*f*(v*v)))||0,w=_*u*y/f,x=_*-f*v/u,C=(e+n)/2+l(m)*w-s(m)*x,S=(t+r)/2+s(m)*w+l(m)*x,k=h([1,0],[(v-w)/u,(y-x)/f]),E=[(v-w)/u,(y-x)/f],O=[(-1*v-w)/u,(-1*y-x)/f],B=h(E,O);d(E,O)<=-1&&(B=c),d(E,O)>=1&&(B=0),0===o&&B>0&&(B-=2*c),1===o&&B<0&&(B+=2*c),g.addData(A,C,S,u,f,k,B,m,o)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,A=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(e){if(!e)return new i;for(var t,n=0,r=0,o=n,a=r,s=new i,l=i.CMD,c=e.match(p),u=0;u=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:v/2},h="vertical"===r?i.height:i.width,f=e.getModel("controlStyle"),p=f.get("show",!0),A=p?f.get("itemSize"):0,g=p?f.get("itemGap"):0,m=A+g,y=e.get("label.rotate")||0;y=y*v/180;var _=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),x=p&&f.get("showPrevBtn",!0),C=p&&f.get("showNextBtn",!0),S=0,k=h;return"left"===_||"bottom"===_?(w&&(o=[0,0],S+=m),x&&(a=[S,0],S+=m),C&&(s=[k-A,0],k-=m)):(w&&(o=[k-A,0],k-=m),x&&(a=[0,0],S+=m),C&&(s=[k-A,0],k-=m)),l=[S,k],e.get("inverse")&&l.reverse(),{viewRect:i,mainLength:h,orient:r,rotation:d[r],labelRotation:y,labelPosOpt:n,labelAlign:e.get("label.align")||c[r],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[r],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:l,controlSize:A,controlGap:g}},_position:function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=o.create(),s=i.x,l=i.y+i.height;o.translate(a,a,[-s,-l]),o.rotate(a,a,-v/2),o.translate(a,a,[s,l]),i=i.clone(),i.applyTransform(a)}var c=m(i),u=m(n.getBoundingRect()),d=m(r.getBoundingRect()),h=n.position,f=r.position;f[0]=h[0]=c[0][0];var p=e.labelPosOpt;if(isNaN(p)){var A="+"===p?0:1;y(h,u,c,1,A),y(f,d,c,1,1-A)}else{A=p>=0?0:1;y(h,u,c,1,A),f[1]=h[1]+p}function g(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.attr("position",h),r.attr("position",f),n.rotation=r.rotation=e.rotation,g(n),g(r)},_createAxis:function(e,t){var n=t.getData(),r=t.get("axisType"),i=h.createScaleByModel(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return e}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.niceTicks();var a=new c("value",i,e.axisExtent,r);return a.model=t,a},_createGroup:function(e){var t=this["_"+e]=new a.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,n,i){var o=n.getExtent();i.get("lineStyle.show")&&t.add(new a.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:r.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,r){var i=r.getData(),o=n.scale.getTicks();m(o,(function(e){var o=n.dataToCoord(e),s=i.getItemModel(e),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),u={position:[o,0],onclick:g(this._changeTimeline,this,e)},d=w(s,l,t,u);a.setHoverStyle(d,c.getItemStyle()),s.get("tooltip")?(d.dataIndex=e,d.dataModel=r):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(e,t,n,r){var i=n.getLabelModel();if(i.get("show")){var o=r.getData(),s=n.getViewLabels();m(s,(function(r){var i=r.tickValue,s=o.getItemModel(i),l=s.getModel("label"),c=s.getModel("emphasis.label"),u=n.dataToCoord(r.tickValue),d=new a.Text({position:[u,0],rotation:e.labelRotation-e.rotation,onclick:g(this._changeTimeline,this,i),silent:!1});a.setTextStyle(d.style,l,{text:r.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(d),a.setHoverStyle(d,a.setTextStyle({},c))}),this)}},_renderControl:function(e,t,n,r){var i=e.controlSize,o=e.rotation,s=r.getModel("controlStyle").getItemStyle(),l=r.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-i/2,i,i],u=r.getPlayState(),d=r.get("inverse",!0);function h(e,n,u,d){if(e){var h={position:e,origin:[i/2,0],rotation:d?-o:0,rectHover:!0,style:s,onclick:u},f=_(r,n,c,h);t.add(f),a.setHoverStyle(f,l)}}h(e.nextBtnPosition,"controlStyle.nextIcon",g(this._changeTimeline,this,d?"-":"+")),h(e.prevBtnPosition,"controlStyle.prevIcon",g(this._changeTimeline,this,d?"+":"-")),h(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),g(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=g(s._handlePointerDrag,s),e.ondragend=g(s._handlePointerDragend,s),x(e,o,n,r,!0)},onUpdate:function(e){x(e,o,n,r)}};this._currentPointer=w(a,a,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var n=this._toAxisCoord(e)[0],r=this._axis,i=f.asc(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0||t.relatedTarget.className.indexOf("".concat(o,"-next"))>=0)||(e.setState({goInputText:""}),i(e.getValidValue()))},e.go=function(t){var n=e.state.goInputText;""!==n&&(t.keyCode!==b.ENTER&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(f["a"])(n,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){var n=isNaN(Number(e))?0:Number(e),r=isNaN(Number(t))?0:Number(t);return n-r}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,i=t.rootPrefixCls,o=t.changeSize,a=t.quickGo,s=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,h=t.disabled,f=this.state.goInputText,p="".concat(i,"-options"),A=c,g=null,m=null,v=null;if(!o&&!a)return null;var y=this.getPageSizeOptions();if(o&&A){var b=y.map((function(t,n){return l.a.createElement(A.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))}));g=l.a.createElement(A,{disabled:h,prefixCls:d,showSearch:!1,className:"".concat(p,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},b)}return a&&(s&&(v="boolean"===typeof s?l.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(p,"-quick-jumper-button")},r.jump_to_confirm):l.a.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),m=l.a.createElement("div",{className:"".concat(p,"-quick-jumper")},r.jump_to,l.a.createElement("input",{disabled:h,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,v)),l.a.createElement("li",{className:"".concat(p)},g,m)}}]),n}(l.a.Component);_.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=_,x=n("N2Kk");function C(){}function S(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}function k(e,t,n){return n}function E(e,t,n){var r="undefined"===typeof e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var O=function(e){Object(p["a"])(n,e);var t=Object(A["a"])(n);function n(e){var r;Object(h["a"])(this,n),r=t.call(this,e),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(E(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||l.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"===typeof e&&(i=l.a.createElement(e,Object(d["a"])({},r.props))),i},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return S(e)&&e!==r.state.current},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize,i=e.total;return!(i<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==b.ARROW_UP&&e.keyCode!==b.ARROW_DOWN||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e),n=r.state.currentInputValue;t!==n&&r.setState({currentInputValue:t}),e.keyCode===b.ENTER?r.handleChange(t):e.keyCode===b.ARROW_UP?r.handleChange(t-1):e.keyCode===b.ARROW_DOWN&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=E(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"===typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var i=E(void 0,r.state,r.props);n>i?n=i:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var o=r.state.pageSize;return r.props.onChange(n,o),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),i=2;i=r?r:Number(n),t}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return"undefined"!==typeof t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=t.itemRender,i=r(e,"prev",this.getItemIcon(n,"prev page")),o=!this.hasPrev();return Object(s["isValidElement"])(i)?Object(s["cloneElement"])(i,{disabled:o}):i}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=t.itemRender,i=r(e,"next",this.getItemIcon(n,"next page")),o=!this.hasNext();return Object(s["isValidElement"])(i)?Object(s["cloneElement"])(i,{disabled:o}):i}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,i=t.style,o=t.disabled,a=t.hideOnSinglePage,d=t.total,h=t.locale,f=t.showQuickJumper,p=t.showLessItems,A=t.showTitle,g=t.showTotal,v=t.simple,b=t.itemRender,_=t.showPrevNextJumpers,x=t.jumpPrevIcon,C=t.jumpNextIcon,S=t.selectComponentClass,k=t.selectPrefixCls,O=t.pageSizeOptions,B=this.state,M=B.current,T=B.pageSize,I=B.currentInputValue;if(!0===a&&d<=T)return null;var L=E(void 0,this.state,this.props),D=[],P=null,N=null,j=null,F=null,R=null,U=f&&f.goButton,H=p?1:2,Q=M-1>0?M-1:0,K=M+1=2*H&&3!==M&&(D[0]=Object(s["cloneElement"])(D[0],{className:"".concat(n,"-item-after-jump-prev")}),D.unshift(P)),L-M>=2*H&&M!==L-2&&(D[D.length-1]=Object(s["cloneElement"])(D[D.length-1],{className:"".concat(n,"-item-before-jump-next")}),D.push(N)),1!==Y&&D.unshift(j),Z!==L&&D.push(F)}var ee=null;g&&(ee=l.a.createElement("li",{className:"".concat(n,"-total-text")},g(d,[0===d?0:(M-1)*T+1,M*T>d?d:M*T])));var te=!this.hasPrev()||!L,ne=!this.hasNext()||!L;return l.a.createElement("ul",Object(c["a"])({className:m()(n,r,Object(u["a"])({},"".concat(n,"-disabled"),o)),style:i,unselectable:"unselectable",ref:this.savePaginationNode},z),ee,l.a.createElement("li",{title:A?h.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:m()("".concat(n,"-prev"),Object(u["a"])({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(Q)),D,l.a.createElement("li",{title:A?h.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:m()("".concat(n,"-next"),Object(u["a"])({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(K)),l.a.createElement(w,{disabled:o,locale:h,rootPrefixCls:n,selectComponentClass:S,selectPrefixCls:k,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:M,pageSize:T,pageSizeOptions:O,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:U}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,i=E(e.pageSize,t,e);r=r>i?i:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(l.a.Component);O.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:C,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:C,locale:x["a"],style:{},itemRender:k,totalBoundaryShowSizeChanger:50};var B=O,M=n("H4fg"),T=n("DFhj"),I=n.n(T),L=n("fEPi"),D=n.n(L),P=n("u9fO"),N=n.n(P),j=n("mO/d"),F=n.n(j),R=n("2fM7"),U=function(e){return s["createElement"](R["a"],a()({size:"small"},e))};U.Option=R["a"].Option;var H=U,Q=n("YMnH"),K=n("H84U"),z=n("5OYt"),V=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 i=0;for(r=Object.getOwnPropertySymbols(e);i1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a0){if(e<=t[0])return n[0];if(e>=t[1])return n[1]}else{if(e>=t[0])return n[0];if(e<=t[1])return n[1]}else{if(e===t[0])return n[0];if(e===t[1])return n[1]}return(e-t[0])/i*o+n[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?o(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;var t=1,n=0;while(Math.round(e*t)/t!==e)t*=10,n++;return n}function d(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i}function h(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function f(e,t,n){if(!e[t])return 0;var i=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var o=Math.pow(10,n),a=r.map(e,(function(e){return(isNaN(e)?0:e)/i*o*100})),s=100*o,l=r.map(a,(function(e){return Math.floor(e)})),c=r.reduce(l,(function(e,t){return e+t}),0),u=r.map(a,(function(e,t){return e-l[t]}));while(cd&&(d=u[f],h=f);++l[h],u[h]=0,++c}return l[t]/o}var p=9007199254740991;function A(e){var t=2*Math.PI;return(e%t+t)%t}function g(e){return e>-i&&e=10&&t++,t}function _(e,t){var n,r=b(e),i=Math.pow(10,r),o=e/i;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*i,r>=-20?+e.toFixed(r<0?-r:0):e}function w(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function x(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r=0}t.linearMap=a,t.parsePercent=s,t.round=l,t.asc=c,t.getPrecision=u,t.getPrecisionSafe=d,t.getPixelPrecision=h,t.getPercentWithPrecision=f,t.MAX_SAFE_INTEGER=p,t.remRadian=A,t.isRadianAroundZero=g,t.parseDate=v,t.quantity=y,t.quantityExponent=b,t.nice=_,t.quantile=w,t.reformIntervals=x,t.isNumeric=C},OKJ2:function(e,t,n){var r=n("KxfA"),i=r.retrieveRawValue,o=n("7aKB"),a=o.getTooltipMarker,s=o.formatTpl,l=n("4NO4"),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,d={getDataParams:function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"color"),u=n.getItemVisual(e,"borderColor"),d=this.ecModel.getComponent("tooltip"),h=d&&d.get("renderMode"),f=c(h),p=this.mainType,A="series"===p,g=n.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:A?this.subType:null,seriesIndex:this.seriesIndex,seriesId:A?this.id:null,seriesName:A?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:r,color:l,borderColor:u,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:a({color:l,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,r,o){t=t||"normal";var a=this.getData(n),l=a.getItemModel(e),c=this.getDataParams(e,n);null!=r&&c.value instanceof Array&&(c.value=c.value[r]);var d=l.get("normal"===t?[o||"label","formatter"]:[t,o||"label","formatter"]);if("function"===typeof d)return c.status=t,c.dimensionIndex=r,d(c);if("string"===typeof d){var h=s(d,c);return h.replace(u,(function(t,n){var r=n.length;return"["===n.charAt(0)&&"]"===n.charAt(r-1)&&(n=+n.slice(1,r-1)),i(a,e,n)}))}},getRawValue:function(e,t){return i(this.getData(t),e)},formatTooltip:function(){}};e.exports=d},OPEp:function(e,t,n){},OQFs:function(e,t,n){var r=n("KCsZ"),i=r([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(e){var t=i(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),n=Math.max(e,2),r=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[r,r]:[n,n])}};e.exports=o},OS9S:function(e,t,n){var r=n("bYtY"),i=r.inherits,o=n("Gev7"),a=n("mFDi");function s(e){o.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},s.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n0?100:20}},getFirstTargetAxisModel:function(){var e;return d((function(t){if(null==e){var n=this.get(t.axisIndex);n.length&&(e=this.dependentModels[t.axis][n[0]])}}),this),e},eachTargetAxis:function(e,t){var n=this.ecModel;d((function(r){u(this.get(r.axisIndex),(function(i){e.call(t,r,i,this,n)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var n=this.getAxisProxy(e,t);return n&&n.getAxisModel()},setRawRange:function(e){var t=this.option,n=this.settledOption;u([["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),p(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},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},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var n in t)if(t.hasOwnProperty(n)&&t[n].hostedBy(this))return t[n];for(var n in t)if(t.hasOwnProperty(n)&&!t[n].hostedBy(this))return t[n]},getRangePropMode:function(){return this._rangePropMode.slice()}});function f(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function p(e,t){var n=e._rangePropMode,r=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,i){var o=null!=t[e[0]],a=null!=t[e[1]];o&&!a?n[i]="percent":!o&&a?n[i]="value":r?n[i]=r[i]:o&&(n[i]="percent")}))}var A=h;e.exports=A},OnYD:function(e,t,n){},OxZn:function(e,t,n){var r=n("GrKN").FilterCSS,i=n("vaBj"),o=n("UOFQ"),a=o.parseTag,s=o.parseAttr,l=n("63Hc");function c(e){return void 0===e||null===e}function u(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};e=l.trim(e.slice(t+1,-1));var n="/"===e[e.length-1];return n&&(e=l.trim(e.slice(0,-1))),{html:e,closing:n}}function d(e){var t={};for(var n in e)t[n]=e[n];return t}function h(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}function f(e){e=d(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=i.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=h(e.whiteList||e.allowList):e.whiteList=i.whiteList,e.onTag=e.onTag||i.onTag,e.onTagAttr=e.onTagAttr||i.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||i.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||i.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,e.escapeHtml=e.escapeHtml||i.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new r(e.css))}f.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,o=n.onTag,d=n.onIgnoreTag,h=n.onTagAttr,f=n.onIgnoreTagAttr,p=n.safeAttrValue,A=n.escapeHtml,g=t.cssFilter;n.stripBlankChar&&(e=i.stripBlankChar(e)),n.allowCommentTag||(e=i.stripCommentTag(e));var m=!1;n.stripIgnoreTagBody&&(m=i.StripTagBody(n.stripIgnoreTagBody,d),d=m.onIgnoreTag);var v=a(e,(function(e,t,n,i,a){var m={sourcePosition:e,position:t,isClosing:a,isWhite:Object.prototype.hasOwnProperty.call(r,n)},v=o(n,i,m);if(!c(v))return v;if(m.isWhite){if(m.isClosing)return"";var y=u(i),b=r[n],_=s(y.html,(function(e,t){var r=-1!==l.indexOf(b,e),i=h(n,e,t,r);return c(i)?r?(t=p(n,e,t,g),t?e+'="'+t+'"':e):(i=f(n,e,t,r),c(i)?void 0:i):i}));return i="<"+n,_&&(i+=" "+_),y.closing&&(i+=" /"),i+=">",i}return v=d(n,i,m),c(v)?A(i):v}),A);return m&&(v=m.remove(v)),v},e.exports=f},"Oy/b":function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(0);var r=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),i=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.text=e,this.loc=t}var t=e.prototype;return t.range=function(t,n){return new e(n,r.range(this,t))},e}(),o=function e(t,n){this.position=void 0;var r,i="KaTeX parse error: "+t,o=n&&n.loc;if(o&&o.start<=o.end){var a=o.lexer.input;r=o.start;var s=o.end;r===a.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ";var l,c,u=a.slice(r,s).replace(/[^]/g,"$&\u0332");l=r>15?"\u2026"+a.slice(r-15,r):a.slice(0,r),c=s+15":">","<":"<",'"':""","'":"'"},h=/[&><"']/g;function f(e){return String(e).replace(h,(function(e){return d[e]}))}var p=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},A=function(e){var t=p(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},g=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},m=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"},v={contains:s,deflt:l,escape:f,hyphenate:u,getBaseElem:p,isCharacterBox:A,protocolFromUrl:m},y=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=v.deflt(e.displayMode,!1),this.output=v.deflt(e.output,"htmlAndMathml"),this.leqno=v.deflt(e.leqno,!1),this.fleqn=v.deflt(e.fleqn,!1),this.throwOnError=v.deflt(e.throwOnError,!0),this.errorColor=v.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,v.deflt(e.minRuleThickness,0)),this.colorIsTextColor=v.deflt(e.colorIsTextColor,!1),this.strict=v.deflt(e.strict,"warn"),this.trust=v.deflt(e.trust,!1),this.maxSize=Math.max(0,v.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,v.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var r=this.strict;if("function"===typeof r&&(r=r(e,t,n)),r&&"ignore"!==r){if(!0===r||"error"===r)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===r?"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"===typeof r)try{r=r(e,t,n)}catch(i){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r||("warn"===r?("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!==typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),!1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=v.protocolFromUrl(e.url));var t="function"===typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),b=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return B[M[this.id]]},t.sub=function(){return B[T[this.id]]},t.fracNum=function(){return B[I[this.id]]},t.fracDen=function(){return B[L[this.id]]},t.cramp=function(){return B[D[this.id]]},t.text=function(){return B[P[this.id]]},t.isTight=function(){return this.size>=2},e}(),_=0,w=1,x=2,C=3,S=4,k=5,E=6,O=7,B=[new b(_,0,!1),new b(w,0,!0),new b(x,1,!1),new b(C,1,!0),new b(S,2,!1),new b(k,2,!0),new b(E,3,!1),new b(O,3,!0)],M=[S,k,S,k,E,O,E,O],T=[k,k,k,k,O,O,O,O],I=[x,C,S,k,E,O,E,O],L=[C,C,k,k,O,O,O,O],D=[w,w,C,C,k,k,O,O],P=[_,w,x,C,x,C,x,C],N={DISPLAY:B[_],TEXT:B[x],SCRIPT:B[S],SCRIPTSCRIPT:B[E]},j=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function F(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var R=[];function U(e){for(var t=0;t=R[t]&&e<=R[t+1])return!0;return!1}j.forEach((function(e){return e.blocks.forEach((function(e){return R.push.apply(R,e)}))}));var H=80,Q=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},K=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},z=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},V=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"},W=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},G=function(e,t,n){var r=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+r+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"},X=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=Q(t,H);break;case"sqrtSize1":r=K(t,H);break;case"sqrtSize2":r=z(t,H);break;case"sqrtSize3":r=V(t,H);break;case"sqrtSize4":r=W(t,H);break;case"sqrtTall":r=G(t,H,n)}return r},q={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},Y=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return v.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t",t},te=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,J.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return v.contains(this.classes,e)},t.toNode=function(){return $.call(this,"span")},t.toMarkup=function(){return ee.call(this,"span")},e}(),ne=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,J.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return v.contains(this.classes,e)},t.toNode=function(){return $.call(this,"a")},t.toMarkup=function(){return ee.call(this,"a")},e}(),re=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return v.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e=""+this.alt+"0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=Z(this.classes)),this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=v.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+v.escape(n)+'"');var i=v.escape(this.text);return e?(t+=">",t+=i,t+="",t):i},e}(),ae=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r":""},e}(),le=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t},t.toMarkup=function(){var e=" but got "+String(e)+".")}var de={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},he={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},fe={"\xc5":"A","\xc7":"C","\xd0":"D","\xde":"o","\xe5":"a","\xe7":"c","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function pe(e,t){de[e]=t}function Ae(e,t,n){if(!de[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=de[t][r];if(!i&&e[0]in fe&&(r=fe[e[0]].charCodeAt(0),i=de[t][r]),i||"text"!==n||U(r)&&(i=de[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var ge={};function me(e){var t;if(t=e>=5?0:e>=3?1:2,!ge[t]){var n=ge[t]={cssEmPerMu:he.quad[t]/18};for(var r in he)he.hasOwnProperty(r)&&(n[r]=he[r][t])}return ge[t]}var ve={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ye={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},be={math:{},text:{}},_e=be;function we(e,t,n,r,i,o){be[e][i]={font:t,group:n,replace:r},o&&r&&(be[e][r]=be[e][i])}var xe="math",Ce="text",Se="main",ke="ams",Ee="accent-token",Oe="bin",Be="close",Me="inner",Te="mathord",Ie="op-token",Le="open",De="punct",Pe="rel",Ne="spacing",je="textord";we(xe,Se,Pe,"\u2261","\\equiv",!0),we(xe,Se,Pe,"\u227a","\\prec",!0),we(xe,Se,Pe,"\u227b","\\succ",!0),we(xe,Se,Pe,"\u223c","\\sim",!0),we(xe,Se,Pe,"\u22a5","\\perp"),we(xe,Se,Pe,"\u2aaf","\\preceq",!0),we(xe,Se,Pe,"\u2ab0","\\succeq",!0),we(xe,Se,Pe,"\u2243","\\simeq",!0),we(xe,Se,Pe,"\u2223","\\mid",!0),we(xe,Se,Pe,"\u226a","\\ll",!0),we(xe,Se,Pe,"\u226b","\\gg",!0),we(xe,Se,Pe,"\u224d","\\asymp",!0),we(xe,Se,Pe,"\u2225","\\parallel"),we(xe,Se,Pe,"\u22c8","\\bowtie",!0),we(xe,Se,Pe,"\u2323","\\smile",!0),we(xe,Se,Pe,"\u2291","\\sqsubseteq",!0),we(xe,Se,Pe,"\u2292","\\sqsupseteq",!0),we(xe,Se,Pe,"\u2250","\\doteq",!0),we(xe,Se,Pe,"\u2322","\\frown",!0),we(xe,Se,Pe,"\u220b","\\ni",!0),we(xe,Se,Pe,"\u221d","\\propto",!0),we(xe,Se,Pe,"\u22a2","\\vdash",!0),we(xe,Se,Pe,"\u22a3","\\dashv",!0),we(xe,Se,Pe,"\u220b","\\owns"),we(xe,Se,De,".","\\ldotp"),we(xe,Se,De,"\u22c5","\\cdotp"),we(xe,Se,je,"#","\\#"),we(Ce,Se,je,"#","\\#"),we(xe,Se,je,"&","\\&"),we(Ce,Se,je,"&","\\&"),we(xe,Se,je,"\u2135","\\aleph",!0),we(xe,Se,je,"\u2200","\\forall",!0),we(xe,Se,je,"\u210f","\\hbar",!0),we(xe,Se,je,"\u2203","\\exists",!0),we(xe,Se,je,"\u2207","\\nabla",!0),we(xe,Se,je,"\u266d","\\flat",!0),we(xe,Se,je,"\u2113","\\ell",!0),we(xe,Se,je,"\u266e","\\natural",!0),we(xe,Se,je,"\u2663","\\clubsuit",!0),we(xe,Se,je,"\u2118","\\wp",!0),we(xe,Se,je,"\u266f","\\sharp",!0),we(xe,Se,je,"\u2662","\\diamondsuit",!0),we(xe,Se,je,"\u211c","\\Re",!0),we(xe,Se,je,"\u2661","\\heartsuit",!0),we(xe,Se,je,"\u2111","\\Im",!0),we(xe,Se,je,"\u2660","\\spadesuit",!0),we(Ce,Se,je,"\xa7","\\S",!0),we(Ce,Se,je,"\xb6","\\P",!0),we(xe,Se,je,"\u2020","\\dag"),we(Ce,Se,je,"\u2020","\\dag"),we(Ce,Se,je,"\u2020","\\textdagger"),we(xe,Se,je,"\u2021","\\ddag"),we(Ce,Se,je,"\u2021","\\ddag"),we(Ce,Se,je,"\u2021","\\textdaggerdbl"),we(xe,Se,Be,"\u23b1","\\rmoustache",!0),we(xe,Se,Le,"\u23b0","\\lmoustache",!0),we(xe,Se,Be,"\u27ef","\\rgroup",!0),we(xe,Se,Le,"\u27ee","\\lgroup",!0),we(xe,Se,Oe,"\u2213","\\mp",!0),we(xe,Se,Oe,"\u2296","\\ominus",!0),we(xe,Se,Oe,"\u228e","\\uplus",!0),we(xe,Se,Oe,"\u2293","\\sqcap",!0),we(xe,Se,Oe,"\u2217","\\ast"),we(xe,Se,Oe,"\u2294","\\sqcup",!0),we(xe,Se,Oe,"\u25ef","\\bigcirc"),we(xe,Se,Oe,"\u2219","\\bullet"),we(xe,Se,Oe,"\u2021","\\ddagger"),we(xe,Se,Oe,"\u2240","\\wr",!0),we(xe,Se,Oe,"\u2a3f","\\amalg"),we(xe,Se,Oe,"&","\\And"),we(xe,Se,Pe,"\u27f5","\\longleftarrow",!0),we(xe,Se,Pe,"\u21d0","\\Leftarrow",!0),we(xe,Se,Pe,"\u27f8","\\Longleftarrow",!0),we(xe,Se,Pe,"\u27f6","\\longrightarrow",!0),we(xe,Se,Pe,"\u21d2","\\Rightarrow",!0),we(xe,Se,Pe,"\u27f9","\\Longrightarrow",!0),we(xe,Se,Pe,"\u2194","\\leftrightarrow",!0),we(xe,Se,Pe,"\u27f7","\\longleftrightarrow",!0),we(xe,Se,Pe,"\u21d4","\\Leftrightarrow",!0),we(xe,Se,Pe,"\u27fa","\\Longleftrightarrow",!0),we(xe,Se,Pe,"\u21a6","\\mapsto",!0),we(xe,Se,Pe,"\u27fc","\\longmapsto",!0),we(xe,Se,Pe,"\u2197","\\nearrow",!0),we(xe,Se,Pe,"\u21a9","\\hookleftarrow",!0),we(xe,Se,Pe,"\u21aa","\\hookrightarrow",!0),we(xe,Se,Pe,"\u2198","\\searrow",!0),we(xe,Se,Pe,"\u21bc","\\leftharpoonup",!0),we(xe,Se,Pe,"\u21c0","\\rightharpoonup",!0),we(xe,Se,Pe,"\u2199","\\swarrow",!0),we(xe,Se,Pe,"\u21bd","\\leftharpoondown",!0),we(xe,Se,Pe,"\u21c1","\\rightharpoondown",!0),we(xe,Se,Pe,"\u2196","\\nwarrow",!0),we(xe,Se,Pe,"\u21cc","\\rightleftharpoons",!0),we(xe,ke,Pe,"\u226e","\\nless",!0),we(xe,ke,Pe,"\ue010","\\@nleqslant"),we(xe,ke,Pe,"\ue011","\\@nleqq"),we(xe,ke,Pe,"\u2a87","\\lneq",!0),we(xe,ke,Pe,"\u2268","\\lneqq",!0),we(xe,ke,Pe,"\ue00c","\\@lvertneqq"),we(xe,ke,Pe,"\u22e6","\\lnsim",!0),we(xe,ke,Pe,"\u2a89","\\lnapprox",!0),we(xe,ke,Pe,"\u2280","\\nprec",!0),we(xe,ke,Pe,"\u22e0","\\npreceq",!0),we(xe,ke,Pe,"\u22e8","\\precnsim",!0),we(xe,ke,Pe,"\u2ab9","\\precnapprox",!0),we(xe,ke,Pe,"\u2241","\\nsim",!0),we(xe,ke,Pe,"\ue006","\\@nshortmid"),we(xe,ke,Pe,"\u2224","\\nmid",!0),we(xe,ke,Pe,"\u22ac","\\nvdash",!0),we(xe,ke,Pe,"\u22ad","\\nvDash",!0),we(xe,ke,Pe,"\u22ea","\\ntriangleleft"),we(xe,ke,Pe,"\u22ec","\\ntrianglelefteq",!0),we(xe,ke,Pe,"\u228a","\\subsetneq",!0),we(xe,ke,Pe,"\ue01a","\\@varsubsetneq"),we(xe,ke,Pe,"\u2acb","\\subsetneqq",!0),we(xe,ke,Pe,"\ue017","\\@varsubsetneqq"),we(xe,ke,Pe,"\u226f","\\ngtr",!0),we(xe,ke,Pe,"\ue00f","\\@ngeqslant"),we(xe,ke,Pe,"\ue00e","\\@ngeqq"),we(xe,ke,Pe,"\u2a88","\\gneq",!0),we(xe,ke,Pe,"\u2269","\\gneqq",!0),we(xe,ke,Pe,"\ue00d","\\@gvertneqq"),we(xe,ke,Pe,"\u22e7","\\gnsim",!0),we(xe,ke,Pe,"\u2a8a","\\gnapprox",!0),we(xe,ke,Pe,"\u2281","\\nsucc",!0),we(xe,ke,Pe,"\u22e1","\\nsucceq",!0),we(xe,ke,Pe,"\u22e9","\\succnsim",!0),we(xe,ke,Pe,"\u2aba","\\succnapprox",!0),we(xe,ke,Pe,"\u2246","\\ncong",!0),we(xe,ke,Pe,"\ue007","\\@nshortparallel"),we(xe,ke,Pe,"\u2226","\\nparallel",!0),we(xe,ke,Pe,"\u22af","\\nVDash",!0),we(xe,ke,Pe,"\u22eb","\\ntriangleright"),we(xe,ke,Pe,"\u22ed","\\ntrianglerighteq",!0),we(xe,ke,Pe,"\ue018","\\@nsupseteqq"),we(xe,ke,Pe,"\u228b","\\supsetneq",!0),we(xe,ke,Pe,"\ue01b","\\@varsupsetneq"),we(xe,ke,Pe,"\u2acc","\\supsetneqq",!0),we(xe,ke,Pe,"\ue019","\\@varsupsetneqq"),we(xe,ke,Pe,"\u22ae","\\nVdash",!0),we(xe,ke,Pe,"\u2ab5","\\precneqq",!0),we(xe,ke,Pe,"\u2ab6","\\succneqq",!0),we(xe,ke,Pe,"\ue016","\\@nsubseteqq"),we(xe,ke,Oe,"\u22b4","\\unlhd"),we(xe,ke,Oe,"\u22b5","\\unrhd"),we(xe,ke,Pe,"\u219a","\\nleftarrow",!0),we(xe,ke,Pe,"\u219b","\\nrightarrow",!0),we(xe,ke,Pe,"\u21cd","\\nLeftarrow",!0),we(xe,ke,Pe,"\u21cf","\\nRightarrow",!0),we(xe,ke,Pe,"\u21ae","\\nleftrightarrow",!0),we(xe,ke,Pe,"\u21ce","\\nLeftrightarrow",!0),we(xe,ke,Pe,"\u25b3","\\vartriangle"),we(xe,ke,je,"\u210f","\\hslash"),we(xe,ke,je,"\u25bd","\\triangledown"),we(xe,ke,je,"\u25ca","\\lozenge"),we(xe,ke,je,"\u24c8","\\circledS"),we(xe,ke,je,"\xae","\\circledR"),we(Ce,ke,je,"\xae","\\circledR"),we(xe,ke,je,"\u2221","\\measuredangle",!0),we(xe,ke,je,"\u2204","\\nexists"),we(xe,ke,je,"\u2127","\\mho"),we(xe,ke,je,"\u2132","\\Finv",!0),we(xe,ke,je,"\u2141","\\Game",!0),we(xe,ke,je,"\u2035","\\backprime"),we(xe,ke,je,"\u25b2","\\blacktriangle"),we(xe,ke,je,"\u25bc","\\blacktriangledown"),we(xe,ke,je,"\u25a0","\\blacksquare"),we(xe,ke,je,"\u29eb","\\blacklozenge"),we(xe,ke,je,"\u2605","\\bigstar"),we(xe,ke,je,"\u2222","\\sphericalangle",!0),we(xe,ke,je,"\u2201","\\complement",!0),we(xe,ke,je,"\xf0","\\eth",!0),we(xe,ke,je,"\u2571","\\diagup"),we(xe,ke,je,"\u2572","\\diagdown"),we(xe,ke,je,"\u25a1","\\square"),we(xe,ke,je,"\u25a1","\\Box"),we(xe,ke,je,"\u25ca","\\Diamond"),we(xe,ke,je,"\xa5","\\yen",!0),we(Ce,ke,je,"\xa5","\\yen",!0),we(xe,ke,je,"\u2713","\\checkmark",!0),we(Ce,ke,je,"\u2713","\\checkmark"),we(xe,ke,je,"\u2136","\\beth",!0),we(xe,ke,je,"\u2138","\\daleth",!0),we(xe,ke,je,"\u2137","\\gimel",!0),we(xe,ke,je,"\u03dd","\\digamma",!0),we(xe,ke,je,"\u03f0","\\varkappa"),we(xe,ke,Le,"\u250c","\\ulcorner",!0),we(xe,ke,Be,"\u2510","\\urcorner",!0),we(xe,ke,Le,"\u2514","\\llcorner",!0),we(xe,ke,Be,"\u2518","\\lrcorner",!0),we(xe,ke,Pe,"\u2266","\\leqq",!0),we(xe,ke,Pe,"\u2a7d","\\leqslant",!0),we(xe,ke,Pe,"\u2a95","\\eqslantless",!0),we(xe,ke,Pe,"\u2272","\\lesssim",!0),we(xe,ke,Pe,"\u2a85","\\lessapprox",!0),we(xe,ke,Pe,"\u224a","\\approxeq",!0),we(xe,ke,Oe,"\u22d6","\\lessdot"),we(xe,ke,Pe,"\u22d8","\\lll",!0),we(xe,ke,Pe,"\u2276","\\lessgtr",!0),we(xe,ke,Pe,"\u22da","\\lesseqgtr",!0),we(xe,ke,Pe,"\u2a8b","\\lesseqqgtr",!0),we(xe,ke,Pe,"\u2251","\\doteqdot"),we(xe,ke,Pe,"\u2253","\\risingdotseq",!0),we(xe,ke,Pe,"\u2252","\\fallingdotseq",!0),we(xe,ke,Pe,"\u223d","\\backsim",!0),we(xe,ke,Pe,"\u22cd","\\backsimeq",!0),we(xe,ke,Pe,"\u2ac5","\\subseteqq",!0),we(xe,ke,Pe,"\u22d0","\\Subset",!0),we(xe,ke,Pe,"\u228f","\\sqsubset",!0),we(xe,ke,Pe,"\u227c","\\preccurlyeq",!0),we(xe,ke,Pe,"\u22de","\\curlyeqprec",!0),we(xe,ke,Pe,"\u227e","\\precsim",!0),we(xe,ke,Pe,"\u2ab7","\\precapprox",!0),we(xe,ke,Pe,"\u22b2","\\vartriangleleft"),we(xe,ke,Pe,"\u22b4","\\trianglelefteq"),we(xe,ke,Pe,"\u22a8","\\vDash",!0),we(xe,ke,Pe,"\u22aa","\\Vvdash",!0),we(xe,ke,Pe,"\u2323","\\smallsmile"),we(xe,ke,Pe,"\u2322","\\smallfrown"),we(xe,ke,Pe,"\u224f","\\bumpeq",!0),we(xe,ke,Pe,"\u224e","\\Bumpeq",!0),we(xe,ke,Pe,"\u2267","\\geqq",!0),we(xe,ke,Pe,"\u2a7e","\\geqslant",!0),we(xe,ke,Pe,"\u2a96","\\eqslantgtr",!0),we(xe,ke,Pe,"\u2273","\\gtrsim",!0),we(xe,ke,Pe,"\u2a86","\\gtrapprox",!0),we(xe,ke,Oe,"\u22d7","\\gtrdot"),we(xe,ke,Pe,"\u22d9","\\ggg",!0),we(xe,ke,Pe,"\u2277","\\gtrless",!0),we(xe,ke,Pe,"\u22db","\\gtreqless",!0),we(xe,ke,Pe,"\u2a8c","\\gtreqqless",!0),we(xe,ke,Pe,"\u2256","\\eqcirc",!0),we(xe,ke,Pe,"\u2257","\\circeq",!0),we(xe,ke,Pe,"\u225c","\\triangleq",!0),we(xe,ke,Pe,"\u223c","\\thicksim"),we(xe,ke,Pe,"\u2248","\\thickapprox"),we(xe,ke,Pe,"\u2ac6","\\supseteqq",!0),we(xe,ke,Pe,"\u22d1","\\Supset",!0),we(xe,ke,Pe,"\u2290","\\sqsupset",!0),we(xe,ke,Pe,"\u227d","\\succcurlyeq",!0),we(xe,ke,Pe,"\u22df","\\curlyeqsucc",!0),we(xe,ke,Pe,"\u227f","\\succsim",!0),we(xe,ke,Pe,"\u2ab8","\\succapprox",!0),we(xe,ke,Pe,"\u22b3","\\vartriangleright"),we(xe,ke,Pe,"\u22b5","\\trianglerighteq"),we(xe,ke,Pe,"\u22a9","\\Vdash",!0),we(xe,ke,Pe,"\u2223","\\shortmid"),we(xe,ke,Pe,"\u2225","\\shortparallel"),we(xe,ke,Pe,"\u226c","\\between",!0),we(xe,ke,Pe,"\u22d4","\\pitchfork",!0),we(xe,ke,Pe,"\u221d","\\varpropto"),we(xe,ke,Pe,"\u25c0","\\blacktriangleleft"),we(xe,ke,Pe,"\u2234","\\therefore",!0),we(xe,ke,Pe,"\u220d","\\backepsilon"),we(xe,ke,Pe,"\u25b6","\\blacktriangleright"),we(xe,ke,Pe,"\u2235","\\because",!0),we(xe,ke,Pe,"\u22d8","\\llless"),we(xe,ke,Pe,"\u22d9","\\gggtr"),we(xe,ke,Oe,"\u22b2","\\lhd"),we(xe,ke,Oe,"\u22b3","\\rhd"),we(xe,ke,Pe,"\u2242","\\eqsim",!0),we(xe,Se,Pe,"\u22c8","\\Join"),we(xe,ke,Pe,"\u2251","\\Doteq",!0),we(xe,ke,Oe,"\u2214","\\dotplus",!0),we(xe,ke,Oe,"\u2216","\\smallsetminus"),we(xe,ke,Oe,"\u22d2","\\Cap",!0),we(xe,ke,Oe,"\u22d3","\\Cup",!0),we(xe,ke,Oe,"\u2a5e","\\doublebarwedge",!0),we(xe,ke,Oe,"\u229f","\\boxminus",!0),we(xe,ke,Oe,"\u229e","\\boxplus",!0),we(xe,ke,Oe,"\u22c7","\\divideontimes",!0),we(xe,ke,Oe,"\u22c9","\\ltimes",!0),we(xe,ke,Oe,"\u22ca","\\rtimes",!0),we(xe,ke,Oe,"\u22cb","\\leftthreetimes",!0),we(xe,ke,Oe,"\u22cc","\\rightthreetimes",!0),we(xe,ke,Oe,"\u22cf","\\curlywedge",!0),we(xe,ke,Oe,"\u22ce","\\curlyvee",!0),we(xe,ke,Oe,"\u229d","\\circleddash",!0),we(xe,ke,Oe,"\u229b","\\circledast",!0),we(xe,ke,Oe,"\u22c5","\\centerdot"),we(xe,ke,Oe,"\u22ba","\\intercal",!0),we(xe,ke,Oe,"\u22d2","\\doublecap"),we(xe,ke,Oe,"\u22d3","\\doublecup"),we(xe,ke,Oe,"\u22a0","\\boxtimes",!0),we(xe,ke,Pe,"\u21e2","\\dashrightarrow",!0),we(xe,ke,Pe,"\u21e0","\\dashleftarrow",!0),we(xe,ke,Pe,"\u21c7","\\leftleftarrows",!0),we(xe,ke,Pe,"\u21c6","\\leftrightarrows",!0),we(xe,ke,Pe,"\u21da","\\Lleftarrow",!0),we(xe,ke,Pe,"\u219e","\\twoheadleftarrow",!0),we(xe,ke,Pe,"\u21a2","\\leftarrowtail",!0),we(xe,ke,Pe,"\u21ab","\\looparrowleft",!0),we(xe,ke,Pe,"\u21cb","\\leftrightharpoons",!0),we(xe,ke,Pe,"\u21b6","\\curvearrowleft",!0),we(xe,ke,Pe,"\u21ba","\\circlearrowleft",!0),we(xe,ke,Pe,"\u21b0","\\Lsh",!0),we(xe,ke,Pe,"\u21c8","\\upuparrows",!0),we(xe,ke,Pe,"\u21bf","\\upharpoonleft",!0),we(xe,ke,Pe,"\u21c3","\\downharpoonleft",!0),we(xe,ke,Pe,"\u22b8","\\multimap",!0),we(xe,ke,Pe,"\u21ad","\\leftrightsquigarrow",!0),we(xe,ke,Pe,"\u21c9","\\rightrightarrows",!0),we(xe,ke,Pe,"\u21c4","\\rightleftarrows",!0),we(xe,ke,Pe,"\u21a0","\\twoheadrightarrow",!0),we(xe,ke,Pe,"\u21a3","\\rightarrowtail",!0),we(xe,ke,Pe,"\u21ac","\\looparrowright",!0),we(xe,ke,Pe,"\u21b7","\\curvearrowright",!0),we(xe,ke,Pe,"\u21bb","\\circlearrowright",!0),we(xe,ke,Pe,"\u21b1","\\Rsh",!0),we(xe,ke,Pe,"\u21ca","\\downdownarrows",!0),we(xe,ke,Pe,"\u21be","\\upharpoonright",!0),we(xe,ke,Pe,"\u21c2","\\downharpoonright",!0),we(xe,ke,Pe,"\u21dd","\\rightsquigarrow",!0),we(xe,ke,Pe,"\u21dd","\\leadsto"),we(xe,ke,Pe,"\u21db","\\Rrightarrow",!0),we(xe,ke,Pe,"\u21be","\\restriction"),we(xe,Se,je,"\u2018","`"),we(xe,Se,je,"$","\\$"),we(Ce,Se,je,"$","\\$"),we(Ce,Se,je,"$","\\textdollar"),we(xe,Se,je,"%","\\%"),we(Ce,Se,je,"%","\\%"),we(xe,Se,je,"_","\\_"),we(Ce,Se,je,"_","\\_"),we(Ce,Se,je,"_","\\textunderscore"),we(xe,Se,je,"\u2220","\\angle",!0),we(xe,Se,je,"\u221e","\\infty",!0),we(xe,Se,je,"\u2032","\\prime"),we(xe,Se,je,"\u25b3","\\triangle"),we(xe,Se,je,"\u0393","\\Gamma",!0),we(xe,Se,je,"\u0394","\\Delta",!0),we(xe,Se,je,"\u0398","\\Theta",!0),we(xe,Se,je,"\u039b","\\Lambda",!0),we(xe,Se,je,"\u039e","\\Xi",!0),we(xe,Se,je,"\u03a0","\\Pi",!0),we(xe,Se,je,"\u03a3","\\Sigma",!0),we(xe,Se,je,"\u03a5","\\Upsilon",!0),we(xe,Se,je,"\u03a6","\\Phi",!0),we(xe,Se,je,"\u03a8","\\Psi",!0),we(xe,Se,je,"\u03a9","\\Omega",!0),we(xe,Se,je,"A","\u0391"),we(xe,Se,je,"B","\u0392"),we(xe,Se,je,"E","\u0395"),we(xe,Se,je,"Z","\u0396"),we(xe,Se,je,"H","\u0397"),we(xe,Se,je,"I","\u0399"),we(xe,Se,je,"K","\u039a"),we(xe,Se,je,"M","\u039c"),we(xe,Se,je,"N","\u039d"),we(xe,Se,je,"O","\u039f"),we(xe,Se,je,"P","\u03a1"),we(xe,Se,je,"T","\u03a4"),we(xe,Se,je,"X","\u03a7"),we(xe,Se,je,"\xac","\\neg",!0),we(xe,Se,je,"\xac","\\lnot"),we(xe,Se,je,"\u22a4","\\top"),we(xe,Se,je,"\u22a5","\\bot"),we(xe,Se,je,"\u2205","\\emptyset"),we(xe,ke,je,"\u2205","\\varnothing"),we(xe,Se,Te,"\u03b1","\\alpha",!0),we(xe,Se,Te,"\u03b2","\\beta",!0),we(xe,Se,Te,"\u03b3","\\gamma",!0),we(xe,Se,Te,"\u03b4","\\delta",!0),we(xe,Se,Te,"\u03f5","\\epsilon",!0),we(xe,Se,Te,"\u03b6","\\zeta",!0),we(xe,Se,Te,"\u03b7","\\eta",!0),we(xe,Se,Te,"\u03b8","\\theta",!0),we(xe,Se,Te,"\u03b9","\\iota",!0),we(xe,Se,Te,"\u03ba","\\kappa",!0),we(xe,Se,Te,"\u03bb","\\lambda",!0),we(xe,Se,Te,"\u03bc","\\mu",!0),we(xe,Se,Te,"\u03bd","\\nu",!0),we(xe,Se,Te,"\u03be","\\xi",!0),we(xe,Se,Te,"\u03bf","\\omicron",!0),we(xe,Se,Te,"\u03c0","\\pi",!0),we(xe,Se,Te,"\u03c1","\\rho",!0),we(xe,Se,Te,"\u03c3","\\sigma",!0),we(xe,Se,Te,"\u03c4","\\tau",!0),we(xe,Se,Te,"\u03c5","\\upsilon",!0),we(xe,Se,Te,"\u03d5","\\phi",!0),we(xe,Se,Te,"\u03c7","\\chi",!0),we(xe,Se,Te,"\u03c8","\\psi",!0),we(xe,Se,Te,"\u03c9","\\omega",!0),we(xe,Se,Te,"\u03b5","\\varepsilon",!0),we(xe,Se,Te,"\u03d1","\\vartheta",!0),we(xe,Se,Te,"\u03d6","\\varpi",!0),we(xe,Se,Te,"\u03f1","\\varrho",!0),we(xe,Se,Te,"\u03c2","\\varsigma",!0),we(xe,Se,Te,"\u03c6","\\varphi",!0),we(xe,Se,Oe,"\u2217","*"),we(xe,Se,Oe,"+","+"),we(xe,Se,Oe,"\u2212","-"),we(xe,Se,Oe,"\u22c5","\\cdot",!0),we(xe,Se,Oe,"\u2218","\\circ"),we(xe,Se,Oe,"\xf7","\\div",!0),we(xe,Se,Oe,"\xb1","\\pm",!0),we(xe,Se,Oe,"\xd7","\\times",!0),we(xe,Se,Oe,"\u2229","\\cap",!0),we(xe,Se,Oe,"\u222a","\\cup",!0),we(xe,Se,Oe,"\u2216","\\setminus"),we(xe,Se,Oe,"\u2227","\\land"),we(xe,Se,Oe,"\u2228","\\lor"),we(xe,Se,Oe,"\u2227","\\wedge",!0),we(xe,Se,Oe,"\u2228","\\vee",!0),we(xe,Se,je,"\u221a","\\surd"),we(xe,Se,Le,"(","("),we(xe,Se,Le,"[","["),we(xe,Se,Le,"\u27e8","\\langle",!0),we(xe,Se,Le,"\u2223","\\lvert"),we(xe,Se,Le,"\u2225","\\lVert"),we(xe,Se,Be,")",")"),we(xe,Se,Be,"]","]"),we(xe,Se,Be,"?","?"),we(xe,Se,Be,"!","!"),we(xe,Se,Be,"\u27e9","\\rangle",!0),we(xe,Se,Be,"\u2223","\\rvert"),we(xe,Se,Be,"\u2225","\\rVert"),we(xe,Se,Pe,"=","="),we(xe,Se,Pe,"<","<"),we(xe,Se,Pe,">",">"),we(xe,Se,Pe,":",":"),we(xe,Se,Pe,"\u2248","\\approx",!0),we(xe,Se,Pe,"\u2245","\\cong",!0),we(xe,Se,Pe,"\u2265","\\ge"),we(xe,Se,Pe,"\u2265","\\geq",!0),we(xe,Se,Pe,"\u2190","\\gets"),we(xe,Se,Pe,">","\\gt"),we(xe,Se,Pe,"\u2208","\\in",!0),we(xe,Se,Pe,"\ue020","\\@not"),we(xe,Se,Pe,"\u2282","\\subset",!0),we(xe,Se,Pe,"\u2283","\\supset",!0),we(xe,Se,Pe,"\u2286","\\subseteq",!0),we(xe,Se,Pe,"\u2287","\\supseteq",!0),we(xe,ke,Pe,"\u2288","\\nsubseteq",!0),we(xe,ke,Pe,"\u2289","\\nsupseteq",!0),we(xe,Se,Pe,"\u22a8","\\models"),we(xe,Se,Pe,"\u2190","\\leftarrow",!0),we(xe,Se,Pe,"\u2264","\\le"),we(xe,Se,Pe,"\u2264","\\leq",!0),we(xe,Se,Pe,"<","\\lt"),we(xe,Se,Pe,"\u2192","\\rightarrow",!0),we(xe,Se,Pe,"\u2192","\\to"),we(xe,ke,Pe,"\u2271","\\ngeq",!0),we(xe,ke,Pe,"\u2270","\\nleq",!0),we(xe,Se,Ne,"\xa0","\\ "),we(xe,Se,Ne,"\xa0","~"),we(xe,Se,Ne,"\xa0","\\space"),we(xe,Se,Ne,"\xa0","\\nobreakspace"),we(Ce,Se,Ne,"\xa0","\\ "),we(Ce,Se,Ne,"\xa0","~"),we(Ce,Se,Ne,"\xa0","\\space"),we(Ce,Se,Ne,"\xa0","\\nobreakspace"),we(xe,Se,Ne,null,"\\nobreak"),we(xe,Se,Ne,null,"\\allowbreak"),we(xe,Se,De,",",","),we(xe,Se,De,";",";"),we(xe,ke,Oe,"\u22bc","\\barwedge",!0),we(xe,ke,Oe,"\u22bb","\\veebar",!0),we(xe,Se,Oe,"\u2299","\\odot",!0),we(xe,Se,Oe,"\u2295","\\oplus",!0),we(xe,Se,Oe,"\u2297","\\otimes",!0),we(xe,Se,je,"\u2202","\\partial",!0),we(xe,Se,Oe,"\u2298","\\oslash",!0),we(xe,ke,Oe,"\u229a","\\circledcirc",!0),we(xe,ke,Oe,"\u22a1","\\boxdot",!0),we(xe,Se,Oe,"\u25b3","\\bigtriangleup"),we(xe,Se,Oe,"\u25bd","\\bigtriangledown"),we(xe,Se,Oe,"\u2020","\\dagger"),we(xe,Se,Oe,"\u22c4","\\diamond"),we(xe,Se,Oe,"\u22c6","\\star"),we(xe,Se,Oe,"\u25c3","\\triangleleft"),we(xe,Se,Oe,"\u25b9","\\triangleright"),we(xe,Se,Le,"{","\\{"),we(Ce,Se,je,"{","\\{"),we(Ce,Se,je,"{","\\textbraceleft"),we(xe,Se,Be,"}","\\}"),we(Ce,Se,je,"}","\\}"),we(Ce,Se,je,"}","\\textbraceright"),we(xe,Se,Le,"{","\\lbrace"),we(xe,Se,Be,"}","\\rbrace"),we(xe,Se,Le,"[","\\lbrack"),we(Ce,Se,je,"[","\\lbrack"),we(xe,Se,Be,"]","\\rbrack"),we(Ce,Se,je,"]","\\rbrack"),we(xe,Se,Le,"(","\\lparen"),we(xe,Se,Be,")","\\rparen"),we(Ce,Se,je,"<","\\textless"),we(Ce,Se,je,">","\\textgreater"),we(xe,Se,Le,"\u230a","\\lfloor",!0),we(xe,Se,Be,"\u230b","\\rfloor",!0),we(xe,Se,Le,"\u2308","\\lceil",!0),we(xe,Se,Be,"\u2309","\\rceil",!0),we(xe,Se,je,"\\","\\backslash"),we(xe,Se,je,"\u2223","|"),we(xe,Se,je,"\u2223","\\vert"),we(Ce,Se,je,"|","\\textbar"),we(xe,Se,je,"\u2225","\\|"),we(xe,Se,je,"\u2225","\\Vert"),we(Ce,Se,je,"\u2225","\\textbardbl"),we(Ce,Se,je,"~","\\textasciitilde"),we(Ce,Se,je,"\\","\\textbackslash"),we(Ce,Se,je,"^","\\textasciicircum"),we(xe,Se,Pe,"\u2191","\\uparrow",!0),we(xe,Se,Pe,"\u21d1","\\Uparrow",!0),we(xe,Se,Pe,"\u2193","\\downarrow",!0),we(xe,Se,Pe,"\u21d3","\\Downarrow",!0),we(xe,Se,Pe,"\u2195","\\updownarrow",!0),we(xe,Se,Pe,"\u21d5","\\Updownarrow",!0),we(xe,Se,Ie,"\u2210","\\coprod"),we(xe,Se,Ie,"\u22c1","\\bigvee"),we(xe,Se,Ie,"\u22c0","\\bigwedge"),we(xe,Se,Ie,"\u2a04","\\biguplus"),we(xe,Se,Ie,"\u22c2","\\bigcap"),we(xe,Se,Ie,"\u22c3","\\bigcup"),we(xe,Se,Ie,"\u222b","\\int"),we(xe,Se,Ie,"\u222b","\\intop"),we(xe,Se,Ie,"\u222c","\\iint"),we(xe,Se,Ie,"\u222d","\\iiint"),we(xe,Se,Ie,"\u220f","\\prod"),we(xe,Se,Ie,"\u2211","\\sum"),we(xe,Se,Ie,"\u2a02","\\bigotimes"),we(xe,Se,Ie,"\u2a01","\\bigoplus"),we(xe,Se,Ie,"\u2a00","\\bigodot"),we(xe,Se,Ie,"\u222e","\\oint"),we(xe,Se,Ie,"\u222f","\\oiint"),we(xe,Se,Ie,"\u2230","\\oiiint"),we(xe,Se,Ie,"\u2a06","\\bigsqcup"),we(xe,Se,Ie,"\u222b","\\smallint"),we(Ce,Se,Me,"\u2026","\\textellipsis"),we(xe,Se,Me,"\u2026","\\mathellipsis"),we(Ce,Se,Me,"\u2026","\\ldots",!0),we(xe,Se,Me,"\u2026","\\ldots",!0),we(xe,Se,Me,"\u22ef","\\@cdots",!0),we(xe,Se,Me,"\u22f1","\\ddots",!0),we(xe,Se,je,"\u22ee","\\varvdots"),we(xe,Se,Ee,"\u02ca","\\acute"),we(xe,Se,Ee,"\u02cb","\\grave"),we(xe,Se,Ee,"\xa8","\\ddot"),we(xe,Se,Ee,"~","\\tilde"),we(xe,Se,Ee,"\u02c9","\\bar"),we(xe,Se,Ee,"\u02d8","\\breve"),we(xe,Se,Ee,"\u02c7","\\check"),we(xe,Se,Ee,"^","\\hat"),we(xe,Se,Ee,"\u20d7","\\vec"),we(xe,Se,Ee,"\u02d9","\\dot"),we(xe,Se,Ee,"\u02da","\\mathring"),we(xe,Se,Te,"\u0131","\\imath",!0),we(xe,Se,Te,"\u0237","\\jmath",!0),we(Ce,Se,je,"\u0131","\\i",!0),we(Ce,Se,je,"\u0237","\\j",!0),we(Ce,Se,je,"\xdf","\\ss",!0),we(Ce,Se,je,"\xe6","\\ae",!0),we(Ce,Se,je,"\xe6","\\ae",!0),we(Ce,Se,je,"\u0153","\\oe",!0),we(Ce,Se,je,"\xf8","\\o",!0),we(Ce,Se,je,"\xc6","\\AE",!0),we(Ce,Se,je,"\u0152","\\OE",!0),we(Ce,Se,je,"\xd8","\\O",!0),we(Ce,Se,Ee,"\u02ca","\\'"),we(Ce,Se,Ee,"\u02cb","\\`"),we(Ce,Se,Ee,"\u02c6","\\^"),we(Ce,Se,Ee,"\u02dc","\\~"),we(Ce,Se,Ee,"\u02c9","\\="),we(Ce,Se,Ee,"\u02d8","\\u"),we(Ce,Se,Ee,"\u02d9","\\."),we(Ce,Se,Ee,"\u02da","\\r"),we(Ce,Se,Ee,"\u02c7","\\v"),we(Ce,Se,Ee,"\xa8",'\\"'),we(Ce,Se,Ee,"\u02dd","\\H"),we(Ce,Se,Ee,"\u25ef","\\textcircled");var Fe={"--":!0,"---":!0,"``":!0,"''":!0};we(Ce,Se,je,"\u2013","--"),we(Ce,Se,je,"\u2013","\\textendash"),we(Ce,Se,je,"\u2014","---"),we(Ce,Se,je,"\u2014","\\textemdash"),we(Ce,Se,je,"\u2018","`"),we(Ce,Se,je,"\u2018","\\textquoteleft"),we(Ce,Se,je,"\u2019","'"),we(Ce,Se,je,"\u2019","\\textquoteright"),we(Ce,Se,je,"\u201c","``"),we(Ce,Se,je,"\u201c","\\textquotedblleft"),we(Ce,Se,je,"\u201d","''"),we(Ce,Se,je,"\u201d","\\textquotedblright"),we(xe,Se,je,"\xb0","\\degree",!0),we(Ce,Se,je,"\xb0","\\degree"),we(Ce,Se,je,"\xb0","\\textdegree",!0),we(xe,Se,Te,"\xa3","\\pounds"),we(xe,Se,Te,"\xa3","\\mathsterling",!0),we(Ce,Se,Te,"\xa3","\\pounds"),we(Ce,Se,Te,"\xa3","\\textsterling",!0),we(xe,ke,je,"\u2720","\\maltese"),we(Ce,ke,je,"\u2720","\\maltese"),we(Ce,Se,Ne,"\xa0","\\ "),we(Ce,Se,Ne,"\xa0"," "),we(Ce,Se,Ne,"\xa0","~");for(var Re='0123456789/@."',Ue=0;Uet&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>r&&(r=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},St=function(e,t,n,r){var i=new te(e,t,n,r);return Ct(i),i},kt=function(e,t,n,r){return new te(e,t,n,r)},Et=function(e,t,n){var r=St([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},Ot=function(e,t,n,r){var i=new ne(e,t,n,r);return Ct(i),i},Bt=function(e){var t=new Y(e);return Ct(t),t},Mt=function(e,t){return e instanceof Y?St([],[e],t):e},Tt=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,o=1;o0&&(o.push(An(a,t)),a=[]),o.push(i[s]));a.length>0&&o.push(An(a,t)),n&&(r=An(ln(n,t,!0)),r.classes=["tag"],o.push(r));var c=nn(["katex-html"],o);if(c.setAttribute("aria-hidden","true"),r){var u=r.children[0];u.style.height=c.height+c.depth+"em",u.style.verticalAlign=-c.depth+"em"}return c}function mn(e){return new Y(e)}var vn=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n",e},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),yn=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return v.escape(this.toText())},t.toText=function(){return this.text},e}(),bn=function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?"\u200a":e>=.1666&&e<=.1667?"\u2009":e>=.2222&&e<=.2223?"\u2005":e>=.2777&&e<=.2778?"\u2005\u200a":e>=-.05556&&e<=-.05555?"\u200a\u2063":e>=-.1667&&e<=-.1666?"\u2009\u2063":e>=-.2223&&e<=-.2222?"\u205f\u2063":e>=-.2778&&e<=-.2777?"\u2005\u2063":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?""+this.character+"":''},t.toText=function(){return this.character?this.character:" "},e}(),_n={MathNode:vn,TextNode:yn,SpaceNode:bn,newDocumentFragment:mn},wn=function(e,t,n){return!_e[t][e]||!_e[t][e].replace||55349===e.charCodeAt(0)||Fe.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=_e[t][e].replace),new _n.TextNode(e)},xn=function(e){return 1===e.length?e[0]:new _n.MathNode("mrow",e)},Cn=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var i=e.text;if(v.contains(["\\imath","\\jmath"],i))return null;_e[r][i]&&_e[r][i].replace&&(i=_e[r][i].replace);var o=Ft.fontMap[n].fontName;return Ae(i,o,r)?Ft.fontMap[n].variant:null},Sn=function(e,t,n){if(1===e.length){var r=En(e[0],t);return n&&r instanceof vn&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var i,o=[],a=0;a0&&(f.text=f.text.slice(0,1)+"\u0338"+f.text.slice(1),o.pop())}}}o.push(s),i=s}return o},kn=function(e,t,n){return xn(Sn(e,t,n))},En=function(e,t){if(!e)return new _n.MathNode("mrow");if(Jt[e.type]){var n=Jt[e.type](e,t);return n}throw new a("Got group of unknown type: '"+e.type+"'")};function On(e,t,n,r){var i,o=Sn(e,n);i=1===o.length&&o[0]instanceof vn&&v.contains(["mrow","mtable"],o[0].type)?o[0]:new _n.MathNode("mrow",o);var a=new _n.MathNode("annotation",[new _n.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var s=new _n.MathNode("semantics",[i,a]),l=new _n.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var c=r?"katex":"katex-mathml";return Ft.makeSpan([c],[l])}var Bn=function(e){return new ct({style:e.displayMode?N.DISPLAY:N.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Mn=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ft.makeSpan(n,[e])}return e},Tn=function(e,t,n){var r,i=Bn(n);if("mathml"===n.output)return On(e,t,i,!0);if("html"===n.output){var o=gn(e,i);r=Ft.makeSpan(["katex"],[o])}else{var a=On(e,t,i,!1),s=gn(e,i);r=Ft.makeSpan(["katex"],[a,s])}return Mn(r,n)},In=function(e,t,n){var r=Bn(n),i=gn(e,r),o=Ft.makeSpan(["katex"],[i]);return Mn(o,n)},Ln={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb"},Dn=function(e){var t=new _n.MathNode("mo",[new _n.TextNode(Ln[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Pn={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Nn=function(e){return"ordgroup"===e.type?e.body.length:1},jn=function(e,t){function n(){var n=4e5,r=e.label.substr(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],r)){var i,o,a,s=e,l=Nn(s.base);if(l>5)"widehat"===r||"widecheck"===r?(i=420,n=2364,a=.42,o=r+"4"):(i=312,n=2340,a=.34,o="tilde4");else{var c=[1,1,2,2,3,3][l];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],i=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],i=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],o="tilde"+c)}var u=new se(o),d=new ae([u],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+i,preserveAspectRatio:"none"});return{span:Ft.makeSvgSpan([],[d],t),minWidth:0,height:a}}var h,f,p=[],A=Pn[r],g=A[0],m=A[1],y=A[2],b=y/1e3,_=g.length;if(1===_){var w=A[3];h=["hide-tail"],f=[w]}else if(2===_)h=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==_)throw new Error("Correct katexImagesData or update code here to support\n "+_+" children.");h=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<_;x++){var C=new se(g[x]),S=new ae([C],{width:"400em",height:b+"em",viewBox:"0 0 "+n+" "+y,preserveAspectRatio:f[x]+" slice"}),k=Ft.makeSvgSpan([h[x]],[S],t);if(1===_)return{span:k,minWidth:m,height:b};k.style.height=b+"em",p.push(k)}return{span:Ft.makeSpan(["stretchy"],p,t),minWidth:m,height:b}}var r=n(),i=r.span,o=r.minWidth,a=r.height;return i.height=a,i.style.height=a+"em",o>0&&(i.style.minWidth=o+"em"),i},Fn=function(e,t,n,r){var i,o=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(i=Ft.makeSpan(["stretchy",t],[],r),"fbox"===t){var a=r.color&&r.getColor();a&&(i.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new le({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new le({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new ae(s,{width:"100%",height:o+"em"});i=Ft.makeSvgSpan([],[l],r)}return i.height=o,i.style.height=o+"em",i},Rn={encloseSpan:Fn,mathMLnode:Dn,svgSpan:jn},Un=function(e,t){var n,r,i,o=Ut(e,"supsub");o?(r=Rt(o.base,"accent"),n=r.base,o.base=n,i=ue(pn(o,t)),o.base=r):(r=Rt(e,"accent"),n=r.base);var a=pn(n,t.havingCrampedStyle()),s=r.isShifty&&v.isCharacterBox(n),l=0;if(s){var c=v.getBaseElem(n),u=pn(c,t.havingCrampedStyle());l=ce(u).skew}var d,h=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)d=Rn.svgSpan(r,t),d=Ft.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:d,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+2*l+"em)",marginLeft:2*l+"em"}:void 0}]},t);else{var f,p;"\\vec"===r.label?(f=Ft.staticSvg("vec",t),p=Ft.svgData.vec[1]):(f=Ft.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=ce(f),f.italic=0,p=f.width),d=Ft.makeSpan(["accent-body"],[f]);var A="\\textcircled"===r.label;A&&(d.classes.push("accent-full"),h=a.height);var g=l;A||(g-=p/2),d.style.left=g+"em","\\textcircled"===r.label&&(d.style.top=".2em"),d=Ft.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:d}]},t)}var m=Ft.makeSpan(["mord","accent"],[d],t);return i?(i.children[0]=m,i.height=Math.max(m.height,i.height),i.classes[0]="mord",i):m},Hn=function(e,t){var n=e.isStretchy?Rn.mathMLnode(e.label):new _n.MathNode("mo",[wn(e.label,e.mode)]),r=new _n.MathNode("mover",[En(e.base,t),n]);return r.setAttribute("accent","true"),r},Qn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));$t({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],r=!Qn.test(e.funcName),i=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Un,mathmlBuilder:Hn}),$t({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Un,mathmlBuilder:Hn}),$t({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:function(e,t){var n=pn(e.base,t),r=Rn.svgSpan(e,t),i="\\utilde"===e.label?.12:0,o=Ft.makeVList({positionType:"bottom",positionData:r.height+i,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return Ft.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:function(e,t){var n=Rn.mathMLnode(e.label),r=new _n.MathNode("munder",[En(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Kn=function(e){var t=new _n.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};$t({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,i=e.funcName;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,i=t.havingStyle(r.sup()),o=Ft.wrapFragment(pn(e.body,i,t),t);o.classes.push("x-arrow-pad"),e.below&&(i=t.havingStyle(r.sub()),n=Ft.wrapFragment(pn(e.below,i,t),t),n.classes.push("x-arrow-pad"));var a,s=Rn.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;if((o.depth>.25||"\\xleftequilibrium"===e.label)&&(c-=o.depth),n){var u=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;a=Ft.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:u}]},t)}else a=Ft.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:c},{type:"elem",elem:s,shift:l}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Ft.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,r=Rn.mathMLnode(e.label);if(e.body){var i=Kn(En(e.body,t));if(e.below){var o=Kn(En(e.below,t));n=new _n.MathNode("munderover",[r,o,i])}else n=new _n.MathNode("mover",[r,i])}else if(e.below){var a=Kn(En(e.below,t));n=new _n.MathNode("munder",[r,a])}else n=Kn(),n=new _n.MathNode("mover",[r,n]);return n}}),$t({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,r=Rt(t[0],"ordgroup"),i=r.body,o="",s=0;s","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],lr=[0,1.2,1.8,2.4,3],cr=function(e,t,n,r,i){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),v.contains(or,e)||v.contains(sr,e))return Zn(e,t,!1,n,r,i);if(v.contains(ar,e))return er(e,lr[t],!1,n,r,i);throw new a("Illegal delimiter: '"+e+"'")},ur=[{type:"small",style:N.SCRIPTSCRIPT},{type:"small",style:N.SCRIPT},{type:"small",style:N.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],dr=[{type:"small",style:N.SCRIPTSCRIPT},{type:"small",style:N.SCRIPT},{type:"small",style:N.TEXT},{type:"stack"}],hr=[{type:"small",style:N.SCRIPTSCRIPT},{type:"small",style:N.SCRIPT},{type:"small",style:N.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fr=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},pr=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size),o=i;ot)return n[o]}return n[n.length-1]},Ar=function(e,t,n,r,i,o){var a;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),a=v.contains(sr,e)?ur:v.contains(or,e)?hr:dr;var s=pr(e,t,a,r);return"small"===s.type?qn(e,s.style,n,r,i,o):"large"===s.type?Zn(e,s.size,n,r,i,o):er(e,t,n,r,i,o)},gr=function(e,t,n,r,i,o){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,l=5/r.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),u=Math.max(c/500*s,2*c-l);return Ar(e,u,!0,r,i,o)},mr={sqrtImage:ir,sizedDelim:cr,customSizedDelim:Ar,leftRightDelim:gr},vr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},yr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function br(e,t){var n=zt(e);if(n&&v.contains(yr,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function _r(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}$t({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=br(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:vr[e.funcName].size,mclass:vr[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Ft.makeSpan([e.mclass]):mr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(wn(e.delim,e.mode));var n=new _n.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),$t({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!==typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:br(t[0],e).text,color:n}}}),$t({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=br(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=Rt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:function(e,t){_r(e);for(var n,r,i=ln(e.body,t,!0,["mopen","mclose"]),o=0,a=0,s=!1,l=0;l-1?"mpadded":"menclose",[En(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};$t({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=Rt(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:o,body:a}},htmlBuilder:wr,mathmlBuilder:xr}),$t({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=Rt(t[0],"color-token").color,a=Rt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,borderColor:o,body:s}},htmlBuilder:wr,mathmlBuilder:xr}),$t({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),$t({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var r=e.parser,i=e.funcName,o=t[0];return{type:"enclose",mode:r.mode,label:i,body:o}},htmlBuilder:wr,mathmlBuilder:xr});var Cr={};function Sr(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,o=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l0&&(b+=.25),c.push({pos:b,isDashed:e[t]})}for(_(o[0]),n=0;n0&&(O+=y,C=s)){var R=void 0;(r>0||e.hskipBeforeAndAfter)&&(R=v.deflt(D.pregap,h),0!==R&&(B=Ft.makeSpan(["arraycolsep"],[]),B.style.width=R+"em",L.push(B)));var U=[];for(n=0;n0){var z=Ft.makeLineSpan("hline",t,u),V=Ft.makeLineSpan("hdashline",t,u),W=[{type:"elem",elem:l,shift:0}];while(c.length>0){var G=c.pop(),X=G.pos-T;G.isDashed?W.push({type:"elem",elem:V,shift:X}):W.push({type:"elem",elem:z,shift:X})}l=Ft.makeVList({positionType:"individualShift",children:W},t)}return Ft.makeSpan(["mord"],[l],t)},Mr={c:"center ",l:"left ",r:"right "},Tr=function(e,t){var n=new _n.MathNode("mtable",e.body.map((function(e){return new _n.MathNode("mtr",e.map((function(e){return new _n.MathNode("mtd",[En(e,t)])})))}))),r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var i="",o="";if(e.cols){var a=e.cols,s="",l=!1,c=0,u=a.length;"separator"===a[0].type&&(i+="top ",c=1),"separator"===a[a.length-1].type&&(i+="bottom ",u-=1);for(var d=c;d0?"left ":"",i+=g[g.length-1].length>0?"right ":"";for(var m=1;m0&&h&&(A=1),r[f]={type:"align",align:p,pregap:A,postgap:0}}return i.colSeparationType=h?"align":"alignat",i};Sr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n=zt(t[0]),r=n?[t[0]]:Rt(t[0],"ordgroup").body,i=r.map((function(e){var t=Kt(e),n=t.text;if(-1!=="lcr".indexOf(n))return{type:"align",align:n};if("|"===n)return{type:"separator",separator:"|"};if(":"===n)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+n,e)})),o={cols:i,hskipBeforeAndAfter:!0};return Er(e.parser,o,Or(e.envName))},htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n={hskipBeforeAndAfter:!1},r=Er(e.parser,n,Or(e.envName));return t?{type:"leftright",mode:e.mode,body:[r],left:t[0],right:t[1],rightColor:void 0}:r},htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t={arraystretch:.5},n=Er(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=zt(t[0]),r=n?[t[0]]:Rt(t[0],"ordgroup").body,i=r.map((function(e){var t=Kt(e),n=t.text;if(-1!=="lc".indexOf(n))return{type:"align",align:n};throw new a("Unknown column alignment: "+n,e)}));if(i.length>1)throw new a("{subarray} can contain only one column");var o={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=Er(e.parser,o,"script"),o.body[0].length>1)throw new a("{subarray} can contain only one column");return o},htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Er(e.parser,t,Or(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["aligned"],props:{numArgs:0},handler:Ir,htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){var t={cols:[{type:"align",align:"c"}],addJot:!0};return Er(e.parser,t,"display")},htmlBuilder:Br,mathmlBuilder:Tr}),Sr({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ir,htmlBuilder:Br,mathmlBuilder:Tr}),$t({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var Lr=Cr,Dr=Lr;$t({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new a("Invalid environment name",i);for(var o="",s=0;s=N.SCRIPT.id?n.text():N.DISPLAY:"text"===e&&n.size===N.DISPLAY.size?n=N.TEXT:"script"===e?n=N.SCRIPT:"scriptscript"===e&&(n=N.SCRIPTSCRIPT),n},Kr=function(e,t){var n,r=Qr(e.size,t.style),i=r.fracNum(),o=r.fracDen();n=t.havingStyle(i);var a=pn(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height0?3*d:7*d,p=t.fontMetrics().denom1):(u>0?(h=t.fontMetrics().num2,f=d):(h=t.fontMetrics().num3,f=3*d),p=t.fontMetrics().denom2),c){var b=t.fontMetrics().axisHeight;h-a.depth-(b+.5*u)0&&(t=e,t="."===t?null:t),t};$t({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n=e.parser,r=t[4],i=t[5],o=Ut(t[0],"atom");o&&(o=Ht(t[0],"open"));var a=o?Wr(o.text):null,s=Ut(t[1],"atom");s&&(s=Ht(t[1],"close"));var l,c=s?Wr(s.text):null,u=Rt(t[2],"size"),d=null;u.isBlank?l=!0:(d=u.value,l=d.number>0);var h="auto",f=Ut(t[3],"ordgroup");if(f){if(f.body.length>0){var p=Rt(f.body[0],"textord");h=Vr[Number(p.text)]}}else f=Rt(t[3],"textord"),h=Vr[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:l,barSize:d,leftDelim:a,rightDelim:c,size:h}},htmlBuilder:Kr,mathmlBuilder:zr}),$t({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Rt(t[0],"size").value,token:r}}}),$t({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),i=g(Rt(t[1],"infix").size),o=t[2],a=i.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:o,continued:!1,hasBarLine:a,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Kr,mathmlBuilder:zr});var Gr=function(e,t){var n,r,i=t.style,o=Ut(e,"supsub");o?(n=o.sup?pn(o.sup,t.havingStyle(i.sup()),t):pn(o.sub,t.havingStyle(i.sub()),t),r=Rt(o.base,"horizBrace")):r=Rt(e,"horizBrace");var a,s=pn(r.base,t.havingBaseStyle(N.DISPLAY)),l=Rn.svgSpan(r,t);if(r.isOver?(a=Ft.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}]},t),a.children[0].children[0].children[1].classes.push("svg-align")):(a=Ft.makeVList({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}]},t),a.children[0].children[0].children[0].classes.push("svg-align")),n){var c=Ft.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?Ft.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ft.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return Ft.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)},Xr=function(e,t){var n=Rn.mathMLnode(e.label);return new _n.MathNode(e.isOver?"mover":"munder",[En(e.base,t),n])};$t({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Gr,mathmlBuilder:Xr}),$t({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],i=Rt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:tn(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=ln(e.body,t,!1);return Ft.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=kn(e.body,t);return n instanceof vn||(n=new vn("mrow",[n])),n.setAttribute("href",e.href),n}}),$t({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Rt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],o=0;o0&&(r=ft(e.totalheight,t)-n,r=Number(r.toFixed(2)));var i=0;e.width.number>0&&(i=ft(e.width,t));var o={height:n+r+"em"};i>0&&(o.width=i+"em"),r>0&&(o.verticalAlign=-r+"em");var a=new re(e.src,e.alt,o);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new _n.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=ft(e.height,t),i=0;if(e.totalheight.number>0&&(i=ft(e.totalheight,t)-r,i=i.toFixed(2),n.setAttribute("valign","-"+i+"em")),n.setAttribute("height",r+i+"em"),e.width.number>0){var o=ft(e.width,t);n.setAttribute("width",o+"em")}return n.setAttribute("src",e.src),n}}),$t({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=Rt(t[0],"size");if(n.settings.strict){var o="m"===r[1],a="mu"===i.value.unit;o?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+i.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder:function(e,t){return Ft.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=ft(e.dimension,t);return new _n.SpaceNode(n)}}),$t({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Ft.makeSpan([],[pn(e.body,t)]),n=Ft.makeSpan(["inner"],[n],t)):n=Ft.makeSpan(["inner"],[pn(e.body,t)]);var r=Ft.makeSpan(["fix"],[]),i=Ft.makeSpan([e.alignment],[n,r],t),o=Ft.makeSpan(["strut"]);return o.style.height=i.height+i.depth+"em",o.style.verticalAlign=-i.depth+"em",i.children.unshift(o),i=Ft.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i}]},t),Ft.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var n=new _n.MathNode("mpadded",[En(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),$t({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode("math");var o="\\("===n?"\\)":"$",a=r.parseExpression(!1,o);return r.expect(o),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:a}}}),$t({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var Yr=function(e,t){switch(t.style.size){case N.DISPLAY.size:return e.display;case N.TEXT.size:return e.text;case N.SCRIPT.size:return e.script;case N.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};$t({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){var n=e.parser;return{type:"mathchoice",mode:n.mode,display:tn(t[0]),text:tn(t[1]),script:tn(t[2]),scriptscript:tn(t[3])}},htmlBuilder:function(e,t){var n=Yr(e,t),r=ln(n,t,!1);return Ft.makeFragment(r)},mathmlBuilder:function(e,t){var n=Yr(e,t);return kn(n,t)}});var Zr=function(e,t,n,r,i,o,a){var s,l,c;if(e=Ft.makeSpan([],[e]),t){var u=pn(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=pn(n,r.havingStyle(i.sub()),r);s={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}if(l&&s){var h=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=Ft.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-o+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:o+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var f=e.height-a;c=Ft.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-o+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var p=e.depth+a;c=Ft.makeVList({positionType:"bottom",positionData:p,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:o+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return Ft.makeSpan(["mop","op-limits"],[c],r)},Jr=["\\smallint"],$r=function(e,t){var n,r,i,o=!1,a=Ut(e,"supsub");a?(n=a.sup,r=a.sub,i=Rt(a.base,"op"),o=!0):i=Rt(e,"op");var s,l=t.style,c=!1;if(l.size===N.DISPLAY.size&&i.symbol&&!v.contains(Jr,i.name)&&(c=!0),i.symbol){var u=c?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(d=i.name.substr(1),i.name="oiint"===d?"\\iint":"\\iiint"),s=Ft.makeSymbol(i.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),d.length>0){var h=s.italic,f=Ft.staticSvg(d+"Size"+(c?"2":"1"),t);s=Ft.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:f,shift:c?.08:0}]},t),i.name="\\"+d,s.classes.unshift("mop"),s.italic=h}}else if(i.body){var p=ln(i.body,t,!0);1===p.length&&p[0]instanceof oe?(s=p[0],s.classes[0]="mop"):s=Ft.makeSpan(["mop"],Ft.tryCombineChars(p),t)}else{for(var A=[],g=1;g0){for(var l=i.body.map((function(e){var t=e.text;return"string"===typeof t?{type:"textord",mode:e.mode,text:t}:e})),c=ln(l,t.withFont("mathrm"),!0),u=0;u=0?s.setAttribute("height","+"+i+"em"):(s.setAttribute("height",i+"em"),s.setAttribute("depth","+"+-i+"em")),s.setAttribute("voffset",i+"em"),s}});var ai=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],si=function(e,t){var n=t.havingSize(e.size);return oi(e.body,n,t)};$t({type:"sizing",names:ai,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,o=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:ai.indexOf(r)+1,body:o}},htmlBuilder:si,mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=Sn(e.body,n),i=new _n.MathNode("mstyle",r);return i.setAttribute("mathsize",n.sizeMultiplier+"em"),i}}),$t({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,i=!1,o=!1,a=n[0]&&Rt(n[0],"ordgroup");if(a)for(var s="",l=0;ln.height+n.depth+a&&(a=(a+h-n.height-n.depth)/2);var f=c.height-n.height-a-u;n.style.paddingLeft=d+"em";var p=Ft.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:c},{type:"kern",size:u}]},t);if(e.index){var A=t.havingStyle(N.SCRIPTSCRIPT),g=pn(e.index,A,t),m=.6*(p.height-p.depth),v=Ft.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:g}]},t),y=Ft.makeSpan(["root"],[v]);return Ft.makeSpan(["mord","sqrt"],[y,p],t)}return Ft.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new _n.MathNode("mroot",[En(n,t),En(r,t)]):new _n.MathNode("msqrt",[En(n,t)])}});var li={display:N.DISPLAY,text:N.TEXT,script:N.SCRIPT,scriptscript:N.SCRIPTSCRIPT};$t({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,o=i.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:a,body:o}},htmlBuilder:function(e,t){var n=li[e.style],r=t.havingStyle(n).withFont("");return oi(e.body,r,t)},mathmlBuilder:function(e,t){var n=li[e.style],r=t.havingStyle(n),i=Sn(e.body,r),o=new _n.MathNode("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var ci=function(e,t){var n=e.base;if(n){if("op"===n.type){var r=n.limits&&(t.style.size===N.DISPLAY.size||n.alwaysHandleSupSub);return r?$r:null}if("operatorname"===n.type){var i=n.alwaysHandleSupSub&&(t.style.size===N.DISPLAY.size||n.limits);return i?ri:null}if("accent"===n.type)return v.isCharacterBox(n.base)?Un:null;if("horizBrace"===n.type){var o=!e.sub;return o===n.isOver?Gr:null}return null}return null};en({type:"supsub",htmlBuilder:function(e,t){var n=ci(e,t);if(n)return n(e,t);var r,i,o,a=e.base,s=e.sup,l=e.sub,c=pn(a,t),u=t.fontMetrics(),d=0,h=0,f=a&&v.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());r=pn(s,p,t),f||(d=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var A=t.havingStyle(t.style.sub());i=pn(l,A,t),f||(h=c.depth+A.fontMetrics().subDrop*A.sizeMultiplier/t.sizeMultiplier)}o=t.style===N.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var g,m=t.sizeMultiplier,y=.5/u.ptPerEm/m+"em",b=null;if(i){var _=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof oe||_)&&(b=-c.italic+"em")}if(r&&i){d=Math.max(d,o,r.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var w=u.defaultRuleThickness,x=4*w;if(d-r.depth-(i.height-h)0&&(d+=C,h-=C)}var S=[{type:"elem",elem:i,shift:h,marginRight:y,marginLeft:b},{type:"elem",elem:r,shift:-d,marginRight:y}];g=Ft.makeVList({positionType:"individualShift",children:S},t)}else if(i){h=Math.max(h,u.sub1,i.height-.8*u.xHeight);var k=[{type:"elem",elem:i,marginLeft:b,marginRight:y}];g=Ft.makeVList({positionType:"shift",positionData:h,children:k},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,o,r.depth+.25*u.xHeight),g=Ft.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:y}]},t)}var E=hn(c,"right")||"mord";return Ft.makeSpan([E],[c,Ft.makeSpan(["msupsub"],[g])],t)},mathmlBuilder:function(e,t){var n,r,i=!1,o=Ut(e.base,"horizBrace");o&&(r=!!e.sup,r===o.isOver&&(i=!0,n=o.isOver)),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var a,s=[En(e.base,t)];if(e.sub&&s.push(En(e.sub,t)),e.sup&&s.push(En(e.sup,t)),i)a=n?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;a=l&&"op"===l.type&&l.limits&&t.style===N.DISPLAY||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(t.style===N.DISPLAY||l.limits)?"munderover":"msubsup"}else{var c=e.base;a=c&&"op"===c.type&&c.limits&&(t.style===N.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===N.DISPLAY)?"munder":"msub"}else{var u=e.base;a=u&&"op"===u.type&&u.limits&&(t.style===N.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||t.style===N.DISPLAY)?"mover":"msup"}var d=new _n.MathNode(a,s);return d}}),en({type:"atom",htmlBuilder:function(e,t){return Ft.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new _n.MathNode("mo",[wn(e.text,e.mode)]);if("bin"===e.family){var r=Cn(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var ui={mi:"italic",mn:"normal",mtext:"normal"};en({type:"mathord",htmlBuilder:function(e,t){return Ft.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new _n.MathNode("mi",[wn(e.text,e.mode,t)]),r=Cn(e,t)||"italic";return r!==ui[n.type]&&n.setAttribute("mathvariant",r),n}}),en({type:"textord",htmlBuilder:function(e,t){return Ft.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=wn(e.text,e.mode,t),i=Cn(e,t)||"normal";return n="text"===e.mode?new _n.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new _n.MathNode("mn",[r]):"\\prime"===e.text?new _n.MathNode("mo",[r]):new _n.MathNode("mi",[r]),i!==ui[n.type]&&n.setAttribute("mathvariant",i),n}});var di={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},hi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};en({type:"spacing",htmlBuilder:function(e,t){if(hi.hasOwnProperty(e.text)){var n=hi[e.text].className||"";if("text"===e.mode){var r=Ft.makeOrd(e,t,"textord");return r.classes.push(n),r}return Ft.makeSpan(["mspace",n],[Ft.mathsym(e.text,e.mode,t)],t)}if(di.hasOwnProperty(e.text))return Ft.makeSpan(["mspace",di[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){var n;if(!hi.hasOwnProperty(e.text)){if(di.hasOwnProperty(e.text))return new _n.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return n=new _n.MathNode("mtext",[new _n.TextNode("\xa0")]),n}});var fi=function(){var e=new _n.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};en({type:"tag",mathmlBuilder:function(e,t){var n=new _n.MathNode("mtable",[new _n.MathNode("mtr",[fi(),new _n.MathNode("mtd",[kn(e.body,t)]),fi(),new _n.MathNode("mtd",[kn(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var pi={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ai={"\\textbf":"textbf","\\textmd":"textmd"},gi={"\\textit":"textit","\\textup":"textup"},mi=function(e,t){var n=e.font;return n?pi[n]?t.withTextFontFamily(pi[n]):Ai[n]?t.withTextFontWeight(Ai[n]):t.withTextFontShape(gi[n]):t};$t({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:"text",mode:n.mode,body:tn(i),font:r}},htmlBuilder:function(e,t){var n=mi(e,t),r=ln(e.body,n,!0);return Ft.makeSpan(["mord","text"],Ft.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=mi(e,t);return kn(e.body,n)}}),$t({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder:function(e,t){var n=pn(e.body,t),r=Ft.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,o=Ft.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return Ft.makeSpan(["mord","underline"],[o],t)},mathmlBuilder:function(e,t){var n=new _n.MathNode("mo",[new _n.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new _n.MathNode("munder",[En(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),$t({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=vi(e),r=[],i=t.havingStyle(t.style.text()),o=0;o0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(e)&&(i[e]=this.current[e])}this.current[e]=t},e}(),Ti={},Ii=Ti;function Li(e,t){Ti[e]=t}Li("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}})),Li("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}})),Li("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),Li("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Li("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Di={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Li("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if(n=e.popToken(),"\\"===n.text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(r=Di[n.text],null==r||r>=t)throw new a("Invalid base-"+t+" digit "+n.text);var i;while(null!=(i=Di[e.future().text])&&i":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Li("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in ji?t=ji[n]:("\\not"===n.substr(0,4)||n in _e.math&&v.contains(["bin","rel"],_e.math[n].group))&&(t="\\dotsb"),t}));var Fi={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Li("\\dotso",(function(e){var t=e.future().text;return t in Fi?"\\ldots\\,":"\\ldots"})),Li("\\dotsc",(function(e){var t=e.future().text;return t in Fi&&","!==t?"\\ldots\\,":"\\ldots"})),Li("\\cdots",(function(e){var t=e.future().text;return t in Fi?"\\@cdots\\,":"\\@cdots"})),Li("\\dotsb","\\cdots"),Li("\\dotsm","\\cdots"),Li("\\dotsi","\\!\\cdots"),Li("\\dotsx","\\ldots\\,"),Li("\\DOTSI","\\relax"),Li("\\DOTSB","\\relax"),Li("\\DOTSX","\\relax"),Li("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Li("\\,","\\tmspace+{3mu}{.1667em}"),Li("\\thinspace","\\,"),Li("\\>","\\mskip{4mu}"),Li("\\:","\\tmspace+{4mu}{.2222em}"),Li("\\medspace","\\:"),Li("\\;","\\tmspace+{5mu}{.2777em}"),Li("\\thickspace","\\;"),Li("\\!","\\tmspace-{3mu}{.1667em}"),Li("\\negthinspace","\\!"),Li("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Li("\\negthickspace","\\tmspace-{5mu}{.277em}"),Li("\\enspace","\\kern.5em "),Li("\\enskip","\\hskip.5em\\relax"),Li("\\quad","\\hskip1em\\relax"),Li("\\qquad","\\hskip2em\\relax"),Li("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Li("\\tag@paren","\\tag@literal{({#1})}"),Li("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Li("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Li("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Li("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Li("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Li("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Li("\\\\","\\newline"),Li("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ri=de["Main-Regular"]["T".charCodeAt(0)][1]-.7*de["Main-Regular"]["A".charCodeAt(0)][1]+"em";Li("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Ri+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),Li("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Ri+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),Li("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Li("\\@hspace","\\hskip #1\\relax"),Li("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Li("\\ordinarycolon",":"),Li("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Li("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Li("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Li("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Li("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Li("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Li("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Li("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Li("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Li("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Li("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Li("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Li("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Li("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Li("\u2237","\\dblcolon"),Li("\u2239","\\eqcolon"),Li("\u2254","\\coloneqq"),Li("\u2255","\\eqqcolon"),Li("\u2a74","\\Coloneqq"),Li("\\ratio","\\vcentcolon"),Li("\\coloncolon","\\dblcolon"),Li("\\colonequals","\\coloneqq"),Li("\\coloncolonequals","\\Coloneqq"),Li("\\equalscolon","\\eqqcolon"),Li("\\equalscoloncolon","\\Eqqcolon"),Li("\\colonminus","\\coloneq"),Li("\\coloncolonminus","\\Coloneq"),Li("\\minuscolon","\\eqcolon"),Li("\\minuscoloncolon","\\Eqcolon"),Li("\\coloncolonapprox","\\Colonapprox"),Li("\\coloncolonsim","\\Colonsim"),Li("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Li("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Li("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Li("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Li("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),Li("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Li("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Li("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Li("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Li("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Li("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Li("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Li("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Li("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Li("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Li("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Li("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Li("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),Li("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),Li("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),Li("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),Li("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),Li("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),Li("\u27e6","\\llbracket"),Li("\u27e7","\\rrbracket"),Li("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Li("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Li("\u2983","\\lBrace"),Li("\u2984","\\rBrace"),Li("\\darr","\\downarrow"),Li("\\dArr","\\Downarrow"),Li("\\Darr","\\Downarrow"),Li("\\lang","\\langle"),Li("\\rang","\\rangle"),Li("\\uarr","\\uparrow"),Li("\\uArr","\\Uparrow"),Li("\\Uarr","\\Uparrow"),Li("\\N","\\mathbb{N}"),Li("\\R","\\mathbb{R}"),Li("\\Z","\\mathbb{Z}"),Li("\\alef","\\aleph"),Li("\\alefsym","\\aleph"),Li("\\Alpha","\\mathrm{A}"),Li("\\Beta","\\mathrm{B}"),Li("\\bull","\\bullet"),Li("\\Chi","\\mathrm{X}"),Li("\\clubs","\\clubsuit"),Li("\\cnums","\\mathbb{C}"),Li("\\Complex","\\mathbb{C}"),Li("\\Dagger","\\ddagger"),Li("\\diamonds","\\diamondsuit"),Li("\\empty","\\emptyset"),Li("\\Epsilon","\\mathrm{E}"),Li("\\Eta","\\mathrm{H}"),Li("\\exist","\\exists"),Li("\\harr","\\leftrightarrow"),Li("\\hArr","\\Leftrightarrow"),Li("\\Harr","\\Leftrightarrow"),Li("\\hearts","\\heartsuit"),Li("\\image","\\Im"),Li("\\infin","\\infty"),Li("\\Iota","\\mathrm{I}"),Li("\\isin","\\in"),Li("\\Kappa","\\mathrm{K}"),Li("\\larr","\\leftarrow"),Li("\\lArr","\\Leftarrow"),Li("\\Larr","\\Leftarrow"),Li("\\lrarr","\\leftrightarrow"),Li("\\lrArr","\\Leftrightarrow"),Li("\\Lrarr","\\Leftrightarrow"),Li("\\Mu","\\mathrm{M}"),Li("\\natnums","\\mathbb{N}"),Li("\\Nu","\\mathrm{N}"),Li("\\Omicron","\\mathrm{O}"),Li("\\plusmn","\\pm"),Li("\\rarr","\\rightarrow"),Li("\\rArr","\\Rightarrow"),Li("\\Rarr","\\Rightarrow"),Li("\\real","\\Re"),Li("\\reals","\\mathbb{R}"),Li("\\Reals","\\mathbb{R}"),Li("\\Rho","\\mathrm{P}"),Li("\\sdot","\\cdot"),Li("\\sect","\\S"),Li("\\spades","\\spadesuit"),Li("\\sub","\\subset"),Li("\\sube","\\subseteq"),Li("\\supe","\\supseteq"),Li("\\Tau","\\mathrm{T}"),Li("\\thetasym","\\vartheta"),Li("\\weierp","\\wp"),Li("\\Zeta","\\mathrm{Z}"),Li("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Li("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Li("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Li("\\blue","\\textcolor{##6495ed}{#1}"),Li("\\orange","\\textcolor{##ffa500}{#1}"),Li("\\pink","\\textcolor{##ff00af}{#1}"),Li("\\red","\\textcolor{##df0030}{#1}"),Li("\\green","\\textcolor{##28ae7b}{#1}"),Li("\\gray","\\textcolor{gray}{#1}"),Li("\\purple","\\textcolor{##9d38bd}{#1}"),Li("\\blueA","\\textcolor{##ccfaff}{#1}"),Li("\\blueB","\\textcolor{##80f6ff}{#1}"),Li("\\blueC","\\textcolor{##63d9ea}{#1}"),Li("\\blueD","\\textcolor{##11accd}{#1}"),Li("\\blueE","\\textcolor{##0c7f99}{#1}"),Li("\\tealA","\\textcolor{##94fff5}{#1}"),Li("\\tealB","\\textcolor{##26edd5}{#1}"),Li("\\tealC","\\textcolor{##01d1c1}{#1}"),Li("\\tealD","\\textcolor{##01a995}{#1}"),Li("\\tealE","\\textcolor{##208170}{#1}"),Li("\\greenA","\\textcolor{##b6ffb0}{#1}"),Li("\\greenB","\\textcolor{##8af281}{#1}"),Li("\\greenC","\\textcolor{##74cf70}{#1}"),Li("\\greenD","\\textcolor{##1fab54}{#1}"),Li("\\greenE","\\textcolor{##0d923f}{#1}"),Li("\\goldA","\\textcolor{##ffd0a9}{#1}"),Li("\\goldB","\\textcolor{##ffbb71}{#1}"),Li("\\goldC","\\textcolor{##ff9c39}{#1}"),Li("\\goldD","\\textcolor{##e07d10}{#1}"),Li("\\goldE","\\textcolor{##a75a05}{#1}"),Li("\\redA","\\textcolor{##fca9a9}{#1}"),Li("\\redB","\\textcolor{##ff8482}{#1}"),Li("\\redC","\\textcolor{##f9685d}{#1}"),Li("\\redD","\\textcolor{##e84d39}{#1}"),Li("\\redE","\\textcolor{##bc2612}{#1}"),Li("\\maroonA","\\textcolor{##ffbde0}{#1}"),Li("\\maroonB","\\textcolor{##ff92c6}{#1}"),Li("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Li("\\maroonD","\\textcolor{##ca337c}{#1}"),Li("\\maroonE","\\textcolor{##9e034e}{#1}"),Li("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Li("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Li("\\purpleC","\\textcolor{##aa87ff}{#1}"),Li("\\purpleD","\\textcolor{##7854ab}{#1}"),Li("\\purpleE","\\textcolor{##543b78}{#1}"),Li("\\mintA","\\textcolor{##f5f9e8}{#1}"),Li("\\mintB","\\textcolor{##edf2df}{#1}"),Li("\\mintC","\\textcolor{##e0e5cc}{#1}"),Li("\\grayA","\\textcolor{##f6f7f7}{#1}"),Li("\\grayB","\\textcolor{##f0f1f2}{#1}"),Li("\\grayC","\\textcolor{##e3e5e6}{#1}"),Li("\\grayD","\\textcolor{##d6d8da}{#1}"),Li("\\grayE","\\textcolor{##babec2}{#1}"),Li("\\grayF","\\textcolor{##888d93}{#1}"),Li("\\grayG","\\textcolor{##626569}{#1}"),Li("\\grayH","\\textcolor{##3b3e40}{#1}"),Li("\\grayI","\\textcolor{##21242c}{#1}"),Li("\\kaBlue","\\textcolor{##314453}{#1}"),Li("\\kaGreen","\\textcolor{##71B307}{#1}");var Ui={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Hi=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Mi(Ii,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Bi(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;;){var e=this.future();if(" "!==e.text)break;this.stack.pop()}},t.consumeArgs=function(e){for(var t=[],n=0;nthis.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var r=n.tokens;if(n.numArgs){var i=this.consumeArgs(n.numArgs);r=r.slice();for(var o=r.length-1;o>=0;--o){var s=r[o];if("#"===s.text){if(0===o)throw new a("Incomplete placeholder at end of macro body",s);if(s=r[--o],"#"===s.text)r.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new a("Not a valid argument number",s);var l;(l=r).splice.apply(l,[o,2].concat(i[+s.text-1]))}}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof i){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;this.pushToken(new i(e));while(this.stack.length>n){var r=this.expandOnce();r instanceof i&&t.push(this.stack.pop())}return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"===typeof t?t(this):t;if("string"===typeof n){var r=0;if(-1!==n.indexOf("#")){var i=n.replace(/##/g,"");while(-1!==i.indexOf("#"+(r+1)))++r}var o=new Bi(n,this.settings),a=[],s=o.lex();while("EOF"!==s.text)a.push(s),s=o.lex();a.reverse();var l={tokens:a,numArgs:r};return l}return n},t.isDefined=function(e){return this.macros.has(e)||bi.hasOwnProperty(e)||_e.math.hasOwnProperty(e)||_e.text.hasOwnProperty(e)||Ui.hasOwnProperty(e)},e}(),Qi={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"}},Ki={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\u010f":"d\u030c","\u1e0b":"d\u0307","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u013a":"l\u0301","\u013e":"l\u030c","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\u010e":"D\u030c","\u1e0a":"D\u0307","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0139":"L\u0301","\u013d":"L\u030c","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u0164":"T\u030c","\u1e6a":"T\u0307","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},zi=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Hi(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){var r=[];while(1){"math"===this.mode&&this.consumeSpaces();var i=this.fetch();if(-1!==e.endOfExpression.indexOf(i.text))break;if(n&&i.text===n)break;if(t&&bi[i.text]&&bi[i.text].infix)break;var o=this.parseAtom(n);if(!o)break;r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r0&&!c||0===s&&!c&&"math"===this.mode,d=this.parseGroupOfType("argument to '"+e+"'",l,c,r,u);if(!d){if(c){o.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(c?o:i).push(d)}return{args:i,optArgs:o}},t.parseGroupOfType=function(e,t,n,r,i){switch(t){case"color":return i&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return i&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,i);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,i);case"hbox":var o=this.parseGroup(e,n,r,void 0,"text",i);if(!o)return o;var s={type:"styling",mode:o.mode,body:[o],style:"text"};return s;case"raw":if(i&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var l=this.parseStringGroup("raw",n,!0);if(l)return{type:"raw",mode:"text",string:l.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,i);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){while(" "===this.fetch().text)this.consume()},t.parseStringGroup=function(e,t,n){var r=t?"[":"{",i=t?"]":"}",o=this.fetch();if(o.text!==r){if(t)return null;if(n&&"EOF"!==o.text&&/[^{}[\]]/.test(o.text))return this.consume(),o}var s=this.mode;this.mode="text",this.expect(r);var l,c="",u=this.fetch(),d=0,h=u;while((l=this.fetch()).text!==i||n&&d>0){switch(l.text){case"EOF":throw new a("Unexpected end of input in "+e,u.range(h,c));case r:d++;break;case i:d--;break}h=l,c+=h.text,this.consume()}return this.expect(i),this.mode=s,u.range(h,c)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";var r,i=this.fetch(),o=i,s="";while("EOF"!==(r=this.fetch()).text&&e.test(s+r.text))o=r,s+=o.text,this.consume();if(""===s)throw new a("Invalid "+t+": '"+i.text+"'",i);return this.mode=n,i.range(o,s)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}},t.parseSizeGroup=function(e){var t,n=!1;if(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!t)return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new a("Invalid size: '"+t.text+"'",t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!ht(i))throw new a("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var r=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}},t.parseGroup=function(t,n,i,o,s,l){var c=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var u,d=this.fetch(),h=d.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var f=e.endOfGroup[h];this.gullet.beginGroup();var p=this.parseExpression(!1,f),A=this.fetch();this.expect(f),this.gullet.endGroup(),u={type:"ordgroup",mode:this.mode,loc:r.range(d,A),body:p,semisimple:"\\begingroup"===h||void 0}}else if(n)u=null;else if(u=this.parseFunction(o,t,i)||this.parseSymbol(),null==u&&"\\"===h[0]&&!Ui.hasOwnProperty(h)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+h,d);u=this.formatUnsupportedCmd(h),this.consume()}return s&&this.switchMode(c),u},t.formLigatures=function(e){for(var t=e.length-1,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,c=_e[this.mode][t].group,u=r.range(e);if(ve.hasOwnProperty(c)){var d=c;l={type:"atom",mode:this.mode,family:d,loc:u,text:t}}else l={type:c,mode:this.mode,loc:u,text:t};o=l}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(U(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:r.range(e),text:t}}if(this.consume(),s)for(var h=0;h-b}function x(e,t){var n=t?e.textFill:e.fill;return null!=n&&n!==f}function C(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&n!==f}function S(e,t){t&&k(e,"transform","matrix("+h.call(t,",")+")")}function k(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function E(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function O(e,t,n,r){if(x(t,n)){var i=n?t.textFill:t.fill;i="transparent"===i?f:i,k(e,"fill",i),k(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else k(e,"fill",f);if(C(t,n)){var o=n?t.textStroke:t.stroke;o="transparent"===o?f:o,k(e,"stroke",o);var a=n?t.textStrokeWidth:t.lineWidth,s=!n&&t.strokeNoScale?r.getLineScale():1;k(e,"stroke-width",a/s),k(e,"paint-order",n?"stroke":"fill"),k(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(k(e,"stroke-dasharray",t.lineDash.join(",")),k(e,"stroke-dashoffset",p(t.lineDashOffset||0))):k(e,"stroke-dasharray",""),t.lineCap&&k(e,"stroke-linecap",t.lineCap),t.lineJoin&&k(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&k(e,"stroke-miterlimit",t.miterLimit)}else k(e,"stroke",f)}function B(e){for(var t=[],n=e.data,r=e.len(),i=0;i=v:-b>=v),E=b>0?b%v:b%v+v,O=!1;O=!!k||!w(S)&&E>=m===!!C;var B=_(l+u*g(f)),M=_(c+h*A(f));k&&(b=C?v-1e-4:1e-4-v,O=!0,9===i&&t.push("M",B,M));var T=_(l+u*g(f+b)),I=_(c+h*A(f+b));t.push("A",_(u),_(h),p(x*y),+O,+C,T,I);break;case d.Z:a="Z";break;case d.R:T=_(n[i++]),I=_(n[i++]);var L=_(n[i++]),D=_(n[i++]);t.push("M",T,I,"L",T+L,I,"L",T+L,I+D,"L",T,I+D,"L",T,I);break}a&&t.push(a);for(var P=0;PI){for(;M0?"-".concat(p):p,w=!!g,x=c()(A,b,"".concat(b,"-").concat(h),(n={},a()(n,"".concat(b,"-with-text"),w),a()(n,"".concat(b,"-with-text").concat(_),w),a()(n,"".concat(b,"-dashed"),!!m),a()(n,"".concat(b,"-plain"),!!v),a()(n,"".concat(b,"-rtl"),"rtl"===o),n));return s["createElement"]("div",i()({className:x},y,{role:"separator"}),g&&s["createElement"]("span",{className:"".concat(b,"-inner-text")},g))}))};t["a"]=h},PD8m:function(e,t){e.exports={name:"memoryStorage",read:r,write:i,each:o,remove:a,clearAll:s};var n={};function r(e){return n[e]}function i(e,t){n[e]=t}function o(e){for(var t in n)n.hasOwnProperty(t)&&e(n[t],t)}function a(e){delete n[e]}function s(e){n={}}},PEeC:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n("RIqP"),i=n.n(r),o=n("xEkU"),a=n.n(o);function s(e){var t,n=function(n){return function(){t=null,e.apply(void 0,i()(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),i=0;i0),a()(n,"".concat(o,"-rtl"),"rtl"===r),n),s);return m["createElement"](w.Provider,{value:{siderHook:e.getSiderHook()}},m["createElement"](d,l()({className:f},h),c))},e}return h()(n,[{key:"getSiderHook",value:function(){var e=this;return{addSider:function(t){e.setState((function(e){return{siders:[].concat(i()(e.siders),[t])}}))},removeSider:function(t){e.setState((function(e){return{siders:e.siders.filter((function(e){return e!==t}))}}))}}}},{key:"render",value:function(){return m["createElement"](b["a"],null,this.renderComponent)}}]),n}(m["Component"]),k=x({suffixCls:"layout",tagName:"section",displayName:"Layout"})(S),E=x({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(C),O=x({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(C),B=x({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(C);k.Header=E,k.Footer=O,k.Content=B,t["b"]=k},PNag:function(e,t,n){var r=n("bYtY"),i=n("SKnc"),o=n("YH21"),a=n("crZl"),s=n("IwbS"),l=n("OELB"),c=n("72pK"),u=n("y7Aq"),d=n("4NO4"),h=l.linearMap,f=r.each,p=Math.min,A=Math.max,g=12,m=6,v=a.extend({type:"visualMap.continuous",init:function(){v.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},_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)},_renderEndsText:function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,l=this._shapes.barGroup,c=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],l),u=this._applyTransform(0===n?"bottom":"top",l),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===d?"middle":u,textAlign:"horizontal"===d?u:"center",text:r,textFont:h.getFont(),textFill:h.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,o=this._orient,a=this._useHandle,s=u.getItemAlign(t,this.api,i),l=n.barGroup=this._createBarGroup(s);l.add(n.outOfRange=y()),l.add(n.inRange=y(null,a?C(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("\u56fd"),d=A(c.width,c.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(l,0,i,d,o,s),this._createHandle(l,1,i,d,o,s)),this._createIndicator(l,i,d,o),e.add(l)},_createHandle:function(e,t,n,i,a){var l=r.bind(this._dragHandle,this,t,!1),c=r.bind(this._dragHandle,this,t,!0),u=y(b(t,i),C(this._orient),l,c);u.position[0]=n[0],e.add(u);var d=this.visualMapModel.textStyleModel,h=new s.Text({draggable:!0,drift:l,onmousemove:function(e){o.stop(e.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:d.getFont(),textFill:d.getTextColor()}});this.group.add(h);var f=["horizontal"===a?i/2:1.5*i,"horizontal"===a?0===t?-1.5*i:1.5*i:0===t?-i/2:i/2],p=this._shapes;p.handleThumbs[t]=u,p.handleLabelPoints[t]=f,p.handleLabels[t]=h},_createIndicator:function(e,t,n,r){var i=y([[0,0]],"move");i.position[0]=t[0],i.attr({invisible:!0,silent:!0}),e.add(i);var o=this.visualMapModel.textStyleModel,a=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:o.getFont(),textFill:o.getTextColor()}});this.group.add(a);var l=["horizontal"===r?n/2:m+3,0],c=this._shapes;c.indicator=i,c.indicatorLabel=a,c.indicatorLabelPoint=l},_dragHandle:function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.barGroup,!0);this._updateInterval(e,i[1]),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():x(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[h(t[0],n,r,!0),h(t[1],n,r,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];c(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[h(r[0],i,o,!0),h(r[1],i,o,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(e,t,n,r){var o={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,o),s=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],l=this._createBarPoints(n,s);return{barColor:new i(0,0,0,1,a),barPoints:l,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;oe[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},_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]]]},_createBarGroup:function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||n?"horizontal"===t&&n?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||n?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels;f([0,1],(function(a){var l=i[a];l.setStyle("fill",t.handlesColor[a]),l.position[1]=e[a];var c=s.applyTransform(n.handleLabelPoints[a],s.getTransform(l,this.group));o[a].setStyle({x:c[0],y:c[1],text:r.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",n.barGroup)})}),this)}},_showIndicator:function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,l=[0,a[1]],c=h(e,o,l,!0),u=this._shapes,d=u.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",_(!!n,r,c,a[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",f);d.setStyle("fill",p);var A=s.applyTransform(u.indicatorLabelPoint,s.getTransform(d,this.group)),g=u.indicatorLabel;g.attr("invisible",!1);var m=this._applyTransform("left",u.barGroup),v=this._orient;g.setStyle({text:(n||"")+i.formatValueText(t),textVerticalAlign:"horizontal"===v?m:"middle",textAlign:"horizontal"===v?"center":m,x:A[0],y:A[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);r[1]=p(A(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()}))},_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()},_doHoverLinkToSeries:function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=p(A(i[0],e),i[1]);var a=w(n,o,i),s=[e-a,e+a],l=h(e,i,o,!0),c=[h(s[0],i,o,!0),h(s[1],i,o,!0)];s[0]i[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"\u2248 ",a));var f=this._hoverLinkDataIndices,g=[];(t||x(n))&&(g=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var m=d.compressBatches(f,g);this._dispatchHighDown("downplay",u.makeHighDownBatch(m[0],n)),this._dispatchHighDown("highlight",u.makeHighDownBatch(m[1],n))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var r=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(r)){var i=r.getData(t.dataType),o=i.get(n.getDataDimension(i),t.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,n,i){var o=s.getTransform(t,i?null:this.group);return s[r.isArray(e)?"applyTransform":"transformDirection"](e,o,n)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function y(e,t,n,r){return new s.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){o.stop(e.event)},ondragend:r})}function b(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function _(e,t,n,r){return e?[[0,-p(t,A(n,0))],[m,0],[0,p(t,A(r-n,0))]]:[[0,0],[5,-5],[5,5]]}function w(e,t,n){var r=g/2,i=e.get("hoverLinkDataSize");return i&&(r=h(i,t,n,!0)/2),r}function x(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function C(e){return"vertical"===e?"ns-resize":"ew-resize"}var S=v;e.exports=S},PQMj:function(e,t,n){},PSzr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},ProS:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("aX58")),o=n("bYtY"),a=n("Qe9p"),s=n("ItGF"),l=n("BPZU"),c=n("H6uX"),u=n("fmMI"),d=n("hD7B"),h=n("IDmD"),f=n("ypgQ"),p=n("+wW9"),A=n("0V0F"),g=n("bLfw"),m=n("T4UG"),v=n("sS/r"),y=n("6Ic6"),b=n("IwbS"),_=n("4NO4"),w=n("iLNv"),x=w.throttle,C=n("/WM3"),S=n("uAnK"),k=n("mYwL"),E=n("af/B"),O=n("xTNl"),B=n("8hn6");n("A1Ka");var M=n("7DRL"),T=o.assert,I=o.each,L=o.isFunction,D=o.isObject,P=g.parseClassType,N="4.8.0",j={zrender:"4.3.1"},F=1,R=1e3,U=800,H=900,Q=5e3,K=1e3,z=1100,V=2e3,W=3e3,G=3500,X=4e3,q=5e3,Y={PROCESSOR:{FILTER:R,SERIES_FILTER:U,STATISTIC:Q},VISUAL:{LAYOUT:K,PROGRESSIVE_LAYOUT:z,GLOBAL:V,CHART:W,POST_CHART_LAYOUT:G,COMPONENT:X,BRUSH:q}},Z="__flagInMainProcess",J="__optionUpdated",$=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(n,r,i){t||!this._disposed?(n=n&&n.toLowerCase(),c.prototype[e].call(this,n,r,i)):be(this.id)}}function te(){c.call(this)}function ne(e,t,n){n=n||{},"string"===typeof t&&(t=Ie[t]),this.id,this.group,this._dom=e;var r="canvas",a=this._zr=i.init(e,{renderer:n.renderer||r,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=x(o.bind(a.flush,a),17);t=o.clone(t);t&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var s=this._api=Ce(this);function u(e,t){return e.__prio-t.__prio}l(Te,u),l(Oe,u),this._scheduler=new E(this,s,Oe,Te),c.call(this,this._ecEventProcessor=new Se),this._messageCenter=new te,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),he(a,this),o.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),o.mixin(te,c);var re=ne.prototype;function ie(e,t,n){if(this._disposed)be(this.id);else{var r,i=this._model,o=this._coordSysMgr.getCoordinateSystems();t=_.parseFinder(i,t);for(var a=0;a0&&e.unfinished);e.unfinished||this._zr.flush()}}},re.getDom=function(){return this._dom},re.getZr=function(){return this._zr},re.setOption=function(e,t,n){if(this._disposed)be(this.id);else{var r;if(D(t)&&(n=t.lazyUpdate,r=t.silent,t=t.notMerge),this[Z]=!0,!this._model||t){var i=new f(this._api),o=this._theme,a=this._model=new u;a.scheduler=this._scheduler,a.init(null,null,o,i)}this._model.setOption(e,Be),n?(this[J]={silent:r},this[Z]=!1):(ae(this),oe.update.call(this),this._zr.flush(),this[J]=!1,this[Z]=!1,ue.call(this,r),de.call(this,r))}},re.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},re.getModel=function(){return this._model},re.getOption=function(){return this._model&&this._model.getOption()},re.getWidth=function(){return this._zr.getWidth()},re.getHeight=function(){return this._zr.getHeight()},re.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},re.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},re.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return o.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},re.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;I(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return I(r,(function(e){e.group.ignore=!1})),o}be(this.id)},re.getConnectedDataURL=function(e){if(this._disposed)be(this.id);else if(s.canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,a=Math.max,l=1/0;if(Pe[n]){var c=l,u=l,d=-l,h=-l,f=[],p=e&&e.pixelRatio||1;o.each(De,(function(i,s){if(i.group===n){var l=t?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(o.clone(e)),p=i.getDom().getBoundingClientRect();c=r(p.left,c),u=r(p.top,u),d=a(p.right,d),h=a(p.bottom,h),f.push({dom:l,left:p.left,top:p.top})}})),c*=p,u*=p,d*=p,h*=p;var A=d-c,g=h-u,m=o.createCanvas(),v=i.init(m,{renderer:t?"svg":"canvas"});if(v.resize({width:A,height:g}),t){var y="";return I(f,(function(e){var t=e.left-c,n=e.top-u;y+=''+e.dom+""})),v.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new b.Rect({shape:{x:0,y:0,width:A,height:g},style:{fill:e.connectedBackgroundColor}})),I(f,(function(e){var t=new b.Image({style:{x:e.left*p-c,y:e.top*p-u,image:e.dom}});v.add(t)})),v.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},re.convertToPixel=o.curry(ie,"convertToPixel"),re.convertFromPixel=o.curry(ie,"convertFromPixel"),re.containPixel=function(e,t){if(!this._disposed){var n,r=this._model;return e=_.parseFinder(r,e),o.each(e,(function(e,r){r.indexOf("Models")>=0&&o.each(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n|=!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n|=o.containPoint(t,e))}}),this)}),this),!!n}be(this.id)},re.getVisual=function(e,t){var n=this._model;e=_.parseFinder(n,e,{defaultMainType:"series"});var r=e.seriesModel,i=r.getData(),o=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?i.indexOfRawIndex(e.dataIndex):null;return null!=o?i.getItemVisual(o,t):i.getVisual(t)},re.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},re.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var oe={prepareAndUpdate:function(e){ae(this),oe.update.call(this,e)},update:function(e){var t=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,o=this._scheduler;if(t){o.restoreData(t,e),o.performSeriesTasks(t),i.create(t,n),o.performDataProcessorTasks(t,e),le(this,t),i.update(t,n),pe(t),o.performVisualTasks(t,e),Ae(this,t,n,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)r.setBackgroundColor(l);else{var c=a.parse(l);l=a.stringify(c,"rgb"),0===c[3]&&(l="transparent")}ve(t,n)}},updateTransform:function(e){var t=this._model,n=this,r=this._api;if(t){var i=[];t.eachComponent((function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,t,r,e);l&&l.update&&i.push(s)}else i.push(s)}));var a=o.createHashMap();t.eachSeries((function(i){var o=n._chartsMap[i.__viewId];if(o.updateTransform){var s=o.updateTransform(i,t,r,e);s&&s.update&&a.set(i.uid,1)}else a.set(i.uid,1)})),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),me(n,t,r,e,a),ve(t,this._api)}},updateView:function(e){var t=this._model;t&&(y.markUpdateMethod(e,"updateView"),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),Ae(this,this._model,this._api,e),ve(t,this._api))},updateVisual:function(e){oe.update.call(this,e)},updateLayout:function(e){oe.update.call(this,e)}};function ae(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),fe(e,"component",t,n),fe(e,"chart",t,n),n.plan()}function se(e,t,n,r,i){var a=e._model;if(r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var l={mainType:r,query:s};i&&(l.subType=i);var c=n.excludeSeriesId;null!=c&&(c=o.createHashMap(_.normalizeToArray(c))),a&&a.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else I(e._componentsViews.concat(e._chartsViews),u);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}}function le(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))}function ce(e,t){var n=e.type,r=e.escapeConnect,i=ke[n],a=i.actionInfo,s=(a.update||"update").split(":"),l=s.pop();s=null!=s[0]&&P(s[0]),this[Z]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=o.map(e.batch,(function(t){return t=o.defaults(o.extend({},t),e),t.batch=null,t})));var d,h=[],f="highlight"===n||"downplay"===n;I(c,(function(e){d=i.action(e,this._model,this._api),d=d||o.extend({},e),d.type=a.event||d.type,h.push(d),f?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||f||s||(this[J]?(ae(this),oe.update.call(this,e),this[J]=!1):oe[l].call(this,e)),d=u?{type:a.event||n,escapeConnect:r,batch:h}:h[0],this[Z]=!1,!t&&this._messageCenter.trigger(d.type,d)}function ue(e){var t=this._pendingActions;while(t.length){var n=t.shift();ce.call(this,n,e)}}function de(e){!e&&this.trigger("updated")}function he(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[J]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function fe(e,t,n,r){for(var i="component"===t,o=i?e._componentsViews:e._chartsViews,a=i?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;ct.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function we(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}function xe(e,t){var n=e.get("z"),r=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=r&&(e.zlevel=r))}))}function Ce(e){var t=e._coordSysMgr;return o.extend(new d(e),{getCoordinateSystems:o.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function Se(){this.eventInfo}re._initEvents=function(){I(ye,(function(e){var t=function(t){var n,r=this.getModel(),i=t.target,a="globalout"===e;if(a)n={};else if(i&&null!=i.dataIndex){var s=i.dataModel||r.getSeriesByIndex(i.seriesIndex);n=s&&s.getDataParams(i.dataIndex,i.dataType,i)||{}}else i&&i.eventData&&(n=o.extend({},i.eventData));if(n){var l=n.componentType,c=n.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=n.seriesIndex);var u=l&&null!=c&&r.getComponent(l,c),d=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:i,packedEvent:n,model:u,view:d},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),I(Ee,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},re.isDisposed=function(){return this._disposed},re.clear=function(){this._disposed?be(this.id):this.setOption({series:[]},!0)},re.dispose=function(){if(this._disposed)be(this.id);else{this._disposed=!0,_.setAttribute(this.getDom(),Fe,"");var e=this._api,t=this._model;I(this._componentsViews,(function(n){n.dispose(t,e)})),I(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete De[this.id]}},o.mixin(ne,c),Se.prototype={constructor:Se,normalizeQuery:function(e){var t={},n={},r={};if(o.isString(e)){var i=P(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,i){for(var o=!1,l=0;l0&&u===i.length-c.length){var d=i.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(i)&&(n[i]=e,o=!0),o||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},filter:function(e,t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,a,"mainType")&&u(l,a,"subType")&&u(l,a,"index","componentIndex")&&u(l,a,"name")&&u(l,a,"id")&&u(c,o,"name")&&u(c,o,"dataIndex")&&u(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,o));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var ke={},Ee={},Oe=[],Be=[],Me=[],Te=[],Ie={},Le={},De={},Pe={},Ne=new Date-0,je=new Date-0,Fe="_echarts_instance_";function Re(e){var t=0,n=1,r=2,i="__connectUpdateStatus";function o(e,t){for(var n=0;n>>1:e>>>1;t[n]=e}return t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;r()},QbM5:function(e,t,n){},Qe9p:function(e,t,n){var r=n("1RvN"),i={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 o(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(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 d(e,t,n){return e+(t-e)*n}function h(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new r(20),A=null;function g(e,t){A&&f(A,t),A=p.put(e,A||t.slice())}function m(e,t){if(e){t=t||[];var n=p.get(e);if(n)return f(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in i)return f(t,i[r]),g(e,t),t;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===r.length){var s=r.substr(0,o),u=r.substr(o+1,a-(o+1)).split(","),d=1;switch(s){case"rgba":if(4!==u.length)return void h(t,0,0,0,1);d=c(u.pop());case"rgb":return 3!==u.length?void h(t,0,0,0,1):(h(t,l(u[0]),l(u[1]),l(u[2]),d),g(e,t),t);case"hsla":return 4!==u.length?void h(t,0,0,0,1):(u[3]=c(u[3]),v(u,t),g(e,t),t);case"hsl":return 3!==u.length?void h(t,0,0,0,1):(v(u,t),g(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===r.length){var A=parseInt(r.substr(1),16);return A>=0&&A<=4095?(h(t,(3840&A)>>4|(3840&A)>>8,240&A|(240&A)>>4,15&A|(15&A)<<4,1),g(e,t),t):void h(t,0,0,0,1)}if(7===r.length){A=parseInt(r.substr(1),16);return A>=0&&A<=16777215?(h(t,(16711680&A)>>16,(65280&A)>>8,255&A,1),g(e,t),t):void h(t,0,0,0,1)}}}}function v(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=c(e[1]),i=c(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return t=t||[],h(t,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,h=((s-o)/6+l/2)/l;r===s?t=h-d:i===s?t=1/3+u-h:o===s&&(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}}function b(e,t){var n=m(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:e[r]<0&&(n[r]=0);return O(n,4===n.length?"rgba":"rgb")}}function _(e){var t=m(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function w(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),l=t[i],c=t[a],u=r-i;return n[0]=o(d(l[0],c[0],u)),n[1]=o(d(l[1],c[1],u)),n[2]=o(d(l[2],c[2],u)),n[3]=s(d(l[3],c[3],u)),n}}var x=w;function C(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),l=m(t[i]),c=m(t[a]),u=r-i,h=O([o(d(l[0],c[0],u)),o(d(l[1],c[1],u)),o(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return n?{color:h,leftIndex:i,rightIndex:a,value:r}:h}}var S=C;function k(e,t,n,r){if(e=m(e),e)return e=y(e),null!=t&&(e[0]=a(t)),null!=n&&(e[1]=c(n)),null!=r&&(e[2]=c(r)),O(v(e),"rgba")}function E(e,t){if(e=m(e),e&&null!=t)return e[3]=s(t),O(e,"rgba")}function O(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+")"}}t.parse=m,t.lift=b,t.toHex=_,t.fastLerp=w,t.fastMapToColor=x,t.lerp=C,t.mapToColor=S,t.modifyHSL=k,t.modifyAlpha=E,t.stringify=O},Qi1f:function(e,t,n){"use strict";n.d(t,"g",(function(){return x})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return O})),n.d(t,"e",(function(){return B})),n.d(t,"f",(function(){return T}));var r=n("VTBJ"),i=n("U8pU"),o=n("AJpP"),a=n("q1tI"),s=n.n(a),l=n("Kwbf"),c=n("MNnm"),u=n("l4aY"),d="data-rc-order",h="rc-util-key",f=new Map;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):h}function A(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function g(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function m(e){return Array.from((f.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(c["a"])())return null;var n=t.csp,r=t.prepend,i=document.createElement("style");i.setAttribute(d,g(r)),null!==n&&void 0!==n&&n.nonce&&(i.nonce=null===n||void 0===n?void 0:n.nonce),i.innerHTML=e;var o=A(t),a=o.firstChild;if(r){if("queue"===r){var s=m(o).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(d))}));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=A(t);return m(n).find((function(n){return n.getAttribute(p(t))===e}))}function b(e,t){var n=f.get(e);if(!n||!Object(u["a"])(document,n)){var r=v("",t),i=r.parentNode;f.set(e,i),e.removeChild(r)}}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=A(n);b(r,n);var i=y(t,n);if(i){var o,a,s;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&i.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))i.nonce=null===(s=n.csp)||void 0===s?void 0:s.nonce;return i.innerHTML!==e&&(i.innerHTML=e),i}var l=v(e,n);return l.setAttribute(p(n),t),l}var w=n("Pw59");function x(e,t){Object(l["a"])(e,"[@ant-design/icons] ".concat(t))}function C(e){return"object"===Object(i["a"])(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Object(i["a"])(e.icon)||"function"===typeof e.icon)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}function k(e,t,n){return n?s.a.createElement(e.tag,Object(r["a"])(Object(r["a"])({key:t},S(e.attrs)),n),(e.children||[]).map((function(n,r){return k(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):s.a.createElement(e.tag,Object(r["a"])({key:t},S(e.attrs)),(e.children||[]).map((function(n,r){return k(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function E(e){return Object(o["generate"])(e)[0]}function O(e){return e?Array.isArray(e)?e:[e]:[]}var B={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},M="\n.anticon {\n display: inline-block;\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",T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,t=Object(a["useContext"])(w["a"]),n=t.csp;Object(a["useEffect"])((function(){_(e,"@ant-design-icons",{prepend:!0,csp:n})}),[])}},QkVE:function(e,t,n){var r=n("EpBk");function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},QoRX:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY})}))}},manuallyShowTip:function(e,t,n,r){if(r.from!==this.uid&&!o.node){var i=S(r,n);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=w;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=d(r,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:r.position,target:l.el},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},manuallyHideTip:function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,r.from!==this.uid&&this._hide(S(r,n))},_manuallyAxisShowTip:function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s){var l=s.getData();e=C([l.getItemModel(o),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},_tryShow:function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=i.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,r=this._tooltipModel,o=[t.offsetX,t.offsetY],a=[],s=[],c=C([t.tooltipOption,r]),u=this._renderMode,d=this._newLine,h={};b(e,(function(e){b(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value,o=[];if(t&&null!=r){var c=g.getValueLabel(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);i.each(e.seriesDataIndices,(function(a){var l=n.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=l&&l.getDataParams(d);if(f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=A.getAxisRawValue(t.axis,r),f.axisValueLabel=c,f){s.push(f);var p,g=l.formatTooltip(d,!0,null,u);if(i.isObject(g)){p=g.html;var m=g.markers;i.merge(h,m)}else p=g;o.push(p)}}));var f=c;"html"!==u?a.push(o.join(d)):a.push((f?l.encodeHTML(f)+d:"")+o.join(d))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,f,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(c,a,s,Math.random(),o[0],o[1],f,void 0,h)}))},_showSeriesItemTooltip:function(e,t,n){var r=this._ecModel,o=t.seriesIndex,a=r.getSeriesByIndex(o),s=t.dataModel||a,l=t.dataIndex,c=t.dataType,u=s.getData(c),d=C([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),h=d.get("trigger");if(null==h||"item"===h){var f,p,A=s.getDataParams(l,c),g=s.formatTooltip(l,!1,c,this._renderMode);i.isObject(g)?(f=g.html,p=g.markers):(f=g,p=null);var m="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,f,A,m,e.offsetX,e.offsetY,e.position,e.target,p)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var r=t.tooltip;if("string"===typeof r){var i=r;r={content:i,formatter:i}}var o=new f(r,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,r,i,o,a,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,d=e.get("formatter");a=a||e.get("position");var h=t;if(d&&"string"===typeof d)h=l.formatTpl(d,n,!0);else if("function"===typeof d){var f=y((function(t,r){t===this._ticket&&(u.setContent(r,c,e),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,h=d(n,r,f)}u.setContent(h,c,e),u.show(e),this._updatePosition(e,a,i,o,u,n,s)}},_updatePosition:function(e,t,n,r,o,a,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=o.getSize(),d=e.get("align"),f=e.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof t&&(t=t([n,r],a,o.el,p,{viewSize:[l,c],contentSize:u.slice()})),i.isArray(t))n=_(t[0],l),r=_(t[1],c);else if(i.isObject(t)){t.width=u[0],t.height=u[1];var A=h.getLayoutRect(t,{width:l,height:c});n=A.x,r=A.y,d=null,f=null}else if("string"===typeof t&&s){var g=O(t,p,u);n=g[0],r=g[1]}else{g=k(n,r,o,l,c,d?null:20,f?null:20);n=g[0],r=g[1]}if(d&&(n-=B(d)?u[0]/2:"right"===d?u[0]:0),f&&(r-=B(f)?u[1]/2:"bottom"===f?u[1]:0),e.get("confine")){g=E(n,r,o,l,c);n=g[0],r=g[1]}o.moveTo(n,r)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&b(t,(function(t,r){var i=t.dataByAxis||{},o=e[r]||{},a=o.dataByAxis||[];n&=i.length===a.length,n&&b(i,(function(e,t){var r=a[t]||{},i=e.seriesDataIndices||[],o=r.seriesDataIndices||[];n&=e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&i.length===o.length,n&&b(i,(function(e,t){var r=o[t];n&=e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){o.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",t))}});function C(e){var t=e.pop();while(e.length){var n=e.pop();n&&(f.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),t=new f(n,t,t.ecModel))}return t}function S(e,t){return e.dispatchAction||i.bind(t.dispatchAction,t)}function k(e,t,n,r,i,o,a){var s=n.getOuterSize(),l=s.width,c=s.height;return null!=o&&(e+l+o>r?e-=l+o:e+=o),null!=a&&(t+c+a>i?t-=c+a:t+=a),[e,t]}function E(e,t,n,r,i){var o=n.getOuterSize(),a=o.width,s=o.height;return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function O(e,t,n){var r=n[0],i=n[1],o=5,a=0,s=0,l=t.width,c=t.height;switch(e){case"inside":a=t.x+l/2-r/2,s=t.y+c/2-i/2;break;case"top":a=t.x+l/2-r/2,s=t.y-i-o;break;case"bottom":a=t.x+l/2-r/2,s=t.y+c+o;break;case"left":a=t.x-r-o,s=t.y+c/2-i/2;break;case"right":a=t.x+l+o,s=t.y+c/2-i/2}return[a,s]}function B(e){return"center"===e||"middle"===e}e.exports=x},Qxkt:function(e,t,n){var r=n("bYtY"),i=n("ItGF"),o=n("4NO4"),a=o.makeInner,s=n("Yl7c"),l=s.enableClassExtend,c=s.enableClassCheck,u=n("OQFs"),d=n("m9t5"),h=n("/iHx"),f=n("VR9l"),p=r.mixin,A=a();function g(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function m(e,t,n){for(var r=0;r=0;r--){var i=n[r];e(t.getAttribute(i.name),i.name)}}))}function h(e){var t=A(e);s((function(e){e.removeAttribute(t),e.save(o)}))}function f(){s((function(e){var t=e.XMLDocument.documentElement.attributes;e.load(o);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(o)}))}var p=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function A(e){return e.replace(/^\d/,"___$&").replace(p,"___")}function g(){if(!a||!a.documentElement||!a.documentElement.addBehavior)return null;var e,t,n,r="script";try{t=new ActiveXObject("htmlfile"),t.open(),t.write("<"+r+">document.w=window'),t.close(),e=t.w.frames[0].document,n=e.createElement("div")}catch(i){n=a.createElement("div"),e=a.body}return function(t){var r=[].slice.call(arguments,0);r.unshift(n),e.appendChild(n),n.addBehavior("#default#userData"),n.load(o),t.apply(this,r),e.removeChild(n)}}},RPvy:function(e,t,n){var r=n("ProS"),i=n("VaxA"),o="sunburstRootToNode";r.registerAction({type:o,update:"updateView"},(function(e,t){function n(t,n){var r=i.retrieveTargetInfo(e,[o],t);if(r){var a=t.getViewRoot();a&&(e.direction=i.aboveViewRoot(a,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var a="sunburstHighlight";r.registerAction({type:a,update:"updateView"},(function(e,t){function n(t,n){var r=i.retrieveTargetInfo(e,[a],t);r&&(e.highlight=r.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var s="sunburstUnhighlight";r.registerAction({type:s,update:"updateView"},(function(e,t){function n(t,n){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}))},RSch:function(e,t,n){var r=n("IwbS"),i=n("bYtY");function o(e,t,n){r.Group.call(this),this._createPolyline(e,t,n)}var a=o.prototype;a._createPolyline=function(e,t,n){var i=e.getItemLayout(t),o=new r.Polyline({shape:{points:i}});this.add(o),this._updateCommonStl(e,t,n)},a.updateData=function(e,t,n){var i=e.hostModel,o=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};r.updateProps(o,a,i,t),this._updateCommonStl(e,t,n)},a._updateCommonStl=function(e,t,n){var o=this.childAt(0),a=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=n&&n.lineStyle,c=n&&n.hoverLineStyle;n&&!e.hasItemOption||(l=a.getModel("lineStyle").getLineStyle(),c=a.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),o.hoverStyle=c,r.setHoverStyle(this)},a.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},i.inherits(o,r.Group);var s=o;e.exports=s},RXMa:function(e,t,n){var r=n("y+Vt"),i=r.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)}});e.exports=i},RZPm:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("JgUQ")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="FileOutlined";var h=a.forwardRef(d);t.default=h},RlCK:function(e,t,n){var r=n("ProS"),i=n("bYtY");function o(e,t,n){var r,o={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var s=n.getData();i.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&r:o[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}r.registerAction("legendToggleSelect","legendselectchanged",i.curry(o,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",i.curry(o,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",i.curry(o,"inverseSelect")),r.registerAction("legendSelect","legendselected",i.curry(o,"select")),r.registerAction("legendUnSelect","legendunselected",i.curry(o,"unSelect"))},RotF:function(e,t,n){e.exports=n("LSTS")},Rx6q:function(e,t){function n(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)}}}}e.exports=n},"S/Yl":function(e,t,n){var r=n("Zvw2"),i=n("aX7z"),o=n("+TT/"),a=o.getLayoutRect,s=n("bYtY"),l=s.each;function c(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,n){var o=this.dimension,a=new r(o,i.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),i.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=a({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()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?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},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r}};var u=c;e.exports=u},"SA+Z":function(e,t,n){var r=n("wTVA"),i=n("EbDI"),o=n("ZhPi"),a=n("wkBT");function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"SA4+":function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("ProS")),o=n("IwbS"),a=n("zYTA"),s=n("bYtY");function l(e,t,n){var r=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,o=0;return function(e){for(var r=o;r=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=i.extendChartView({type:"heatmap",render:function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):u(i)&&this._renderOnGeo(i,e,r,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,r){var i=t.coordinateSystem;i&&this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,r,i){var a,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),d=c.getAxis("y");a=u.getBandWidth(),l=d.getBandWidth()}for(var h=this.group,f=e.getData(),p="itemStyle",A="emphasis.itemStyle",g="label",m="emphasis.label",v=e.getModel(p).getItemStyle(["color"]),y=e.getModel(A).getItemStyle(),b=e.getModel(g),_=e.getModel(m),w=c.type,x="cartesian2d"===w?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],C=n;C=0?r+=A:r-=A:b>=0?r-=A:r+=A}return r}function p(e,t){var n=[],o=r.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,r){var u=e.getLayout(),d=e.getVisual("fromSymbol"),h=e.getVisual("toSymbol");u.__original||(u.__original=[i.clone(u[0]),i.clone(u[1])],u[2]&&u.__original.push(i.clone(u[2])));var p=u.__original;if(null!=u[2]){if(i.copy(s[0],p[0]),i.copy(s[1],p[2]),i.copy(s[2],p[1]),d&&"none"!==d){var A=a(e.node1),g=f(s,p[0],A*t);o(s[0][0],s[1][0],s[2][0],g,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],g,n),s[0][1]=n[3],s[1][1]=n[4]}if(h&&"none"!==h){A=a(e.node2),g=f(s,p[1],A*t);o(s[0][0],s[1][0],s[2][0],g,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],g,n),s[1][1]=n[1],s[2][1]=n[2]}i.copy(u[0],s[0]),i.copy(u[1],s[2]),i.copy(u[2],s[1])}else{if(i.copy(l[0],p[0]),i.copy(l[1],p[1]),i.sub(c,l[1],l[0]),i.normalize(c,c),d&&"none"!==d){A=a(e.node1);i.scaleAndAdd(l[0],l[0],c,A*t)}if(h&&"none"!==h){A=a(e.node2);i.scaleAndAdd(l[1],l[1],c,-A*t)}i.copy(u[0],l[0]),i.copy(u[1],l[1])}}))}e.exports=p},SJMd:function(e,t){var n=!1;window["PR_SHOULD_USE_CONTINUATION"]=!0,function(){var e=window,t=["break,continue,do,else,for,if,return,while"],r=[t,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],i=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[i,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],a=[i,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],s=[i,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],l="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",c=[i,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],u="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",d=[t,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],h=[t,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],f=[t,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],p=[o,s,a,c,u,d,h,f],A=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,g="str",m="kwd",v="com",y="typ",b="lit",_="pun",w="pln",x="tag",C="dec",S="src",k="atn",E="atv",O="nocode",B="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function M(e){for(var t=0,n=!1,r=!1,i=0,o=e.length;i122||(u<65||d>90||n.push([32|Math.max(65,d),32|Math.min(u,90)]),u<97||d>122||n.push([-33&Math.max(97,d),-33&Math.min(u,122)]))}}n.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]}));var h=[],f=[];for(o=0;op[0]&&(p[1]+1>p[0]&&i.push("-"),i.push(c(p[1])))}return i.push("]"),i.join("")}function d(e){for(var r=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),i=r.length,o=[],a=0,s=0;a=2&&"["===h?r[a]=u(l):"\\"!==h&&(r[a]=l.replace(/[a-zA-Z]/g,(function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"})))}return r.join("")}var h=[];for(i=0,o=e.length;i=0;)r[u.charAt(d)]=c;var h=c[1],f=""+h;a.hasOwnProperty(f)||(o.push(h),a[f]=null)}o.push(/[\0-\uffff]/),n=M(o)})();var i=t.length,o=function e(o){for(var a=o.sourceCode,s=o.basePos,l=o.sourceNode,c=[s,w],u=0,d=a.match(n)||[],h={},f=0,p=d.length;f=5&&"lang-"===m.substring(0,5),!A||v&&"string"===typeof v[1]||(A=!1,m=S),A||(h[g]=m)}var _=u;if(u+=g.length,A){var x=v[1],C=g.indexOf(x),k=C+x.length;v[2]&&(k=g.length-v[2].length,C=k-x.length);var E=m.substring(5);I(l,s+_,g.substring(0,C),e,c),I(l,s+_+C,x,Q(E,x),c),I(l,s+_+k,g.substring(k),e,c)}else c.push(s+_,m)}o.decorations=c};return o}function N(e){var t=[],n=[];e["tripleQuotedStrings"]?t.push([g,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e["multiLineStrings"]?t.push([g,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([g,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e["verbatimStrings"]&&n.push([g,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var r=e["hashComments"];r&&(e["cStyleComments"]?(r>1?t.push([v,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([v,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([g,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([v,/^#[^\r\n]*/,null,"#"])),e["cStyleComments"]&&(n.push([v,/^\/\/[^\r\n]*/,null]),n.push([v,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var i=e["regexLiterals"];if(i){var o=i>1?"":"\n\r",a=o?".":"[\\S\\s]",s="/(?=[^/*"+o+"])(?:[^/\\x5B\\x5C"+o+"]|\\x5C"+a+"|\\x5B(?:[^\\x5C\\x5D"+o+"]|\\x5C"+a+")*(?:\\x5D|$))+/";n.push(["lang-regex",RegExp("^"+B+"("+s+")")])}var l=e["types"];l&&n.push([y,l]);var c=(""+e["keywords"]).replace(/^ | $/g,"");c.length&&n.push([m,new RegExp("^(?:"+c.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([w,/^\s+/,null," \r\n\t\xa0"]);var u="^.[^\\s\\w.$@'\"`/\\\\]*";return e["regexLiterals"]&&(u+="(?!s*/)"),n.push([b,/^@[a-z_$][a-z_$@0-9]*/i,null],[y,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[w,/^[a-z_$][a-z_$@0-9]*/i,null],[b,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[w,/^\\[\s\S]?/,null],[_,new RegExp(u),null]),P(t,n)}var j=N({keywords:p,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function F(e,t,n){var r=/(?:^|\s)nocode(?:\s|$)/,i=/\r\n?|\n/,o=e.ownerDocument,a=o.createElement("li");while(e.firstChild)a.appendChild(e.firstChild);var s=[a];function l(e){var t=e.nodeType;if(1!=t||r.test(e.className)){if((3==t||4==t)&&n){var a=e.nodeValue,s=a.match(i);if(s){var u=a.substring(0,s.index);e.nodeValue=u;var d=a.substring(s.index+s[0].length);if(d){var h=e.parentNode;h.insertBefore(o.createTextNode(d),e.nextSibling)}c(e),u||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)c(e),e.parentNode&&e.parentNode.removeChild(e);else for(var f=e.firstChild;f;f=f.nextSibling)l(f)}function c(e){while(!e.nextSibling)if(e=e.parentNode,!e)return;function t(e,n){var r=n?e.cloneNode(!1):e,i=e.parentNode;if(i){var o=t(i,1),a=e.nextSibling;o.appendChild(r);for(var s=a;s;s=a)a=s.nextSibling,o.appendChild(s)}return r}for(var n,r=t(e.nextSibling,0);(n=r.parentNode)&&1===n.nodeType;)r=n;s.push(r)}for(var u=0;u=b&&(u+=2),s>=_&&(f+=2)}}finally{m&&(m.style.display=v)}}var U={};function H(t,n){for(var r=n.length;--r>=0;){var i=n[r];U.hasOwnProperty(i)?e["console"]&&console["warn"]("cannot override language handler %s",i):U[i]=t}}function Q(e,t){return e&&U.hasOwnProperty(e)||(e=/^\s*"+e+"",o=o.firstChild,r&&F(o,r,!0);var a={langExtension:i,numberLines:r,sourceNode:o,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return K(a),o.innerHTML}function V(t,n){var r=n||document.body,i=r.ownerDocument||document;function o(e){return r.getElementsByTagName(e)}for(var a=[o("pre"),o("code"),o("xmp")],s=[],l=0;l]*(?:>|$)/],[v,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),H(P([[w,/^[\s]+/,null," \t\r\n"],[E,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[x,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),H(P([],[[E,/^[\s\S]+/]]),["uq.val"]),H(N({keywords:o,hashComments:!0,cStyleComments:!0,types:A}),["c","cc","cpp","cxx","cyc","m"]),H(N({keywords:"null,true,false"}),["json"]),H(N({keywords:s,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:A}),["cs"]),H(N({keywords:a,cStyleComments:!0}),["java"]),H(N({keywords:f,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),H(N({keywords:d,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),H(N({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),H(N({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),H(N({keywords:c,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),H(N({keywords:l,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),H(P([],[[g,/^[\s\S]+/]]),["regex"]);var W=e["PR"]={createSimpleLexer:P,registerLangHandler:H,sourceDecorator:N,PR_ATTRIB_NAME:k,PR_ATTRIB_VALUE:E,PR_COMMENT:v,PR_DECLARATION:C,PR_KEYWORD:m,PR_LITERAL:b,PR_NOCODE:O,PR_PLAIN:w,PR_PUNCTUATION:_,PR_SOURCE:S,PR_STRING:g,PR_TAG:x,PR_TYPE:y,prettyPrintOne:n?e["prettyPrintOne"]=z:z,prettyPrint:n?e["prettyPrint"]=V:V},G=e["define"];"function"===typeof G&&G["amd"]&&G("google-code-prettify",[],(function(){return W}))}()},SKnc:function(e,t,n){var r=n("bYtY"),i=n("QuXc"),o=function(e,t,n,r,o,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=a||!1,i.call(this,o)};o.prototype={constructor:o},r.inherits(o,i);var a=o;e.exports=a},"SKx+":function(e,t,n){var r=n("ProS"),i=r.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},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}}}),o=i;e.exports=o},SMc4:function(e,t,n){var r=n("bYtY"),i=n("bLfw"),o=n("nkfE"),a=n("ICMv"),s=i.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}r.merge(s.prototype,a);var c={offset:0};o("x",s,l,c),o("y",s,l,c);var u=s;e.exports=u},SRve:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};t.default=r},SUKs:function(e,t,n){var r=n("LPTA"),i=r.debugMode,o=function(){};1===i&&(o=console.error);var a=o;e.exports=a},SZEN:function(e,t,n){"use strict";function r(e,t,n){var r=n.getBoundingClientRect(),i={x:0,y:0};return e=r.right?i.x=r.width-1:i.x=e-r.left,t=r.bottom?i.y=r.height-1:i.y=t-r.top,i}Object.defineProperty(t,"__esModule",{value:!0}),t.clientToElement=r},Sdc0:function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("lSNA"),a=n.n(o),s=n("q1tI"),l=n("rePB"),c=n("ODXe"),u=n("Ff2n"),d=n("TSYQ"),h=n.n(d),f=n("6cGi"),p=n("4IlW"),A=s["forwardRef"]((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,o=e.className,a=e.checked,d=e.defaultChecked,A=e.disabled,g=e.loadingIcon,m=e.checkedChildren,v=e.unCheckedChildren,y=e.onClick,b=e.onChange,_=e.onKeyDown,w=Object(u["a"])(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=Object(f["a"])(!1,{value:a,defaultValue:d}),C=Object(c["a"])(x,2),S=C[0],k=C[1];function E(e,t){var n=S;return A||(n=e,k(n),null===b||void 0===b||b(n,t)),n}function O(e){e.which===p["a"].LEFT?E(!1,e):e.which===p["a"].RIGHT&&E(!0,e),null===_||void 0===_||_(e)}function B(e){var t=E(!S,e);null===y||void 0===y||y(t,e)}var M=h()(i,o,(n={},Object(l["a"])(n,"".concat(i,"-checked"),S),Object(l["a"])(n,"".concat(i,"-disabled"),A),n));return s["createElement"]("button",Object.assign({},w,{type:"button",role:"switch","aria-checked":S,disabled:A,className:M,ref:t,onKeyDown:O,onClick:B}),g,s["createElement"]("span",{className:"".concat(i,"-inner")},S?m:v))}));A.displayName="Switch";var g=A,m=n("gZBC"),v=n.n(m),y=n("g0mS"),b=n("H84U"),_=n("3Nzz"),w=n("uaoM"),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 i=0;for(r=Object.getOwnPropertySymbols(e);i3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a})}if(n){var c=Math.abs(r),u=(r>0?1:-1)*(c>3?.4:c>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:a})}}}function h(e){if(!a.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function f(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(o.stop(r.event),p(e,t,n,r,i))}function p(e,t,n,i,o){o.isAvailableBehavior=r.bind(A,null,n,i),e.trigger(t,o)}function A(e,t,n){var i=n[e];return!e||i&&(!r.isString(i)||t.event[i+"Key"])}r.mixin(s,i);var g=s;e.exports=g},SgaC:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0){if(i.rQwait("RRE",12))return!1;var l=i.rQshiftBytes(4),c=i.rQshift16(),u=i.rQshift16(),d=i.rQshift16(),h=i.rQshift16();o.fillRect(e+c,t+u,d,h,l),this._subrects--}return!0}}]),e}();t["default"]=a},Sj0X:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("XuBP")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="DownOutlined";var h=a.forwardRef(d);t.default=h},Sj9i:function(e,t,n){var r=n("QBsz"),i=r.create,o=r.distSquare,a=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),d=1/3,h=i(),f=i(),p=i();function A(e){return e>-l&&el||e<-l}function m(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function v(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function y(e,t,n,r,i,o){var l=r+3*(t-n)-e,c=3*(n-2*t+e),h=3*(t-e),f=e-i,p=c*c-3*l*h,g=c*h-9*l*f,m=h*h-3*c*f,v=0;if(A(p)&&A(g))if(A(c))o[0]=0;else{var y=-h/c;y>=0&&y<=1&&(o[v++]=y)}else{var b=g*g-4*p*m;if(A(b)){var _=g/p,w=(y=-c/l+_,-_/2);y>=0&&y<=1&&(o[v++]=y),w>=0&&w<=1&&(o[v++]=w)}else if(b>0){var x=s(b),C=p*c+1.5*l*(-g+x),S=p*c+1.5*l*(-g-x);C=C<0?-a(-C,d):a(C,d),S=S<0?-a(-S,d):a(S,d);y=(-c-(C+S))/(3*l);y>=0&&y<=1&&(o[v++]=y)}else{var k=(2*p*c-3*l*g)/(2*s(p*p*p)),E=Math.acos(k)/3,O=s(p),B=Math.cos(E),M=(y=(-c-2*O*B)/(3*l),w=(-c+O*(B+u*Math.sin(E)))/(3*l),(-c+O*(B-u*Math.sin(E)))/(3*l));y>=0&&y<=1&&(o[v++]=y),w>=0&&w<=1&&(o[v++]=w),M>=0&&M<=1&&(o[v++]=M)}}return v}function b(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(A(a)){if(g(o)){var u=-l/o;u>=0&&u<=1&&(i[c++]=u)}}else{var d=o*o-4*a*l;if(A(d))i[0]=-o/(2*a);else if(d>0){var h=s(d),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[c++]=u),f>=0&&f<=1&&(i[c++]=f)}}return c}function _(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,d=(u-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=r}function w(e,t,n,r,i,a,l,u,d,A,g){var v,y,b,_,w,x=.005,C=1/0;h[0]=d,h[1]=A;for(var S=0;S<1;S+=.05)f[0]=m(e,n,i,l,S),f[1]=m(t,r,a,u,S),_=o(h,f),_=0&&_=0&&u<=1&&(i[c++]=u)}}else{var d=a*a-4*o*l;if(A(d)){u=-a/(2*o);u>=0&&u<=1&&(i[c++]=u)}else if(d>0){var h=s(d),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[c++]=u),f>=0&&f<=1&&(i[c++]=f)}}return c}function k(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function E(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function O(e,t,n,r,i,a,l,u,d){var A,g=.005,m=1/0;h[0]=l,h[1]=u;for(var v=0;v<1;v+=.05){f[0]=x(e,n,i,v),f[1]=x(t,r,a,v);var y=o(h,f);y=0&&y=0;--r)if(t[r]===e)return!0;return!1}),n):null:n[0]},A.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},A.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},A.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},A.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return o.each(this._tagNames,(function(n){var r=e.getElementsByTagName(n);t=t.concat([].slice.call(r))})),t},A.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;o.each(e,(function(e){e[t._markLabel]=f}))},A.prototype.markUsed=function(e){e&&(e[this._markLabel]=p)},A.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;o.each(t,(function(t){t[n._markLabel]!==p&&e.removeChild(t)}))}},A.prototype.getSvgProxy=function(e){return e instanceof a?u:e instanceof s?d:e instanceof l?h:u},A.prototype.getTextSvgElement=function(e){return e.__textSvgEl},A.prototype.getSvgElement=function(e){return e.__svgEl};var g=A;e.exports=g},Swgg:function(e,t,n){var r=n("fc+c"),i=r.extend({type:"dataZoom.select"});e.exports=i},Sxd8:function(e,t,n){var r=n("ZCgT");function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},T1rO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("zdCA"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},T4UG:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("bYtY")),o=n("ItGF"),a=n("7aKB"),s=a.formatTime,l=a.encodeHTML,c=a.addCommas,u=a.getTooltipMarker,d=n("4NO4"),h=n("bLfw"),f=n("5Hur"),p=n("OKJ2"),A=n("+TT/"),g=A.getLayoutParams,m=A.mergeLayoutParam,v=n("9H2F"),y=v.createTask,b=n("D5nY"),_=b.prepareSource,w=b.getSource,x=n("KxfA"),C=x.retrieveRawValue,S=d.makeInner(),k=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,r){this.seriesIndex=this.componentIndex,this.dataTask=y({count:B,reset:M}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),_(this);var i=this.getInitialData(e,n);I(i,this),this.dataTask.context.data=i,S(this).dataBeforeProcessed=i,E(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,r=n?g(e):{},o=this.subType;h.hasClass(o)&&(o+="Series"),i.merge(e,t.getTheme().get(this.subType)),i.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&m(e,r,n)},mergeOption:function(e,t){e=i.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&m(this.option,e,n),_(this);var r=this.getInitialData(e,t);I(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,S(this).dataBeforeProcessed=r,E(this)},fillDataTextStyle:function(e){if(e&&!i.isTypedArray(e))for(var t=["show"],n=0;n":"\n",h="richText"===r,f={},p=0;function A(n){var a=i.reduce(n,(function(e,t,n){var r=m.getDimensionInfo(n);return e|(r&&!1!==r.tooltip&&null!=r.displayName)}),0),d=[];function A(e,n){var i=m.getDimensionInfo(n);if(i&&!1!==i.otherDims.tooltip){var A=i.type,g="sub"+o.seriesIndex+"at"+p,v=u({color:w,type:"subItem",renderMode:r,markerId:g}),y="string"===typeof v?v:v.content,b=(a?y+l(i.displayName||"-")+": ":"")+l("ordinal"===A?e+"":"time"===A?t?"":s("yyyy/MM/dd hh:mm:ss",e):c(e));b&&d.push(b),h&&(f[g]=w,++p)}}v.length?i.each(v,(function(t){A(C(m,e,t),t)})):i.each(n,A);var g=a?h?"\n":"
    ":"",y=g+d.join(g||", ");return{renderMode:r,content:y,style:f}}function g(e){return{renderMode:r,content:l(c(e)),style:f}}var m=this.getData(),v=m.mapDimension("defaultedTooltip",!0),y=v.length,b=this.getRawValue(e),_=i.isArray(b),w=m.getItemVisual(e,"color");i.isObject(w)&&w.colorStops&&(w=(w.colorStops[0]||{}).color),w=w||"transparent";var x=y>1||_&&!y?A(b):g(y?C(m,e,v[0]):_?b[0]:b),S=x.content,k=o.seriesIndex+"at"+p,E=u({color:w,type:"item",renderMode:r,markerId:k});f[k]=w,++p;var O=m.getName(e),B=this.name;d.isNameSpecified(this)||(B=""),B=B?l(B)+(t?": ":a):"";var M="string"===typeof E?E:E.content,T=t?M+B+S:B+M+(O?l(O)+": "+S:S);return{html:T,markers:f}},isAnimationEnabled:function(){if(o.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var r=this.ecModel,i=f.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function E(e){var t=e.name;d.isNameSpecified(e)||(e.name=O(e)||t)}function O(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),r=[];return i.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function B(e){return e.model.getRawData().count()}function M(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),T}function T(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function I(e,t){i.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,i.curry(L,t))}))}function L(e){var t=D(e);t&&t.setOutputEnd(this.count())}function D(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i.mixin(k,p),i.mixin(k,f);var P=k;e.exports=P},T6xi:function(e,t,n){var r=n("YgsL"),i=n("nCxF");function o(e,t,n){var o=t.points,a=t.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=i(o,a,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var l=o.length,c=0;c<(n?l:l-1);c++){var u=s[2*c],d=s[2*c+1],h=o[(c+1)%l];e.bezierCurveTo(u[0],u[1],d[0],d[1],h[0],h[1])}}else{"spline"===a&&(o=r(o,n)),e.moveTo(o[0][0],o[0][1]);c=1;for(var f=o.length;c0?a:s)}function u(e,t){return t.get(e>0?i:o)}}};e.exports=l},TWL2:function(e,t,n){var r=n("IwbS"),i=n("bYtY"),o=n("6Ic6");function a(e,t){r.Group.call(this);var n=new r.Polygon,i=new r.Polyline,o=new r.Text;this.add(n),this.add(i),this.add(o),this.highDownOnUpdate=function(e,t){"emphasis"===t?(i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore):(i.ignore=i.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,t,!0)}var s=a.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,n){var o=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,o.useStyle({}),n?(o.setShape({points:c.points}),o.setStyle({opacity:0}),r.initProps(o,{style:{opacity:u}},a,t)):r.updateProps(o,{style:{opacity:u},shape:{points:c.points}},a,t);var d=s.getModel("itemStyle"),h=e.getItemVisual(t,"color");o.setStyle(i.defaults({lineJoin:"round",fill:h},d.getItemStyle(["opacity"]))),o.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),r.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),i=this.childAt(2),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"color");r.updateProps(n,{shape:{points:l.linePoints||l.linePoints}},o,t),r.updateProps(i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=a.getModel("label"),d=a.getModel("emphasis.label"),h=a.getModel("labelLine"),f=a.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");r.setLabelStyle(i.style,i.hoverStyle={},u,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:c}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},i.inherits(a,r.Group);var c=o.extend({type:"funnel",render:function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new a(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(e){var t=i.getItemGraphicEl(e);o.remove(t)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},TYVI:function(e,t,n){var r=n("5GtS"),i=n("T4UG"),o=i.extend({type:"series.gauge",getInitialData:function(e,t){return r(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=o;e.exports=a},Tghj:function(e,t,n){(function(e){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof e&&(n=e.__DEV__),"undefined"===typeof n&&(n=!0);var r=n;t.__DEV__=r}).call(this,n("yLpj"))},ThAp:function(e,t,n){var r=n("bYtY"),i=n("5GtS"),o=n("T4UG"),a=n("7aKB"),s=a.encodeHTML,l=a.addCommas,c=n("cCMj"),u=n("KxfA"),d=u.retrieveRawAttr,h=n("W4dC"),f=n("D5nY"),p=f.makeSeriesEncodeForNameBased,A=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=i(this,{coordDimensions:["value"],encodeDefaulter:r.curry(p,this)}),n=t.mapDimension("value"),o=r.createHashMap(),a=[],s=[],l=0,c=t.count();l"+s(r+" : "+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.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,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)"}},nameProperty:"name"}});r.mixin(A,c);var g=A;e.exports=g},TkdX:function(e,t,n){var r=n("bYtY"),i=n("IwbS"),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function l(e,t,n){i.Group.call(this);var r=new i.Sector({z2:a});r.seriesIndex=t.seriesIndex;var o=new i.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){o.ignore=o.hoverIgnore}function c(){o.ignore=o.normalIgnore}this.add(r),this.add(o),this.updateData(!0,e,"normal",t,n),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,n,o,a){this.node=t,t.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=r.extend({},c);u.label=null;var h=d(t,o,a);p(t,o,h);var f,A=l.getModel("itemStyle").getItemStyle();if("normal"===n)f=A;else{var g=l.getModel(n+".itemStyle").getItemStyle();f=r.merge(g,A)}f=r.defaults({lineJoin:"bevel",fill:f.fill||h},f),e?(s.setShape(u),s.shape.r=c.r0,i.updateProps(s,{shape:{r:c.r}},o,t.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(i.updateProps(s,{shape:u},o),s.useStyle(f)):i.updateProps(s,{shape:u,style:f},o),this._updateLabel(o,h,n);var m=l.getShallow("cursor");if(m&&s.attr("cursor",m),e){var v=o.getShallow("highlightPolicy");this._initEvents(s,t,o,v)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,i.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):f(n,t.node,e)?n.piece.childAt(0).trigger("highlight"):e!==o.NONE&&n.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),l=o.getModel("emphasis.label"),c=r.retrieve(e.getFormattedLabel(this.node.dataIndex,n,null,null,"label"),this.node.name);!1===S("show")&&(c="");var u=this.node.getLayout(),d=s.get("minAngle");null==d&&(d=a.get("minAngle")),d=d/180*Math.PI;var h=u.endAngle-u.startAngle;null!=d&&Math.abs(h)Math.PI/2?"right":"left"):b&&"center"!==b?"left"===b?(p=u.r0+y,A>Math.PI/2&&(b="right")):"right"===b&&(p=u.r-y,A>Math.PI/2&&(b="left")):(p=(u.r+u.r0)/2,b="center"),f.attr("style",{text:c,textAlign:b,textVerticalAlign:S("verticalAlign")||"middle",opacity:S("opacity")});var _=p*g+u.cx,w=p*m+u.cy;f.attr("position",[_,w]);var x=S("rotate"),C=0;function S(e){var t=s.get(e);return null==t?a.get(e):t}"radial"===x?(C=-A,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===x?(C=Math.PI/2-A,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):"number"===typeof x&&(C=x*Math.PI/180),f.attr("rotation",C)},c._initEvents=function(e,t,n,r){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var i=this,o=function(){i.onEmphasis(r)},a=function(){i.onNormal()},s=function(){i.onDownplay()},l=function(){i.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",l)},r.inherits(l,i.Group);var u=l;function d(e,t,n){var r=e.getVisual("color"),i=e.getVisual("visualMeta");i&&0!==i.length||(r=null);var o=e.getModel("itemStyle").get("color");if(o)return o;if(r)return r;if(0===e.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[h(e)%a],o}function h(e){var t=e;while(t.depth>1)t=t.parentNode;var n=e.getAncestors()[0];return r.indexOf(n.children,t)}function f(e,t,n){return n!==o.NONE&&(n===o.SELF?e===t:n===o.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function p(e,t,n){var r=t.getData();r.setItemVisual(e.dataIndex,"color",n)}e.exports=u},Tp9H:function(e,t,n){var r=n("ItGF"),i=n("Kagy"),o=n("IUWy"),a=i.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={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:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!r.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||r.browser.ie||r.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var d=new Blob([u]);window.navigator.msSaveOrOpenBlob(d,i+"."+a)}else{var h=n.get("lang"),f='',p=window.open();p.document.write(f)}else{var A=document.createElement("a");A.download=i+"."+a,A.target="_blank",A.href=s;var g=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});A.dispatchEvent(g)}},o.register("saveAsImage",s);var c=s;e.exports=c},"U/Mo":function(e,t){function n(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scale,i=r&&r[0]||1,o=t.getZoom(),a=(o-1)*n+1;return a/i}function r(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=n,t.getSymbolSize=r},UADf:function(e,t,n){},"UNi/":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n"===f||c===u-1){r+=n(e.slice(a,s)),h=e.slice(s,c+1),d=i(h),r+=t(s,r.length,d,h,o(h)),a=c+1,s=!1;continue}if('"'===f||"'"===f){var p=1,A=e.charAt(c-p);while(""===A.trim()||"="===A){if("="===A){l=f;continue e}A=e.charAt(c-++p)}}}else if(f===l){l=!1;continue}}return a0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function h(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}function f(e){return h(e)?e.substr(1,e.length-2):e}t.parseTag=a,t.parseAttr=l},UOVi:function(e,t,n){var r=n("bYtY"),i=n("7aKB"),o=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function s(e){return r.indexOf(a,e)>=0}function l(e,t){e=e.slice();var n=r.map(e,i.capitalFirst);t=(t||[]).slice();var o=r.map(t,i.capitalFirst);return function(i,a){r.each(e,(function(e,r){for(var s={name:e,capital:n[r]},l=0;l=0}function o(e,i){var o=!1;return t((function(t){r.each(n(e,t)||[],(function(e){i.records[t.name][e]&&(o=!0)}))})),o}function a(e,i){i.nodes.push(e),t((function(t){r.each(n(e,t)||[],(function(e){i.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},Uc92:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},UnoB:function(e,t,n){var r=n("bYtY"),i=n("OELB");function o(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},o=n.getRect();r.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(r.boundaryGap=s,"horizontal"===l.orient){s[0]=i.parsePercent(s[0],o.height),s[1]=i.parsePercent(s[1],o.height);var c=o.height-s[0]-s[1];a(t,e,c)}else{s[0]=i.parsePercent(s[0],o.width),s[1]=i.parsePercent(s[1],o.width);var u=o.width-s[0]-s[1];a(t,e,u)}t.setLayout("layoutInfo",r)}))}function a(e,t,n){if(e.count())for(var i,o=t.coordinateSystem,a=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=r.map(a,(function(t){return r.map(t.indices,(function(t){var n=o.dataToPoint(e.get(l,t));return n[1]=e.get(c,t),n}))})),d=s(u),h=d.y0,f=n/d.max,p=a.length,A=a[0].indices.length,g=0;go&&(o=c),r.push(c)}for(var u=0;uo&&(o=h)}return a.y0=i,a.max=o,a}e.exports=o},Urep:function(e,t,n){},V6Ve:function(e,t,n){var r=n("kekF"),i=r(Object.keys,Object);e.exports=i},V7ic:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("digP")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="FileTwoTone";var h=a.forwardRef(d);t.default=h},VFCP:function(e,t,n){n("dBmv"),n("KamJ")},VNzZ:function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("lSNA"),a=n.n(o),s=n("lwsE"),l=n.n(s),c=n("W8MJ"),u=n.n(c),d=n("7W2i"),h=n.n(d),f=n("LQ03"),p=n.n(f),A=n("cDf5"),g=n.n(A),m=n("q1tI"),v=n("TSYQ"),y=n.n(v),b=n("BGR+"),_=n("VTBJ"),w=n("1OyB"),x=n("vuIU"),C=n("Ji7U"),S=n("LK+K"),k=n("m+aA"),E=n("Zm9Q"),O=n("Kwbf"),B=n("c+Xe"),M=n("bdgK"),T="rc-observer-key",I=function(e){Object(C["a"])(n,e);var t=Object(S["a"])(n);function n(){var e;return Object(w["a"])(this,n),e=t.apply(this,arguments),e.resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,i=r.getBoundingClientRect(),o=i.width,a=i.height,s=r.offsetWidth,l=r.offsetHeight,c=Math.floor(o),u=Math.floor(a);if(e.state.width!==c||e.state.height!==u||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var d={width:c,height:u,offsetWidth:s,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n(Object(_["a"])(Object(_["a"])({},d),{},{offsetWidth:s,offsetHeight:l}))}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(x["a"])(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var e=this.props.disabled;if(e)this.destroyObserver();else{var t=Object(k["a"])(this.childNode||this),n=t!==this.currentElement;n&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new M["default"](this.onResize),this.resizeObserver.observe(t))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(E["a"])(e);if(t.length>1)Object(O["a"])(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(O["a"])(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(m["isValidElement"](n)&&Object(B["c"])(n)){var r=n.ref;t[0]=m["cloneElement"](n,{ref:Object(B["a"])(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!m["isValidElement"](e)||"key"in e&&null!==e.key?e:m["cloneElement"](e,{key:"".concat(T,"-").concat(t)})}))}}]),n}(m["Component"]);I.displayName="ResizeObserver";var L=I,D=n("H84U"),P=n("PEeC"),N=n("zT1h");function j(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function F(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function R(e,t,n){if(void 0!==n&&t.bottom=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};function W(){return"undefined"!==typeof window?window:null}(function(e){e[e["None"]=0]="None",e[e["Prepare"]=1]="Prepare"})(z||(z={}));var G=function(e){h()(n,e);var t=p()(n);function n(){var e;return l()(this,n),e=t.apply(this,arguments),e.state={status:z.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props.offsetBottom,n=e.props.offsetTop;return void 0===t&&void 0===n&&(n=0),n},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,i=e.props.onChange,o=e.getTargetFunc();if(n===z.Prepare&&e.fixedNode&&e.placeholderNode&&o){var a=e.getOffsetTop(),s=e.getOffsetBottom(),l=o();if(l){var c={status:z.None},u=j(l),d=j(e.placeholderNode),h=F(d,u,a),f=R(d,u,s);void 0!==h?(c.affixStyle={position:"fixed",top:h,width:d.width,height:d.height},c.placeholderStyle={width:d.width,height:d.height}):void 0!==f&&(c.affixStyle={position:"fixed",bottom:f,width:d.width,height:d.height},c.placeholderStyle={width:d.width,height:d.height}),c.lastAffix=!!c.affixStyle,i&&r!==c.lastAffix&&i(c.lastAffix),e.setState(c)}}},e.prepareMeasure=function(){e.setState({status:z.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.render=function(){var t=e.context.getPrefixCls,n=e.state,r=n.affixStyle,o=n.placeholderStyle,s=e.props,l=s.prefixCls,c=s.children,u=y()(a()({},t("affix",l),r)),d=Object(b["default"])(e.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return m["createElement"](L,{onResize:function(){e.updatePosition()}},m["createElement"]("div",i()({},d,{ref:e.savePlaceholderNode}),r&&m["createElement"]("div",{style:o,"aria-hidden":"true"}),m["createElement"]("div",{className:u,ref:e.saveFixedNode,style:r},m["createElement"](L,{onResize:function(){e.updatePosition()}},c))))},e}return u()(n,[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:e||W}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){Q(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=null;n&&(r=n()||null),t!==r&&(K(this),r&&(Q(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),K(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),i=e();if(i&&this.placeholderNode){var o=j(i),a=j(this.placeholderNode),s=F(a,o,n),l=R(a,o,r);if(void 0!==s&&t.top===s||void 0!==l&&t.bottom===l)return}}this.prepareMeasure()}}]),n}(m["Component"]);G.contextType=D["b"],V([Object(P["b"])()],G.prototype,"updatePosition",null),V([Object(P["b"])()],G.prototype,"lazyUpdatePosition",null);t["a"]=G},VPsl:function(e,t){function n(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),n=e.getModel("itemStyle"),r=n.get("areaColor"),i=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:r,color:i})}))}e.exports=n},VR9l:function(e,t,n){var r=n("KCsZ"),i=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),o={getItemStyle:function(e,t){var n=i(this,e,t),r=this.getBorderLineDash();return r&&(n.lineDash=r),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=o},VSLf:function(e,t,n){n("I+Bx"),n("F0hE"),n("bBKM")},VSMT:function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{return decodeURIComponent(escape(e))}catch(n){if(n instanceof URIError&&t)return e;throw n}}function i(e){return unescape(encodeURIComponent(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeUTF8=r,t.encodeUTF8=i},VXYp:function(e,t,n){var r=n("bYtY"),i=n("SgGq"),o=n("iLNv"),a="\0_ec_dataZoom_roams";function s(e,t){var n=u(e),i=t.dataZoomId,a=t.coordId;r.each(n,(function(e,n){var o=e.dataZoomInfos;o[i]&&r.indexOf(t.allCoordIds,a)<0&&(delete o[i],e.count--)})),h(n);var s=n[a];s||(s=n[a]={coordId:a,dataZoomInfos:{},count:0},s.controller=d(e,s),s.dispatchAction=r.curry(f,e)),!s.dataZoomInfos[i]&&s.count++,s.dataZoomInfos[i]=t;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(t.containsPoint),o.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var n=u(e);r.each(n,(function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)})),h(n)}function c(e){return e.type+"\0_"+e.id}function u(e){var t=e.getZr();return t[a]||(t[a]={})}function d(e,t){var n=new i(e.getZr());return r.each(["pan","zoom","scrollMove"],(function(e){n.on(e,(function(n){var i=[];r.each(t.dataZoomInfos,(function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[e],a=o&&o(t.controller,n);!r.dataZoomModel.get("disabled",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}})),i.length&&t.dispatchAction(i)}))})),n}function h(e){r.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function f(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function p(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(e,(function(e){var r=e.dataZoomModel,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),o&=r.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}t.register=s,t.unregister=l,t.generateCoordId=c},VaNO:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},VaxA:function(e,t,n){var r=n("bYtY");function i(e,t,n){if(e&&r.indexOf(t,e.type)>=0){var i=n.getData().tree.root,o=e.targetNode;if("string"===typeof o&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function o(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function a(e,t){var n=o(e);return r.indexOf(n,t)>=0}function s(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}t.retrieveTargetInfo=i,t.getPathToRoot=o,t.aboveViewRoot=a,t.wrapTreePathInfo=s},Vi4m:function(e,t,n){var r=n("bYtY");function i(e){null!=e&&r.extend(this,e),this.otherDims={}}var o=i;e.exports=o},Vl3Y:function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("J4zp"),a=n.n(o),s=n("lSNA"),l=n.n(s),c=n("q1tI"),u=n("TSYQ"),d=n.n(u),h=n("85Yc"),f=n("H84U"),p=n("BGR+"),A=c["createContext"]({labelAlign:"right",vertical:!1,itemRef:function(){}}),g=c["createContext"]({updateItemErrors:function(){}}),m=function(e){var t=Object(p["default"])(e,["prefixCls"]);return c["createElement"](h["FormProvider"],t)};function v(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function y(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function b(e,t){if(e.clientHeightt||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0}var w=function(e,t){var n=window,r=t.scrollMode,i=t.block,o=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!v(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,h=[],f=e;v(f)&&l(f);){if((f=null==(u=(c=f).parentElement)?c.getRootNode().host||null:u)===d){h.push(f);break}null!=f&&f===document.body&&b(f)&&!b(document.documentElement)||null!=f&&b(f,s)&&h.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,A=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),w=y.height,x=y.width,C=y.top,S=y.right,k=y.bottom,E=y.left,O="start"===i||"nearest"===i?C:"end"===i?k:C+w/2,B="center"===o?E+x/2:"end"===o?S:E,M=[],T=0;T=0&&E>=0&&k<=A&&S<=p&&C>=N&&k<=F&&E>=R&&S<=j)return M;var U=getComputedStyle(I),H=parseInt(U.borderLeftWidth,10),Q=parseInt(U.borderTopWidth,10),K=parseInt(U.borderRightWidth,10),z=parseInt(U.borderBottomWidth,10),V=0,W=0,G="offsetWidth"in I?I.offsetWidth-I.clientWidth-H-K:0,X="offsetHeight"in I?I.offsetHeight-I.clientHeight-Q-z:0,q="offsetWidth"in I?0===I.offsetWidth?0:P/I.offsetWidth:0,Y="offsetHeight"in I?0===I.offsetHeight?0:D/I.offsetHeight:0;if(d===I)V="start"===i?O:"end"===i?O-A:"nearest"===i?_(m,m+A,A,Q,z,m+O,m+O+w,w):O-A/2,W="start"===o?B:"center"===o?B-p/2:"end"===o?B-p:_(g,g+p,p,H,K,g+B,g+B+x,x),V=Math.max(0,V+m),W=Math.max(0,W+g);else{V="start"===i?O-N-Q:"end"===i?O-F+z+X:"nearest"===i?_(N,F,D,Q,z+X,O,O+w,w):O-(N+D/2)+X/2,W="start"===o?B-R-H:"center"===o?B-(R+P/2)+G/2:"end"===o?B-j+K+G:_(R,j,P,H,K+G,B,B+x,x);var Z=I.scrollLeft,J=I.scrollTop;O+=J-(V=Math.max(0,Math.min(J+V/Y,I.scrollHeight-D/Y+X))),B+=Z-(W=Math.max(0,Math.min(Z+W/q,I.scrollWidth-P/q+G)))}M.push({el:I,top:V,left:W})}return M};function x(e){return e===Object(e)&&0!==Object.keys(e).length}function C(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)}))}function S(e){return!1===e?{block:"end",inline:"nearest"}:x(e)?e:{block:"start",inline:"nearest"}}function k(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(x(t)&&"function"===typeof t.behavior)return t.behavior(n?w(e,t):[]);if(n){var r=S(t);return C(w(e,r),r.behavior)}}var E=k;function O(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function B(e,t){if(e.length){var n=e.join("_");return t?"".concat(t,"_").concat(n):n}}function M(e){var t=O(e);return t.join("_")}function T(e){var t=Object(h["useForm"])(),n=a()(t,1),r=n[0],o=Object(c["useRef"])({}),s=Object(c["useMemo"])((function(){return e||i()(i()({},r),{__INTERNAL__:{itemRef:function(e){return function(t){var n=M(e);t?o.current[n]=t:delete o.current[n]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O(e),r=B(n,s.__INTERNAL__.name),o=r?document.getElementById(r):null;o&&E(o,i()({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=M(e);return o.current[t]}})}),[e,r]);return[s]}var I=n("3Nzz"),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 i=0;for(r=Object.getOwnPropertySymbols(e);i0&&void 0!==arguments[0]?arguments[0]:{};return Q()(n[e],t)?n:i()(i()({},n),l()({},e,t))}))},he=ve();function Ae(t,n,o,a){var s,h;if(r&&!T)return t;var f,A=[];Object.keys(ne).forEach((function(e){A=[].concat(U()(A),U()(ne[e]||[]))})),void 0!==b&&null!==b?f=O(b):(f=o?o.errors:[],f=[].concat(U()(f),U()(A)));var v="";void 0!==w?v=w:(null===o||void 0===o?void 0:o.validating)?v="validating":(null===(h=null===o||void 0===o?void 0:o.errors)||void 0===h?void 0:h.length)||A.length?v="error":(null===o||void 0===o?void 0:o.touched)&&(v="success"),Y&&b&&($.current=v);var _=(s={},l()(s,"".concat(ue,"-item"),!0),l()(s,"".concat(ue,"-item-with-help"),Y||b),l()(s,"".concat(m),!!m),l()(s,"".concat(ue,"-item-has-feedback"),v&&y),l()(s,"".concat(ue,"-item-has-success"),"success"===v),l()(s,"".concat(ue,"-item-has-warning"),"warning"===v),l()(s,"".concat(ue,"-item-has-error"),"error"===v),l()(s,"".concat(ue,"-item-has-error-leave"),!b&&Y&&"error"===$.current),l()(s,"".concat(ue,"-item-is-validating"),"validating"===v),l()(s,"".concat(ue,"-item-hidden"),T),s);return c["createElement"](V["a"],i()({className:d()(_),style:u,key:"row"},Object(p["default"])(I,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),c["createElement"](J,i()({htmlFor:n,required:a,requiredMark:R},e,{prefixCls:ue})),c["createElement"](fe,i()({},e,o,{errors:f,prefixCls:ue,onDomErrorVisibleChange:se,validateStatus:v}),c["createElement"](g.Provider,{value:{updateItemErrors:de}},t)))}var ge="function"===typeof x,we=c["useRef"](0);if(we.current+=1,!le&&!ge&&!o)return Ae(x);var xe={};return"string"===typeof S&&(xe.label=S),c["createElement"](h["Field"],i()({},e,{messageVariables:xe,trigger:E,validateTrigger:ae,onReset:function(){se(!1)}}),(function(a,s,l){var u=s.errors,d=O(t).length&&s?s.name:[],h=B(d,j);if(r){if(ce.current=U()(d),n){var f=Array.isArray(n)?n:[n];ce.current=[].concat(U()(d.slice(0,-1)),U()(f))}W(ce.current.join("__SPLIT__"),u)}var p=void 0!==C?C:!(!_||!_.some((function(e){if(e&&"object"===F()(e)&&e.required)return!0;if("function"===typeof e){var t=e(l);return t&&t.required}return!1}))),A=i()({},a),g=null;if(Object(G["a"])(!(v&&o),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(x)&&le)Object(G["a"])(!1,"Form.Item","`children` is array of render props cannot have `name`."),g=x;else if(ge&&(!v&&!o||le))Object(G["a"])(!(!v&&!o),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(G["a"])(!le,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(!o||ge||le)if(Object(pe["b"])(x)){Object(G["a"])(void 0===x.props.defaultValue,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var m=i()(i()({},x.props),A);m.id||(m.id=h),Object(z["c"])(x)&&(m.ref=he(d,x));var y=new Set([].concat(U()(O(E)),U()(O(ae))));y.forEach((function(e){m[e]=function(){for(var t,n,r,i,o,a=arguments.length,s=new Array(a),l=0;lc&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),r+i>u&&(a=r+i,r*=u/a,i*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-r,l),0!==r&&e.arc(s+c-r,l+r,r,-Math.PI/2,0),e.lineTo(s+c,l+u-i),0!==i&&e.arc(s+c-i,l+u-i,i,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}t.buildPath=n},"VrN/":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),A=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),m=A||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),v=A||/Mac/.test(t),y=/\bCrOS\b/.test(e),b=/win/i.test(t),_=d&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(d=!1,l=!0);var w=v&&(c||d&&(null==_||_<12.11)),x=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,k=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return E(e).appendChild(t)}function B(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}A?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(t){}});var R=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function U(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var G=[""];function X(e){while(G.length<=e)G.push(q(G)+" ");return G[e]}function q(e){return e[e.length-1]}function Y(e,t){for(var n=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){while((n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var de=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],h=0;h-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function me(e,t){var n=Ae(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function _e(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){ge(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){we(e),xe(e)}function ke(e){return e.target||e.srcElement}function Ee(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),v&&e.ctrlKey&&1==t&&(t=3),t}var Oe,Be,Me=function(){if(a&&s<9)return!1;var e=B("div");return"draggable"in e||"dragDrop"in e}();function Te(e){if(null==Oe){var t=B("span","\u200b");O(e,B("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Oe?B("span","\u200b"):B("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Be)return Be;var t=O(e,document.createTextNode("A\u062eA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(Be=r.right-n.right<3)}var Le=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Pe=function(){var e=B("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ne=null;function je(e){if(null!=Ne)return Ne;var t=O(e,B("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Ne=Math.abs(n.left-r.left)>1}var Fe={},Re={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}function He(e,t){Re[e]=t}function Qe(e){if("string"==typeof e&&Re.hasOwnProperty(e))e=Re[e];else if(e&&"string"==typeof e.name&&Re.hasOwnProperty(e.name)){var t=Re[e.name];"string"==typeof t&&(t={name:t}),e=$(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Qe(t);var n=Fe[t.name];if(!n)return Ke(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ve(e,t){var n=ze.hasOwnProperty(e)?ze[e]:ze[e]={};j(t,n)}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Xe(e,t,n){return!e.startState||e.startState(t,n)}var qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ye(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?it(n,Ye(e,n).text.length):ht(t,Ye(e,t.line).text.length)}function ht(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}function ft(e,t){for(var n=[],r=0;r=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.post},qe.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},At=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function gt(e,t,n,r){var i=[e.state.modeGen],o={};St(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,St(e,t.text,s.mode,n,(function(e,t){var n=l;while(ce&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&We(e.doc.mode,r.state),o=gt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new At(r,!0,t);var o=kt(e,t,n),a=o>r.first&&Ye(r,o-1).stateAfter,s=a?At.fromSaved(r,a,o):new At(r,Xe(r.mode),o);return r.iter(o,t,(function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}At.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},At.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},At.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},At.fromSaved=function(e,t,n){return t instanceof pt?new At(e,We(e.mode,t.state),n,t.lookAhead):new At(e,We(e.mode,t),n)},At.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xt(e,t,n,r){var i,o=e.doc,a=o.mode;t=dt(o,t);var s,l=Ye(o,t.line),c=vt(e,t.line,n),u=new qe(l.text,e.options.tabSize,c);r&&(s=[]);while((r||u.pose.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=Ct(_t(n,d,r.state,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){while(ca;--s){if(s<=o.first)return o.first;var l=Ye(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof pt?c.lookAhead:0)<=o.modeFrontier))return s;var u=F(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Et(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Ye(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new It(a,o.from,l?null:o.to))}}return r}function jt(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var u=[l,1],d=ot(c.from,s.from),h=ot(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Ht(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Vt(n,o.marker)<0)&&(n=o.marker)}return n}function Yt(e,t,n,r,i){var o=Ye(e,t),a=Bt&&o.markedSpans;if(a)for(var s=0;s=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(c.to,n)>=0:ot(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(c.from,r)<=0:ot(c.from,r)<0)))return!0}}}function Zt(e){var t;while(t=Gt(e))e=t.find(-1,!0).line;return e}function Jt(e){var t;while(t=Xt(e))e=t.find(1,!0).line;return e}function $t(e){var t,n;while(t=Xt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Ye(e,t),r=Zt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Ye(e,t);if(!nn(e,r))return t;while(n=Xt(r))r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Bt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var ln=function(e,t,n){this.text=e,Qt(this,t),this.height=n?n(this):1};function cn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ht(e),Qt(e,n);var i=r?r(e):1;i!=e.height&&$e(e,i)}function un(e){e.parent=null,Ht(e)}ln.prototype.lineNo=function(){return et(this)},_e(ln);var dn={},hn={};function fn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?hn:dn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=gn,Ie(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=vn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&et(o);bn(o,r,mt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=D(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=D(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Te(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function An(e){var t=B("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function gn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?mn(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){c=document.createDocumentFragment();var f=0;while(1){d.lastIndex=f;var p=d.exec(t),A=p?p.index-f:t.length-f;if(A){var g=document.createTextNode(u.slice(f,f+A));a&&s<9?c.appendChild(B("span",[g])):c.appendChild(g),e.map.push(e.pos,e.pos+A,g),e.col+=A,e.pos+=A}if(!p)break;f+=A+1;var m=void 0;if("\t"==p[0]){var v=e.cm.options.tabSize,y=v-e.col%v;m=c.appendChild(B("span",X(y),"cm-tab")),m.setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=y}else"\r"==p[0]||"\n"==p[0]?(m=c.appendChild(B("span","\r"==p[0]?"\u240d":"\u2424","cm-invalidchar")),m.setAttribute("cm-text",p[0]),e.col+=1):(m=e.cm.options.specialCharPlaceholder(p[0]),m.setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(B("span",[m])):c.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||l){var b=n||"";r&&(b+=r),i&&(b+=i);var _=B("span",[c],b,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&_.setAttribute(w,l[w]);return e.content.appendChild(_)}e.content.appendChild(c)}}function mn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ic&&d.from<=c)break;if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function yn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function bn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,h,f=i.length,p=0,A=1,g="",m=0;;){if(m==p){l=c=u=s="",h=null,d=null,m=1/0;for(var v=[],y=void 0,b=0;bp||w.collapsed&&_.to==p&&_.from==p)){if(null!=_.to&&_.to!=p&&m>_.to&&(m=_.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&_.from==p&&(u+=" "+w.startStyle),w.endStyle&&_.to==m&&(y||(y=[])).push(w.endStyle,_.to),w.title&&((h||(h={})).title=w.title),w.attributes)for(var x in w.attributes)(h||(h={}))[x]=w.attributes[x];w.collapsed&&(!d||Vt(d.marker,w)<0)&&(d=_)}else _.from>p&&m>_.from&&(m=_.from)}if(y)for(var C=0;C=f)break;var k=Math.min(f,m);while(1){if(g){var E=p+g.length;if(!d){var O=E>k?g.slice(0,k-p):g;t.addToken(t,O,a?a+l:l,u,p+O.length==m?c:"",s,h)}if(E>=k){g=g.slice(k-p),p=k;break}p=E,u=""}g=i.slice(o,o=n[A++]),a=fn(n[A++],t.cm.options)}}else for(var B=1;B2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Jn(e,t){t=Zt(t);var n=et(t),r=e.display.externalMeasured=new _n(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function $n(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(c&&e[c-2]==e[c-3]&&e[c-1].insertLeft)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)while(c=0;i--)if((n=e[i]).left!=n.right)break;return n}function sr(e,t,n,r){var i,o=or(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){while(c&&oe(t.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+u0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Br(e.display),top:p.top,bottom:p.bottom}:ir}for(var A=i.top-t.rect.top,g=i.bottom-t.rect.top,m=(A+g)/2,v=t.view.measure.heights,y=0;y=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var d=ue(s,l,c),h=ce,f=u(l,d,"before"==c);return null!=h&&(f.other=u(l,h,"before"!=c)),f}function yr(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=Br(e.display)*t.ch);var r=Ye(e.doc,t.line),i=on(r)+zn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function br(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function _r(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return br(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return br(r.first+r.size-1,Ye(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ye(r,i);;){var s=Sr(e,a,i,t,n),l=qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Ye(r,i=c.line)}}function wr(e,t,n,r){r-=pr(t);var i=t.text.length,o=se((function(t){return nr(e,n,t-1).bottom<=r}),i,0);return i=se((function(t){return nr(e,n,t).top>r}),o,i),{begin:o,end:i}}function xr(e,t,n,r){n||(n=tr(e,t));var i=Ar(e,t,nr(e,n,r),"line").top;return wr(e,t,n,i)}function Cr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Sr(e,t,n,r,i){i-=on(t);var o=tr(e,t),a=pr(t),s=0,l=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Er:kr)(e,t,n,o,u,r,i);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var h,f,p=null,A=null,g=se((function(t){var n=nr(e,o,t);return n.top+=a,n.bottom+=a,!!Cr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,A=n),!0)}),s,l),m=!1;if(A){var v=r-A.left=b.bottom?1:0}return g=ae(t.text,g,1),br(n,g,f,m,r-h)}function kr(e,t,n,r,i,o,a){var s=se((function(s){var l=i[s],c=1!=l.level;return Cr(vr(e,it(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=vr(e,it(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Cr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Er(e,t,n,r,i,o,a){var s=wr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h=c||f.to<=l)){var p=1!=f.level,A=nr(e,r,p?Math.min(c,f.to)-1:Math.max(l,f.from)).right,g=Ag)&&(u=f,d=g)}}return u||(u=i[i.length-1]),u.fromc&&(u={from:u.from,to:c,level:u.level}),u}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=B("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(B("br"));rr.appendChild(document.createTextNode("x"))}O(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Br(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=B("span","xxxxxxxxxx"),n=B("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Mr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Tr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Tr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ir(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Br(e.display)-3);return function(i){if(nn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Ye(e.doc,c.line).text).length==c.ch){var u=F(l,l.length,e.options.tabSize)-l.length;c=it(c.line,Math.max(0,Math.round((o-Wn(e.display).left)/Br(e.display))-u))}return c}function Pr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Bt&&en(e.doc,t)i.viewFrom?Fr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Fr(e);else if(t<=i.viewFrom){var o=Rr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Fr(e)}else if(n>=i.viewTo){var a=Rr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Fr(e)}else{var s=Rr(e,t,t,-1),l=Rr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(wn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Fr(e)}var c=i.externalMeasured;c&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Pr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function Fr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Rr(e,t,n,r){var i,o=Pr(e,t),a=e.display.view;if(!Bt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(en(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Ur(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=wn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=wn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Pr(e,n)))),r.viewTo=n}function Hr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?t.blinker=setInterval((function(){e.hasFocus()||Zr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Xr(e){e.state.focused||(e.display.input.focus(),Yr(e))}function qr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zr(e))}),100)}function Yr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(me(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Gr(e))}function Zr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,t),e.state.focused=!1,k(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Jr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||h<-.005)&&($e(i.line,l),$r(i.line),i.rest))for(var f=0;fe.display.sizerWidth){var p=Math.ceil(c/Br(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function $r(e){if(e.widgets)for(var t=0;t=a&&(o=tt(t,on(Ye(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ti(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=B("div","\u200b",null,"position: absolute;\n top: "+(t.top-n.viewOffset-zn(e.display))+"px;\n height: "+(t.bottom-t.top+Gn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ni(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?it(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=vr(e,t),l=n&&n!=t?vr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=ii(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(di(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(fi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ri(e,t){var n=ii(e,t);null!=n.scrollTop&&di(e,n.scrollTop),null!=n.scrollLeft&&fi(e,n.scrollLeft)}function ii(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Vn(n),l=t.tops-r;if(t.topi+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Xn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function oi(e,t){null!=t&&(ci(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ai(e){ci(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function si(e,t,n){null==t&&null==n||ci(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function li(e,t){ci(e),e.curOp.scrollToPos=t}function ci(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=yr(e,t.from),r=yr(e,t.to);ui(e,n,r,t.margin)}}function ui(e,t,n,r){var i=ii(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});si(e,i.scrollLeft,i.scrollTop)}function di(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Qi(e,{top:t}),hi(e,t,!0),n&&Qi(e),Di(e,100))}function hi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function fi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Wi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function pi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Vn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ai=function(e,t,n){this.cm=n;var r=this.vert=B("div",[B("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=B("div",[B("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ai.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ai.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ai.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ai.prototype.zeroWidthHack=function(){var e=v&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new R,this.disableVert=new R},Ai.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},Ai.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gi=function(){};function mi(e,t){t||(t=pi(e));var n=e.display.barWidth,r=e.display.barHeight;vi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),vi(e,pi(e)),n=e.display.barWidth,r=e.display.barHeight}function vi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}gi.prototype.update=function(){return{bottom:0,right:0}},gi.prototype.setScrollLeft=function(){},gi.prototype.setScrollTop=function(){},gi.prototype.clear=function(){};var yi={native:Ai,null:gi};function bi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&k(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new yi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?fi(e,t):di(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var _i=0;function wi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_i},Cn(e.curOp)}function xi(e){var t=e.curOp;t&&kn(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ni(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ki(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=pi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=$n(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Oi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,l=gt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&hn)return Di(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Mi(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Hr(e))return!1;Gi(e)&&(Fr(e),t.dims=Mr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Bt&&(o=en(e.doc,o),a=tn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ur(e,o,a),n.viewOffset=on(Ye(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Hr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Fi(e);return l>4&&(n.lineDiv.style.display="none"),Ki(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Ri(c),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Di(e,400)),n.updateLineNumbers=null,!0}function Hi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Xn(e))r&&(t.visible=ei(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Vn(e.display)-qn(e),n.top)}),t.visible=ei(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ui(e,t))break;Jr(e);var i=pi(e);Qr(e),mi(e,i),Vi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Qi(e,t){var n=new Ni(e,t);if(Ui(e,n)){Jr(e),Hi(e,n);var r=pi(e);Qr(e),mi(e,r),Vi(e,r),n.finish()}}function Ki(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&v&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d-1&&(f=!1),Mn(e,h,u,n)),f&&(E(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(rt(e.options,u)))),a=h.node.nextSibling}else{var p=Fn(e,h,u,n);o.insertBefore(p,a)}u+=h.size}while(a)a=s(a)}function zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Vi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gn(e)+"px"}function Wi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Tr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&v&&l)e:for(var h=t.target,f=a.view;h!=s;h=h.parentNode)for(var p=0;p=0&&ot(e,r.to())<=0)return n}return-1};var io=function(e,t){this.anchor=e,this.head=t};function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=U(t,i);for(var o=1;o0:l>=0){var c=ct(s.from(),a.from()),u=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new io(d?u:c,d?c:u))}}return new ro(t,n)}function ao(e,t){return new ro([new io(e,t||e)],0)}function so(e){return e.text?it(e.from.line+e.text.length-1,q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=so(t).ch-t.to.ch),it(n,r)}function co(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,p-1),e.insert(s.line+1,m)}On(e,"change",e,t)}function mo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),q(e.done)):void 0}function So(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Co(i,i.lastOp==r)))a=q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=so(t):o.changes.push(wo(e,t));else{var l=q(i.done);l&&l.ranges||Oo(e.sel,i.done),o={changes:[wo(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||me(e,"historyAdded")}function ko(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Eo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ko(e,o,q(i.done),t))?i.done[i.done.length-1]=t:Oo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&xo(i.undone)}function Oo(e,t){var n=q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Bo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Mo(e){if(!e)return null;for(var t,n=0;n-1&&(q(s)[d]=c[d],delete c[d])}}}return r}function Do(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new io(i,t)}return new io(n||t,t)}function Po(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ho(e,new ro([Do(e.sel.primary(),t,n,i)],0),r)}function No(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(me(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(d=Xo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=ot(d,n))&&(r<0?h<0:h>0))return Wo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=Xo(e,f,r,f.line==t.line?o:null)),f?Wo(e,f,t,r,i):null}}return t}function Go(e,t,n,r,i){var o=r||1,a=Wo(e,t,n,o,i)||!i&&Wo(e,t,n,o,!0)||Wo(e,t,n,-o,i)||!i&&Wo(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function Xo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Ye(e,t.line)).text.length?t.line=0;--i)Jo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=co(e,t);So(e,t,n,e.cm?e.cm.curOp.id:NaN),ta(e,t,n,Ft(e,t));var r=[];mo(e,(function(e,n){n||-1!=U(r,e.history)||(aa(e.history,t),r.push(e.history)),ta(e,t,null,Ft(e,t))}))}}function $o(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c=0;--f){var p=h(f);if(p)return p.v}}}}function ea(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(Y(e.sel.ranges,(function(e){return new io(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Nr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:it(o,Ye(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=co(e,t)),e.cm?na(e.cm,t,r):go(e,t,r),Qo(e,n,K),e.cantEdit&&Go(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function na(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et(Zt(Ye(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ye(e),go(r,t,n,Ir(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=an(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Et(r,o.line),Di(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Nr(e):o.line!=a.line||1!=t.text.length||Ao(e.doc,t)?Nr(e,o.line,a.line+1,c):jr(e,o.line,"text");var u=be(e,"changes"),d=be(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ra(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Zo(e,{from:n,to:r,text:t,origin:i})}function ia(e,t,n,r){n1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Yt(e,t.line,t,n,o)||t.line!=n.line&&Yt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt()}o.addToHistory&&So(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Zt(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&$e(e,0),Pt(e,new It(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&$e(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Mt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Nr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)jr(c,u,"text");o.atomic&&zo(c.doc),On(c,"markerAdded",c,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&wi(e),be(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Nr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&zo(e.doc)),e&&On(e,"markerCleared",e,this,r,i),t&&xi(e),this.parent&&this.parent.clear()}},pa.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)Zo(this,r[l]);s?Uo(this,s):this.cm&&ai(this.cm)})),undo:Li((function(){$o(this,"undo")})),redo:Li((function(){$o(this,"redo")})),undoSelection:Li((function(){$o(this,"undo",!0)})),redoSelection:Li((function(){$o(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),dt(this,it(n,t))},indexFromPos:function(e){e=dt(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Qo(t.doc,ao(n,n)),h)for(var f=0;f=0;t--)ra(e.doc,"",r[t].from,r[t].to,"+delete");ai(e)}))}function Wa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ga(e,t,n){var r=Wa(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function Xa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?q(o):o[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=tr(t,n);a=i<0?n.text.length-1:0;var d=nr(t,u,a).top;a=se((function(e){return nr(t,u,e).top==d}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Wa(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,c)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}function qa(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Ga(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=u.begin)){var f=d?"before":"after";return new it(n.line,h,f)}}var p=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c0?u.end:l(u.begin,-1);return null==g||r>0&&g==t.text.length||(A=p(r>0?0:i.length-1,r,c(g)),!A)?null:A}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja["default"]=v?ja.macDefault:ja.pcDefault;var Ya={selectAll:qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return Va(e,(function(t){if(t.empty()){var n=Ye(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ye(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Mi(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ot((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?_s(e,r,t,o):xs(e,r,t,o)}function _s(e,t,n,r){var i=e.display,o=!1,c=Ti(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,ge(i.wrapper.ownerDocument,"mouseup",c),ge(i.wrapper.ownerDocument,"mousemove",u),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",c),o||(we(t),r.addNew||Po(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),qr(e),setTimeout((function(){return i.input.focus()}),20)}function ws(e,t,n){if("char"==n)return new io(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new io(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new io(r.from,r.to)}function xs(e,t,n,r){var i=e.display,o=e.doc;we(t);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new io(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new io(n,n)),n=Dr(e,t,!0,!0),s=-1;else{var u=ws(e,n,r.unit);a=r.extend?Do(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Ho(o,oo(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Ho(o,oo(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):jo(o,s,a,z):(s=0,Ho(o,new ro([a],0),z),l=o.sel);var d=n;function h(t){if(0!=ot(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,u=F(Ye(o,n.line).text,n.ch,c),h=F(Ye(o,t.line).text,t.ch,c),f=Math.min(u,h),p=Math.max(u,h),A=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));A<=g;A++){var m=Ye(o,A).text,v=W(m,f,c);f==p?i.push(new io(it(A,v),it(A,v))):m.length>v&&i.push(new io(it(A,v),it(A,W(m,p,c))))}i.length||i.push(new io(n,n)),Ho(o,oo(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,b=a,_=ws(e,t,r.unit),w=b.anchor;ot(_.anchor,w)>0?(y=_.head,w=ct(b.from(),_.anchor)):(y=_.anchor,w=lt(b.to(),_.head));var x=l.ranges.slice(0);x[s]=Cs(e,new io(dt(o,w),y)),Ho(o,oo(e,x,s),z)}}var f=i.wrapper.getBoundingClientRect(),p=0;function A(t){var n=++p,a=Dr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,d)){e.curOp.focus=I(),h(a);var s=ei(i,o);(a.line>=s.to||a.linef.bottom?20:0;l&&setTimeout(Ti(e,(function(){p==n&&(i.scroller.scrollTop+=l,A(t))})),50)}}function g(t){e.state.selectingText=!1,p=1/0,t&&(we(t),i.input.focus()),ge(i.wrapper.ownerDocument,"mousemove",m),ge(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var m=Ti(e,(function(e){0!==e.buttons&&Ee(e)?A(e):g(e)})),v=Ti(e,g);e.state.selectingText=v,pe(i.wrapper.ownerDocument,"mousemove",m),pe(i.wrapper.ownerDocument,"mouseup",v)}function Cs(e,t){var n=t.anchor,r=t.head,i=Ye(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,A=f?"after":"before";return n.ch==p&&n.sticky==A?t:new io(new it(n.line,p,A),r)}function Ss(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(h){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&we(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!be(e,n))return Ce(t);o-=s.top-a.viewOffset;for(var l=0;l=i){var u=tt(e.doc,o),d=e.display.gutterSpecs[l];return me(e,n,e,u,d.className,t),Ce(t)}}}function ks(e,t){return Ss(e,t,"gutterClick",!0)}function Es(e,t){Kn(e.display,t)||Os(e,t)||ve(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Os(e,t){return!!be(e,"gutterContextMenu")&&Ss(e,t,"gutterContextMenu",!1)}function Bs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dr(e)}As.prototype.compare=function(e,t,n){return this.time+ps>e&&0==ot(t,this.pos)&&n==this.button};var Ms={toString:function(){return"CodeMirror.Init"}},Ts={},Is={};function Ls(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ms&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ms,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fo(e)}),!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){po(e),dr(e),Nr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ms&&e.refresh()})),n("specialCharPlaceholder",An,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!b),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Bs(e),Yi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=za(t),i=n!=Ms&&za(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ps,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Xi(t,e.options.lineNumbers),Yi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Tr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return mi(e)}),!0),n("scrollbarStyle","native",(function(e){bi(e),mi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Xi(e.options.gutters,t),Yi(e)}),!0),n("firstLineNumber",1,Yi,!0),n("lineNumberFormatter",(function(e){return e}),Yi,!0),n("showCursorWhenSelecting",!1,Qr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Zr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ds),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Qr,!0),n("singleCursorHeightPerLine",!0,Qr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ds(e,t,n){var r=n&&n!=Ms;if(!t!=!r){var i=e.display.dragFunctions,o=t?pe:ge;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ps(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(k(e.display.wrapper,"CodeMirror-wrap"),sn(e)),Lr(e),Nr(e),dr(e),setTimeout((function(){return mi(e)}),100)}function Ns(e,t){var n=this;if(!(this instanceof Ns))return new Ns(e,t);this.options=t=t?j(t):{},j(Ts,t,!1);var r=t.value;"string"==typeof r?r=new wa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ns.inputStyles[t.inputStyle](this),o=this.display=new Zi(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Bs(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new R,keySeq:null,specialChars:null},t.autofocus&&!m&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),js(this),Ma(),wi(this),this.curOp.forceUpdate=!0,vo(this,r),t.autofocus&&!m||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Yr(n)}),20):Zr(this),Is)Is.hasOwnProperty(c)&&Is[c](this,t[c],Ms);Gi(this),t.finishInit&&t.finishInit(this);for(var u=0;u400}pe(t.scroller,"touchstart",(function(i){if(!ve(e,i)&&!o(i)&&!ks(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Kn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new io(it(a.line,0),dt(e.doc,it(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),we(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(di(e,t.scroller.scrollTop),fi(e,t.scroller.scrollLeft,!0),me(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return no(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ve(e,t)||Se(t)},over:function(t){ve(e,t)||(ka(e,t),Se(t))},start:function(t){return Sa(e,t)},drop:Ti(e,Ca),leave:function(t){ve(e,t)||Ea(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return us.call(e,t)})),pe(c,"keydown",Ti(e,ls)),pe(c,"keypress",Ti(e,ds)),pe(c,"focus",(function(t){return Yr(e,t)})),pe(c,"blur",(function(t){return Zr(e,t)}))}Ns.defaults=Ts,Ns.optionHandlers=Is;var Fs=[];function Rs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=vt(e,t).state:n="prev");var a=e.options.tabSize,s=Ye(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(i,s.text.slice(u.length),s.text),c==Q||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?F(Ye(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(ha,l=Le(t),c=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\n")==t){if(r.ranges.length%Us.text.length==0){c=[];for(var u=0;u=0;h--){var f=r.ranges[h],p=f.from(),A=f.to();f.empty()&&(n&&n>0?p=it(p.line,p.ch-n):e.state.overwrite&&!s?A=it(A.line,Math.min(Ye(o,A.line).text.length,A.ch+q(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==l.join("\n")&&(p=A=it(p.line,0)));var g={from:p,to:A,text:c?c[h%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Zo(e.doc,g),On(e,"inputRead",e,g)}t&&!s&&zs(e,t),ai(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ks(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Mi(t,(function(){return Qs(t,n,0,null,"paste")})),!0}function zs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Rs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ye(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Rs(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function Vs(e){for(var t=[],n=[],r=0;rn&&(Rs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&jo(this.doc,r,new io(o,c[r].to()),K)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=mt(this,Ye(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Ye(this.doc,e)}else r=e;return Ar(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return Br(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=vr(this,dt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ii(ls),triggerOnKeyPress:Ii(ds),triggerOnKeyUp:us,triggerOnMouseDown:Ii(ms),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:Ii((function(e){zs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&Lr(this),me(this,"refresh",this)})),swapDoc:Ii((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),vo(this,e),dr(this),this.display.input.reset(),si(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_e(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function qs(e,t,n,r,i){var o=t,a=n,s=Ye(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new it(n,t.ch,t.sticky),s=Ye(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(u)?null:new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=i?qa(e.cm,s,t,n):Ga(s,t,n);if(null==a){if(o||!c())return!1;t=Xa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!u(!p))break;var A=s.text.charAt(t.ch)||"\n",g=ne(A,f)?"w":h&&"\n"==A?"n":!h||/\s/.test(A)?null:"p";if(!h||p||g||(g="s"),d&&d!=g){n<0&&(n=1,u(),t.sticky="after");break}if(g&&(d=g),n>0&&!u(!p))break}var m=Go(e,t,o,a,!0);return at(o,m)&&(m.hitSide=!0),m}function Ys(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Or(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=_r(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Zs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new R,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Ye(e.doc,t.line),i=Zn(n,r,t.line),o=he(r,e.doc.direction),a="left";if(o){var s=ue(o,t.ch);a=s%2?"right":"left"}var l=or(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function $s(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function el(e,t){return t&&(e.bad=!0),e}function tl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(it(r,0),it(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(Ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var A=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;A&&u();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&Js(t,i)||{node:l[0].measure.map[2],offset:0},u=o.liner.firstLine()&&(a=it(a.line-1,Ye(r.doc,a.line-1).length)),s.ch==Ye(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Pr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Pr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=et(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(tl(r,n,c,t,l)),h=Ze(r.doc,it(t,0),it(l,Ye(r.doc,l).text.length));while(d.length>1&&h.length>1)if(q(d)==q(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}var f=0,p=0,A=d[0],g=h[0],m=Math.min(A.length,g.length);while(fa.ch&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1))f--,p++;d[d.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var _=it(t,f),w=it(l,h.length?q(h).length-p:0);return d.length>1||d[0]||ot(_,w)?(ra(r.doc,d,_,w,"+input"),!0):void 0},Zs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zs.prototype.reset=function(){this.forceCompositionEnd()},Zs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Zs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Zs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Mi(this.cm,(function(){return Nr(e.cm)}))},Zs.prototype.setUneditable=function(e){e.contentEditable="false"},Zs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ti(this.cm,Qs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Zs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Zs.prototype.onContextMenu=function(){},Zs.prototype.resetPosition=function(){},Zs.prototype.needsContentAttribute=!0;var il=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new R,this.hasSelection=!1,this.composing=null};function ol(e,t){if(t=t?j(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ge(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ns((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function al(e){e.off=ge,e.on=pe,e.wheelEventPixels=to,e.Doc=wa,e.splitLines=Le,e.countColumn=F,e.findColumn=W,e.isWordChar=te,e.Pass=Q,e.signal=me,e.Line=ln,e.changeEnd=so,e.scrollbarModel=yi,e.Pos=it,e.cmpPos=ot,e.modes=Fe,e.mimeModes=Re,e.resolveMode=Qe,e.getMode=Ke,e.modeExtensions=ze,e.extendMode=Ve,e.copyState=We,e.startState=Xe,e.innerMode=Ge,e.commands=Ya,e.keyMap=ja,e.keyName=Ka,e.isModifierKey=Ha,e.lookupKey=Ua,e.normalizeKeyMap=Ra,e.StringStream=qe,e.SharedTextMarker=ga,e.TextMarker=pa,e.LineWidget=ua,e.e_preventDefault=we,e.e_stopPropagation=xe,e.e_stop=Se,e.addClass=L,e.contains=T,e.rmClass=k,e.keyNames=La}il.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!ve(r,e)){if(r.somethingSelected())Hs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Vs(r);Hs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,K):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),A&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){ve(r,e)||Ks(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!Kn(e,t)&&!ve(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){Kn(e,t)||we(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(e){this.wrapper=Gs(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Kr(e);if(e.options.moveInputWithCursor){var i=vr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(e){var t=this.cm,n=t.display;O(n.cursorDiv,e.cursors),O(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},il.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},il.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},il.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||De(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Dr(n,e),c=r.scroller.scrollTop;if(o&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Ti(n,Ho)(n.doc,ao(o),K);var h,f=i.style.cssText,p=t.wrapper.style.cssText,A=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-A.top-5)+"px; left: "+(e.clientX-A.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(h=window.scrollY),r.input.focus(),l&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),x){Se(e);var g=function e(){ge(window,"mouseup",e),setTimeout(v,20)};pe(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="\u200b"+(e?i.value:"");i.value="\u21da",i.value=o,t.prevInput=e?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==t.prevInput?Ti(n,qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ls(Ns),Xs(Ns);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in wa.prototype)wa.prototype.hasOwnProperty(ll)&&U(sl,ll)<0&&(Ns.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(wa.prototype[ll]));return _e(wa),Ns.inputStyles={textarea:il,contenteditable:Zs},Ns.defineMode=function(e){Ns.defaults.mode||"null"==e||(Ns.defaults.mode=e),Ue.apply(this,arguments)},Ns.defineMIME=He,Ns.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ns.defineMIME("text/plain","null"),Ns.defineExtension=function(e,t){Ns.prototype[e]=t},Ns.defineDocExtension=function(e,t){wa.prototype[e]=t},Ns.fromTextArea=ol,al(Ns),Ns.version="5.58.2",Ns}))},Vy0f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("iYpf"));function i(e){return e&&e.__esModule?e:{default:e}}var o=r;t.default=o,e.exports=o},W2nI:function(e,t,n){var r=n("IwbS"),i=n("ProS"),o=n("bYtY"),a=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function u(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,n){var r=e.getGraphicEl(),i=u(e,t);null!=n&&(null==i&&(i=1),i*=n),r.downplay&&r.downplay(),r.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",i)}))}function h(e,t){var n=u(e,t),r=e.getGraphicEl();r.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",n)})),r.highlight&&r.highlight()}var f=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},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()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=i.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,n){var i=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,l=s.width,c=s.height,u=e.getData(),d=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(t){var n=new f;n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var i,o,s,u,p,A,g,m,v=t.getModel("lineStyle"),y=v.get("curveness"),b=t.node1.getLayout(),_=t.node1.getModel(),w=_.get("localX"),x=_.get("localY"),C=t.node2.getLayout(),S=t.node2.getModel(),k=S.get("localX"),E=S.get("localY"),O=t.getLayout();switch(n.shape.extent=Math.max(1,O.dy),n.shape.orient=h,"vertical"===h?(i=(null!=w?w*l:b.x)+O.sy,o=(null!=x?x*c:b.y)+b.dy,s=(null!=k?k*l:C.x)+O.ty,u=null!=E?E*c:C.y,p=i,A=o*(1-y)+u*y,g=s,m=o*y+u*(1-y)):(i=(null!=w?w*l:b.x)+b.dx,o=(null!=x?x*c:b.y)+O.sy,s=null!=k?k*l:C.x,u=(null!=E?E*c:C.y)+O.ty,p=i*(1-y)+s*y,A=o,g=i*y+s*(1-y),m=u),n.setShape({x1:i,y1:o,x2:s,y2:u,cpx1:p,cpy1:A,cpx2:g,cpy2:m}),n.setStyle(v.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color");break;case"target":n.style.fill=t.node2.getVisual("color");break}r.setHoverStyle(n,t.getModel("emphasis.lineStyle").getItemStyle()),a.add(n),d.setItemGraphicEl(t.dataIndex,n)})),o.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),o=i.get("localX"),s=i.get("localY"),d=i.getModel("label"),h=i.getModel("emphasis.label"),f=new r.Rect({shape:{x:null!=o?o*l:n.x,y:null!=s?s*c:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle()}),p=t.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(f.style,p,d,h,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),f.setStyle("fill",t.getVisual("color")),r.setHoverStyle(f,p),a.add(f),u.setItemGraphicEl(t.dataIndex,f),f.dataType="node"})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/c})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))})),d.eachItemGraphicEl((function(t,r){var o=d.getItemModel(r);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))})),!this._data&&e.get("animation")&&a.setClipPath(A(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,r){var i=e.getData(),u=i.graph,f=r.dataIndex,p=i.getItemModel(f),A=r.edgeDataIndex;if(null!=f||null!=A){var g=u.getNodeByIndex(f),m=u.getEdgeByIndex(A);if(u.eachNode((function(e){d(e,a,.1)})),u.eachEdge((function(e){d(e,l,.1)})),g){h(g,s);var v=p.get("focusNodeAdjacency");"outEdges"===v?o.each(g.outEdges,(function(e){e.dataIndex<0||(h(e,c),h(e.node2,s))})):"inEdges"===v?o.each(g.inEdges,(function(e){e.dataIndex<0||(h(e,c),h(e.node1,s))})):"allEdges"===v&&o.each(g.edges,(function(e){e.dataIndex<0||(h(e,c),e.node1!==g&&h(e.node1,s),e.node2!==g&&h(e.node2,s))}))}m&&(h(m,c),h(m.node1,s),h(m.node2,s))}},unfocusNodeAdjacency:function(e,t,n,r){var i=e.getGraph();i.eachNode((function(e){d(e,a)})),i.eachEdge((function(e){d(e,l)}))}});function A(e,t,n){var i=new r.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return r.initProps(i,{shape:{width:e.width+20}},t,n),i}e.exports=p},W4dC:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("bYtY")),o=i.each,a=i.createHashMap,s=n("7DRL"),l=n("TIY9"),c=n("yS9w"),u=n("mFDi"),d={geoJSON:l,svg:c},h={load:function(e,t,n){var r,i=[],s=a(),l=a(),c=p(e);return o(c,(function(a){var c=d[a.type].load(e,a,n);o(c.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),i.push(e),s.set(n,e),l.set(n,e.center)}));var u=c.boundingRect;u&&(r?r.union(u):r=u.clone())})),{regions:i,regionsMap:s,nameCoordMap:l,boundingRect:r||new u(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(e){return function(t,n){var r=p(t),i=[];return o(r,(function(r){var o=d[r.type][e];o&&i.push(o(t,r,n))})),i}}function p(e){var t=s.retrieveMap(e)||[];return t}e.exports=h},WGYa:function(e,t,n){var r=n("7yuC"),i=r.forceLayout,o=n("HF/U"),a=o.simpleLayout,s=n("lOQZ"),l=s.circularLayout,c=n("OELB"),u=c.linearMap,d=n("QBsz"),h=n("bYtY");function f(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,s=r.edgeData,c=e.getModel("force"),f=c.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&l(e,"value"):a(e);var p=o.getDataExtent("value"),A=s.getDataExtent("value"),g=c.get("repulsion"),m=c.get("edgeLength");h.isArray(g)||(g=[g,g]),h.isArray(m)||(m=[m,m]),m=[m[1],m[0]];var v=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),r=u(e,p,g);return isNaN(r)&&(r=(g[0]+g[1])/2),{w:r,rep:r,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),y=s.mapArray("value",(function(e,t){var n=r.getEdgeByIndex(t),i=u(e,A,m);isNaN(i)&&(i=(m[0]+m[1])/2);var o=n.getModel();return{n1:v[n.node1.dataIndex],n2:v[n.node2.dataIndex],d:i,curveness:o.get("lineStyle.curveness")||0,ignoreForceLayout:o.get("ignoreForceLayout")}})),b=(t=e.coordinateSystem,t.getBoundingRect()),_=i(v,y,{rect:b,gravity:c.get("gravity"),friction:c.get("friction")}),w=_.step;_.step=function(e){for(var t=0,i=v.length;t=0;a--)null==n[a]&&(delete i[t[a]],t.pop())}function p(e,t){var n=e.visual,i=[];r.isObject(n)?s(n,(function(e){i.push(e)})):null!=n&&i.push(n);var o={color:1,symbol:1};t||1!==i.length||o.hasOwnProperty(e.type)||(i[1]=i[0]),w(e,i)}function A(e){return{applyVisual:function(t,n,r){t=this.mapValueToVisual(t),r("color",e(n("color"),t))},_doMap:b([0,1])}}function g(e){var t=this.option.visual;return t[Math.round(a(e,[0,1],[0,t.length-1],!0))]||{}}function m(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function v(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function y(){return this.option.visual[0]}function b(e){return{linear:function(t){return a(t,e,this.option.visual,!0)},category:v,piecewise:function(t,n){var r=_.call(this,n);return null==r&&(r=a(t,e,this.option.visual,!0)),r},fixed:y}}function _(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=u.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function w(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=r.map(t,(function(e){return i.parse(e)}))),t}var x={linear:function(e){return a(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=u.findPieceIndex(e,t,!0);if(null!=n)return a(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:r.noop};function C(e,t,n){return e?t<=n:t1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&v[n])return v[n];var r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=m.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(v[n]=l),l}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||(r=document.createElement("textarea"),r.setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var o=y(e,t),a=o.paddingSize,s=o.borderSize,l=o.boxSizing,c=o.sizingStyle;r.setAttribute("style","".concat(c,";").concat(g)),r.value=e.value||e.placeholder||"";var u,d=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,f=r.scrollHeight;if("border-box"===l?f+=s:"content-box"===l&&(f-=a),null!==n||null!==i){r.value=" ";var p=r.scrollHeight-a;null!==n&&(d=p*n,"border-box"===l&&(d=d+a+s),f=Math.max(d,f)),null!==i&&(h=p*i,"border-box"===l&&(h=h+a+s),u=f>h?"":"hidden",f=Math.min(h,f))}return{height:f,minHeight:d,maxHeight:h,overflowY:u,resize:"none"}}var _,w=n("Gytx"),x=n.n(w);(function(e){e[e["NONE"]=0]="NONE",e[e["RESIZING"]=1]="RESIZING",e[e["RESIZED"]=2]="RESIZED"})(_||(_={}));var C=function(e){Object(s["a"])(n,e);var t=Object(l["a"])(n);function n(e){var r;return Object(o["a"])(this,n),r=t.call(this,e),r.nextFrameActionId=void 0,r.resizeFrameId=void 0,r.textArea=void 0,r.saveTextArea=function(e){r.textArea=e},r.handleResize=function(e){var t=r.state.resizeStatus,n=r.props,i=n.autoSize,o=n.onResize;t===_.NONE&&("function"===typeof o&&o(e),i&&r.resizeOnNextFrame())},r.resizeOnNextFrame=function(){cancelAnimationFrame(r.nextFrameActionId),r.nextFrameActionId=requestAnimationFrame(r.resizeTextarea)},r.resizeTextarea=function(){var e=r.props.autoSize;if(e&&r.textArea){var t=e.minRows,n=e.maxRows,i=b(r.textArea,!1,t,n);r.setState({textareaStyles:i,resizeStatus:_.RESIZING},(function(){cancelAnimationFrame(r.resizeFrameId),r.resizeFrameId=requestAnimationFrame((function(){r.setState({resizeStatus:_.RESIZED},(function(){r.resizeFrameId=requestAnimationFrame((function(){r.setState({resizeStatus:_.NONE}),r.fixFirefoxAutoScroll()}))}))}))}))}},r.renderTextArea=function(){var e=r.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,o=e.autoSize,a=e.onResize,s=e.className,l=e.disabled,p=r.state,g=p.textareaStyles,m=p.resizeStatus,v=Object(f["a"])(r.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),y=A()(n,s,Object(d["a"])({},"".concat(n,"-disabled"),l));"value"in v&&(v.value=v.value||"");var b=Object(u["a"])(Object(u["a"])(Object(u["a"])({},r.props.style),g),m===_.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return c["createElement"](h["a"],{onResize:r.handleResize,disabled:!(o||a)},c["createElement"]("textarea",Object(i["a"])({},v,{className:y,style:b,ref:r.saveTextArea})))},r.state={textareaStyles:{},resizeStatus:_.NONE},r}return Object(a["a"])(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&x()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(c["Component"]),S=C,k=function(e){Object(s["a"])(n,e);var t=Object(l["a"])(n);function n(e){var r;Object(o["a"])(this,n),r=t.call(this,e),r.resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,i=t.onKeyDown;13===e.keyCode&&n&&n(e),i&&i(e)};var i="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return r.state={value:i},r}return Object(a["a"])(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return c["createElement"](S,Object(i["a"])({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(c["Component"]);t["default"]=k},YESw:function(e,t,n){var r=n("Cwc5"),i=r(Object,"create");e.exports=i},YH21:function(e,t,n){var r=n("H6uX");t.Dispatcher=r;var i=n("ItGF"),o=n("Ze12"),a=o.isCanvasEl,s=o.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function d(e,t,n,r){return n=n||{},r||!i.canvasSupported?h(e,t,n):i.browser.firefox&&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):h(e,t,n),n}function h(e,t,n){if(i.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(a(e)){var l=e.getBoundingClientRect();return n.zrX=r-l.left,void(n.zrY=o-l.top)}if(s(u,e,r,o))return n.zrX=u[0],void(n.zrY=u[1])}n.zrX=n.zrY=0}function f(e){return e||window.event}function p(e,t,n){if(t=f(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];o&&d(e,o,t,n)}else d(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&c.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function A(e,t,n,r){l?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function g(e,t,n,r){l?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}var m=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function v(e){return 2===e.which||3===e.which}function y(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=f,t.normalizeEvent=p,t.addEventListener=A,t.removeEventListener=g,t.stop=m,t.isMiddleOrRightButtonOnMouseUpDown=v,t.notLeftMouse=y},YJ9k:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(_)}}]),e}();function _(e,t){var n=e.node.sortableInfo.index,r=t.node.sortableInfo.index;return n-r}function w(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var x={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},C=function(){if("undefined"===typeof window||"undefined"===typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function S(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function k(e,t){e.style["".concat(C,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function E(e,t){e.style["".concat(C,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function O(e,t){while(e){if(t(e))return e;e=e.parentNode}return null}function B(e,t,n){return Math.max(e,Math.min(n,t))}function M(e){return"px"===e.substr(-2)?parseFloat(e):0}function T(e){var t=window.getComputedStyle(e);return{bottom:M(t.marginBottom),left:M(t.marginLeft),right:M(t.marginRight),top:M(t.marginTop)}}function I(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function L(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function D(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function P(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:N(e.parentNode,t,r)}}function j(e,t,n){return et?e-1:e>n&&e0&&n[t].height>0){var r=e.getContext("2d");r.drawImage(n[t],0,0)}})),r}function W(e){return null!=e.sortableHandle}var G=function(){function e(t,n){Object(a["a"])(this,e),this.container=t,this.onScrollCallback=n}return Object(s["a"])(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,i=e.maxTranslate,o=e.width,a=e.height,s={x:0,y:0},l={x:1,y:1},c={x:10,y:10},u=this.container,d=u.scrollTop,h=u.scrollLeft,f=u.scrollHeight,p=u.scrollWidth,A=u.clientHeight,g=u.clientWidth,m=0===d,v=f-d-A===0,y=0===h,b=p-h-g===0;n.y>=i.y-a/2&&!v?(s.y=1,l.y=c.y*Math.abs((i.y-a/2-n.y)/a)):n.x>=i.x-o/2&&!b?(s.x=1,l.x=c.x*Math.abs((i.x-o/2-n.x)/o)):n.y<=r.y+a/2&&!m?(s.y=-1,l.y=c.y*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+o/2&&!y&&(s.x=-1,l.x=c.x*Math.abs((n.x-o/2-r.x)/o)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();function X(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}}function q(e){var t=[z.Input,z.Textarea,z.Select,z.Option,z.Button];return-1!==t.indexOf(e.target.tagName)||!!O(e.target,(function(e){return"true"===e.contentEditable}))}var Y={axis:A.a.oneOf(["x","y","xy"]),contentWindow:A.a.any,disableAutoscroll:A.a.bool,distance:A.a.number,getContainer:A.a.func,getHelperDimensions:A.a.func,helperClass:A.a.string,helperContainer:A.a.oneOfType([A.a.func,"undefined"===typeof HTMLElement?A.a.any:A.a.instanceOf(HTMLElement)]),hideSortableGhost:A.a.bool,keyboardSortingTransitionDuration:A.a.number,lockAxis:A.a.string,lockOffset:A.a.oneOfType([A.a.number,A.a.string,A.a.arrayOf(A.a.oneOfType([A.a.number,A.a.string]))]),lockToContainerEdges:A.a.bool,onSortEnd:A.a.func,onSortMove:A.a.func,onSortOver:A.a.func,onSortStart:A.a.func,pressDelay:A.a.number,pressThreshold:A.a.number,keyCodes:A.a.shape({lift:A.a.arrayOf(A.a.number),drop:A.a.arrayOf(A.a.number),cancel:A.a.arrayOf(A.a.number),up:A.a.arrayOf(A.a.number),down:A.a.arrayOf(A.a.number)}),shouldCancelStart:A.a.func,transitionDuration:A.a.number,updateBeforeSortStart:A.a.func,useDragHandle:A.a.bool,useWindowAsScrollContainer:A.a.bool},Z={lift:[K.SPACE],drop:[K.SPACE],cancel:[K.ESC],up:[K.UP,K.LEFT],down:[K.DOWN,K.RIGHT]},J={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:X,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Z,shouldCancelStart:q,transitionDuration:300,useWindowAsScrollContainer:!1},$=Object.keys(Y);function ee(e){v()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function te(e,t){try{var n=e()}catch(r){return t(!0,r)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}function ne(e){var t,n,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return Object(a["a"])(this,n),t=Object(l["a"])(this,Object(c["a"])(n).call(this,e)),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"state",{}),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"handleStart",(function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2!==e.button&&!i(e)){t.touched=!0,t.position=D(e);var o=O(e.target,(function(e){return null!=e.sortableInfo}));if(o&&o.sortableInfo&&t.nodeIsChild(o)&&!t.state.sorting){var a=t.props.useDragHandle,s=o.sortableInfo,l=s.index,c=s.collection,u=s.disabled;if(u)return;if(a&&!O(e.target,W))return;t.manager.active={collection:c,index:l},P(e)||e.target.tagName!==z.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"handleMove",(function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var o=D(e),a={x:t.position.x-o.x,y:t.position.y-o.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||i&&!(s>=i)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"cancel",(function(){var e=t.props.distance,n=t.state.sorting;n||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=f.sortableInfo.index,r=T(f),i=Q(t.container),u=t.scrollContainer.getBoundingClientRect(),g=s({index:n,node:f,collection:p});if(t.node=f,t.margin=r,t.gridGap=i,t.width=g.width,t.height=g.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=u,t.index=n,t.newIndex=n,t.axis={x:a.indexOf("x")>=0,y:a.indexOf("y")>=0},t.offsetEdge=N(f,t.container),t.initialOffset=D(A?Object(o["a"])({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(V(f)),S(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),A&&t.helper.focus(),c&&(t.sortableGhost=f,S(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},A){var m=h?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,v=m.top,y=m.left,b=m.width,_=m.height,w=v+_,C=y+b;t.axis.x&&(t.minTranslate.x=y-t.boundingClientRect.left,t.maxTranslate.x=C-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=v-t.boundingClientRect.top,t.maxTranslate.y=w-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(h?0:u.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(h?t.contentWindow.innerWidth:u.left+u.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(h?0:u.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(h?t.contentWindow.innerHeight:u.top+u.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?f:t.contentWindow,A?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(x.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),x.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),d&&d({node:f,index:n,collection:p,isKeySorting:A,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),A&&t.keyMove(0)},i=t.props,a=i.axis,s=i.getHelperDimensions,l=i.helperClass,c=i.hideSortableGhost,u=i.updateBeforeSortStart,d=i.onSortStart,h=i.useWindowAsScrollContainer,f=n.node,p=n.collection,A=t.manager.isKeySorting,g=function(){if("function"===typeof u){t._awaitingUpdateBeforeSortStart=!0;var n=te((function(){var t=f.sortableInfo.index;return Promise.resolve(u({collection:p,index:t,node:f,isKeySorting:A},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(r):r(g)}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(i){return Promise.reject(i)}})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"===typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),Object(h["a"])(Object(d["a"])(Object(d["a"])(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,o=t.manager,a=o.active.collection,s=o.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(x.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),x.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&S(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;cr)){t.prevIndex=o,t.newIndex=i;var a=j(t.newIndex,t.prevIndex,t.index),s=n.find((function(e){var t=e.node;return t.sortableInfo.index===a})),l=s.node,c=t.containerScrollDelta,u=s.boundingClientRect||L(l,c),d=s.translate||{x:0,y:0},h={top:u.top+d.y-c.top,left:u.left+d.x-c.left},f=oA?A/2:this.height/2,width:this.width>p?p/2:this.width/2},m=l&&f>this.index&&f<=c,v=l&&f=c,y={x:0,y:0},b=a[u].edgeOffset;b||(b=N(h,this.container),a[u].edgeOffset=b,l&&(a[u].boundingClientRect=L(h,i)));var _=u0&&a[u-1];_&&!_.edgeOffset&&(_.edgeOffset=N(_.node,this.container),l&&(_.boundingClientRect=L(_.node,i))),f!==this.index?(t&&E(h,t),this.axis.x?this.axis.y?v||fthis.containerBoundingRect.width-g.width&&_&&(y.x=_.edgeOffset.left-b.left,y.y=_.edgeOffset.top-b.top),null===this.newIndex&&(this.newIndex=f)):(m||f>this.index&&(s.left+o.left+g.width>=b.left&&s.top+o.top+g.height>=b.top||s.top+o.top+g.height>=b.top+A))&&(y.x=-(this.width+this.marginOffset.x),b.left+y.xthis.index&&s.left+o.left+g.width>=b.left?(y.x=-(this.width+this.marginOffset.x),this.newIndex=f):(v||fthis.index&&s.top+o.top+g.height>=b.top?(y.y=-(this.height+this.marginOffset.y),this.newIndex=f):(v||f1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return Object(a["a"])(this,n),Object(l["a"])(this,Object(c["a"])(n).apply(this,arguments))}return Object(u["a"])(n,t),Object(s["a"])(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,i=Object(g["findDOMNode"])(this);i.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return v()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=i.withRef?"wrappedInstance":null;return Object(f["createElement"])(e,Object(r["a"])({ref:t},w(this.props,ie)))}}]),n}(f["Component"]),Object(h["a"])(t,"displayName",I("sortableElement",e)),Object(h["a"])(t,"contextTypes",{manager:A.a.object.isRequired}),Object(h["a"])(t,"propTypes",re),Object(h["a"])(t,"defaultProps",{collection:0}),n}},YNAk:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("QyFq")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="CaretDownFilled";var h=a.forwardRef(d);t.default=h},YNf1:function(e,t,n){var r=n("IwbS"),i=n("6Ic6"),o=.3,a=i.extend({type:"parallel",init:function(){this._dataGroup=new r.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,i){var o=this._dataGroup,a=e.getData(),h=this._data,f=e.coordinateSystem,p=f.dimensions,A=u(e);function g(e){var t=c(a,o,e,p,f);d(t,a,e,A)}function m(t,n){var o=h.getItemGraphicEl(n),s=l(a,t,p,f);a.setItemGraphicEl(t,o);var c=i&&!1===i.animation?null:e;r.updateProps(o,{shape:{points:s}},c,t),d(o,a,t,A)}function v(e){var t=h.getItemGraphicEl(e);o.remove(t)}if(a.diff(h).add(g).update(m).remove(v).execute(),!this._initialized){this._initialized=!0;var y=s(f,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(y)}this._data=a},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,o=i.dimensions,a=u(t),s=e.start;s65535?y:_}function x(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],S=["_extent","_approximateExtent","_rawExtent"];function k(e,t){i.each(C.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,i.each(S,(function(n){e[n]=i.clone(t[n])})),e._calculationInfo=i.extend(t._calculationInfo)}var E=function(e,t){e=e||["x","y"];for(var n={},r=[],o={},a=0;a=0?this._indices[e]:-1}function D(e,t){var n=e._idList[t];return null==n&&(n=T(e,e._idDimIdx,t)),null==n&&(n=m+t),n}function P(e){return i.isArray(e)||(e=[e]),e}function N(e,t){var n=e.dimensions,r=new E(i.map(n,e.getDimensionInfo,e),e.hostModel);k(r,e);for(var o=r._storage={},a=e._storage,s=0;s=0?(o[l]=j(a[l]),r._rawExtent[l]=F(),r._extent[l]=null):o[l]=a[l])}return r}function j(e){for(var t=new Array(e.length),n=0;ny[1]&&(y[1]=v)}t&&(this._nameList[f]=t[p])}this._rawCount=this._count=l,this._extent={},M(this)},O._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,r=this._chunkSize,i=this._rawData,o=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,d=this._rawExtent,h=this._nameRepeatCount={},f=this._chunkCount,p=0;pC[1]&&(C[1]=x)}if(!i.pure){var S=c[v];if(m&&null==S)if(null!=m.name)c[v]=S=m.name;else if(null!=n){var k=a[n],E=o[k][y];if(E){S=E[b];var O=l[k].ordinalMeta;O&&O.categories.length&&(S=O.categories[S])}}var T=null==m?null:m.id;null==T&&null!=S&&(h[S]=h[S]||0,T=S,h[S]>0&&(T+="__ec__"+h[S]),h[S]++),null!=T&&(u[v]=T)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent={},M(this)}},O.count=function(){return this._count},O.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){i=new t(n);for(var r=0;r=0&&t=0&&ts&&(s=c)}return r=[a,s],this._extent[e]=r,r},O.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},O.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},O.getCalculationInfo=function(e){return this._calculationInfo[e]},O.setCalculationInfo=function(e,t){p(e)?i.extend(this._calculationInfo,e):this._calculationInfo[e]=t},O.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var r=0,i=this.count();r=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;i=o-1}}return-1},O.indicesOfNearest=function(e,t,n){var r=this._storage,i=r[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c=0&&s<0)&&(a=h,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},O.getRawIndex=I,O.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n=c&&v<=u||isNaN(v))&&(a[s++]=h),h++}d=!0}else if(2===r){f=this._storage[l];var y=this._storage[t[1]],b=e[t[1]][0],_=e[t[1]][1];for(p=0;p=c&&v<=u||isNaN(v))&&(C>=b&&C<=_||isNaN(C))&&(a[s++]=h),h++}}d=!0}}if(!d)if(1===r)for(m=0;m=c&&v<=u||isNaN(v))&&(a[s++]=S)}else for(m=0;me[E][1])&&(k=!1)}k&&(a[s++]=this.getRawIndex(m))}return sw[1]&&(w[1]=_)}}}return o},O.downSample=function(e,t,n,r){for(var i=N(this,[e]),o=i._storage,a=[],s=Math.floor(1/t),l=o[e],c=this.count(),u=this._chunkSize,d=i._rawExtent[e],h=new(w(this))(c),f=0,p=0;pc-p&&(s=c-p,a.length=s);for(var A=0;Ad[1]&&(d[1]=y),h[f++]=b}return i._count=f,i._indices=h,i.getRawIndex=L,i},O.getItemModel=function(e){var t=this.hostModel;return new o(this.getRawDataItem(e),t,t&&t.ecModel)},O.diff=function(e){var t=this;return new a(e?e.getIndices():[],this.getIndices(),(function(t){return D(e,t)}),(function(e){return D(t,e)}))},O.getVisual=function(e){var t=this._visual;return t&&t[e]},O.setVisual=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},O.setLayout=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},O.getLayout=function(e){return this._layout[e]},O.getItemLayout=function(e){return this._itemLayouts[e]},O.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?i.extend(this._itemLayouts[e]||{},t):t},O.clearItemLayouts=function(){this._itemLayouts.length=0},O.getItemVisual=function(e,t,n){var r=this._itemVisuals[e],i=r&&r[t];return null!=i||n?i:this.getVisual(t)},O.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{},i=this.hasItemVisual;if(this._itemVisuals[e]=r,p(t))for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o],i[o]=!0);else r[t]=n,i[t]=!0},O.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var R=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};O.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(R,t)),this._graphicEls[e]=t},O.getItemGraphicEl=function(e){return this._graphicEls[e]},O.eachItemGraphicEl=function(e,t){i.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},O.cloneShallow=function(e){if(!e){var t=i.map(this.dimensions,this.getDimensionInfo,this);e=new E(t,this.hostModel)}if(e._storage=this._storage,k(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?L:I,e},O.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(i.slice(arguments)))})},O.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],O.CHANGABLE_METHODS=["filterSelf","selectRange"];var U=E;e.exports=U},YgsL:function(e,t,n){var r=n("QBsz"),i=r.distance;function o(e,t,n,r,i,o,a){var s=.5*(n-e),l=.5*(r-t);return(2*(t-n)+s+l)*a+(-3*(t-n)-2*s-l)*o+s*i+t}function a(e,t){for(var n=e.length,r=[],a=0,s=1;sn-2?n-1:f+1],d=e[f>n-3?n-1:f+2]);var g=p*p,m=p*g;r.push([o(c[0],A[0],u[0],d[0],p,g,m),o(c[1],A[1],u[1],d[1],p,g,m)])}return r}e.exports=a},Yl7c:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("bYtY")),o=".",a="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(o),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return i.extend(n.prototype,e),n.extend=this.extend,n.superCall=h,n.superApply=f,i.inherits(n,this),n.superClass=t,n}}var u=0;function d(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function h(e,t){var n=i.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function f(e,t,n){return this.superClass.prototype[t].apply(e,n)}function p(e,t){t=t||{};var n={};function r(e){var t=n[e.main];return t&&t[a]||(t=n[e.main]={},t[a]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==a){var i=r(t);i[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,r){var i=n[e];if(i&&i[a]&&(i=t?i[t]:null),r&&!i)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){e=s(e);var t=[],r=n[e.main];return r&&r[a]?i.each(r,(function(e,n){n!==a&&t.push(e)})):t.push(r),t},e.hasClass=function(e){return e=s(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return i.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=s(e);var t=n[e.main];return t&&t[a]},e.parseClassType=s,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var n=o.call(this,t);return e.registerClass(n,t.type)})}return e}function A(e,t){}t.parseClassType=s,t.enableClassExtend=c,t.enableClassCheck=d,t.enableClassManagement=p,t.setReadOnly=A},Ynxi:function(e,t,n){var r=n("bYtY"),i=n("ProS"),o=n("IwbS"),a=n("+TT/"),s=a.getLayoutRect,l=n("7aKB"),c=l.windowOpen;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,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:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,a=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),d=r.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),h=new o.Text({style:o.setTextStyle({},a,{text:e.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),p=e.get("subtext"),A=new o.Text({style:o.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:f.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),m=e.get("sublink"),v=e.get("triggerEvent",!0);h.silent=!g&&!v,A.silent=!m&&!v,g&&h.on("click",(function(){c(g,"_"+e.get("target"))})),m&&A.on("click",(function(){c(g,"_"+e.get("subtarget"))})),h.eventData=A.eventData=v?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(h),p&&i.add(A);var y=i.getBoundingRect(),b=e.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=s(b,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?_.x+=_.width:"center"===u&&(_.x+=_.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?_.y+=_.height:"middle"===d&&(_.y+=_.height/2),d=d||"top"),i.attr("position",[_.x,_.y]);var w={textAlign:u,textVerticalAlign:d};h.setStyle(w),A.setStyle(w),y=i.getBoundingRect();var x=_.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var S=new o.Rect({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(S)}}})},Ywus:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("DO2E")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="DeleteOutlined";var h=a.forwardRef(d);t.default=h},Z0Lh:function(e,t,n){"use strict";var r=n("TqRt");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("pVnL")),o=r(n("HjOm")),a=r(n("Z6rY")),s={lang:(0,i["default"])({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"],rangeWeekPlaceholder:["\u5f00\u59cb\u5468","\u7ed3\u675f\u5468"]},o["default"]),timePickerLocale:(0,i["default"])({},a["default"])};s.lang.ok="\u786e \u5b9a";var l=s;t["default"]=l},Z0cm:function(e,t){var n=Array.isArray;e.exports=n},Z1HP:function(e,t,n){var r=n("ycre"),i=n("quyA"),o=n("q4HE");function a(e){return i(e)?o(e):r(e)}e.exports=a},Z1r0:function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e),r=n.getShallow("category");if(null!=r){"number"===typeof r&&(r=o[r]);for(var a=0;a0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}};function B(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function M(e,t,n,r,i,s,c,u){var d=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),f=t.getVisual("borderColor"),p=r.getModel("itemStyle"),A=r.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(o.defaults({stroke:B(i)?"none":f,fill:B(i)?"none":d,opacity:h},p.getBarItemStyle()));var g=r.getShallow("cursor");g&&e.attr("cursor",g);var m=c?i.height>0?"bottom":"top":i.width>0?"left":"right";u||l(e.style,A,r,d,s,n,m),B(i)&&(A.fill=A.stroke="none"),a.setHoverStyle(e,A)}function T(e,t){var n=e.get(v)||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,r,i)}var I=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,r=this.__startPoint,i=this.__baseDimIdx,o=0;o=0?n:null}),30,!1);function P(e,t,n){var r=e.__baseDimIdx,i=1-r,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[i];y[0]=t,y[1]=n;for(var c=y[r],u=y[1-r],d=c-s,h=c+s,f=0,p=o.length/2;f=d&&g<=h&&(l<=m?u>=l&&u<=m:u>=m&&u<=l))return a[f]}return-1}function N(e,t,n){var r=n.getVisual("borderColor")||n.getVisual("color"),i=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}function j(e,t,n){var r=t.get("borderColor")||t.get("color"),i=t.getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}function F(e,t,n){var r,i="polar"===n.type;return r=i?n.getArea():n.grid.getRect(),i?{cx:r.cx,cy:r.cy,r0:e?r.r0:t.r0,r:e?r.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:r.x,y:e?r.y:t.y,width:e?t.width:r.width,height:e?r.height:t.height}}function R(e,t,n){var r="polar"===e.type?a.Sector:a.Rect;return new r({shape:F(t,n,e),silent:!0,z2:0})}e.exports=_},ZCgT:function(e,t,n){var r=n("tLB3"),i=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*o}return e===e?e:0}e.exports=a},ZLWo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},ZMnZ:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("2oIt")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="UpOutlined";var h=a.forwardRef(d);t.default=h},ZTPi:function(e,t,n){"use strict";var r=n("pVnL"),i=n.n(r),o=n("lSNA"),a=n.n(o),s=n("q1tI"),l=n("rePB"),c=n("ODXe"),u=n("Ff2n"),d=n("VTBJ"),h=n("TSYQ"),f=n.n(h),p=n("Zm9Q"),A=n("6cGi"),g=n("KQm4"),m=n("xEkU"),v=n.n(m),y=n("1OyB"),b=n("vuIU"),_=n("Ji7U"),w=n("LK+K"),x=n("m+aA"),C=n("Kwbf"),S=n("c+Xe"),k=n("bdgK"),E="rc-observer-key",O=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(){var e;return Object(y["a"])(this,n),e=t.apply(this,arguments),e.resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,i=r.getBoundingClientRect(),o=i.width,a=i.height,s=r.offsetWidth,l=r.offsetHeight,c=Math.floor(o),u=Math.floor(a);if(e.state.width!==c||e.state.height!==u||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var h={width:c,height:u,offsetWidth:s,offsetHeight:l};e.setState(h),n&&Promise.resolve().then((function(){n(Object(d["a"])(Object(d["a"])({},h),{},{offsetWidth:s,offsetHeight:l}))}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var e=this.props.disabled;if(e)this.destroyObserver();else{var t=Object(x["a"])(this.childNode||this),n=t!==this.currentElement;n&&(this.destroyObserver(),this.currentElement=t),!this.resizeObserver&&t&&(this.resizeObserver=new k["default"](this.onResize),this.resizeObserver.observe(t))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(p["a"])(e);if(t.length>1)Object(C["a"])(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(C["a"])(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(s["isValidElement"](n)&&Object(S["c"])(n)){var r=n.ref;t[0]=s["cloneElement"](n,{ref:Object(S["a"])(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!s["isValidElement"](e)||"key"in e&&null!==e.key?e:s["cloneElement"](e,{key:"".concat(E,"-").concat(t)})}))}}]),n}(s["Component"]);O.displayName="ResizeObserver";var B=O;function M(e){var t=Object(s["useRef"])(),n=Object(s["useRef"])(!1);function r(){for(var r=arguments.length,i=new Array(r),o=0;oh&&(A=h-p),Object(s["useMemo"])((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,r=0;rl+A){n=r-1;break}}for(var s=0,u=t-1;u>=0;u-=1){var d=e.get(c[u].key)||j;if(d[a]1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"===typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var r=getComputedStyle(e),i=r.marginLeft,o=r.marginRight;n+=+i.replace("px","")+ +o.replace("px","")}n=+n.toFixed(6)}return n||0},ve=function(e,t,n){e&&"object"===Object(W["a"])(e.style)&&(e.style[t]=n)},ye=function(){return ue.any},be=n("i8i4"),_e=n("uciX"),we=n("wgJM"),xe=n("8XRh"),Ce={adjustX:1,adjustY:1},Se={topLeft:{points:["bl","tl"],overflow:Ce,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ce,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ce,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ce,offset:[4,0]}},ke={topLeft:{points:["bl","tl"],overflow:Ce,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ce,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ce,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ce,offset:[4,0]}},Ee=0,Oe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Be=function(e,t,n){var r=fe(t),i=e.getState();e.setState({defaultActiveFirst:Object(d["a"])(Object(d["a"])({},i.defaultActiveFirst),{},Object(l["a"])({},r,n))})},Me=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(e){var r;Object(y["a"])(this,n),r=t.call(this,e),r.onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,i=r.props.store,o=r.getVisible();if(t===I["a"].ENTER)return r.onTitleClick(e),Be(i,r.props.eventKey,!0),!0;if(t===I["a"].RIGHT)return o?n.onKeyDown(e):(r.triggerOpenChange(!0),Be(i,r.props.eventKey,!0)),!0;if(t===I["a"].LEFT){var a;if(!o)return;return a=n.onKeyDown(e),a||(r.triggerOpenChange(!1),a=!0),a}return!o||t!==I["a"].UP&&t!==I["a"].DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onMouseEnter,o=t.store;Be(o,r.props.eventKey,!1),i({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,o=t.onMouseLeave;n.subMenuInstance=Object(U["a"])(r),o({key:i,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,i=t.onItemHover,o=t.onTitleMouseEnter;i({key:n,hover:!0}),o({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,i=t.eventKey,o=t.onItemHover,a=t.onTitleMouseLeave;n.subMenuInstance=Object(U["a"])(r),o({key:i,hover:!1}),a({key:i,domEvent:e})},r.onTitleClick=function(e){var t=Object(U["a"])(r),n=t.props;n.onTitleClick({key:n.eventKey,domEvent:e}),"hover"!==n.triggerSubMenuAction&&(r.triggerOpenChange(!r.getVisible(),"click"),Be(n.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"===typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.getVisible=function(){return r.state.isOpen},r.getMode=function(){return r.state.mode},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return Object(d["a"])(Object(d["a"])({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,i=function(){r.onOpenChange({key:n,item:Object(U["a"])(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){i()}),0):i()},r.isChildrenSelected=function(){var e={find:!1};return Ae(r.props.children,r.props.selectedKeys,e),e.find},r.isInlineMode=function(){return"inline"===r.getMode()},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=be["findDOMNode"](r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(U["a"])(r),t=e.props,n=r.getMode();return{mode:"horizontal"===n?"vertical":n,visible:r.getVisible(),level:t.level+1,inlineIndent:t.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:t.selectedKeys,eventKey:"".concat(t.eventKey,"-menu-"),openKeys:t.openKeys,motion:t.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:t.subMenuOpenDelay,parentMenu:Object(U["a"])(r),subMenuCloseDelay:t.subMenuCloseDelay,forceSubMenuRender:t.forceSubMenuRender,triggerSubMenuAction:t.triggerSubMenuAction,builtinPlacements:t.builtinPlacements,defaultActiveFirst:t.store.getState().defaultActiveFirst[fe(t.eventKey)],multiple:t.multiple,prefixCls:t.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:t.itemIcon,expandIcon:t.expandIcon,direction:t.direction}},r.getMotion=function(e,t){var n=Object(U["a"])(r),i=n.haveRendered,o=r.props,a=o.motion,s=o.rootPrefixCls,l=Object(d["a"])(Object(d["a"])({},a),{},{leavedClassName:"".concat(s,"-hidden"),removeOnLeave:!1,motionAppear:i||!t||"inline"!==e});return l};var i=e.store,o=e.eventKey,a=i.getState(),s=a.defaultActiveFirst;r.isRootMenu=!1;var l=!1;return s&&(l=s[o]),Be(i,o,l),r.state={mode:e.mode,isOpen:e.isOpen},r}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,i=t.manualRef,o=t.isOpen,a=function(){e.setState({mode:n,isOpen:o})},s=o!==this.state.isOpen,l=n!==this.state.mode;(l||s)&&(we["a"].cancel(this.updateStateRaf),l?this.updateStateRaf=Object(we["a"])(a):a()),i&&i(this),"horizontal"===n&&(null===r||void 0===r?void 0:r.isRootMenu)&&o&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),we["a"].cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return s["createElement"](ze,Object(R["a"])({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,r=t.visible,i=t.forceSubMenuRender,o=t.direction,a=this.getMotion(n,r);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||r||i,!this.haveOpened)return s["createElement"]("div",null);var c=f()("".concat(t.prefixCls,"-sub"),Object(l["a"])({},"".concat(t.prefixCls,"-rtl"),"rtl"===o));return this.isInlineMode()?s["createElement"](xe["b"],Object(R["a"])({visible:t.visible,forceRender:i},a),(function(t){var n=t.className,r=t.style,i=f()(c,n);return e.renderPopupMenu(i,r)})):this.renderPopupMenu(c)}},{key:"render",value:function(){var e,t,n,r=Object(d["a"])({},this.props),i=this.getVisible(),o=this.getPrefixCls(),a=this.isInlineMode(),c=this.getMode(),u=f()(o,"".concat(o,"-").concat(c),(e={},Object(l["a"])(e,r.className,!!r.className),Object(l["a"])(e,this.getOpenClassName(),i),Object(l["a"])(e,this.getActiveClassName(),r.active||i&&!a),Object(l["a"])(e,this.getDisabledClassName(),r.disabled),Object(l["a"])(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(r.eventKey?this.internalMenuId="".concat(r.eventKey,"$Menu"):(Ee+=1,this.internalMenuId="$__$".concat(Ee,"$Menu")));var h={},p={},A={};r.disabled||(h={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},p={onClick:this.onTitleClick},A={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var g={},m=r.direction,v="rtl"===m;a&&(v?g.paddingRight=r.inlineIndent*r.level:g.paddingLeft=r.inlineIndent*r.level);var y={};this.getVisible()&&(y={"aria-owns":this.internalMenuId});var b=null;"horizontal"!==c&&(b=this.props.expandIcon,"function"===typeof this.props.expandIcon&&(b=s["createElement"](this.props.expandIcon,Object(d["a"])({},this.props))));var _=s["createElement"]("div",Object(R["a"])({ref:this.saveSubMenuTitle,style:g,className:"".concat(o,"-title"),role:"button"},A,p,{"aria-expanded":i},y,{"aria-haspopup":"true",title:"string"===typeof r.title?r.title:void 0}),r.title,b||s["createElement"]("i",{className:"".concat(o,"-arrow")})),w=this.renderChildren(),x=(null===(t=r.parentMenu)||void 0===t?void 0:t.isRootMenu)?r.parentMenu.props.getPopupContainer:function(e){return e.parentNode},C=Oe[c],S=r.popupOffset?{offset:r.popupOffset}:{},k=f()((n={},Object(l["a"])(n,r.popupClassName,r.popupClassName&&!a),Object(l["a"])(n,"".concat(o,"-rtl"),v),n)),E=r.disabled,O=r.triggerSubMenuAction,B=r.subMenuOpenDelay,M=r.forceSubMenuRender,T=r.subMenuCloseDelay,I=r.builtinPlacements;ge.forEach((function(e){return delete r[e]})),delete r.onClick;var L=v?Object(d["a"])(Object(d["a"])({},ke),I):Object(d["a"])(Object(d["a"])({},Se),I);delete r.direction;var D=this.getBaseProps(),P=a?null:this.getMotion(D.mode,D.visible);return s["createElement"]("li",Object(R["a"])({},r,h,{className:u,role:"menuitem"}),s["createElement"](_e["a"],{prefixCls:o,popupClassName:f()("".concat(o,"-popup"),k),getPopupContainer:x,builtinPlacements:L,popupPlacement:C,popupVisible:!a&&i,popupAlign:S,popup:a?null:w,action:E||a?[]:[O],mouseEnterDelay:B,mouseLeaveDelay:T,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:M,popupMotion:P},_),a?w:null)}}]),n}(s["Component"]);Me.defaultProps={onMouseEnter:de,onMouseLeave:de,onTitleMouseEnter:de,onTitleMouseLeave:de,onTitleClick:de,manualRef:de,mode:"vertical",title:""};var Te=Object(H["b"])((function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,o=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(o)>-1,active:r[a]===o,selectedKeys:i}}))(Me);Te.isSubMenu=!0;var Ie=Te,Le="menuitem-overflowed",De=.5,Pe=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(){var e;return Object(y["a"])(this,n),e=t.apply(this,arguments),e.resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=s["createRef"](),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var i=e.props,o=i.overflowedIndicator,a=i.level,l=i.mode,c=i.prefixCls,h=i.theme;if(1!==a||"horizontal"!==l)return null;var f=e.props.children[0],p=f.props,A=(p.children,p.title,p.style),g=Object(u["a"])(p,["children","title","style"]),m=Object(d["a"])({},A),v="".concat(t,"-overflowed-indicator"),y="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?m=Object(d["a"])(Object(d["a"])({},m),{},{display:"none"}):r&&(m=Object(d["a"])(Object(d["a"])({},m),{},{visibility:"hidden",position:"absolute"}),v="".concat(v,"-placeholder"),y="".concat(y,"-placeholder"));var b=h?"".concat(c,"-").concat(h):"",_={};return ge.forEach((function(e){void 0!==g[e]&&(_[e]=g[e])})),s["createElement"](Ie,Object(R["a"])({title:o,className:"".concat(c,"-overflowed-submenu"),popupClassName:b},_,{key:v,eventKey:y,disabled:!1,style:m}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];ve(r,"display","inline-block");var i=e.getMenuItemNodes(),o=i.filter((function(e){return e.className.split(" ").indexOf(Le)>=0}));o.forEach((function(e){ve(e,"display","inline-block")})),e.menuItemSizes=i.map((function(e){return me(e,!0)})),o.forEach((function(e){ve(e,"display","none")})),e.overflowedIndicatorWidth=me(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ve(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=me(t);e.overflowedItems=[];var r,i=0;e.originalTotalWidth>n+De&&(r=-1,e.menuItemSizes.forEach((function(t){i+=t,i+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new k["default"]((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!==typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,i,o){var a=i;if("horizontal"===t.props.mode){var l=t.getOverflowedSubMenuItem(i.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(o>n&&(a=s["cloneElement"](i,{style:{display:"none"},eventKey:"".concat(i.props.eventKey,"-hidden"),className:"".concat(Le)})),o===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return s["cloneElement"](e,{key:e.props.eventKey,mode:"vertical-left"})})),l=t.getOverflowedSubMenuItem(i.props.eventKey,t.overflowedItems)));var c=[].concat(Object(g["a"])(r),[l,a]);return o===e.length-1&&c.push(t.getOverflowedSubMenuItem(i.props.eventKey,[],!0)),c}return[].concat(Object(g["a"])(r),[a])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(u["a"])(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),i=t;return s["createElement"](i,Object(R["a"])({ref:this.childRef},r),this.renderChildren(n))}}]),n}(s["Component"]);Pe.defaultProps={tag:"div",className:""};var Ne=Pe;function je(e){return!e.length||e.every((function(e){return!!e.props.disabled}))}function Fe(e,t,n){var r=e.getState();e.setState({activeKey:Object(d["a"])(Object(d["a"])({},r.activeKey),{},Object(l["a"])({},t,n))})}function Re(e){return e.eventKey||"0-menu-"}function Ue(e,t){var n,r=t,i=e.children,o=e.eventKey;if(r&&(pe(i,(function(e,t){e&&e.props&&!e.props.disabled&&r===he(e,o,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?(pe(i,(function(e,t){r||!e||e.props.disabled||(r=he(e,o,t))})),r):r}function He(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var Qe=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(e){var r;return Object(y["a"])(this,n),r=t.call(this,e),r.onKeyDown=function(e,t){var n,i=e.keyCode;if(r.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var o=null;return i!==I["a"].UP&&i!==I["a"].DOWN||(o=r.step(i===I["a"].UP?-1:1)),o?(e.preventDefault(),Fe(r.props.store,Re(r.props),o.props.eventKey),"function"===typeof t&&t(o),1):void 0},r.onItemHover=function(e){var t=e.key,n=e.hover;Fe(r.props.store,Re(r.props),n?t:null)},r.onDeselect=function(e){r.props.onDeselect(e)},r.onSelect=function(e){r.props.onSelect(e)},r.onClick=function(e){r.props.onClick(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onDestroy=function(e){r.props.onDestroy(e)},r.getFlatInstanceArray=function(){return r.instanceArray},r.step=function(e){var t=r.getFlatInstanceArray(),n=r.props.store.getState().activeKey[Re(r.props)],i=t.length;if(!i)return null;e<0&&(t=t.concat().reverse());var o=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(o=t,!1)})),r.props.defaultActiveFirst||-1===o||!je(t.slice(o,i-1))){var a=(o+1)%i,s=a;do{var l=t[s];if(l&&!l.props.disabled)return l;s=(s+1)%i}while(s!==a);return null}},r.renderCommonMenuItem=function(e,t,n){var i=r.props.store.getState(),o=Object(U["a"])(r),a=o.props,l=he(e,a.eventKey,t),c=e.props;if(!c||"string"===typeof e.type)return e;var u=l===i.activeKey,h=Object(d["a"])(Object(d["a"])({mode:c.mode||a.mode,level:a.level,inlineIndent:a.inlineIndent,renderMenuItem:r.renderMenuItem,rootPrefixCls:a.prefixCls,index:t,parentMenu:a.parentMenu,manualRef:c.disabled?void 0:Object(K["a"])(e.ref,He.bind(Object(U["a"])(r))),eventKey:l,active:!c.disabled&&u,multiple:a.multiple,onClick:function(e){(c.onClick||de)(e),r.onClick(e)},onItemHover:r.onItemHover,motion:a.motion,subMenuOpenDelay:a.subMenuOpenDelay,subMenuCloseDelay:a.subMenuCloseDelay,forceSubMenuRender:a.forceSubMenuRender,onOpenChange:r.onOpenChange,onDeselect:r.onDeselect,onSelect:r.onSelect,builtinPlacements:a.builtinPlacements,itemIcon:c.itemIcon||r.props.itemIcon,expandIcon:c.expandIcon||r.props.expandIcon},n),{},{direction:a.direction});return("inline"===a.mode||ye())&&(h.triggerSubMenuAction="click"),s["cloneElement"](e,Object(d["a"])(Object(d["a"])({},h),{},{key:l||t}))},r.renderMenuItem=function(e,t,n){if(!e)return null;var i=r.props.store.getState(),o={openKeys:i.openKeys,selectedKeys:i.selectedKeys,triggerSubMenuAction:r.props.triggerSubMenuAction,subMenuKey:n};return r.renderCommonMenuItem(e,t,o)},e.store.setState({activeKey:Object(d["a"])(Object(d["a"])({},e.store.getState().activeKey),{},Object(l["a"])({},e.eventKey,Ue(e,e.activeKey)))}),r.instanceArray=[],r}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!V()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Re(t)],r=Ue(t,n);if(r!==n)Fe(t.store,Re(t),r);else if("activeKey"in e){var i=Ue(e,e.activeKey);r!==i&&Fe(t.store,Re(t),r)}}},{key:"render",value:function(){var e=this,t=Object(R["a"])({},this.props);this.instanceArray=[];var n=f()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),r={className:n,role:t.role||"menu"};t.id&&(r.id=t.id),t.focusable&&(r.tabIndex=0,r.onKeyDown=this.onKeyDown);var i=t.prefixCls,o=t.eventKey,a=t.visible,l=t.level,c=t.mode,u=t.overflowedIndicator,d=t.theme;return ge.forEach((function(e){return delete t[e]})),delete t.onClick,s["createElement"](Ne,Object(R["a"])({},t,{prefixCls:i,mode:c,tag:"ul",level:l,theme:d,visible:a,overflowedIndicator:u},r),Object(p["a"])(t.children).map((function(t,n){return e.renderMenuItem(t,n,o||"0-menu-")})))}}]),n}(s["Component"]);Qe.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:de};var Ke=Object(H["b"])()(Qe),ze=Ke;function Ve(e,t,n){var r=e.prefixCls,i=e.motion,o=e.defaultMotions,a=void 0===o?{}:o,s=e.openAnimation,l=e.openTransitionName,c=t.switchingModeFromInline;if(i)return i;if("object"===Object(W["a"])(s)&&s)Object(C["a"])(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"===typeof s)return{motionName:"".concat(r,"-open-").concat(s)};if(l)return{motionName:l};var u=a[n];return u||(c?null:a.other)}var We=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(e){var r;Object(y["a"])(this,n),r=t.call(this,e),r.onSelect=function(e){var t=Object(U["a"])(r),n=t.props;if(n.selectable){var i=r.store.getState(),o=i.selectedKeys,a=e.key;o=n.multiple?o.concat([a]):[a],"selectedKeys"in n||r.store.setState({selectedKeys:o}),n.onSelect(Object(d["a"])(Object(d["a"])({},e),{},{selectedKeys:o}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(U["a"])(r),i=n.store,o=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(i.setState({openKeys:[]}),o([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(U["a"])(r),n=t.props,i=r.store.getState().openKeys.concat(),o=!1,a=function(e){var t=!1;if(e.open)t=-1===i.indexOf(e.key),t&&i.push(e.key);else{var n=i.indexOf(e.key);t=-1!==n,t&&i.splice(n,1)}o=o||t};Array.isArray(e)?e.forEach(a):a(e),o&&("openKeys"in r.props||r.store.setState({openKeys:i}),n.onOpenChange(i))},r.onDeselect=function(e){var t=Object(U["a"])(r),n=t.props;if(n.selectable){var i=r.store.getState().selectedKeys.concat(),o=e.key,a=i.indexOf(o);-1!==a&&i.splice(a,1),"selectedKeys"in n||r.store.setState({selectedKeys:i}),n.onDeselect(Object(d["a"])(Object(d["a"])({},e),{},{selectedKeys:i}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,i="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,o="font-size"===e.propertyName&&i.indexOf("anticon")>=0;(t||o)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var i=e.defaultSelectedKeys,o=e.defaultOpenKeys;return"selectedKeys"in e&&(i=e.selectedKeys||[]),"openKeys"in e&&(o=e.openKeys||[]),r.store=Object(H["c"])({selectedKeys:i,openKeys:o,activeKey:{"0-menu-":Ue(e,e.activeKey)}}),r.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:r.store},r}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,i=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&i([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys,r=this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e);r?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(d["a"])({},Object(Q["a"])(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),e=Object(d["a"])(Object(d["a"])({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ve(this.props,this.state,t)}),delete e.openAnimation,delete e.openTransitionName,s["createElement"](H["a"],{store:this.store},s["createElement"](ze,Object(R["a"])({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.store,i=r.getState(),o={},a={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(a.switchingModeFromInline=!0),"openKeys"in e?o.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(a.switchingModeFromInline=!0,a.inlineOpenKeys=i.openKeys,o.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(o.openKeys=t.inlineOpenKeys,a.inlineOpenKeys=[])),Object.keys(o).length&&r.setState(o),a}}]),n}(s["Component"]);We.defaultProps={selectable:!0,onClick:de,onSelect:de,onOpenChange:de,onDeselect:de,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:s["createElement"]("span",null,"\xb7\xb7\xb7")};var Ge=We,Xe=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(){var e;return Object(y["a"])(this,n),e=t.apply(this,arguments),e.onKeyDown=function(t){var n=t.keyCode;if(n===I["a"].ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,o=n.onMouseLeave;i({key:r,hover:!1}),o({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,i=n.onItemHover,o=n.onMouseEnter;i({key:r,hover:!0}),o({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,i=n.multiple,o=n.onClick,a=n.onSelect,s=n.onDeselect,l=n.isSelected,c={key:r,keyPath:[r],item:Object(U["a"])(e),domEvent:t};o(c),i?l?s(c):a(c):l||a(c)},e.saveNode=function(t){e.node=t},e}return Object(b["a"])(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(d["a"])({},this.props),n=f()(this.getPrefixCls(),t.className,(e={},Object(l["a"])(e,this.getActiveClassName(),!t.disabled&&t.active),Object(l["a"])(e,this.getSelectedClassName(),t.isSelected),Object(l["a"])(e,this.getDisabledClassName(),t.disabled),e)),r=Object(d["a"])(Object(d["a"])({},t.attribute),{},{title:"string"===typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?r=Object(d["a"])(Object(d["a"])({},r),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(r.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},o=Object(d["a"])({},t.style);"inline"===t.mode&&("rtl"===t.direction?o.paddingRight=t.inlineIndent*t.level:o.paddingLeft=t.inlineIndent*t.level),ge.forEach((function(e){return delete t[e]})),delete t.direction;var a=this.props.itemIcon;return"function"===typeof this.props.itemIcon&&(a=s["createElement"](this.props.itemIcon,this.props)),s["createElement"]("li",Object(R["a"])({},Object(Q["a"])(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),r,i,{style:o,ref:this.saveNode}),t.children,a)}}]),n}(s["Component"]);Xe.isMenuItem=!0,Xe.defaultProps={onSelect:de,onMouseEnter:de,onMouseLeave:de,manualRef:de};var qe=Object(H["b"])((function(e,t){var n=e.activeKey,r=e.selectedKeys,i=t.eventKey,o=t.subMenuKey;return{active:n[o]===i,isSelected:Array.isArray(r)?-1!==r.indexOf(i):r===i}}))(Xe),Ye=qe,Ze=function(e){Object(_["a"])(n,e);var t=Object(w["a"])(n);function n(){var e;return Object(y["a"])(this,n),e=t.apply(this,arguments),e.renderInnerMenuItem=function(t){var n=e.props,r=n.renderMenuItem,i=n.index;return r(t,i,e.props.subMenuKey)},e}return Object(b["a"])(n,[{key:"render",value:function(){var e=Object(R["a"])({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,i="".concat(r,"-item-group-title"),o="".concat(r,"-item-group-list"),a=e.title,l=e.children;return ge.forEach((function(t){return delete e[t]})),delete e.direction,s["createElement"]("li",Object(R["a"])({},e,{onClick:function(e){return e.stopPropagation()},className:"".concat(n," ").concat(r,"-item-group")}),s["createElement"]("div",{className:i,title:"string"===typeof a?a:void 0},a),s["createElement"]("ul",{className:o},s["Children"].map(l,this.renderInnerMenuItem)))}}]),n}(s["Component"]);Ze.isMenuItemGroup=!0,Ze.defaultProps={disabled:!0};var Je=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return s["createElement"]("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Je.defaultProps={disabled:!0,className:"",style:{}};var $e=Ge,et={adjustX:1,adjustY:1},tt=[0,0],nt={topLeft:{points:["bl","tl"],overflow:et,offset:[0,-4],targetOffset:tt},topCenter:{points:["bc","tc"],overflow:et,offset:[0,-4],targetOffset:tt},topRight:{points:["br","tr"],overflow:et,offset:[0,-4],targetOffset:tt},bottomLeft:{points:["tl","bl"],overflow:et,offset:[0,4],targetOffset:tt},bottomCenter:{points:["tc","bc"],overflow:et,offset:[0,4],targetOffset:tt},bottomRight:{points:["tr","br"],overflow:et,offset:[0,4],targetOffset:tt}},rt=nt,it=I["a"].ESC,ot=I["a"].TAB;function at(e){var t=e.visible,n=e.setTriggerVisible,r=e.triggerRef,i=e.menuRef,o=e.onVisibleChange,a=e.autoFocus,l=s["useRef"](!1),c=function(){var e,i,a,s;t&&r.current&&(null===(e=r.current)||void 0===e||null===(i=e.triggerRef)||void 0===i||null===(a=i.current)||void 0===a||null===(s=a.focus)||void 0===s||s.call(a),n(!1),"function"===typeof o&&o(!1))},u=function(){var e,t;null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),l.current=!0},d=function(e){var t;switch(e.keyCode){case it:c();break;case ot:!l.current&&(null===(t=i.current)||void 0===t?void 0:t.focus)?(e.preventDefault(),u()):c();break}};s["useEffect"]((function(){return t?(window.addEventListener("keydown",d),a&&Object(we["a"])(u,3),function(){window.removeEventListener("keydown",d),l.current=!1}):function(){l.current=!1}}),[t])}var st=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function lt(e,t){var n=e.arrow,r=void 0!==n&&n,i=e.prefixCls,o=void 0===i?"rc-dropdown":i,a=e.transitionName,h=e.animation,p=e.align,A=e.placement,g=void 0===A?"bottomLeft":A,m=e.placements,v=void 0===m?rt:m,y=e.getPopupContainer,b=e.showAction,_=e.hideAction,w=e.overlayClassName,x=e.overlayStyle,C=e.visible,k=e.trigger,E=void 0===k?["hover"]:k,O=e.autoFocus,B=Object(u["a"])(e,st),M=s["useState"](),T=Object(c["a"])(M,2),I=T[0],L=T[1],D="visible"in e?C:I,P=s["useRef"](null);s["useImperativeHandle"](t,(function(){return P.current}));var N=s["useRef"](null),j="".concat(o,"-menu");at({visible:D,setTriggerVisible:L,triggerRef:P,menuRef:N,onVisibleChange:e.onVisibleChange,autoFocus:O});var F=function(){var t,n=e.overlay;return t="function"===typeof n?n():n,t},R=function(t){var n=e.onOverlayClick,r=F().props;L(!1),n&&n(t),r.onClick&&r.onClick(t)},U=function(t){var n=e.onVisibleChange;L(t),"function"===typeof n&&n(t)},H=function(){var e,t=F(),n=Object(S["a"])(N,t.ref),i=(e={prefixCls:j},Object(l["a"])(e,"data-dropdown-inject",!0),Object(l["a"])(e,"onClick",R),Object(l["a"])(e,"ref",Object(S["c"])(t)?n:void 0),e);return"string"===typeof t.type&&(delete i.prefixCls,delete i["data-dropdown-inject"]),s["createElement"](s["Fragment"],null,r&&s["createElement"]("div",{className:"".concat(o,"-arrow")}),s["cloneElement"](t,i))},Q=function(){var t=e.overlay;return"function"===typeof t?H:H()},K=function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n},z=function(){var t=e.openClassName;return void 0!==t?t:"".concat(o,"-open")},V=function(){var t=e.children,n=t.props?t.props:{},r=f()(n.className,z());return D&&t?s["cloneElement"](t,{className:r}):t},W=_;return W||-1===E.indexOf("contextMenu")||(W=["click"]),s["createElement"](_e["a"],Object(d["a"])(Object(d["a"])({builtinPlacements:v},B),{},{prefixCls:o,ref:P,popupClassName:f()(w,Object(l["a"])({},"".concat(o,"-show-arrow"),r)),popupStyle:x,action:E,showAction:b,hideAction:W||[],popupPlacement:g,popupAlign:p,popupTransitionName:a,popupAnimation:h,popupVisible:D,stretch:K()?"minWidth":"",popup:Q(),onPopupVisibleChange:U,getPopupContainer:y}),V())}var ct=s["forwardRef"](lt),ut=ct;function dt(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return r&&!1!==r.showAdd?s["createElement"]("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}var ht=s["forwardRef"](dt);function ft(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,u=e.moreIcon,d=void 0===u?"More":u,h=e.moreTransitionName,p=e.style,A=e.className,g=e.editable,m=e.tabBarGutter,v=e.rtl,y=e.onTabClick,b=Object(s["useState"])(!1),_=Object(c["a"])(b,2),w=_[0],x=_[1],C=Object(s["useState"])(null),S=Object(c["a"])(C,2),k=S[0],E=S[1],O="".concat(r,"-more-popup"),B="".concat(n,"-dropdown"),M=null!==k?"".concat(O,"-").concat(k):null,T=null===o||void 0===o?void 0:o.dropdownAriaLabel,L=s["createElement"]($e,{onClick:function(e){var t=e.key,n=e.domEvent;y(t,n),x(!1)},id:O,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[k],"aria-label":void 0!==T?T:"expanded dropdown"},i.map((function(e){return s["createElement"](Ye,{key:e.key,id:"".concat(O,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function D(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===k}))||0,r=t.length,o=0;oa?(i=n,k.current="x"):(i=r,k.current="y");var s=Date.now();s-C.current>100&&(S.current=!1),(t(-i,-i)||S.current)&&(e.preventDefault(),S.current=!0),C.current=s}var O=Object(s["useRef"])(null);O.current={onTouchStart:_,onTouchMove:w,onTouchEnd:x,onWheel:E},s["useEffect"]((function(){function t(e){O.current.onTouchStart(e)}function n(e){O.current.onTouchMove(e)}function r(e){O.current.onTouchEnd(e)}function i(e){O.current.onWheel(e)}return document.addEventListener("touchmove",n,{passive:!1}),document.addEventListener("touchend",r,{passive:!1}),e.current.addEventListener("touchstart",t,{passive:!1}),e.current.addEventListener("wheel",i),function(){document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r)}}),[])}function wt(){var e=Object(s["useRef"])(new Map);function t(t){return e.current.has(t)||e.current.set(t,s["createRef"]()),e.current.get(t)}function n(t){e.current["delete"](t)}return[t,n]}function xt(e,t){var n=s["useRef"](e),r=s["useState"]({}),i=Object(c["a"])(r,2),o=i[1];function a(e){var r="function"===typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}return[n.current,a]}var Ct=function(e){var t,n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o=i;return"right"===n&&(t=o.right||!o.left&&o||null),"left"===n&&(t=o.left||null),t?s["createElement"]("div",{className:"".concat(r,"-extra-content")},t):null};function St(e,t){var n,r=s["useContext"](At),i=r.prefixCls,o=r.tabs,a=e.className,u=e.style,h=e.id,p=e.animated,A=e.activeKey,m=e.rtl,y=e.extra,b=e.editable,_=e.locale,w=e.tabPosition,x=e.tabBarGutter,C=e.children,S=e.onTabClick,k=e.onTabScroll,E=Object(s["useRef"])(),O=Object(s["useRef"])(),I=Object(s["useRef"])(),L=Object(s["useRef"])(),P=wt(),j=Object(c["a"])(P,2),R=j[0],U=j[1],H="top"===w||"bottom"===w,Q=xt(0,(function(e,t){H&&k&&k({direction:e>t?"left":"right"})})),K=Object(c["a"])(Q,2),z=K[0],V=K[1],W=xt(0,(function(e,t){!H&&k&&k({direction:e>t?"top":"bottom"})})),G=Object(c["a"])(W,2),X=G[0],q=G[1],Y=Object(s["useState"])(0),Z=Object(c["a"])(Y,2),J=Z[0],$=Z[1],ee=Object(s["useState"])(0),te=Object(c["a"])(ee,2),ne=te[0],re=te[1],ie=Object(s["useState"])(0),oe=Object(c["a"])(ie,2),ae=oe[0],se=oe[1],le=Object(s["useState"])(0),ce=Object(c["a"])(le,2),ue=ce[0],de=ce[1],he=Object(s["useState"])(null),fe=Object(c["a"])(he,2),pe=fe[0],Ae=fe[1],ge=Object(s["useState"])(null),me=Object(c["a"])(ge,2),ve=me[0],ye=me[1],be=Object(s["useState"])(0),_e=Object(c["a"])(be,2),we=_e[0],xe=_e[1],Ce=Object(s["useState"])(0),Se=Object(c["a"])(Ce,2),ke=Se[0],Ee=Se[1],Oe=T(new Map),Be=Object(c["a"])(Oe,2),Me=Be[0],Te=Be[1],Ie=N(o,Me,J),Le="".concat(i,"-nav-operations-hidden"),De=0,Pe=0;function Ne(e){return ePe?[Pe,!1]:[e,!0]}H?m?(De=0,Pe=Math.max(0,J-pe)):(De=Math.min(0,pe-J),Pe=0):(De=Math.min(0,ve-ne),Pe=0);var je=Object(s["useRef"])(),Fe=Object(s["useState"])(),Re=Object(c["a"])(Fe,2),Ue=Re[0],He=Re[1];function Qe(){He(Date.now())}function Ke(){window.clearTimeout(je.current)}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=Ie.get(e);if(t)if(H){var n=z;m?t.rightz+pe&&(n=t.right+t.width-pe):t.left<-z?n=-t.left:t.left+t.width>-z+pe&&(n=-(t.left+t.width-pe)),q(0),V(Ne(n)[0])}else{var r=X;t.top<-X?r=-t.top:t.top+t.height>-X+ve&&(r=-(t.top+t.height-ve)),V(0),q(Ne(r)[0])}}_t(E,(function(e,t){var n=!1;function r(e,t){e((function(e){var r=Ne(e+t),i=Object(c["a"])(r,2),o=i[0],a=i[1];return n=a,o}))}if(H){if(pe>=J)return n;r(V,e)}else{if(ve>=ne)return n;r(q,t)}return Ke(),Qe(),n})),Object(s["useEffect"])((function(){return Ke(),Ue&&(je.current=window.setTimeout((function(){He(0)}),100)),Ke}),[Ue]);var Ve=F(Ie,{width:pe,height:ve,left:z,top:X},{width:ae,height:ue},{width:we,height:ke},Object(d["a"])(Object(d["a"])({},e),{},{tabs:o})),We=Object(c["a"])(Ve,2),Ge=We[0],Xe=We[1],qe=o.map((function(e){var t=e.key;return s["createElement"](D,{id:h,prefixCls:i,key:t,rtl:m,tab:e,closable:e.closable,editable:b,active:t===A,tabPosition:w,tabBarGutter:x,renderWrapper:C,removeAriaLabel:null===_||void 0===_?void 0:_.removeAriaLabel,ref:R(t),onClick:function(e){S(t,e)},onRemove:function(){U(t)},onFocus:function(){ze(t),Qe(),m||(E.current.scrollLeft=0),E.current.scrollTop=0}})})),Ye=M((function(){var e,t,n,r,i,a,s,l,c,u=(null===(e=E.current)||void 0===e?void 0:e.offsetWidth)||0,d=(null===(t=E.current)||void 0===t?void 0:t.offsetHeight)||0,h=(null===(n=L.current)||void 0===n?void 0:n.offsetWidth)||0,f=(null===(r=L.current)||void 0===r?void 0:r.offsetHeight)||0,p=(null===(i=I.current)||void 0===i?void 0:i.offsetWidth)||0,A=(null===(a=I.current)||void 0===a?void 0:a.offsetHeight)||0;Ae(u),ye(d),xe(h),Ee(f);var g=((null===(s=O.current)||void 0===s?void 0:s.offsetWidth)||0)-h,m=((null===(l=O.current)||void 0===l?void 0:l.offsetHeight)||0)-f;$(g),re(m);var v=null===(c=I.current)||void 0===c?void 0:c.className.includes(Le);se(g-(v?0:p)),de(m-(v?0:A)),Te((function(){var e=new Map;return o.forEach((function(t){var n=t.key,r=R(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Ze=o.slice(0,Ge),Je=o.slice(Xe+1),$e=[].concat(Object(g["a"])(Ze),Object(g["a"])(Je)),et=Object(s["useState"])(),tt=Object(c["a"])(et,2),nt=tt[0],rt=tt[1],it=Ie.get(A),ot=Object(s["useRef"])();function at(){v.a.cancel(ot.current)}Object(s["useEffect"])((function(){var e={};return it&&(H?(m?e.right=it.right:e.left=it.left,e.width=it.width):(e.top=it.top,e.height=it.height)),at(),ot.current=v()((function(){rt(e)})),at}),[it,H,m]),Object(s["useEffect"])((function(){ze()}),[A,it,Ie,H]),Object(s["useEffect"])((function(){Ye()}),[m,x,A,o.map((function(e){return e.key})).join("_")]);var st,lt,ct,ut,dt=!!$e.length,ft="".concat(i,"-nav-wrap");return H?m?(lt=z>0,st=z+pe0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),L=function(e){h()(n,e);var t=p()(n);function n(e){var r,o,s;return l()(this,n),r=t.call(this,e),r.responsiveHandler=function(e){r.setState({below:e.matches});var t=r.props.onBreakpoint,n=r.state.collapsed;t&&t(e.matches),n!==e.matches&&r.setCollapsed(e.matches,"responsive")},r.setCollapsed=function(e,t){"collapsed"in r.props||r.setState({collapsed:e});var n=r.props.onCollapse;n&&n(e,t)},r.toggle=function(){var e=!r.state.collapsed;r.setCollapsed(e,"clickTrigger")},r.renderSider=function(e){var t,n=e.getPrefixCls,o=r.props,s=o.prefixCls,l=o.className,c=o.theme,u=o.collapsible,d=o.reverseArrow,h=o.trigger,f=o.style,p=o.width,g=o.collapsedWidth,y=o.zeroWidthTriggerStyle,_=o.children,x=B(o,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),S=r.state,k=S.collapsed,E=S.below,M=n("layout-sider",s),T=Object(v["default"])(x,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),I=k?g:p,L=O(I)?"".concat(I,"px"):String(I),D=0===parseFloat(String(g||0))?A["createElement"]("span",{onClick:r.toggle,className:m()("".concat(M,"-zero-width-trigger"),"".concat(M,"-zero-width-trigger-").concat(d?"right":"left")),style:y},h||A["createElement"](b.a,null)):null,P={expanded:d?A["createElement"](w.a,null):A["createElement"](C.a,null),collapsed:d?A["createElement"](C.a,null):A["createElement"](w.a,null)},N=k?"collapsed":"expanded",j=P[N],F=null!==h?D||A["createElement"]("div",{className:"".concat(M,"-trigger"),onClick:r.toggle,style:{width:L}},h||j):null,R=a()(a()({},f),{flex:"0 0 ".concat(L),maxWidth:L,minWidth:L,width:L}),U=m()(l,M,"".concat(M,"-").concat(c),(t={},i()(t,"".concat(M,"-collapsed"),!!k),i()(t,"".concat(M,"-has-trigger"),u&&null!==h&&!D),i()(t,"".concat(M,"-below"),!!E),i()(t,"".concat(M,"-zero-width"),0===parseFloat(L)),t));return A["createElement"]("aside",a()({className:U},T,{style:R}),A["createElement"]("div",{className:"".concat(M,"-children")},_),u||E&&D?F:null)},r.uniqueId=I("ant-sider-"),"undefined"!==typeof window&&(o=window.matchMedia),o&&e.breakpoint&&e.breakpoint in M&&(r.mql=o("(max-width: ".concat(M[e.breakpoint],")"))),s="collapsed"in e?e.collapsed:e.defaultCollapsed,r.state={collapsed:s,below:!1},r}return u()(n,[{key:"componentDidMount",value:function(){var e;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),null===(e=this.props)||void 0===e||e.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var e,t;null===(e=null===this||void 0===this?void 0:this.mql)||void 0===e||e.removeListener(this.responsiveHandler),null===(t=this.props)||void 0===t||t.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return A["createElement"](T.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},A["createElement"](k["a"],null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),n}(A["Component"]);L.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var D=function(e){h()(n,e);var t=p()(n);function n(){return l()(this,n),t.apply(this,arguments)}return u()(n,[{key:"render",value:function(){var e=this;return A["createElement"](S["a"].Consumer,null,(function(t){return A["createElement"](L,a()({},t,e.props))}))}}]),n}(A["Component"])},ZYIC:function(e,t,n){var r=n("zM3Q"),i={seriesType:"lines",plan:r(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),r=e.pipelineContext.large;function i(i,o){var a=[];if(r){var s,l=i.end-i.start;if(n){for(var c=0,u=i.start;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function d(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var d=e[u].getBoundingClientRect(),h=2*u,f=d.left,p=d.top;l.push(f,p),s=s&&a&&f===a[h]&&p===a[h+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return s&&i?i:(t.srcCoords=l,t[r]=n?o(c,l):o(l,c))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=h},Znkb:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("ProS")),o=n("zTMp"),a=i.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,r){this.axisPointerClass&&o.fixValue(e),a.superApply(this,"render",arguments),s(this,e,t,n,r,!0)},updateAxisPointer:function(e,t,n,r,i){s(this,e,t,n,r,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),a.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),a.superApply(this,"dispose",arguments)}});function s(e,t,n,r,i,s){var c=a.getAxisPointerClass(e.axisPointerClass);if(c){var u=o.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,r,s):l(e,r)}}function l(e,t,n){var r=e._axisPointer;r&&r.dispose(t,n),e._axisPointer=null}var c=[];a.registerAxisPointerClass=function(e,t){c[e]=t},a.getAxisPointerClass=function(e){return e&&c[e]};var u=a;e.exports=u},"Znn+":function(e,t,n){"use strict";n("cIOH"),n("9ama")},ZqQs:function(e,t,n){var r=n("bYtY");function i(e){var t=e&&e.timeline;r.isArray(t)||(t=t?[t]:[]),r.each(t,(function(e){e&&o(e)}))}function o(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),a(e),s(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});s(i,"position")||(i.position=e.controlPosition),"none"!==i.position||s(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}r.each(e.data||[],(function(e){r.isObject(e)&&!r.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),a(e))}))}function a(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},o=i.normal||(i.normal={}),a={normal:1,emphasis:1};r.each(i,(function(e,t){a[t]||s(o,t)||(o[t]=e)})),n.label&&!s(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=i},Zvw2:function(e,t,n){var r=n("bYtY"),i=n("hM6l"),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(o,i);var a=o;e.exports=a},a7Wl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={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"};t.default=r},a9QJ:function(e,t){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function r(e,t){if("world"===e){var r=n[t.name];if(r){var i=t.center;i[0]=r[0],i[1]=r[1]}}}e.exports=r},aCH8:function(e,t,n){(function(){var t=n("ANhw"),r=n("mmNF").utf8,i=n("BEtg"),o=n("mmNF").bin,a=function e(n,a){n.constructor==String?n=a&&"binary"===a.encoding?o.stringToBytes(n):r.stringToBytes(n):i(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||n.constructor===Uint8Array||(n=n.toString());for(var s=t.bytesToWords(n),l=8*n.length,c=1732584193,u=-271733879,d=-1732584194,h=271733878,f=0;f>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[l>>>5]|=128<>>9<<4)]=l;var p=e._ff,A=e._gg,g=e._hh,m=e._ii;for(f=0;f>>0,u=u+y>>>0,d=d+b>>>0,h=h+_>>>0}return t.endian([c,u,d,h])};a._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}})()},aHsQ:function(e,t,n){"use strict";n("cIOH"),n("6D9b")},aKvl:function(e,t,n){var r=n("Sj9i"),i=r.quadraticProjectPoint;function o(e,t,n,r,o,a,s,l,c){if(0===s)return!1;var u=s;if(c>t+u&&c>r+u&&c>a+u||ce+u&&l>n+u&&l>o+u||l0&&c>0&&!f&&(s=0),s<0&&c<0&&!p&&(c=0));var g=t.ecModel;if(g&&"time"===a){var m,v=u("bar",g);if(i.each(v,(function(e){m|=e.getBaseAxis()===t.axis})),m){var y=d(v),b=A(s,c,t,y);s=b.min,c=b.max}}return{extent:[s,c],fixMin:f,fixMax:p}}function A(e,t,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],s=h(r,n.axis);if(void 0===s)return{min:e,max:t};var l=1/0;i.each(s,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;i.each(s,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,d=t-e,f=1-(l+c)/a,p=d/f-d;return t+=p*(c/u),e-=p*(l/u),{min:e,max:t}}function g(e,t){var n=p(e,t),r=n.extent,i=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)}function m(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new o(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(t)||a).create(e)}}function v(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function y(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}}(t),t):"function"===typeof t?function(r,i){return null!=n&&(i=r-n),t(b(e,r),i)}:function(t){return e.scale.getLabel(t)}}function b(e,t){return"category"===e.type?e.scale.getLabel(t):t}function _(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var r,i,o="category"===e.type,a=n.getExtent();o?i=n.count():(r=n.getTicks(),i=r.length);var s,l=e.getLabelModel(),c=y(e),u=1;i>40&&(u=Math.ceil(i/40));for(var d=0;dn.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},v.getPipeline=function(e){return this._pipelineMap.get(e)},v.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},v.restorePipelines=function(e){var t=this,n=t._pipelineMap=s();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),I(t,e,e.dataTask)}))},v.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;i(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,[]);r.reset&&_(this,r,i,t,n),r.overallReset&&w(this,r,i,t,n)}),this)},v.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,I(this,t,i)},v.performDataProcessorTasks=function(e,t){y(this,this._dataProcessorHandlers,e,t,{block:!0})},v.performVisualTasks=function(e,t,n){y(this,this._visualHandlers,e,t,n)},v.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},v.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)}))};var b=v.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function _(e,t,n,r,i){var o=n.seriesTaskMap||(n.seriesTaskMap=s()),a=t.seriesType,l=t.getTargetSeries;function c(n){var a=n.uid,s=o.get(a)||o.set(a,u({plan:E,reset:O,count:T}));s.context={model:n,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},I(e,n,s)}t.createOnAllSeries?r.eachRawSeries(c):a?r.eachRawSeriesByType(a,c):l&&l(r,i).each(c);var d=e._pipelineMap;o.each((function(e,t){d.get(t)||(e.dispose(),o.removeKey(t))}))}function w(e,t,n,r,o){var a=n.overallTask=n.overallTask||u({reset:x});a.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:e};var l=a.agentStubMap=a.agentStubMap||s(),c=t.seriesType,d=t.getTargetSeries,h=!0,f=t.modifyOutputEnd;function p(t){var n=t.uid,r=l.get(n);r||(r=l.set(n,u({reset:C,onDirty:k})),a.dirty()),r.context={model:t,overallProgress:h,modifyOutputEnd:f},r.agent=a,r.__block=h,I(e,t,r)}c?r.eachRawSeriesByType(c,p):d?d(r,o).each(p):(h=!1,i(r.getSeries(),p));var A=e._pipelineMap;l.each((function(e,t){A.get(t)||(e.dispose(),a.dirty(),l.removeKey(t))}))}function x(e){e.overallReset(e.ecModel,e.api,e.payload)}function C(e,t){return e.overallProgress&&S}function S(){this.agent.dirty(),this.getDownstream().dirty()}function k(){this.agent&&this.agent.dirty()}function E(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function O(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=g(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?o(t,(function(e,t){return M(t)})):B}var B=M(0);function M(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o=0;l--)if(r[l]<=t)break;l=Math.min(l,i-2)}else{for(var l=o;lt)break;l=Math.min(l-1,i-2)}a.lerp(e.position,n[l],n[l+1],(t-r[l])/(r[l+1]-r[l]));var c=n[l+1][0]-n[l][0],u=n[l+1][1]-n[l][1];e.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},i.inherits(s,o);var c=s;e.exports=c},apAg:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("bsht")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="SearchOutlined";var h=a.forwardRef(d);t.default=h},as94:function(e,t,n){var r=n("7aKB"),i=n("3LNs"),o=n("IwbS"),a=n("/y7N"),s=n("Fofx"),l=n("+rIm"),c=n("Znkb"),u=i.extend({makeElOption:function(e,t,n,i,o){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,c=s.polar,u=c.getOtherAxis(s),f=u.getExtent();l=s["dataTo"+r.capitalFirst(s.dim)](t);var p=i.get("type");if(p&&"none"!==p){var A=a.buildElStyle(i),g=h[p](s,c,l,f,A);g.style=A,e.graphicKey=g.type,e.pointer=g}var m=i.get("label.margin"),v=d(t,n,i,c,m);a.buildLabelElOption(e,n,i,o,v)}});function d(e,t,n,r,i){var a=t.axis,c=a.dataToCoord(e),u=r.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var d,h,f,p=r.getRadiusAxis().getExtent();if("radius"===a.dim){var A=s.create();s.rotate(A,A,u),s.translate(A,A,[r.cx,r.cy]),d=o.applyTransform([c,-i],A);var g=t.getModel("axisLabel").get("rotate")||0,m=l.innerTextLayout(u,g*Math.PI/180,-1);h=m.textAlign,f=m.textVerticalAlign}else{var v=p[1];d=r.coordToPoint([v+i,c]);var y=r.cx,b=r.cy;h=Math.abs(d[0]-y)/v<.3?"center":d[0]>y?"left":"right",f=Math.abs(d[1]-b)/v<.3?"middle":d[1]>b?"top":"bottom"}return{position:d,align:h,verticalAlign:f}}var h={line:function(e,t,n,r,i){return"angle"===e.dim?{type:"Line",shape:a.makeLineShape(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,i){var o=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,r[0],r[1],(-n-o/2)*s,(o/2-n)*s)}:{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",u);var f=u;e.exports=f},b56q:function(e,t,n){},b80T:function(e,t,n){var r=n("UNi/"),i=n("03A+"),o=n("Z0cm"),a=n("DSRE"),s=n("wJg7"),l=n("c6wG"),c=Object.prototype,u=c.hasOwnProperty;function d(e,t){var n=o(e),c=!n&&i(e),d=!n&&!c&&a(e),h=!n&&!c&&!d&&l(e),f=n||c||d||h,p=f?r(e.length,String):[],A=p.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,A))||p.push(g);return p}e.exports=d},b80e:function(e,t,n){"use strict";var r=n("TqRt"),i=n("cDf5");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("3tO9")),a=u(n("q1tI")),s=r(n("gKaM")),l=r(n("KQxl"));function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var d=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};d.displayName="DoubleLeftOutlined";var h=a.forwardRef(d);t.default=h},b9oc:function(e,t,n){var r=n("bYtY"),i=r.each,o="\0_ec_hist_store";function a(e,t){var n=u(e);i(t,(function(t,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function s(e){var t=u(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return i(n,(function(e,n){for(var i=t.length-1;i>=0;i--){e=t[i][n];if(e){r[n]=e;break}}})),r}function l(e){e[o]=null}function c(e){return u(e).length}function u(e){var t=e[o];return t||(t=e[o]=[{}]),t}t.push=a,t.pop=s,t.clear=l,t.count=c},bBKM:function(e,t,n){var r=n("Tghj"),i=(r.__DEV__,n("ProS")),o=n("bYtY"),a=n("+rIm"),s=n("IwbS"),l=["axisLine","axisTickLabel","axisName"],c=i.extendComponentView({type:"radar",render:function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=o.map(n,(function(e){var n=new a(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));o.each(r,(function(e){o.each(l,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),l=i.getModel("lineStyle"),c=a.getModel("areaStyle"),u=i.get("show"),d=a.get("show"),h=l.get("color"),f=c.get("color");h=o.isArray(h)?h:[h],f=o.isArray(f)?f:[f];var p=[],A=[];if("circle"===r)for(var g=n[0].getTicksCoords(),m=t.cx,v=t.cy,y=0;y1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=l()(e),i=O(t,n);return i&&r.push(i),r},M=function(e){var t,n=e.prefixCls,r=e.separator,o=void 0===r?"/":r,s=e.style,l=e.className,u=e.routes,f=e.children,p=e.itemRender,A=void 0===p?E:p,m=e.params,v=void 0===m?{}:m,b=S(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),_=c["useContext"](g["b"]),k=_.getPrefixCls,M=_.direction,T=k("breadcrumb",n);if(u&&u.length>0){var I=[];t=u.map((function(e){var t,n=O(e.path,v);return n&&I.push(n),e.children&&e.children.length&&(t=c["createElement"](w["a"],null,e.children.map((function(e){return c["createElement"](w["a"].Item,{key:e.path||e.breadcrumbName},A(e,v,u,B(I,e.path,v)))})))),c["createElement"](y,{overlay:t,separator:o,key:n||e.breadcrumbName},A(e,v,u,I))}))}else f&&(t=Object(h["a"])(f).map((function(e,t){return e?(Object(x["a"])(e.type&&(!0===e.type.__ANT_BREADCRUMB_ITEM||!0===e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(C["a"])(e,{separator:o,key:t})):e})));var L=d()(l,T,a()({},"".concat(T,"-rtl"),"rtl"===M));return c["createElement"]("div",i()({className:L,style:s},b),t)};M.Item=y,M.Separator=_;var T=M;t["a"]=T},bKJz:function(e,t,n){},bLfw:function(e,t,n){var r=n("bYtY"),i=n("Qxkt"),o=n("iRjW"),a=n("Yl7c"),s=a.enableClassManagement,l=a.parseClassType,c=n("4NO4"),u=c.makeInner,d=n("+TT/"),h=n("3hzK"),f=u(),p=i.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,r){i.call(this,e,t,n,r),this.uid=o.getUID("ec_cpt_model")},init:function(e,t,n,r){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?d.getLayoutParams(e):{},o=t.getTheme();r.merge(e,o.get(this.mainType)),r.merge(e,this.getDefaultOption()),n&&d.mergeLayoutParam(e,i,n)},mergeOption:function(e,t){r.merge(this.option,e,!0);var n=this.layoutMode;n&&d.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=f(this);if(!e.defaultOption){var t=[],n=this.constructor;while(n){var i=n.prototype.defaultOption;i&&t.push(i),n=n.superClass}for(var o={},a=t.length-1;a>=0;a--)o=r.merge(o,t[a],!0);e.defaultOption=o}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function A(e){var t=[];return r.each(p.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=r.map(t,(function(e){return l(e).main})),"dataset"!==e&&r.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(p,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(p),o.enableTopologicalTravel(p,A),r.mixin(p,h);var g=p;e.exports=g},bMXI:function(e,t,n){var r=n("bYtY"),i=n("QBsz"),o=n("Fofx"),a=n("mFDi"),s=n("DN4a"),l=i.applyTransform;function c(){s.call(this)}function u(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function d(e,t,n,r){var i=n.seriesModel,o=i?i.coordinateSystem:null;return o===this?o[e](r):null}r.mixin(c,s),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,r){return this._rect=new a(e,t,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,r){this.transformTo(e,t,n,r),this._viewRect=new a(e,t,n,r)},transformTo:function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new a(e,t,n,r)),o.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},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()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=i.applyTransform([],r,e),n=i.applyTransform([],n,e),t.origin=r,t.position=[n[0]-r[0],n[1]-r[1]],t.scale=[o,o],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),o.copy(this.transform||(this.transform=[]),t.transform||o.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?r.slice(e):o.create(),rawScale:r.slice(t.scale),rawPosition:r.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?l(n,e,r):i.copy(n,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:r.curry(d,"dataToPoint"),convertFromPixel:r.curry(d,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},r.mixin(u,s);var h=u;e.exports=h},bNin:function(e,t,n){var r=n("bYtY"),i=n("IwbS"),o=n("FBjb"),a=n("Itpr"),s=a.radialCoordinate,l=n("ProS"),c=n("4mN7"),u=n("bMXI"),d=n("Ae+d"),h=n("SgGq"),f=n("xSat"),p=f.onIrrelevantElement,A=n("Tghj"),g=(A.__DEV__,n("OELB")),m=g.parsePercent,v=i.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=m(t.forkPosition,1),d=[];d[l]=i[l],d[c]=i[c]+(a[c]-i[c])*u,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;hw.x,y||(v-=Math.PI));var k=y?"left":"right",E=s.labelModel.get("rotate"),O=E*(Math.PI/180);m.setStyle({textPosition:s.labelModel.get("position")||k,textRotation:null==E?-v:O,textOrigin:"center",verticalAlign:"middle"})}x(a,c,d,n,A,p,g,r,s)}function x(e,t,n,o,a,s,l,c,u){var d=u.edgeShape,h=o.__edge;if("curve"===d)t.parentNode&&t.parentNode!==n&&(h||(h=o.__edge=new i.BezierCurve({shape:S(u,a,a),style:r.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),i.updateProps(h,{shape:S(u,s,l),style:{opacity:1}},e));else if("polyline"===d&&"orthogonal"===u.layout&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var f=t.children,p=[],A=0;A